//==-- handle_cxx.cpp - Helper function for Clang fuzzers ------------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Implements HandleCXX for use by the Clang fuzzers. // //===----------------------------------------------------------------------===// #include "handle_cxx.h" #include "clang/CodeGen/CodeGenAction.h" #include "clang/Frontend/CompilerInstance.h" #include "clang/Lex/PreprocessorOptions.h" #include "clang/Tooling/Tooling.h" #include "llvm/Option/Option.h" usingnamespaceclang; void clang_fuzzer::HandleCXX(const std::string &S, const char *FileName, const std::vector<const char *> &ExtraArgs) { … }