Lines Matching refs:frontend
2088 frontend::ActionKind Action, in ParseDependencyOutputArgs()
2108 if (Action == frontend::PrintPreprocessedInput || !ShowLineMarkers) in ParseDependencyOutputArgs()
2445 static const std::pair<frontend::ActionKind, unsigned> Table[] = { in getFrontendActionTable()
2446 {frontend::ASTDeclList, OPT_ast_list}, in getFrontendActionTable()
2448 {frontend::ASTDump, OPT_ast_dump_all_EQ}, in getFrontendActionTable()
2449 {frontend::ASTDump, OPT_ast_dump_all}, in getFrontendActionTable()
2450 {frontend::ASTDump, OPT_ast_dump_EQ}, in getFrontendActionTable()
2451 {frontend::ASTDump, OPT_ast_dump}, in getFrontendActionTable()
2452 {frontend::ASTDump, OPT_ast_dump_lookups}, in getFrontendActionTable()
2453 {frontend::ASTDump, OPT_ast_dump_decl_types}, in getFrontendActionTable()
2455 {frontend::ASTPrint, OPT_ast_print}, in getFrontendActionTable()
2456 {frontend::ASTView, OPT_ast_view}, in getFrontendActionTable()
2457 {frontend::DumpCompilerOptions, OPT_compiler_options_dump}, in getFrontendActionTable()
2458 {frontend::DumpRawTokens, OPT_dump_raw_tokens}, in getFrontendActionTable()
2459 {frontend::DumpTokens, OPT_dump_tokens}, in getFrontendActionTable()
2460 {frontend::EmitAssembly, OPT_S}, in getFrontendActionTable()
2461 {frontend::EmitBC, OPT_emit_llvm_bc}, in getFrontendActionTable()
2462 {frontend::EmitHTML, OPT_emit_html}, in getFrontendActionTable()
2463 {frontend::EmitLLVM, OPT_emit_llvm}, in getFrontendActionTable()
2464 {frontend::EmitLLVMOnly, OPT_emit_llvm_only}, in getFrontendActionTable()
2465 {frontend::EmitCodeGenOnly, OPT_emit_codegen_only}, in getFrontendActionTable()
2466 {frontend::EmitObj, OPT_emit_obj}, in getFrontendActionTable()
2467 {frontend::ExtractAPI, OPT_extract_api}, in getFrontendActionTable()
2469 {frontend::FixIt, OPT_fixit_EQ}, in getFrontendActionTable()
2470 {frontend::FixIt, OPT_fixit}, in getFrontendActionTable()
2472 {frontend::GenerateModule, OPT_emit_module}, in getFrontendActionTable()
2473 {frontend::GenerateModuleInterface, OPT_emit_module_interface}, in getFrontendActionTable()
2474 {frontend::GenerateHeaderModule, OPT_emit_header_module}, in getFrontendActionTable()
2475 {frontend::GenerateHeaderUnit, OPT_emit_header_unit}, in getFrontendActionTable()
2476 {frontend::GeneratePCH, OPT_emit_pch}, in getFrontendActionTable()
2477 {frontend::GenerateInterfaceStubs, OPT_emit_interface_stubs}, in getFrontendActionTable()
2478 {frontend::InitOnly, OPT_init_only}, in getFrontendActionTable()
2479 {frontend::ParseSyntaxOnly, OPT_fsyntax_only}, in getFrontendActionTable()
2480 {frontend::ModuleFileInfo, OPT_module_file_info}, in getFrontendActionTable()
2481 {frontend::VerifyPCH, OPT_verify_pch}, in getFrontendActionTable()
2482 {frontend::PrintPreamble, OPT_print_preamble}, in getFrontendActionTable()
2483 {frontend::PrintPreprocessedInput, OPT_E}, in getFrontendActionTable()
2484 {frontend::TemplightDump, OPT_templight_dump}, in getFrontendActionTable()
2485 {frontend::RewriteMacros, OPT_rewrite_macros}, in getFrontendActionTable()
2486 {frontend::RewriteObjC, OPT_rewrite_objc}, in getFrontendActionTable()
2487 {frontend::RewriteTest, OPT_rewrite_test}, in getFrontendActionTable()
2488 {frontend::RunAnalysis, OPT_analyze}, in getFrontendActionTable()
2489 {frontend::MigrateSource, OPT_migrate}, in getFrontendActionTable()
2490 {frontend::RunPreprocessorOnly, OPT_Eonly}, in getFrontendActionTable()
2491 {frontend::PrintDependencyDirectivesSourceMinimizerOutput, in getFrontendActionTable()
2499 static Optional<frontend::ActionKind> getFrontendAction(OptSpecifier &Opt) { in getFrontendAction()
2509 getProgramActionOpt(frontend::ActionKind ProgramAction) { in getProgramActionOpt()
2543 assert(Opts.ProgramAction == frontend::PluginAction && in GenerateFrontendArgs()
2551 if (Opts.ProgramAction == frontend::ASTDump) { in GenerateFrontendArgs()
2579 if (Opts.ProgramAction == frontend::FixIt && !Opts.FixItSuffix.empty()) { in GenerateFrontendArgs()
2709 Opts.ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2712 Optional<frontend::ActionKind> ProgramAction = getFrontendAction(Opt); in ParseFrontendArgs()
2715 if (ProgramAction == frontend::ASTDump && in ParseFrontendArgs()
2731 if (ProgramAction == frontend::FixIt && Opt == OPT_fixit_EQ) in ParseFrontendArgs()
2734 if (ProgramAction == frontend::GenerateInterfaceStubs) { in ParseFrontendArgs()
2749 ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2757 ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2766 Opts.ProgramAction = frontend::PluginAction; in ParseFrontendArgs()
2810 if (Opts.ProgramAction != frontend::GenerateModule && Opts.IsSystemModule) in ParseFrontendArgs()
2932 if (Opts.ProgramAction == frontend::GenerateModule && in ParseFrontendArgs()
2984 llvm::ArrayRef<frontend::IncludeDirGroup> Groups, in GenerateHeaderSearchArgs()
2997 Matches(*It, {frontend::IndexHeaderMap, frontend::Angled}, None, true); in GenerateHeaderSearchArgs()
3000 if (Matches(*It, frontend::IndexHeaderMap, true, true)) in GenerateHeaderSearchArgs()
3002 if (Matches(*It, frontend::IndexHeaderMap, false, true)) in GenerateHeaderSearchArgs()
3004 if (Matches(*It, frontend::Angled, true, true)) in GenerateHeaderSearchArgs()
3006 if (Matches(*It, frontend::Angled, false, true)) in GenerateHeaderSearchArgs()
3011 if (It->Group == frontend::IndexHeaderMap) in GenerateHeaderSearchArgs()
3021 Matches(*It, {frontend::After, frontend::Angled}, false, true); in GenerateHeaderSearchArgs()
3024 It->Group == frontend::After ? OPT_iwithprefix : OPT_iwithprefixbefore; in GenerateHeaderSearchArgs()
3031 for (; It < End && Matches(*It, {frontend::After}, false, true); ++It) in GenerateHeaderSearchArgs()
3033 for (; It < End && Matches(*It, {frontend::Quoted}, false, true); ++It) in GenerateHeaderSearchArgs()
3035 for (; It < End && Matches(*It, {frontend::System}, false, None); ++It) in GenerateHeaderSearchArgs()
3038 for (; It < End && Matches(*It, {frontend::System}, true, true); ++It) in GenerateHeaderSearchArgs()
3040 for (; It < End && Matches(*It, {frontend::System}, true, false); ++It) in GenerateHeaderSearchArgs()
3044 for (; It < End && Matches(*It, {frontend::CSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
3046 for (; It < End && Matches(*It, {frontend::CXXSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
3048 for (; It < End && Matches(*It, {frontend::ObjCSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
3050 for (; It < End && Matches(*It, {frontend::ObjCXXSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
3058 Matches(*It, {frontend::System, frontend::ExternCSystem}, false, true); in GenerateHeaderSearchArgs()
3060 OptSpecifier Opt = It->Group == frontend::System in GenerateHeaderSearchArgs()
3140 frontend::IncludeDirGroup Group = in ParseHeaderSearchArgs()
3141 IsIndexHeaderMap ? frontend::IndexHeaderMap : frontend::Angled; in ParseHeaderSearchArgs()
3165 Opts.AddPath(Prefix.str() + A->getValue(), frontend::After, false, true); in ParseHeaderSearchArgs()
3167 Opts.AddPath(Prefix.str() + A->getValue(), frontend::Angled, false, true); in ParseHeaderSearchArgs()
3171 Opts.AddPath(A->getValue(), frontend::After, false, true); in ParseHeaderSearchArgs()
3173 Opts.AddPath(A->getValue(), frontend::Quoted, false, true); in ParseHeaderSearchArgs()
3175 Opts.AddPath(A->getValue(), frontend::System, false, in ParseHeaderSearchArgs()
3178 Opts.AddPath(A->getValue(), frontend::System, true, true); in ParseHeaderSearchArgs()
3180 Opts.AddPath(A->getValue(), frontend::System, /*IsFramework=*/true, in ParseHeaderSearchArgs()
3185 Opts.AddPath(A->getValue(), frontend::CSystem, false, true); in ParseHeaderSearchArgs()
3187 Opts.AddPath(A->getValue(), frontend::CXXSystem, false, true); in ParseHeaderSearchArgs()
3189 Opts.AddPath(A->getValue(), frontend::ObjCSystem, false,true); in ParseHeaderSearchArgs()
3191 Opts.AddPath(A->getValue(), frontend::ObjCXXSystem, false, true); in ParseHeaderSearchArgs()
3196 frontend::IncludeDirGroup Group = frontend::System; in ParseHeaderSearchArgs()
3198 Group = frontend::ExternCSystem; in ParseHeaderSearchArgs()
4113 static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) { in isStrictlyPreprocessorAction()
4115 case frontend::ASTDeclList: in isStrictlyPreprocessorAction()
4116 case frontend::ASTDump: in isStrictlyPreprocessorAction()
4117 case frontend::ASTPrint: in isStrictlyPreprocessorAction()
4118 case frontend::ASTView: in isStrictlyPreprocessorAction()
4119 case frontend::EmitAssembly: in isStrictlyPreprocessorAction()
4120 case frontend::EmitBC: in isStrictlyPreprocessorAction()
4121 case frontend::EmitHTML: in isStrictlyPreprocessorAction()
4122 case frontend::EmitLLVM: in isStrictlyPreprocessorAction()
4123 case frontend::EmitLLVMOnly: in isStrictlyPreprocessorAction()
4124 case frontend::EmitCodeGenOnly: in isStrictlyPreprocessorAction()
4125 case frontend::EmitObj: in isStrictlyPreprocessorAction()
4126 case frontend::ExtractAPI: in isStrictlyPreprocessorAction()
4127 case frontend::FixIt: in isStrictlyPreprocessorAction()
4128 case frontend::GenerateModule: in isStrictlyPreprocessorAction()
4129 case frontend::GenerateModuleInterface: in isStrictlyPreprocessorAction()
4130 case frontend::GenerateHeaderModule: in isStrictlyPreprocessorAction()
4131 case frontend::GenerateHeaderUnit: in isStrictlyPreprocessorAction()
4132 case frontend::GeneratePCH: in isStrictlyPreprocessorAction()
4133 case frontend::GenerateInterfaceStubs: in isStrictlyPreprocessorAction()
4134 case frontend::ParseSyntaxOnly: in isStrictlyPreprocessorAction()
4135 case frontend::ModuleFileInfo: in isStrictlyPreprocessorAction()
4136 case frontend::VerifyPCH: in isStrictlyPreprocessorAction()
4137 case frontend::PluginAction: in isStrictlyPreprocessorAction()
4138 case frontend::RewriteObjC: in isStrictlyPreprocessorAction()
4139 case frontend::RewriteTest: in isStrictlyPreprocessorAction()
4140 case frontend::RunAnalysis: in isStrictlyPreprocessorAction()
4141 case frontend::TemplightDump: in isStrictlyPreprocessorAction()
4142 case frontend::MigrateSource: in isStrictlyPreprocessorAction()
4145 case frontend::DumpCompilerOptions: in isStrictlyPreprocessorAction()
4146 case frontend::DumpRawTokens: in isStrictlyPreprocessorAction()
4147 case frontend::DumpTokens: in isStrictlyPreprocessorAction()
4148 case frontend::InitOnly: in isStrictlyPreprocessorAction()
4149 case frontend::PrintPreamble: in isStrictlyPreprocessorAction()
4150 case frontend::PrintPreprocessedInput: in isStrictlyPreprocessorAction()
4151 case frontend::RewriteMacros: in isStrictlyPreprocessorAction()
4152 case frontend::RunPreprocessorOnly: in isStrictlyPreprocessorAction()
4153 case frontend::PrintDependencyDirectivesSourceMinimizerOutput: in isStrictlyPreprocessorAction()
4233 frontend::ActionKind Action, in ParsePreprocessorArgs()
4320 CompilerInvocation::StringAllocator SA, frontend::ActionKind Action) { in GeneratePreprocessorOutputArgs()
4345 frontend::ActionKind Action) { in ParsePreprocessorOutputArgs()
4473 if (Res.getFrontendOpts().ProgramAction == frontend::RewriteObjC) in CreateFromArgsImpl()