Lines Matching defs:CompilerInstance
1 //===--- CompilerInstance.cpp ---------------------------------------------===//
9 #include "clang/Frontend/CompilerInstance.h"
65 CompilerInstance::CompilerInstance(
74 CompilerInstance::~CompilerInstance() {
78 void CompilerInstance::setInvocation(
83 bool CompilerInstance::shouldBuildGlobalModuleIndex() const {
90 void CompilerInstance::setDiagnostics(DiagnosticsEngine *Value) {
94 void CompilerInstance::setVerboseOutputStream(raw_ostream &Value) {
99 void CompilerInstance::setVerboseOutputStream(std::unique_ptr<raw_ostream> Value) {
104 void CompilerInstance::setTarget(TargetInfo *Value) { Target = Value; }
105 void CompilerInstance::setAuxTarget(TargetInfo *Value) { AuxTarget = Value; }
107 bool CompilerInstance::createTarget() {
160 llvm::vfs::FileSystem &CompilerInstance::getVirtualFileSystem() const {
164 void CompilerInstance::setFileManager(FileManager *Value) {
168 void CompilerInstance::setSourceManager(SourceManager *Value) {
172 void CompilerInstance::setPreprocessor(std::shared_ptr<Preprocessor> Value) {
176 void CompilerInstance::setASTContext(ASTContext *Value) {
183 void CompilerInstance::setSema(Sema *S) {
187 void CompilerInstance::setASTConsumer(std::unique_ptr<ASTConsumer> Value) {
194 void CompilerInstance::setCodeCompletionConsumer(CodeCompleteConsumer *Value) {
198 std::unique_ptr<Sema> CompilerInstance::takeSema() {
202 IntrusiveRefCntPtr<ASTReader> CompilerInstance::getASTReader() const {
205 void CompilerInstance::setASTReader(IntrusiveRefCntPtr<ASTReader> Reader) {
212 CompilerInstance::getModuleDepCollector() const {
216 void CompilerInstance::setModuleDepCollector(
229 static void collectIncludePCH(CompilerInstance &CI,
262 static void collectVFSEntries(CompilerInstance &CI,
333 void CompilerInstance::createDiagnostics(DiagnosticConsumer *Client,
340 CompilerInstance::createDiagnostics(DiagnosticOptions *Opts,
377 FileManager *CompilerInstance::createFileManager(
390 void CompilerInstance::createSourceManager(FileManager &FileMgr) {
445 void CompilerInstance::createPreprocessor(TranslationUnitKind TUKind) {
540 std::string CompilerInstance::getSpecificModuleCachePath(StringRef ModuleHash) {
550 void CompilerInstance::createASTContext() {
610 void CompilerInstance::createPCHExternalASTSource(
624 IntrusiveRefCntPtr<ASTReader> CompilerInstance::createPCHExternalASTSource(
709 void CompilerInstance::createCodeCompletionConsumer() {
723 void CompilerInstance::createFrontendTimer() {
732 CompilerInstance::createCodeCompletionConsumer(Preprocessor &PP,
745 void CompilerInstance::createSema(TranslationUnitKind TUKind,
770 void CompilerInstance::clearOutputFiles(bool EraseFiles) {
808 std::unique_ptr<raw_pwrite_stream> CompilerInstance::createDefaultOutputFile(
828 std::unique_ptr<raw_pwrite_stream> CompilerInstance::createNullOutputFile() {
833 CompilerInstance::createOutputFile(StringRef OutputPath, bool Binary,
847 CompilerInstance::createOutputFileImpl(StringRef OutputPath, bool Binary,
962 bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input){
968 bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input,
1010 bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
1096 void CompilerInstance::printDiagnosticStats() {
1126 void CompilerInstance::LoadRequestedPlugins() {
1163 compileModuleImpl(CompilerInstance &ImportingInstance, SourceLocation ImportLoc,
1166 llvm::function_ref<void(CompilerInstance &)> PreBuildStep =
1167 [](CompilerInstance &) {},
1168 llvm::function_ref<void(CompilerInstance &)> PostBuildStep =
1169 [](CompilerInstance &) {}) {
1232 // CompilerInstance::CompilerInstance is responsible for finalizing the
1234 CompilerInstance Instance(ImportingInstance.getPCHContainerOperations(),
1331 static bool compileModule(CompilerInstance &ImportingInstance,
1390 [&](CompilerInstance &Instance) {
1410 static bool readASTAfterCompileModule(CompilerInstance &ImportingInstance,
1445 static bool compileModuleAndReadASTImpl(CompilerInstance &ImportingInstance,
1472 CompilerInstance &ImportingInstance, SourceLocation ImportLoc,
1541 static bool compileModuleAndReadAST(CompilerInstance &ImportingInstance,
1707 void CompilerInstance::createASTReader() {
1758 bool CompilerInstance::loadModuleFile(
1852 ModuleLoadResult CompilerInstance::findOrCompileModuleAndReadAST(
2017 CompilerInstance::loadModule(SourceLocation ImportLoc,
2204 void CompilerInstance::createModuleFromSource(SourceLocation ImportLoc,
2232 auto PreBuildStep = [&](CompilerInstance &Other) {
2244 auto PostBuildStep = [this](CompilerInstance &Other) {
2256 void CompilerInstance::makeModuleVisible(Module *Mod,
2267 GlobalModuleIndex *CompilerInstance::loadGlobalModuleIndex(
2337 CompilerInstance::lookupMissingImports(StringRef Name,
2360 void CompilerInstance::resetAndLeakSema() { llvm::BuryPointer(takeSema()); }
2362 void CompilerInstance::setExternalSemaSource(