Home | History | Annotate | Download | only in driver

Lines Matching refs:Clang

1 //===-- cc1_main.cpp - Clang CC1 Compiler Frontend ------------------------===//
10 // This is the entry point to the clang -cc1 functionality, which implements the
17 #include "clang/CodeGen/ObjectFilePCHContainerOperations.h"
18 #include "clang/Driver/DriverDiagnostic.h"
19 #include "clang/Driver/Options.h"
20 #include "clang/Frontend/CompilerInstance.h"
21 #include "clang/Frontend/CompilerInvocation.h"
22 #include "clang/Frontend/FrontendDiagnostic.h"
23 #include "clang/Frontend/TextDiagnosticBuffer.h"
24 #include "clang/Frontend/TextDiagnosticPrinter.h"
25 #include "clang/Frontend/Utils.h"
26 #include "clang/FrontendTool/Utils.h"
38 using namespace clang;
68 std::unique_ptr<CompilerInstance> Clang(new CompilerInstance());
71 // Register the support for object-file-wrapped Clang modules.
72 auto PCHOps = Clang->getPCHContainerOperations();
93 Clang->getInvocation(), Argv.begin(), Argv.end(), Diags);
96 if (Clang->getHeaderSearchOpts().UseBuiltinIncludes &&
97 Clang->getHeaderSearchOpts().ResourceDir.empty())
98 Clang->getHeaderSearchOpts().ResourceDir =
102 Clang->createDiagnostics();
103 if (!Clang->hasDiagnostics())
109 static_cast<void*>(&Clang->getDiagnostics()));
111 DiagsBuffer->FlushDiagnostics(Clang->getDiagnostics());
116 Success = ExecuteCompilerInvocation(Clang.get());
128 if (Clang->getFrontendOpts().DisableFree) {
129 if (llvm::AreStatisticsEnabled() || Clang->getFrontendOpts().ShowStats)
131 BuryPointer(std::move(Clang));