Home | History | Annotate | Download | only in Frontend

Lines Matching refs:Clang

15 #include "clang/Basic/TargetInfo.h"
16 #include "clang/Frontend/ASTUnit.h"
17 #include "clang/Frontend/CompilerInstance.h"
18 #include "clang/Frontend/TextDiagnosticPrinter.h"
19 #include "clang/Lex/Preprocessor.h"
20 #include "clang/Parse/ParseAST.h"
21 #include "clang/Serialization/ASTReader.h"
22 #include "clang/Serialization/ASTWriter.h"
25 using namespace clang;
115 IntrusiveRefCntPtr<ExternalSemaSource> clang::createChainedIncludesSource(
150 std::unique_ptr<CompilerInstance> Clang(
152 Clang->setInvocation(CInvok.release());
153 Clang->setDiagnostics(Diags.get());
154 Clang->setTarget(TargetInfo::CreateTargetInfo(
155 Clang->getDiagnostics(), Clang->getInvocation().TargetOpts));
156 Clang->createFileManager();
157 Clang->createSourceManager(Clang->getFileManager());
158 Clang->createPreprocessor(TU_Prefix);
159 Clang->getDiagnosticClient().BeginSourceFile(Clang->getLangOpts(),
160 &Clang->getPreprocessor());
161 Clang->createASTContext();
166 Clang->getPreprocessor(), "-", nullptr, /*isysroot=*/"", Buffer,
168 Clang->getASTContext().setASTMutationListener(
170 Clang->setASTConsumer(std::move(consumer));
171 Clang->createSema(TU_Prefix, nullptr);
174 Preprocessor &PP = Clang->getPreprocessor();
191 *Clang, pchName, Bufs, serialBufNames,
192 Clang->getASTConsumer().GetASTDeserializationListener());
195 Clang->setModuleManager(Reader);
196 Clang->getASTContext().setExternalSource(Reader);
199 if (!Clang->InitializeSourceManager(InputFile))
202 ParseAST(Clang->getSema());
203 Clang->getDiagnosticClient().EndSourceFile();
209 source->CIs.push_back(Clang.release());