Home
last modified time | relevance | path

Searched refs:getFrontendOpts (Results 1 – 25 of 66) sorted by relevance

123

/external/clang/lib/FrontendTool/
DExecuteCompilerInvocation.cpp40 switch (CI.getFrontendOpts().ProgramAction) { in CreateFrontendBaseAction()
67 if (it->getName() == CI.getFrontendOpts().ActionName) { in CreateFrontendBaseAction()
71 !P->ParseArgs(CI, CI.getFrontendOpts().PluginArgs[it->getName()])) in CreateFrontendBaseAction()
78 << CI.getFrontendOpts().ActionName; in CreateFrontendBaseAction()
127 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in CreateFrontendAction()
134 if (CI.getFrontendOpts().ProgramAction != frontend::MigrateSource && in CreateFrontendAction()
135 CI.getFrontendOpts().ProgramAction != frontend::GeneratePCH) { in CreateFrontendAction()
173 if (Clang->getFrontendOpts().ShowHelp) { in ExecuteCompilerInvocation()
184 if (Clang->getFrontendOpts().ShowVersion) { in ExecuteCompilerInvocation()
191 e = Clang->getFrontendOpts().Plugins.size(); i != e; ++i) { in ExecuteCompilerInvocation()
[all …]
/external/llvm-project/clang/lib/FrontendTool/
DExecuteCompilerInvocation.cpp44 switch (CI.getFrontendOpts().ProgramAction) { in CreateFrontendBaseAction()
79 if (Plugin.getName() == CI.getFrontendOpts().ActionName) { in CreateFrontendBaseAction()
85 CI.getFrontendOpts().PluginArgs[std::string(Plugin.getName())])) in CreateFrontendBaseAction()
92 << CI.getFrontendOpts().ActionName; in CreateFrontendBaseAction()
143 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in CreateFrontendAction()
150 if (CI.getFrontendOpts().ProgramAction != frontend::MigrateSource && in CreateFrontendAction()
151 CI.getFrontendOpts().ProgramAction != frontend::GeneratePCH) { in CreateFrontendAction()
189 if (Clang->getFrontendOpts().ShowHelp) { in ExecuteCompilerInvocation()
201 if (Clang->getFrontendOpts().ShowVersion) { in ExecuteCompilerInvocation()
207 for (const std::string &Path : Clang->getFrontendOpts().Plugins) { in ExecuteCompilerInvocation()
[all …]
/external/clang/unittests/Frontend/
DFrontendActionTest.cpp84 invocation->getFrontendOpts().Inputs.push_back(FrontendInputFile("test.cc", in TEST()
86 invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST()
104 invocation->getFrontendOpts().Inputs.push_back(FrontendInputFile("test.cc", in TEST()
106 invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST()
131 invocation->getFrontendOpts().Inputs.push_back(FrontendInputFile("test.cc", in TEST()
133 invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST()
177 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
179 Invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST()
DCodeGenActionTest.cpp47 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
49 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST()
/external/llvm-project/clang/unittests/Frontend/
DOutputStreamTest.cpp28 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
30 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
52 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
54 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
81 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
83 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
DCodeGenActionTest.cpp48 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
50 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST()
DCompilerInvocationTest.cpp50 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary); in TEST_F()
63 ASSERT_FALSE(Invocation.getFrontendOpts().UseTemporary); in TEST_F()
77 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary); in TEST_F()
/external/clang/lib/Frontend/
DFrontendActions.cpp52 return CreateASTPrinter(OS, CI.getFrontendOpts().ASTDumpFilter); in CreateASTConsumer()
58 return CreateASTDumper(CI.getFrontendOpts().ASTDumpFilter, in CreateASTConsumer()
59 CI.getFrontendOpts().ASTDumpDecls, in CreateASTConsumer()
60 CI.getFrontendOpts().ASTDumpLookups); in CreateASTConsumer()
88 if (!CI.getFrontendOpts().RelocatablePCH) in CreateASTConsumer()
95 Buffer, CI.getFrontendOpts().ModuleFileExtensions, in CreateASTConsumer()
98 +CI.getFrontendOpts().IncludeTimestamps)); in CreateASTConsumer()
109 if (CI.getFrontendOpts().RelocatablePCH && Sysroot.empty()) { in ComputeASTConsumerArguments()
118 CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, in ComputeASTConsumerArguments()
124 OutputFile = CI.getFrontendOpts().OutputFile; in ComputeASTConsumerArguments()
[all …]
DFrontendAction.cpp160 for (size_t i = 0, e = CI.getFrontendOpts().AddPluginActions.size(); in CreateWrappedASTConsumer()
162 if (it->getName() == CI.getFrontendOpts().AddPluginActions[i]) { in CreateWrappedASTConsumer()
170 P->ParseArgs(CI, CI.getFrontendOpts().PluginArgs[it->getName()])) { in CreateWrappedASTConsumer()
407 for (const auto &Filename : CI.getFrontendOpts().ModuleMapFiles) { in BeginSourceFile()
416 for (const auto &ModuleFile : CI.getFrontendOpts().ModuleFiles) in BeginSourceFile()
422 if (!CI.getFrontendOpts().OverrideRecordLayoutsFile.empty() && in BeginSourceFile()
426 CI.getFrontendOpts().OverrideRecordLayoutsFile)); in BeginSourceFile()
489 bool DisableFree = CI.getFrontendOpts().DisableFree; in EndSourceFile()
500 if (CI.getFrontendOpts().ShowStats) { in EndSourceFile()
545 !CI.getFrontendOpts().CodeCompletionAt.FileName.empty()) in ExecuteAction()
[all …]
DCompilerInstance.cpp75 getFrontendOpts().GenerateGlobalModuleIndex)) && in shouldBuildGlobalModuleIndex()
334 getFrontendOpts()); in createPreprocessor()
417 getFrontendOpts().ModuleFileExtensions, in createPCHExternalASTSource()
420 getFrontendOpts().UseGlobalModuleIndex); in createPCHExternalASTSource()
494 const ParsedSourceLocation &Loc = getFrontendOpts().CodeCompletionAt; in createCodeCompletionConsumer()
499 getFrontendOpts().CodeCompleteOpts, in createCodeCompletionConsumer()
582 return createOutputFile(getFrontendOpts().OutputFile, Binary, in createDefaultOutputFile()
724 getDependencyOutputOpts(), getFrontendOpts()); in InitializeSourceManager()
826 assert(!getFrontendOpts().ShowHelp && "Client must handle '-help'!"); in ExecuteAction()
827 assert(!getFrontendOpts().ShowVersion && "Client must handle '-version'!"); in ExecuteAction()
[all …]
DASTUnit.cpp990 if (!CI.getFrontendOpts().RelocatablePCH) in CreateASTConsumer()
1053 OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile(); in Parse()
1071 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in Parse()
1073 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_AST && in Parse()
1075 assert(Clang->getFrontendOpts().Inputs[0].getKind() != IK_LLVM_IR && in Parse()
1138 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) in Parse()
1189 FrontendOptions &FrontendOpts = Invocation.getFrontendOpts(); in ComputePreamble()
1347 FrontendOptions &FrontendOpts = PreambleInvocation->getFrontendOpts(); in getMainBufferWithPrecompiledPreamble()
1524 OriginalSourceFile = Clang->getFrontendOpts().Inputs[0].getFile(); in getMainBufferWithPrecompiledPreamble()
1546 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in getMainBufferWithPrecompiledPreamble()
[all …]
/external/llvm-project/clang/lib/Frontend/
DFrontendActions.cpp44 !CI.getFrontendOpts().CodeCompletionAt.FileName.empty()) in EnsureSemaIsCreated()
73 return CreateASTPrinter(std::move(OS), CI.getFrontendOpts().ASTDumpFilter); in CreateASTConsumer()
79 const FrontendOptions &Opts = CI.getFrontendOpts(); in CreateASTConsumer()
108 if (!CI.getFrontendOpts().RelocatablePCH) in CreateASTConsumer()
111 const auto &FrontendOpts = CI.getFrontendOpts(); in CreateASTConsumer()
128 if (CI.getFrontendOpts().RelocatablePCH && Sysroot.empty()) { in ComputeASTConsumerArguments()
143 CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true, in CreateOutputFile()
145 /*Extension=*/"", CI.getFrontendOpts().UseTemporary); in CreateOutputFile()
149 OutputFile = CI.getFrontendOpts().OutputFile; in CreateOutputFile()
171 std::string OutputFile = CI.getFrontendOpts().OutputFile; in CreateASTConsumer()
[all …]
DFrontendAction.cpp158 for (const std::string &Arg : CI.getFrontendOpts().AddPluginActions) { in CreateWrappedASTConsumer()
192 if (llvm::any_of(CI.getFrontendOpts().AddPluginActions, in CreateWrappedASTConsumer()
202 CI.getFrontendOpts().PluginArgs[std::string(Plugin.getName())])) { in CreateWrappedASTConsumer()
494 StringRef OriginalModuleMapName = CI.getFrontendOpts().OriginalModuleMap; in prepareToBuildModule()
604 CI.getFrontendOpts().ModuleFiles.push_back(MF.FileName); in BeginSourceFile()
608 CI.getFrontendOpts().ModuleMapFiles.push_back( in BeginSourceFile()
691 for (const auto &F : CI.getFrontendOpts().ModulesEmbedFiles) { in BeginSourceFile()
697 if (CI.getFrontendOpts().ModulesEmbedAllFiles) in BeginSourceFile()
809 for (const auto &Filename : CI.getFrontendOpts().ModuleMapFiles) { in BeginSourceFile()
914 for (const auto &ModuleFile : CI.getFrontendOpts().ModuleFiles) in BeginSourceFile()
[all …]
DCompilerInstance.cpp79 getFrontendOpts().GenerateGlobalModuleIndex)) && in shouldBuildGlobalModuleIndex()
416 getFrontendOpts()); in createPreprocessor()
513 getFrontendOpts().ModuleFileExtensions, DependencyCollectors, in createPCHExternalASTSource()
515 getFrontendOpts().UseGlobalModuleIndex); in createPCHExternalASTSource()
596 const ParsedSourceLocation &Loc = getFrontendOpts().CodeCompletionAt; in createCodeCompletionConsumer()
601 getFrontendOpts().CodeCompleteOpts, in createCodeCompletionConsumer()
685 return createOutputFile(getFrontendOpts().OutputFile, Binary, in createDefaultOutputFile()
687 getFrontendOpts().UseTemporary); in createDefaultOutputFile()
910 assert(!getFrontendOpts().ShowHelp && "Client must handle '-help'!"); in ExecuteAction()
911 assert(!getFrontendOpts().ShowVersion && "Client must handle '-version'!"); in ExecuteAction()
[all …]
DASTUnit.cpp1149 std::string(Clang->getFrontendOpts().Inputs[0].getFile()); in Parse()
1167 assert(Clang->getFrontendOpts().Inputs.size() == 1 && in Parse()
1169 assert(Clang->getFrontendOpts().Inputs[0].getKind().getFormat() == in Parse()
1172 assert(Clang->getFrontendOpts().Inputs[0].getKind().getLanguage() != in Parse()
1213 if (!Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0])) in Parse()
1310 PreambleInvocationIn.getFrontendOpts().Inputs[0].getFile(); in getMainBufferWithPrecompiledPreamble()
1375 PreambleInvocationIn.getFrontendOpts().SkipFunctionBodies; in getMainBufferWithPrecompiledPreamble()
1377 PreambleInvocationIn.getFrontendOpts().SkipFunctionBodies = true; in getMainBufferWithPrecompiledPreamble()
1383 PreambleInvocationIn.getFrontendOpts().SkipFunctionBodies = in getMainBufferWithPrecompiledPreamble()
1466 if (Invocation && !Invocation->getFrontendOpts().Inputs.empty()) { in getMainFileName()
[all …]
DChainedIncludesSource.cpp120 InputKind IK = CI.getFrontendOpts().Inputs[0].getKind(); in createChainedIncludesSource()
137 CInvok->getFrontendOpts().Inputs.clear(); in createChainedIncludesSource()
139 CInvok->getFrontendOpts().Inputs.push_back(InputFile); in createChainedIncludesSource()
/external/llvm-project/clang/tools/driver/
Dcc1_main.cpp209 if (Clang->getFrontendOpts().TimeTrace) { in cc1_main()
211 Clang->getFrontendOpts().TimeTraceGranularity, Argv0); in cc1_main()
214 if (Clang->getFrontendOpts().PrintSupportedCPUs) in cc1_main()
249 SmallString<128> Path(Clang->getFrontendOpts().OutputFile); in cc1_main()
272 if (Clang->getFrontendOpts().DisableFree) { in cc1_main()
/external/bcc/src/cc/frontends/clang/
Dloader.cc334 invocation0.getFrontendOpts().Inputs.clear(); in do_compile()
335 invocation0.getFrontendOpts().Inputs.push_back(FrontendInputFile( in do_compile()
338 invocation0.getFrontendOpts().DisableFree = false; in do_compile()
366 invocation1.getFrontendOpts().Inputs.clear(); in do_compile()
367 invocation1.getFrontendOpts().Inputs.push_back(FrontendInputFile( in do_compile()
369 invocation1.getFrontendOpts().DisableFree = false; in do_compile()
394 invocation2.getFrontendOpts().Inputs.clear(); in do_compile()
395 invocation2.getFrontendOpts().Inputs.push_back(FrontendInputFile( in do_compile()
397 invocation2.getFrontendOpts().DisableFree = false; in do_compile()
/external/llvm-project/clang/lib/Frontend/Rewrite/
DFrontendActions.cpp97 const FrontendOptions &FEOpts = getCompilerInstance().getFrontendOpts(); in BeginSourceFileAction()
120 const FrontendOptions &FEOpts = CI.getFrontendOpts(); in BeginInvocation()
251 Instance.getFrontendOpts().DisableFree = false; in visitModuleFile()
252 Instance.getFrontendOpts().Inputs.clear(); in visitModuleFile()
253 Instance.getFrontendOpts().Inputs.emplace_back( in visitModuleFile()
255 Instance.getFrontendOpts().ModuleFiles.clear(); in visitModuleFile()
256 Instance.getFrontendOpts().ModuleMapFiles.clear(); in visitModuleFile()
/external/llvm-project/clang/lib/StaticAnalyzer/Frontend/
DAnalyzerHelpFlags.cpp34 CI.getFrontendOpts().Plugins); in printCheckerHelp()
45 CI.getFrontendOpts().Plugins); in printEnabledCheckerList()
54 CI.getFrontendOpts().Plugins); in printCheckerConfigList()
/external/clang/include/clang/Frontend/
DCompilerInvocation.h198 FrontendOptions &getFrontendOpts() { return FrontendOpts; } in getFrontendOpts() function
199 const FrontendOptions &getFrontendOpts() const { in getFrontendOpts() function
DCompilerInstance.h280 FrontendOptions &getFrontendOpts() { in getFrontendOpts() function
281 return Invocation->getFrontendOpts(); in getFrontendOpts()
283 const FrontendOptions &getFrontendOpts() const { in getFrontendOpts() function
284 return Invocation->getFrontendOpts(); in getFrontendOpts()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DHeadersTests.cpp62 EXPECT_FALSE(Clang->getFrontendOpts().Inputs.empty()); in setupClang()
71 Action.BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0])); in collectIncludes()
87 Action.BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0]));
113 Action.BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0])); in insert()
/external/llvm-project/clang/include/clang/Frontend/
DCompilerInvocation.h227 FrontendOptions &getFrontendOpts() { return FrontendOpts; } in getFrontendOpts() function
228 const FrontendOptions &getFrontendOpts() const { return FrontendOpts; } in getFrontendOpts() function
/external/llvm-project/clang-tools-extra/clangd/
DPreamble.cpp260 if (Clang->getFrontendOpts().Inputs.empty()) in scanPreamble()
265 if (!Action.BeginSourceFile(*Clang, Clang->getFrontendOpts().Inputs[0])) in scanPreamble()
335 assert(!CI.getFrontendOpts().SkipFunctionBodies); in buildPreamble()
336 CI.getFrontendOpts().SkipFunctionBodies = true; in buildPreamble()
354 CI.getFrontendOpts().SkipFunctionBodies = false; in buildPreamble()

123