Lines Matching refs:frontend

2194                                       frontend::ActionKind Action,  in ParseDependencyOutputArgs()
2208 if (Action == frontend::PrintPreprocessedInput || !ShowLineMarkers) in ParseDependencyOutputArgs()
2527 static const std::pair<frontend::ActionKind, unsigned> Table[] = { in getFrontendActionTable()
2528 {frontend::ASTDeclList, OPT_ast_list}, in getFrontendActionTable()
2530 {frontend::ASTDump, OPT_ast_dump_all_EQ}, in getFrontendActionTable()
2531 {frontend::ASTDump, OPT_ast_dump_all}, in getFrontendActionTable()
2532 {frontend::ASTDump, OPT_ast_dump_EQ}, in getFrontendActionTable()
2533 {frontend::ASTDump, OPT_ast_dump}, in getFrontendActionTable()
2534 {frontend::ASTDump, OPT_ast_dump_lookups}, in getFrontendActionTable()
2535 {frontend::ASTDump, OPT_ast_dump_decl_types}, in getFrontendActionTable()
2537 {frontend::ASTPrint, OPT_ast_print}, in getFrontendActionTable()
2538 {frontend::ASTView, OPT_ast_view}, in getFrontendActionTable()
2539 {frontend::DumpCompilerOptions, OPT_compiler_options_dump}, in getFrontendActionTable()
2540 {frontend::DumpRawTokens, OPT_dump_raw_tokens}, in getFrontendActionTable()
2541 {frontend::DumpTokens, OPT_dump_tokens}, in getFrontendActionTable()
2542 {frontend::EmitAssembly, OPT_S}, in getFrontendActionTable()
2543 {frontend::EmitBC, OPT_emit_llvm_bc}, in getFrontendActionTable()
2544 {frontend::EmitHTML, OPT_emit_html}, in getFrontendActionTable()
2545 {frontend::EmitLLVM, OPT_emit_llvm}, in getFrontendActionTable()
2546 {frontend::EmitLLVMOnly, OPT_emit_llvm_only}, in getFrontendActionTable()
2547 {frontend::EmitCodeGenOnly, OPT_emit_codegen_only}, in getFrontendActionTable()
2548 {frontend::EmitObj, OPT_emit_obj}, in getFrontendActionTable()
2549 {frontend::ExtractAPI, OPT_extract_api}, in getFrontendActionTable()
2551 {frontend::FixIt, OPT_fixit_EQ}, in getFrontendActionTable()
2552 {frontend::FixIt, OPT_fixit}, in getFrontendActionTable()
2554 {frontend::GenerateModule, OPT_emit_module}, in getFrontendActionTable()
2555 {frontend::GenerateModuleInterface, OPT_emit_module_interface}, in getFrontendActionTable()
2556 {frontend::GenerateHeaderUnit, OPT_emit_header_unit}, in getFrontendActionTable()
2557 {frontend::GeneratePCH, OPT_emit_pch}, in getFrontendActionTable()
2558 {frontend::GenerateInterfaceStubs, OPT_emit_interface_stubs}, in getFrontendActionTable()
2559 {frontend::InitOnly, OPT_init_only}, in getFrontendActionTable()
2560 {frontend::ParseSyntaxOnly, OPT_fsyntax_only}, in getFrontendActionTable()
2561 {frontend::ModuleFileInfo, OPT_module_file_info}, in getFrontendActionTable()
2562 {frontend::VerifyPCH, OPT_verify_pch}, in getFrontendActionTable()
2563 {frontend::PrintPreamble, OPT_print_preamble}, in getFrontendActionTable()
2564 {frontend::PrintPreprocessedInput, OPT_E}, in getFrontendActionTable()
2565 {frontend::TemplightDump, OPT_templight_dump}, in getFrontendActionTable()
2566 {frontend::RewriteMacros, OPT_rewrite_macros}, in getFrontendActionTable()
2567 {frontend::RewriteObjC, OPT_rewrite_objc}, in getFrontendActionTable()
2568 {frontend::RewriteTest, OPT_rewrite_test}, in getFrontendActionTable()
2569 {frontend::RunAnalysis, OPT_analyze}, in getFrontendActionTable()
2570 {frontend::MigrateSource, OPT_migrate}, in getFrontendActionTable()
2571 {frontend::RunPreprocessorOnly, OPT_Eonly}, in getFrontendActionTable()
2572 {frontend::PrintDependencyDirectivesSourceMinimizerOutput, in getFrontendActionTable()
2580 static std::optional<frontend::ActionKind>
2591 getProgramActionOpt(frontend::ActionKind ProgramAction) { in getProgramActionOpt()
2617 assert(Opts.ProgramAction == frontend::PluginAction && in GenerateFrontendArgs()
2625 if (Opts.ProgramAction == frontend::ASTDump) { in GenerateFrontendArgs()
2653 if (Opts.ProgramAction == frontend::FixIt && !Opts.FixItSuffix.empty()) { in GenerateFrontendArgs()
2777 Opts.ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2780 std::optional<frontend::ActionKind> ProgramAction = getFrontendAction(Opt); in ParseFrontendArgs()
2783 if (ProgramAction == frontend::ASTDump && in ParseFrontendArgs()
2799 if (ProgramAction == frontend::FixIt && Opt == OPT_fixit_EQ) in ParseFrontendArgs()
2802 if (ProgramAction == frontend::GenerateInterfaceStubs) { in ParseFrontendArgs()
2817 ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2825 ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2834 Opts.ProgramAction = frontend::PluginAction; in ParseFrontendArgs()
2878 if (Opts.ProgramAction != frontend::GenerateModule && Opts.IsSystemModule) in ParseFrontendArgs()
3000 if (Opts.ProgramAction == frontend::GenerateModule && in ParseFrontendArgs()
3045 llvm::ArrayRef<frontend::IncludeDirGroup> Groups, in GenerateHeaderSearchArgs()
3057 for (; It < End && Matches(*It, {frontend::IndexHeaderMap, frontend::Angled}, in GenerateHeaderSearchArgs()
3061 if (Matches(*It, frontend::IndexHeaderMap, true, true)) in GenerateHeaderSearchArgs()
3063 if (Matches(*It, frontend::IndexHeaderMap, false, true)) in GenerateHeaderSearchArgs()
3065 if (Matches(*It, frontend::Angled, true, true)) in GenerateHeaderSearchArgs()
3067 if (Matches(*It, frontend::Angled, false, true)) in GenerateHeaderSearchArgs()
3072 if (It->Group == frontend::IndexHeaderMap) in GenerateHeaderSearchArgs()
3082 Matches(*It, {frontend::After, frontend::Angled}, false, true); in GenerateHeaderSearchArgs()
3085 It->Group == frontend::After ? OPT_iwithprefix : OPT_iwithprefixbefore; in GenerateHeaderSearchArgs()
3092 for (; It < End && Matches(*It, {frontend::After}, false, true); ++It) in GenerateHeaderSearchArgs()
3094 for (; It < End && Matches(*It, {frontend::Quoted}, false, true); ++It) in GenerateHeaderSearchArgs()
3096 for (; It < End && Matches(*It, {frontend::System}, false, std::nullopt); in GenerateHeaderSearchArgs()
3100 for (; It < End && Matches(*It, {frontend::System}, true, true); ++It) in GenerateHeaderSearchArgs()
3102 for (; It < End && Matches(*It, {frontend::System}, true, false); ++It) in GenerateHeaderSearchArgs()
3106 for (; It < End && Matches(*It, {frontend::CSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
3108 for (; It < End && Matches(*It, {frontend::CXXSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
3110 for (; It < End && Matches(*It, {frontend::ObjCSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
3112 for (; It < End && Matches(*It, {frontend::ObjCXXSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
3120 Matches(*It, {frontend::System, frontend::ExternCSystem}, false, true); in GenerateHeaderSearchArgs()
3122 OptSpecifier Opt = It->Group == frontend::System in GenerateHeaderSearchArgs()
3196 frontend::IncludeDirGroup Group = in ParseHeaderSearchArgs()
3197 IsIndexHeaderMap ? frontend::IndexHeaderMap : frontend::Angled; in ParseHeaderSearchArgs()
3221 Opts.AddPath(Prefix.str() + A->getValue(), frontend::After, false, true); in ParseHeaderSearchArgs()
3223 Opts.AddPath(Prefix.str() + A->getValue(), frontend::Angled, false, true); in ParseHeaderSearchArgs()
3227 Opts.AddPath(A->getValue(), frontend::After, false, true); in ParseHeaderSearchArgs()
3229 Opts.AddPath(A->getValue(), frontend::Quoted, false, true); in ParseHeaderSearchArgs()
3231 Opts.AddPath(A->getValue(), frontend::System, false, in ParseHeaderSearchArgs()
3234 Opts.AddPath(A->getValue(), frontend::System, true, true); in ParseHeaderSearchArgs()
3236 Opts.AddPath(A->getValue(), frontend::System, /*IsFramework=*/true, in ParseHeaderSearchArgs()
3241 Opts.AddPath(A->getValue(), frontend::CSystem, false, true); in ParseHeaderSearchArgs()
3243 Opts.AddPath(A->getValue(), frontend::CXXSystem, false, true); in ParseHeaderSearchArgs()
3245 Opts.AddPath(A->getValue(), frontend::ObjCSystem, false,true); in ParseHeaderSearchArgs()
3247 Opts.AddPath(A->getValue(), frontend::ObjCXXSystem, false, true); in ParseHeaderSearchArgs()
3252 frontend::IncludeDirGroup Group = frontend::System; in ParseHeaderSearchArgs()
3254 Group = frontend::ExternCSystem; in ParseHeaderSearchArgs()
4263 static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) { in isStrictlyPreprocessorAction()
4265 case frontend::ASTDeclList: in isStrictlyPreprocessorAction()
4266 case frontend::ASTDump: in isStrictlyPreprocessorAction()
4267 case frontend::ASTPrint: in isStrictlyPreprocessorAction()
4268 case frontend::ASTView: in isStrictlyPreprocessorAction()
4269 case frontend::EmitAssembly: in isStrictlyPreprocessorAction()
4270 case frontend::EmitBC: in isStrictlyPreprocessorAction()
4271 case frontend::EmitHTML: in isStrictlyPreprocessorAction()
4272 case frontend::EmitLLVM: in isStrictlyPreprocessorAction()
4273 case frontend::EmitLLVMOnly: in isStrictlyPreprocessorAction()
4274 case frontend::EmitCodeGenOnly: in isStrictlyPreprocessorAction()
4275 case frontend::EmitObj: in isStrictlyPreprocessorAction()
4276 case frontend::ExtractAPI: in isStrictlyPreprocessorAction()
4277 case frontend::FixIt: in isStrictlyPreprocessorAction()
4278 case frontend::GenerateModule: in isStrictlyPreprocessorAction()
4279 case frontend::GenerateModuleInterface: in isStrictlyPreprocessorAction()
4280 case frontend::GenerateHeaderUnit: in isStrictlyPreprocessorAction()
4281 case frontend::GeneratePCH: in isStrictlyPreprocessorAction()
4282 case frontend::GenerateInterfaceStubs: in isStrictlyPreprocessorAction()
4283 case frontend::ParseSyntaxOnly: in isStrictlyPreprocessorAction()
4284 case frontend::ModuleFileInfo: in isStrictlyPreprocessorAction()
4285 case frontend::VerifyPCH: in isStrictlyPreprocessorAction()
4286 case frontend::PluginAction: in isStrictlyPreprocessorAction()
4287 case frontend::RewriteObjC: in isStrictlyPreprocessorAction()
4288 case frontend::RewriteTest: in isStrictlyPreprocessorAction()
4289 case frontend::RunAnalysis: in isStrictlyPreprocessorAction()
4290 case frontend::TemplightDump: in isStrictlyPreprocessorAction()
4291 case frontend::MigrateSource: in isStrictlyPreprocessorAction()
4294 case frontend::DumpCompilerOptions: in isStrictlyPreprocessorAction()
4295 case frontend::DumpRawTokens: in isStrictlyPreprocessorAction()
4296 case frontend::DumpTokens: in isStrictlyPreprocessorAction()
4297 case frontend::InitOnly: in isStrictlyPreprocessorAction()
4298 case frontend::PrintPreamble: in isStrictlyPreprocessorAction()
4299 case frontend::PrintPreprocessedInput: in isStrictlyPreprocessorAction()
4300 case frontend::RewriteMacros: in isStrictlyPreprocessorAction()
4301 case frontend::RunPreprocessorOnly: in isStrictlyPreprocessorAction()
4302 case frontend::PrintDependencyDirectivesSourceMinimizerOutput: in isStrictlyPreprocessorAction()
4380 frontend::ActionKind Action, in ParsePreprocessorArgs()
4482 frontend::ActionKind Action) { in GeneratePreprocessorOutputArgs()
4501 frontend::ActionKind Action) { in ParsePreprocessorOutputArgs()
4611 if (Res.getFrontendOpts().ProgramAction == frontend::RewriteObjC) in CreateFromArgsImpl()