Lines Matching refs:frontend

2007                                       frontend::ActionKind Action,  in ParseDependencyOutputArgs()
2027 if (Action == frontend::PrintPreprocessedInput || !ShowLineMarkers) in ParseDependencyOutputArgs()
2353 static const std::pair<frontend::ActionKind, unsigned> Table[] = { in getFrontendActionTable()
2354 {frontend::ASTDeclList, OPT_ast_list}, in getFrontendActionTable()
2356 {frontend::ASTDump, OPT_ast_dump_all_EQ}, in getFrontendActionTable()
2357 {frontend::ASTDump, OPT_ast_dump_all}, in getFrontendActionTable()
2358 {frontend::ASTDump, OPT_ast_dump_EQ}, in getFrontendActionTable()
2359 {frontend::ASTDump, OPT_ast_dump}, in getFrontendActionTable()
2360 {frontend::ASTDump, OPT_ast_dump_lookups}, in getFrontendActionTable()
2361 {frontend::ASTDump, OPT_ast_dump_decl_types}, in getFrontendActionTable()
2363 {frontend::ASTPrint, OPT_ast_print}, in getFrontendActionTable()
2364 {frontend::ASTView, OPT_ast_view}, in getFrontendActionTable()
2365 {frontend::DumpCompilerOptions, OPT_compiler_options_dump}, in getFrontendActionTable()
2366 {frontend::DumpRawTokens, OPT_dump_raw_tokens}, in getFrontendActionTable()
2367 {frontend::DumpTokens, OPT_dump_tokens}, in getFrontendActionTable()
2368 {frontend::EmitAssembly, OPT_S}, in getFrontendActionTable()
2369 {frontend::EmitBC, OPT_emit_llvm_bc}, in getFrontendActionTable()
2370 {frontend::EmitHTML, OPT_emit_html}, in getFrontendActionTable()
2371 {frontend::EmitLLVM, OPT_emit_llvm}, in getFrontendActionTable()
2372 {frontend::EmitLLVMOnly, OPT_emit_llvm_only}, in getFrontendActionTable()
2373 {frontend::EmitCodeGenOnly, OPT_emit_codegen_only}, in getFrontendActionTable()
2374 {frontend::EmitCodeGenOnly, OPT_emit_codegen_only}, in getFrontendActionTable()
2375 {frontend::EmitObj, OPT_emit_obj}, in getFrontendActionTable()
2377 {frontend::FixIt, OPT_fixit_EQ}, in getFrontendActionTable()
2378 {frontend::FixIt, OPT_fixit}, in getFrontendActionTable()
2380 {frontend::GenerateModule, OPT_emit_module}, in getFrontendActionTable()
2381 {frontend::GenerateModuleInterface, OPT_emit_module_interface}, in getFrontendActionTable()
2382 {frontend::GenerateHeaderModule, OPT_emit_header_module}, in getFrontendActionTable()
2383 {frontend::GeneratePCH, OPT_emit_pch}, in getFrontendActionTable()
2384 {frontend::GenerateInterfaceStubs, OPT_emit_interface_stubs}, in getFrontendActionTable()
2385 {frontend::InitOnly, OPT_init_only}, in getFrontendActionTable()
2386 {frontend::ParseSyntaxOnly, OPT_fsyntax_only}, in getFrontendActionTable()
2387 {frontend::ModuleFileInfo, OPT_module_file_info}, in getFrontendActionTable()
2388 {frontend::VerifyPCH, OPT_verify_pch}, in getFrontendActionTable()
2389 {frontend::PrintPreamble, OPT_print_preamble}, in getFrontendActionTable()
2390 {frontend::PrintPreprocessedInput, OPT_E}, in getFrontendActionTable()
2391 {frontend::TemplightDump, OPT_templight_dump}, in getFrontendActionTable()
2392 {frontend::RewriteMacros, OPT_rewrite_macros}, in getFrontendActionTable()
2393 {frontend::RewriteObjC, OPT_rewrite_objc}, in getFrontendActionTable()
2394 {frontend::RewriteTest, OPT_rewrite_test}, in getFrontendActionTable()
2395 {frontend::RunAnalysis, OPT_analyze}, in getFrontendActionTable()
2396 {frontend::MigrateSource, OPT_migrate}, in getFrontendActionTable()
2397 {frontend::RunPreprocessorOnly, OPT_Eonly}, in getFrontendActionTable()
2398 {frontend::PrintDependencyDirectivesSourceMinimizerOutput, in getFrontendActionTable()
2406 static Optional<frontend::ActionKind> getFrontendAction(OptSpecifier &Opt) { in getFrontendAction()
2416 getProgramActionOpt(frontend::ActionKind ProgramAction) { in getProgramActionOpt()
2450 assert(Opts.ProgramAction == frontend::PluginAction && in GenerateFrontendArgs()
2458 if (Opts.ProgramAction == frontend::ASTDump) { in GenerateFrontendArgs()
2486 if (Opts.ProgramAction == frontend::FixIt && !Opts.FixItSuffix.empty()) { in GenerateFrontendArgs()
2598 Opts.ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2601 Optional<frontend::ActionKind> ProgramAction = getFrontendAction(Opt); in ParseFrontendArgs()
2604 if (ProgramAction == frontend::ASTDump && in ParseFrontendArgs()
2620 if (ProgramAction == frontend::FixIt && Opt == OPT_fixit_EQ) in ParseFrontendArgs()
2623 if (ProgramAction == frontend::GenerateInterfaceStubs) { in ParseFrontendArgs()
2638 ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2646 ProgramAction = frontend::ParseSyntaxOnly; in ParseFrontendArgs()
2655 Opts.ProgramAction = frontend::PluginAction; in ParseFrontendArgs()
2699 if (Opts.ProgramAction != frontend::GenerateModule && Opts.IsSystemModule) in ParseFrontendArgs()
2788 if (Opts.ProgramAction == frontend::GenerateModule && in ParseFrontendArgs()
2840 llvm::ArrayRef<frontend::IncludeDirGroup> Groups, in GenerateHeaderSearchArgs()
2853 Matches(*It, {frontend::IndexHeaderMap, frontend::Angled}, None, true); in GenerateHeaderSearchArgs()
2856 if (Matches(*It, frontend::IndexHeaderMap, true, true)) in GenerateHeaderSearchArgs()
2858 if (Matches(*It, frontend::IndexHeaderMap, false, true)) in GenerateHeaderSearchArgs()
2860 if (Matches(*It, frontend::Angled, true, true)) in GenerateHeaderSearchArgs()
2862 if (Matches(*It, frontend::Angled, false, true)) in GenerateHeaderSearchArgs()
2867 if (It->Group == frontend::IndexHeaderMap) in GenerateHeaderSearchArgs()
2877 Matches(*It, {frontend::After, frontend::Angled}, false, true); in GenerateHeaderSearchArgs()
2880 It->Group == frontend::After ? OPT_iwithprefix : OPT_iwithprefixbefore; in GenerateHeaderSearchArgs()
2887 for (; It < End && Matches(*It, {frontend::After}, false, true); ++It) in GenerateHeaderSearchArgs()
2889 for (; It < End && Matches(*It, {frontend::Quoted}, false, true); ++It) in GenerateHeaderSearchArgs()
2891 for (; It < End && Matches(*It, {frontend::System}, false, None); ++It) in GenerateHeaderSearchArgs()
2894 for (; It < End && Matches(*It, {frontend::System}, true, true); ++It) in GenerateHeaderSearchArgs()
2896 for (; It < End && Matches(*It, {frontend::System}, true, false); ++It) in GenerateHeaderSearchArgs()
2900 for (; It < End && Matches(*It, {frontend::CSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
2902 for (; It < End && Matches(*It, {frontend::CXXSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
2904 for (; It < End && Matches(*It, {frontend::ObjCSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
2906 for (; It < End && Matches(*It, {frontend::ObjCXXSystem}, false, true); ++It) in GenerateHeaderSearchArgs()
2914 Matches(*It, {frontend::System, frontend::ExternCSystem}, false, true); in GenerateHeaderSearchArgs()
2916 OptSpecifier Opt = It->Group == frontend::System in GenerateHeaderSearchArgs()
2996 frontend::IncludeDirGroup Group = in ParseHeaderSearchArgs()
2997 IsIndexHeaderMap ? frontend::IndexHeaderMap : frontend::Angled; in ParseHeaderSearchArgs()
3021 Opts.AddPath(Prefix.str() + A->getValue(), frontend::After, false, true); in ParseHeaderSearchArgs()
3023 Opts.AddPath(Prefix.str() + A->getValue(), frontend::Angled, false, true); in ParseHeaderSearchArgs()
3027 Opts.AddPath(A->getValue(), frontend::After, false, true); in ParseHeaderSearchArgs()
3029 Opts.AddPath(A->getValue(), frontend::Quoted, false, true); in ParseHeaderSearchArgs()
3031 Opts.AddPath(A->getValue(), frontend::System, false, in ParseHeaderSearchArgs()
3034 Opts.AddPath(A->getValue(), frontend::System, true, true); in ParseHeaderSearchArgs()
3036 Opts.AddPath(A->getValue(), frontend::System, /*IsFramework=*/true, in ParseHeaderSearchArgs()
3041 Opts.AddPath(A->getValue(), frontend::CSystem, false, true); in ParseHeaderSearchArgs()
3043 Opts.AddPath(A->getValue(), frontend::CXXSystem, false, true); in ParseHeaderSearchArgs()
3045 Opts.AddPath(A->getValue(), frontend::ObjCSystem, false,true); in ParseHeaderSearchArgs()
3047 Opts.AddPath(A->getValue(), frontend::ObjCXXSystem, false, true); in ParseHeaderSearchArgs()
3052 frontend::IncludeDirGroup Group = frontend::System; in ParseHeaderSearchArgs()
3054 Group = frontend::ExternCSystem; in ParseHeaderSearchArgs()
4045 static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) { in isStrictlyPreprocessorAction()
4047 case frontend::ASTDeclList: in isStrictlyPreprocessorAction()
4048 case frontend::ASTDump: in isStrictlyPreprocessorAction()
4049 case frontend::ASTPrint: in isStrictlyPreprocessorAction()
4050 case frontend::ASTView: in isStrictlyPreprocessorAction()
4051 case frontend::EmitAssembly: in isStrictlyPreprocessorAction()
4052 case frontend::EmitBC: in isStrictlyPreprocessorAction()
4053 case frontend::EmitHTML: in isStrictlyPreprocessorAction()
4054 case frontend::EmitLLVM: in isStrictlyPreprocessorAction()
4055 case frontend::EmitLLVMOnly: in isStrictlyPreprocessorAction()
4056 case frontend::EmitCodeGenOnly: in isStrictlyPreprocessorAction()
4057 case frontend::EmitObj: in isStrictlyPreprocessorAction()
4058 case frontend::FixIt: in isStrictlyPreprocessorAction()
4059 case frontend::GenerateModule: in isStrictlyPreprocessorAction()
4060 case frontend::GenerateModuleInterface: in isStrictlyPreprocessorAction()
4061 case frontend::GenerateHeaderModule: in isStrictlyPreprocessorAction()
4062 case frontend::GeneratePCH: in isStrictlyPreprocessorAction()
4063 case frontend::GenerateInterfaceStubs: in isStrictlyPreprocessorAction()
4064 case frontend::ParseSyntaxOnly: in isStrictlyPreprocessorAction()
4065 case frontend::ModuleFileInfo: in isStrictlyPreprocessorAction()
4066 case frontend::VerifyPCH: in isStrictlyPreprocessorAction()
4067 case frontend::PluginAction: in isStrictlyPreprocessorAction()
4068 case frontend::RewriteObjC: in isStrictlyPreprocessorAction()
4069 case frontend::RewriteTest: in isStrictlyPreprocessorAction()
4070 case frontend::RunAnalysis: in isStrictlyPreprocessorAction()
4071 case frontend::TemplightDump: in isStrictlyPreprocessorAction()
4072 case frontend::MigrateSource: in isStrictlyPreprocessorAction()
4075 case frontend::DumpCompilerOptions: in isStrictlyPreprocessorAction()
4076 case frontend::DumpRawTokens: in isStrictlyPreprocessorAction()
4077 case frontend::DumpTokens: in isStrictlyPreprocessorAction()
4078 case frontend::InitOnly: in isStrictlyPreprocessorAction()
4079 case frontend::PrintPreamble: in isStrictlyPreprocessorAction()
4080 case frontend::PrintPreprocessedInput: in isStrictlyPreprocessorAction()
4081 case frontend::RewriteMacros: in isStrictlyPreprocessorAction()
4082 case frontend::RunPreprocessorOnly: in isStrictlyPreprocessorAction()
4083 case frontend::PrintDependencyDirectivesSourceMinimizerOutput: in isStrictlyPreprocessorAction()
4162 frontend::ActionKind Action, in ParsePreprocessorArgs()
4255 CompilerInvocation::StringAllocator SA, frontend::ActionKind Action) { in GeneratePreprocessorOutputArgs()
4278 frontend::ActionKind Action) { in ParsePreprocessorOutputArgs()
4393 if (Res.getFrontendOpts().ProgramAction == frontend::RewriteObjC) in CreateFromArgsImpl()