/external/llvm-project/clang/lib/Parse/ |
D | ParseAST.cpp | 70 const Preprocessor &PP = P.getPreprocessor(); in print() 78 const SourceManager &SM = P.getPreprocessor().getSourceManager(); in print() 132 new Parser(S.getPreprocessor(), S, SkipFunctionBodies)); in ParseAST() 143 S.getPreprocessor().EnterMainSourceFile(); in ParseAST() 151 bool HaveLexer = S.getPreprocessor().getCurrentLexer(); in ParseAST()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | ParsedAST.cpp | 124 auto &PP = Clang.getPreprocessor(); in attach() 312 Preprocessor *PP = &Clang->getPreprocessor(); in build() 359 &Clang->getPreprocessor().getHeaderSearchInfo()); in build() 385 Clang->getPreprocessor().addPPCallbacks( in build() 392 Clang->getPreprocessor().addPPCallbacks( in build() 405 Clang->getPreprocessor().addCommentHandler(IWYUHandler.get()); in build() 408 syntax::TokenCollector CollectTokens(Clang->getPreprocessor()); in build() 431 Clang->getPreprocessor().EndSourceFile(); in build() 474 Preprocessor &ParsedAST::getPreprocessor() { return Clang->getPreprocessor(); } in getPreprocessor() function in clang::clangd::ParsedAST 480 const Preprocessor &ParsedAST::getPreprocessor() const { in getPreprocessor() function in clang::clangd::ParsedAST [all …]
|
D | ParsedAST.h | 70 Preprocessor &getPreprocessor(); 72 const Preprocessor &getPreprocessor() const;
|
/external/llvm-project/clang/lib/Frontend/ |
D | FrontendAction.cpp | 145 return CI.getPreprocessor().getHeaderSearchInfo().lookupModule( in getCurrentModule() 268 StringLiteralParser Literal(T, CI.getPreprocessor()); in ReadOriginalFileName() 431 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo(); in loadModuleMapForModuleBuild() 471 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo(); in prepareToBuildModule() 488 CI.getPreprocessor().setMainFileDir(M->Directory); in prepareToBuildModule() 507 CI.getPreprocessor().getHeaderSearchInfo().getModuleMap() in prepareToBuildModule() 535 CI.getPreprocessor().getHeaderSearchInfo().getModuleMap(), M, in getInputBufferForModule() 617 AST->getPreprocessor().getHeaderSearchInfo().lookupModule( in BeginSourceFile() 661 Preprocessor &PP = CI.getPreprocessor(); in BeginSourceFile() 761 &CI.getPreprocessor()); in BeginSourceFile() [all …]
|
D | FrontendActions.cpp | 115 CI.getPreprocessor(), CI.getModuleCache(), OutputFile, Sysroot, Buffer, in CreateASTConsumer() 178 CI.getPreprocessor(), CI.getModuleCache(), OutputFile, Sysroot, Buffer, in CreateASTConsumer() 216 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo(); in CreateOutputFile() 295 auto &HS = CI.getPreprocessor().getHeaderSearchInfo(); in BeginSourceFileAction() 344 CI.getPreprocessor(), CI.getModuleCache(), &CI.getASTContext(), in ExecuteAction() 744 Preprocessor &PP = getCompilerInstance().getPreprocessor(); in ExecuteAction() 759 Preprocessor &PP = getCompilerInstance().getPreprocessor(); in ExecuteAction() 777 Preprocessor &PP = getCompilerInstance().getPreprocessor(); in ExecuteAction() 789 Preprocessor &PP = getCompilerInstance().getPreprocessor(); in ExecuteAction() 861 DoPrintPreprocessedInput(CI.getPreprocessor(), OS.get(), in ExecuteAction() [all …]
|
D | ChainedIncludesSource.cpp | 84 Preprocessor &PP = CI.getPreprocessor(); in createASTReader() 157 &Clang->getPreprocessor()); in createChainedIncludesSource() 163 Clang->getPreprocessor(), Clang->getModuleCache(), "-", /*isysroot=*/"", in createChainedIncludesSource() 171 Preprocessor &PP = Clang->getPreprocessor(); in createChainedIncludesSource()
|
D | CompilerInstance.cpp | 187 SimpleASTReaderListener Validator(CI.getPreprocessor()); in collectIncludePCH() 495 Preprocessor &PP = getPreprocessor(); in createASTContext() 511 AllowPCHWithCompilerErrors, getPreprocessor(), getModuleCache(), in createPCHExternalASTSource() 599 createCodeCompletionConsumer(getPreprocessor(), in createCodeCompletionConsumer() 605 } else if (EnableCodeCompletion(getPreprocessor(), Loc.FileName, in createCodeCompletionConsumer() 636 TheSema.reset(new Sema(getPreprocessor(), getASTContext(), getASTConsumer(), in createSema() 1220 = ImportingInstance.getPreprocessor().getHeaderSearchInfo().getModuleMap(); in compileModule() 1517 !getPreprocessor().getHeaderSearchInfo().getModuleCachePath().empty() && in createASTReader() 1534 getPreprocessor(), getModuleCache(), &getASTContext(), in createASTReader() 1575 CI.getPreprocessor().getIdentifierInfo(ModuleName)); in loadModuleFile() [all …]
|
/external/clang/lib/Parse/ |
D | ParseAST.cpp | 69 const Preprocessor &PP = P.getPreprocessor(); in print() 77 const SourceManager &SM = P.getPreprocessor().getSourceManager(); in print() 127 new Parser(S.getPreprocessor(), S, SkipFunctionBodies)); in ParseAST() 138 S.getPreprocessor().EnterMainSourceFile(); in ParseAST()
|
/external/llvm-project/clang/unittests/CodeGen/ |
D | IncrementalProcessingTest.cpp | 67 S.getPreprocessor().EnterMainSourceFile(); in IncrementalParseAST() 74 S.getPreprocessor().EnterSourceFile(FID, 0, InclLoc); in IncrementalParseAST() 118 CI.getPreprocessor().enableIncrementalProcessing(); in TEST() 126 std::unique_ptr<Parser> ParseOP(new Parser(S.getPreprocessor(), S, in TEST()
|
/external/clang/lib/Frontend/ |
D | FrontendActions.cpp | 94 CI.getPreprocessor(), OutputFile, nullptr, Sysroot, in CreateASTConsumer() 142 CI.getPreprocessor(), OutputFile, Module, Sysroot, in CreateASTConsumer() 292 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo(); in BeginSourceFileAction() 359 CI.getPreprocessor().getHeaderSearchInfo().getModuleMap(), Module, in BeginSourceFileAction() 370 CI.getPreprocessor().setMainFileDir(Module->Directory); in BeginSourceFileAction() 387 HeaderSearch &HS = CI.getPreprocessor().getHeaderSearchInfo(); in ComputeASTConsumerArguments() 432 CI.getPreprocessor(), CI.getASTContext(), CI.getPCHContainerReader(), in ExecuteAction() 619 Preprocessor &PP = getCompilerInstance().getPreprocessor(); in ExecuteAction() 637 Preprocessor &PP = getCompilerInstance().getPreprocessor(); in ExecuteAction() 654 CacheTokens(CI.getPreprocessor(), OS); in ExecuteAction() [all …]
|
D | FrontendAction.cpp | 226 CI.setPreprocessor(&AST->getPreprocessor()); in BeginSourceFile() 317 &CI.getPreprocessor()); in BeginSourceFile() 388 Preprocessor &PP = CI.getPreprocessor(); in BeginSourceFile() 409 CI.getPreprocessor().getHeaderSearchInfo().loadModuleMapFile( in BeginSourceFile() 464 CI.getPreprocessor().getHeaderSearchInfo().getModuleCachePath(); in Execute() 481 CI.getPreprocessor().EndSourceFile(); in EndSourceFile() 502 CI.getPreprocessor().PrintStats(); in EndSourceFile() 503 CI.getPreprocessor().getIdentifierTable().PrintStats(); in EndSourceFile() 504 CI.getPreprocessor().getHeaderSearchInfo().PrintStats(); in EndSourceFile()
|
D | CompilerInstance.cpp | 399 Preprocessor &PP = getPreprocessor(); in createASTContext() 415 AllowPCHWithCompilerErrors, getPreprocessor(), getASTContext(), in createPCHExternalASTSource() 497 createCodeCompletionConsumer(getPreprocessor(), in createCodeCompletionConsumer() 503 } else if (EnableCodeCompletion(getPreprocessor(), Loc.FileName, in createCodeCompletionConsumer() 511 getPreprocessor().getDiagnostics().Report(diag::err_fe_stdout_binary); in createCodeCompletionConsumer() 538 TheSema.reset(new Sema(getPreprocessor(), getASTContext(), getASTConsumer(), in createSema() 723 hasPreprocessor() ? &getPreprocessor().getHeaderSearchInfo() : nullptr, in InitializeSourceManager() 928 = ImportingInstance.getPreprocessor().getHeaderSearchInfo().getModuleMap(); in compileModuleImpl() 1293 !getPreprocessor().getHeaderSearchInfo().getModuleCachePath().empty() && in createModuleManager() 1307 getPreprocessor(), getASTContext(), getPCHContainerReader(), in createModuleManager() [all …]
|
D | ChainedIncludesSource.cpp | 81 Preprocessor &PP = CI.getPreprocessor(); in createASTReader() 160 &Clang->getPreprocessor()); in createChainedIncludesSource() 166 Clang->getPreprocessor(), "-", nullptr, /*isysroot=*/"", Buffer, in createChainedIncludesSource() 174 Preprocessor &PP = Clang->getPreprocessor(); in createChainedIncludesSource()
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | ModelInjector.cpp | 93 Instance.setPreprocessor(&CI.getPreprocessor()); in onBodySynthesis() 96 Instance.getPreprocessor().InitializeForModelFile(); in onBodySynthesis() 106 Instance.getPreprocessor().FinalizeForModelFile(); in onBodySynthesis()
|
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
D | FindAllSymbolsAction.cpp | 29 Compiler.getPreprocessor().addCommentHandler(&Handler); in CreateASTConsumer() 30 Compiler.getPreprocessor().addPPCallbacks(std::make_unique<FindAllMacros>( in CreateASTConsumer()
|
/external/clang/lib/Frontend/Rewrite/ |
D | FrontendActions.cpp | 37 return CreateHTMLPrinter(OS, CI.getPreprocessor()); in CreateASTConsumer() 179 RewriteMacrosInInput(CI.getPreprocessor(), OS); in ExecuteAction() 187 DoRewriteTest(CI.getPreprocessor(), OS); in ExecuteAction() 195 RewriteIncludesInInput(CI.getPreprocessor(), OS, in ExecuteAction()
|
/external/llvm-project/clang/lib/Frontend/Rewrite/ |
D | FrontendActions.cpp | 44 return CreateHTMLPrinter(std::move(OS), CI.getPreprocessor()); in CreateASTConsumer() 191 RewriteMacrosInInput(CI.getPreprocessor(), OS.get()); in ExecuteAction() 200 DoRewriteTest(CI.getPreprocessor(), OS.get()); in ExecuteAction() 313 RewriteIncludesInInput(CI.getPreprocessor(), &OS, in ExecuteAction() 318 RewriteIncludesInInput(CI.getPreprocessor(), OutputStream.get(), in ExecuteAction()
|
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
D | ClangModulesDeclVendor.cpp | 256 m_compiler_instance->getPreprocessor().getHeaderSearchInfo(); in AddModule() 439 if (m_compiler_instance->getPreprocessor().getExternalSource()) { in ForEachMacro() 440 m_compiler_instance->getPreprocessor() in ForEachMacro() 446 mi = m_compiler_instance->getPreprocessor().macro_begin(), in ForEachMacro() 447 me = m_compiler_instance->getPreprocessor().macro_end(); in ForEachMacro() 453 m_compiler_instance->getPreprocessor() in ForEachMacro() 467 m_compiler_instance->getPreprocessor().getLeafModuleMacros(ii)) { in ForEachMacro() 727 instance->getPreprocessor().enableIncrementalProcessing(); in Create() 735 instance->getPreprocessor(), instance->getSema(), skipFunctionBodies)); in Create() 737 instance->getPreprocessor().EnterMainSourceFile(); in Create()
|
/external/llvm-project/clang/unittests/StaticAnalyzer/ |
D | Reusables.h | 60 ChkMgr(C.getASTContext(), *C.getAnalyzerOpts(), C.getPreprocessor()), in ExprEngineConsumer() 62 AMgr(C.getASTContext(), C.getPreprocessor(), Consumers, in ExprEngineConsumer()
|
/external/llvm-project/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 285 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in checkForManualIssues() 294 Unit->getPreprocessor()); in checkForManualIssues() 309 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in checkForManualIssues() 315 TransformActions testAct(*Diags, capturedDiags, Ctx, Unit->getPreprocessor()); in checkForManualIssues() 458 CI.getPreprocessor().addPPCallbacks( in CreateASTConsumer() 566 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in applyTransform() 578 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in applyTransform() 581 TransformActions TA(*Diags, capturedDiags, Ctx, Unit->getPreprocessor()); in applyTransform()
|
/external/clang/lib/ARCMigrate/ |
D | ARCMT.cpp | 286 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in checkForManualIssues() 295 Unit->getPreprocessor()); in checkForManualIssues() 310 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in checkForManualIssues() 316 TransformActions testAct(*Diags, capturedDiags, Ctx, Unit->getPreprocessor()); in checkForManualIssues() 457 CI.getPreprocessor().addPPCallbacks( in CreateASTConsumer() 565 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in applyTransform() 577 DiagClient->BeginSourceFile(Ctx.getLangOpts(), &Unit->getPreprocessor()); in applyTransform() 580 TransformActions TA(*Diags, capturedDiags, Ctx, Unit->getPreprocessor()); in applyTransform()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Frontend/ |
D | ModelInjector.cpp | 94 Instance.getPreprocessor().InitializeForModelFile(); in onBodySynthesis() 103 Instance.getPreprocessor().FinalizeForModelFile(); in onBodySynthesis()
|
/external/swiftshader/src/OpenGL/compiler/ |
D | glslang.l | 407 yyget_extra(yyscanner)->getPreprocessor().lex(&token); 574 if (!context->getPreprocessor().init(count, string, length)) in glslang_scan() 582 context->getPreprocessor().predefineMacro(iter->first.c_str(), 1); in glslang_scan() 585 context->getPreprocessor().predefineMacro("GL_FRAGMENT_PRECISION_HIGH", 1); in glslang_scan()
|
/external/clang/unittests/Frontend/ |
D | FrontendActionTest.cpp | 41 ci.getPreprocessor().enableIncrementalProcessing(); in BeginSourceFileAction() 163 Preprocessor &PP = getCompilerInstance().getPreprocessor(); in ExecuteAction()
|
/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | HeadersTests.cpp | 73 Clang->getPreprocessor().addPPCallbacks( in collectIncludes() 98 &Clang->getPreprocessor().getHeaderSearchInfo()); 117 &Clang->getPreprocessor().getHeaderSearchInfo()); in insert()
|