• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/

Lines Matching defs:clang

1 //===- Tooling.cpp - Running clang standalone tools -----------------------===//
9 // This file implements functions to run clang tools standalone instead
14 #include "clang/Tooling/Tooling.h"
15 #include "clang/Basic/Diagnostic.h"
16 #include "clang/Basic/DiagnosticIDs.h"
17 #include "clang/Basic/DiagnosticOptions.h"
18 #include "clang/Basic/FileManager.h"
19 #include "clang/Basic/FileSystemOptions.h"
20 #include "clang/Basic/LLVM.h"
21 #include "clang/Driver/Compilation.h"
22 #include "clang/Driver/Driver.h"
23 #include "clang/Driver/Job.h"
24 #include "clang/Driver/Options.h"
25 #include "clang/Driver/Tool.h"
26 #include "clang/Driver/ToolChain.h"
27 #include "clang/Frontend/ASTUnit.h"
28 #include "clang/Frontend/CompilerInstance.h"
29 #include "clang/Frontend/CompilerInvocation.h"
30 #include "clang/Frontend/FrontendDiagnostic.h"
31 #include "clang/Frontend/FrontendOptions.h"
32 #include "clang/Frontend/TextDiagnosticPrinter.h"
33 #include "clang/Lex/HeaderSearchOptions.h"
34 #include "clang/Lex/PreprocessorOptions.h"
35 #include "clang/Tooling/ArgumentsAdjusters.h"
36 #include "clang/Tooling/CompilationDatabase.h"
62 #define DEBUG_TYPE "clang-tooling"
64 using namespace clang;
75 /// Builds a clang driver initialized for running clang tools.
86 /// Retrieves the clang CC1 specific flags out of the compilation's jobs.
130 // The one job we find should be to invoke clang again.
132 if (StringRef(Cmd.getCreator().getName()) != "clang") {
140 namespace clang {
143 /// Returns a clang build invocation initialized from the CC1 flags.
159 "clang-tool", std::move(PCHContainerOps));
163 } // namespace clang
177 namespace clang {
271 } // namespace clang
367 llvm::errs() << "clang Invocation:\n";
536 // builtin headers in the resource dir need to match the exact clang
609 namespace clang {
616 "clang-tool", std::move(PCHContainerOps));
653 } // namespace clang