|
clang 22.0.0git
|
FrontendOptions - Options for controlling the behavior of the frontend. More...
#include "clang/Frontend/FrontendOptions.h"
Public Member Functions | |
| FrontendOptions () | |
Static Public Member Functions | |
| static InputKind | getInputKindForExtension (StringRef Extension) |
| getInputKindForExtension - Return the appropriate input kind for a file extension. | |
Public Attributes | |
| unsigned | DisableFree: 1 |
| Disable memory freeing on exit. | |
| unsigned | RelocatablePCH: 1 |
| When generating PCH files, instruct the AST writer to create relocatable PCH files. | |
| unsigned | ShowHelp: 1 |
| Show the -help text. | |
| unsigned | ShowStats: 1 |
| Show frontend performance metrics and statistics. | |
| unsigned | AppendStats: 1 |
| unsigned | PrintSupportedCPUs: 1 |
| print the supported cpus for the current target | |
| unsigned | PrintSupportedExtensions: 1 |
| Print the supported extensions for the current target. | |
| unsigned | PrintEnabledExtensions: 1 |
| Print the extensions enabled for the current target. | |
| unsigned | ShowVersion: 1 |
| Show the -version text. | |
| unsigned | FixWhatYouCan: 1 |
| Apply fixes even if there are unfixable errors. | |
| unsigned | FixOnlyWarnings: 1 |
| Apply fixes only for warnings. | |
| unsigned | FixAndRecompile: 1 |
| Apply fixes and recompile. | |
| unsigned | FixToTemporaries: 1 |
| Apply fixes to temporary files. | |
| unsigned | SkipFunctionBodies: 1 |
| Skip over function bodies to speed up parsing in cases you do not need them (e.g. | |
| unsigned | UseGlobalModuleIndex: 1 |
| Whether we can use the global module index if available. | |
| unsigned | GenerateGlobalModuleIndex: 1 |
| Whether we can generate the global module index if needed. | |
| unsigned | ASTDumpDecls: 1 |
| Whether we include declaration dumps in AST dumps. | |
| unsigned | ASTDumpAll: 1 |
| Whether we deserialize all decls when forming AST dumps. | |
| unsigned | ASTDumpLookups: 1 |
| Whether we include lookup table dumps in AST dumps. | |
| unsigned | ASTDumpDeclTypes: 1 |
| Whether we include declaration type dumps in AST dumps. | |
| unsigned | BuildingImplicitModule: 1 |
| Whether we are performing an implicit module build. | |
| unsigned | BuildingImplicitModuleUsesLock: 1 |
| Whether to use a filesystem lock when building implicit modules. | |
| unsigned | ModulesEmbedAllFiles: 1 |
| Whether we should embed all used files into the PCM file. | |
| unsigned | IncludeTimestamps: 1 |
| Whether timestamps should be written to the produced PCH file. | |
| unsigned | UseTemporary: 1 |
| Should a temporary file be used during compilation. | |
| unsigned | IsSystemModule: 1 |
| When using -emit-module, treat the modulemap as a system module. | |
| unsigned | AllowPCMWithCompilerErrors: 1 |
| Output (and read) PCM files regardless of compiler errors. | |
| unsigned | ModulesShareFileManager: 1 |
| Whether to share the FileManager when building modules. | |
| unsigned | EmitSymbolGraph: 1 |
| Whether to emit symbol graph files as a side effect of compilation. | |
| unsigned | EmitExtensionSymbolGraphs: 1 |
| Whether to emit additional symbol graphs for extended modules. | |
| unsigned | EmitSymbolGraphSymbolLabelsForTesting: 1 |
| Whether to emit symbol labels for testing in generated symbol graphs. | |
| unsigned | EmitPrettySymbolGraphs: 1 |
| Whether to emit symbol labels for testing in generated symbol graphs. | |
| unsigned | GenReducedBMI: 1 |
| Whether to generate reduced BMI for C++20 named modules. | |
| unsigned | UseClangIRPipeline: 1 |
| Use Clang IR pipeline to emit code. | |
| unsigned | ClangIRDisablePasses: 1 |
| Disable Clang IR specific (CIR) passes. | |
| unsigned | ClangIRDisableCIRVerifier: 1 |
| Disable Clang IR (CIR) verifier. | |
| CodeCompleteOptions | CodeCompleteOpts |
| ASTDumpOutputFormat | ASTDumpFormat = ADOF_Default |
| Specifies the output format of the AST. | |
| InputKind | DashX |
| The input kind, either specified via -x argument or deduced from the input file name. | |
| SmallVector< FrontendInputFile, 0 > | Inputs |
| The input files and their types. | |
| std::string | OriginalModuleMap |
| When the input is a module map, the original module map file from which that map was inferred, if any (for umbrella modules). | |
| std::string | OutputFile |
| The output file, if any. | |
| std::string | FixItSuffix |
| If given, the new suffix for fix-it rewritten files. | |
| std::string | ASTDumpFilter |
| If given, filter dumped AST Decl nodes by this substring. | |
| ParsedSourceLocation | CodeCompletionAt |
| If given, enable code completion at the provided location. | |
| frontend::ActionKind | ProgramAction = frontend::ParseSyntaxOnly |
| The frontend action to perform. | |
| std::string | ActionName |
| The name of the action to run when using a plugin action. | |
| std::string | ProductName |
| The name of the product the input files belong too. | |
| std::vector< std::string > | ExtractAPIIgnoresFileList |
| std::string | SymbolGraphOutputDir |
| std::map< std::string, std::vector< std::string > > | PluginArgs |
| Args to pass to the plugins. | |
| std::vector< std::string > | AddPluginActions |
| The list of plugin actions to run in addition to the normal action. | |
| std::vector< std::string > | Plugins |
| The list of plugins to load. | |
| std::vector< std::shared_ptr< ModuleFileExtension > > | ModuleFileExtensions |
| The list of module file extensions. | |
| std::vector< std::string > | ModuleMapFiles |
| The list of module map files to load before processing the input. | |
| std::vector< std::string > | ModuleFiles |
| The list of additional prebuilt module files to load before processing the input. | |
| std::vector< std::string > | ModulesEmbedFiles |
| The list of files to embed into the compiled module file. | |
| std::vector< std::string > | ASTMergeFiles |
| The list of AST files to merge. | |
| std::vector< std::string > | LLVMArgs |
| A list of arguments to forward to LLVM's option processing; this should only be used for debugging and experimental features. | |
| std::vector< std::string > | MLIRArgs |
| A list of arguments to forward to MLIR's option processing; this should only be used for debugging and experimental features. | |
| std::string | OverrideRecordLayoutsFile |
| File name of the file that will provide record layouts (in the format produced by -fdump-record-layouts). | |
| std::string | AuxTriple |
| Auxiliary triple for CUDA/HIP compilation. | |
| std::optional< std::string > | AuxTargetCPU |
| Auxiliary target CPU for CUDA/HIP compilation. | |
| std::optional< std::vector< std::string > > | AuxTargetFeatures |
| Auxiliary target features for CUDA/HIP compilation. | |
| std::string | StatsFile |
| Filename to write statistics to. | |
| unsigned | TimeTraceGranularity |
| Minimum time granularity (in microseconds) traced by time profiler. | |
| unsigned | TimeTraceVerbose: 1 |
| Make time trace capture verbose event details (e.g. | |
| std::string | TimeTracePath |
| Path which stores the output files for -ftime-trace. | |
| std::string | ModuleOutputPath |
| Output Path for module output file. | |
| std::string | DumpMinimizationHintsPath |
| Output path to dump ranges of deserialized declarations to use as minimization hints. | |
FrontendOptions - Options for controlling the behavior of the frontend.
Definition at line 278 of file FrontendOptions.h.
|
inline |
Definition at line 540 of file FrontendOptions.h.
References AllowPCMWithCompilerErrors, AppendStats, ASTDumpDecls, ASTDumpLookups, BuildingImplicitModule, BuildingImplicitModuleUsesLock, ClangIRDisableCIRVerifier, ClangIRDisablePasses, DisableFree, EmitExtensionSymbolGraphs, EmitPrettySymbolGraphs, EmitSymbolGraph, EmitSymbolGraphSymbolLabelsForTesting, false, FixAndRecompile, FixOnlyWarnings, FixToTemporaries, FixWhatYouCan, FrontendOptions(), GenerateGlobalModuleIndex, GenReducedBMI, IncludeTimestamps, ModulesEmbedAllFiles, ModulesShareFileManager, RelocatablePCH, ShowHelp, ShowStats, ShowVersion, SkipFunctionBodies, TimeTraceGranularity, TimeTraceVerbose, true, UseClangIRPipeline, UseGlobalModuleIndex, and UseTemporary.
Referenced by FrontendOptions().
|
static |
getInputKindForExtension - Return the appropriate input kind for a file extension.
For example, "c" would return Language::C.
Definition at line 15 of file FrontendOptions.cpp.
References clang::Asm, clang::C, clang::CIR, clang::CUDA, clang::CXX, clang::InputKind::getPreprocessed(), clang::HIP, clang::HLSL, clang::LLVM_IR, clang::ObjC, clang::ObjCXX, clang::OpenCL, clang::OpenCLCXX, clang::InputKind::Precompiled, and clang::Unknown.
Referenced by ParseFrontendArgs().
| std::string clang::FrontendOptions::ActionName |
The name of the action to run when using a plugin action.
Definition at line 457 of file FrontendOptions.h.
Referenced by clang::CreateFrontendBaseAction(), GenerateFrontendArgs(), clang::CompilerInstance::LoadRequestedPlugins(), and ParseFrontendArgs().
| std::vector<std::string> clang::FrontendOptions::AddPluginActions |
The list of plugin actions to run in addition to the normal action.
Definition at line 476 of file FrontendOptions.h.
| unsigned clang::FrontendOptions::AllowPCMWithCompilerErrors |
Output (and read) PCM files regardless of compiler errors.
Definition at line 387 of file FrontendOptions.h.
Referenced by clang::GenerateModuleInterfaceAction::CreateASTConsumer(), clang::CompilerInstance::createASTReader(), clang::GenerateModuleAction::CreateMultiplexConsumer(), FrontendOptions(), and clang::GenerateModuleAction::shouldEraseOutputFiles().
| unsigned clang::FrontendOptions::AppendStats |
Definition at line 298 of file FrontendOptions.h.
Referenced by FrontendOptions().
| unsigned clang::FrontendOptions::ASTDumpAll |
Whether we deserialize all decls when forming AST dumps.
Definition at line 351 of file FrontendOptions.h.
Referenced by clang::ASTDumpAction::CreateASTConsumer(), GenerateFrontendArgs(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::ASTDumpDecls |
Whether we include declaration dumps in AST dumps.
Definition at line 347 of file FrontendOptions.h.
Referenced by clang::ASTDumpAction::CreateASTConsumer(), FrontendOptions(), GenerateFrontendArgs(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::ASTDumpDeclTypes |
Whether we include declaration type dumps in AST dumps.
Definition at line 359 of file FrontendOptions.h.
Referenced by clang::ASTDumpAction::CreateASTConsumer().
| std::string clang::FrontendOptions::ASTDumpFilter |
If given, filter dumped AST Decl nodes by this substring.
Definition at line 448 of file FrontendOptions.h.
Referenced by clang::ASTDumpAction::CreateASTConsumer(), and clang::ASTPrintAction::CreateASTConsumer().
| ASTDumpOutputFormat clang::FrontendOptions::ASTDumpFormat = ADOF_Default |
Specifies the output format of the AST.
Definition at line 428 of file FrontendOptions.h.
Referenced by clang::ASTDumpAction::CreateASTConsumer(), GenerateFrontendArgs(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::ASTDumpLookups |
Whether we include lookup table dumps in AST dumps.
Definition at line 355 of file FrontendOptions.h.
Referenced by clang::ASTDumpAction::CreateASTConsumer(), and FrontendOptions().
| std::vector<std::string> clang::FrontendOptions::ASTMergeFiles |
The list of AST files to merge.
Definition at line 495 of file FrontendOptions.h.
Referenced by clang::CreateFrontendAction().
| std::optional<std::string> clang::FrontendOptions::AuxTargetCPU |
Auxiliary target CPU for CUDA/HIP compilation.
Definition at line 513 of file FrontendOptions.h.
Referenced by clang::CompilerInstance::createTarget(), GenerateFrontendArgs(), and ParseFrontendArgs().
| std::optional<std::vector<std::string> > clang::FrontendOptions::AuxTargetFeatures |
Auxiliary target features for CUDA/HIP compilation.
Definition at line 516 of file FrontendOptions.h.
Referenced by clang::CompilerInstance::createTarget(), GenerateFrontendArgs(), and ParseFrontendArgs().
| std::string clang::FrontendOptions::AuxTriple |
Auxiliary triple for CUDA/HIP compilation.
Definition at line 510 of file FrontendOptions.h.
| unsigned clang::FrontendOptions::BuildingImplicitModule |
Whether we are performing an implicit module build.
Definition at line 363 of file FrontendOptions.h.
Referenced by clang::GenerateModuleAction::CreateMultiplexConsumer(), and FrontendOptions().
| unsigned clang::FrontendOptions::BuildingImplicitModuleUsesLock |
Whether to use a filesystem lock when building implicit modules.
Definition at line 367 of file FrontendOptions.h.
Referenced by compileModuleAndReadAST(), and FrontendOptions().
| unsigned clang::FrontendOptions::ClangIRDisableCIRVerifier |
Disable Clang IR (CIR) verifier.
Definition at line 423 of file FrontendOptions.h.
Referenced by FrontendOptions(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::ClangIRDisablePasses |
Disable Clang IR specific (CIR) passes.
Definition at line 419 of file FrontendOptions.h.
Referenced by FrontendOptions(), and ParseFrontendArgs().
| CodeCompleteOptions clang::FrontendOptions::CodeCompleteOpts |
Definition at line 425 of file FrontendOptions.h.
Referenced by clang::ASTUnit::CodeComplete().
| ParsedSourceLocation clang::FrontendOptions::CodeCompletionAt |
If given, enable code completion at the provided location.
Definition at line 451 of file FrontendOptions.h.
Referenced by clang::ASTUnit::CodeComplete(), clang::CompilerInstance::createCodeCompletionConsumer(), clang::ASTFrontendAction::ExecuteAction(), GenerateFrontendArgs(), and ParseFrontendArgs().
| InputKind clang::FrontendOptions::DashX |
The input kind, either specified via -x argument or deduced from the input file name.
Definition at line 432 of file FrontendOptions.h.
Referenced by GenerateFrontendArgs(), clang::InitializePreprocessor(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::DisableFree |
Disable memory freeing on exit.
Definition at line 282 of file FrontendOptions.h.
Referenced by clang::FrontendAction::EndSourceFile(), clang::ExecuteCompilerInvocation(), FixupInvocation(), FrontendOptions(), clang::tooling::dependencies::initializeScanCompilerInstance(), and clang::tooling::newInvocation().
| std::string clang::FrontendOptions::DumpMinimizationHintsPath |
Output path to dump ranges of deserialized declarations to use as minimization hints.
Definition at line 537 of file FrontendOptions.h.
| unsigned clang::FrontendOptions::EmitExtensionSymbolGraphs |
Whether to emit additional symbol graphs for extended modules.
Definition at line 399 of file FrontendOptions.h.
Referenced by FrontendOptions(), and clang::ExtractAPIActionBase::ImplEndSourceFileAction().
| unsigned clang::FrontendOptions::EmitPrettySymbolGraphs |
Whether to emit symbol labels for testing in generated symbol graphs.
Definition at line 407 of file FrontendOptions.h.
Referenced by FrontendOptions(), and clang::ExtractAPIActionBase::ImplEndSourceFileAction().
| unsigned clang::FrontendOptions::EmitSymbolGraph |
Whether to emit symbol graph files as a side effect of compilation.
Definition at line 395 of file FrontendOptions.h.
Referenced by clang::CreateFrontendAction(), and FrontendOptions().
| unsigned clang::FrontendOptions::EmitSymbolGraphSymbolLabelsForTesting |
Whether to emit symbol labels for testing in generated symbol graphs.
Definition at line 403 of file FrontendOptions.h.
Referenced by FrontendOptions(), and clang::ExtractAPIActionBase::ImplEndSourceFileAction().
| std::vector<std::string> clang::FrontendOptions::ExtractAPIIgnoresFileList |
Definition at line 466 of file FrontendOptions.h.
Referenced by clang::ExtractAPIAction::CreateASTConsumer(), and clang::WrappingExtractAPIAction::CreateASTConsumer().
| unsigned clang::FrontendOptions::FixAndRecompile |
Apply fixes and recompile.
Definition at line 326 of file FrontendOptions.h.
Referenced by clang::CreateFrontendAction(), and FrontendOptions().
| std::string clang::FrontendOptions::FixItSuffix |
If given, the new suffix for fix-it rewritten files.
Definition at line 445 of file FrontendOptions.h.
Referenced by clang::FixItAction::BeginSourceFileAction(), GenerateFrontendArgs(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::FixOnlyWarnings |
Apply fixes only for warnings.
Definition at line 322 of file FrontendOptions.h.
Referenced by clang::FixItRecompile::BeginInvocation(), and FrontendOptions().
| unsigned clang::FrontendOptions::FixToTemporaries |
Apply fixes to temporary files.
Definition at line 330 of file FrontendOptions.h.
Referenced by clang::FixItRecompile::BeginInvocation(), and FrontendOptions().
| unsigned clang::FrontendOptions::FixWhatYouCan |
Apply fixes even if there are unfixable errors.
Definition at line 318 of file FrontendOptions.h.
Referenced by clang::FixItRecompile::BeginInvocation(), clang::FixItAction::BeginSourceFileAction(), and FrontendOptions().
| unsigned clang::FrontendOptions::GenerateGlobalModuleIndex |
Whether we can generate the global module index if needed.
Definition at line 343 of file FrontendOptions.h.
Referenced by FixupInvocation(), FrontendOptions(), and clang::tooling::dependencies::initializeScanCompilerInstance().
| unsigned clang::FrontendOptions::GenReducedBMI |
Whether to generate reduced BMI for C++20 named modules.
Definition at line 411 of file FrontendOptions.h.
Referenced by clang::CodeGenAction::BeginSourceFileAction(), clang::CodeGenAction::CreateASTConsumer(), clang::GenerateModuleInterfaceAction::CreateASTConsumer(), FrontendOptions(), clang::tooling::dependencies::initializeScanCompilerInstance(), and makeCommonInvocationForModuleBuild().
| unsigned clang::FrontendOptions::IncludeTimestamps |
Whether timestamps should be written to the produced PCH file.
Definition at line 375 of file FrontendOptions.h.
Referenced by clang::GenerateModuleAction::CreateMultiplexConsumer(), and FrontendOptions().
| SmallVector<FrontendInputFile, 0> clang::FrontendOptions::Inputs |
The input files and their types.
Definition at line 435 of file FrontendOptions.h.
Referenced by clang::tooling::dependencies::ModuleDepCollector::applyDiscoveredDependencies(), clang::FixItRecompile::BeginInvocation(), clang::PrecompiledPreamble::Build(), clang::ReplCodeCompleter::codeComplete(), clang::tooling::dependencies::CompilerInstanceWithContext::computeDependencies(), clang::ExtractAPIAction::CreateASTConsumer(), clang::WrappingExtractAPIAction::CreateASTConsumer(), clang::createChainedIncludesSource(), GenerateFrontendArgs(), makeCommonInvocationForModuleBuild(), ParseFrontendArgs(), clang::GenerateModuleInterfaceAction::PrepareToExecuteAction(), and clang::tooling::dependencies::takeAndUpdateDependencyOutputOptionsFrom().
| unsigned clang::FrontendOptions::IsSystemModule |
When using -emit-module, treat the modulemap as a system module.
Definition at line 383 of file FrontendOptions.h.
Referenced by ParseFrontendArgs().
| std::vector<std::string> clang::FrontendOptions::LLVMArgs |
A list of arguments to forward to LLVM's option processing; this should only be used for debugging and experimental features.
Definition at line 499 of file FrontendOptions.h.
Referenced by clang::ExecuteCompilerInvocation(), and makeCommonInvocationForModuleBuild().
| std::vector<std::string> clang::FrontendOptions::MLIRArgs |
A list of arguments to forward to MLIR's option processing; this should only be used for debugging and experimental features.
Definition at line 503 of file FrontendOptions.h.
Referenced by clang::ExecuteCompilerInvocation().
| std::vector<std::shared_ptr<ModuleFileExtension> > clang::FrontendOptions::ModuleFileExtensions |
The list of module file extensions.
Definition at line 482 of file FrontendOptions.h.
Referenced by clang::GenerateModuleAction::CreateMultiplexConsumer(), clang::VerifyPCHAction::ExecuteAction(), GenerateFrontendArgs(), and ParseFrontendArgs().
| std::vector<std::string> clang::FrontendOptions::ModuleFiles |
The list of additional prebuilt module files to load before processing the input.
Definition at line 489 of file FrontendOptions.h.
Referenced by clang::tooling::dependencies::ModuleDepCollector::applyDiscoveredDependencies(), clang::FrontendAction::BeginSourceFile(), GenerateFrontendArgs(), and ParseFrontendArgs().
| std::vector<std::string> clang::FrontendOptions::ModuleMapFiles |
The list of module map files to load before processing the input.
Definition at line 485 of file FrontendOptions.h.
Referenced by clang::tooling::dependencies::ModuleDepCollector::applyDiscoveredDependencies(), and clang::FrontendAction::BeginSourceFile().
| std::string clang::FrontendOptions::ModuleOutputPath |
Output Path for module output file.
Definition at line 533 of file FrontendOptions.h.
Referenced by clang::CodeGenAction::CreateASTConsumer(), clang::GenerateModuleInterfaceAction::CreateASTConsumer(), clang::tooling::dependencies::initializeScanCompilerInstance(), and makeCommonInvocationForModuleBuild().
| unsigned clang::FrontendOptions::ModulesEmbedAllFiles |
Whether we should embed all used files into the PCM file.
Definition at line 371 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile(), and FrontendOptions().
| std::vector<std::string> clang::FrontendOptions::ModulesEmbedFiles |
The list of files to embed into the compiled module file.
Definition at line 492 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile().
| unsigned clang::FrontendOptions::ModulesShareFileManager |
Whether to share the FileManager when building modules.
Definition at line 391 of file FrontendOptions.h.
Referenced by FrontendOptions(), and clang::tooling::dependencies::initializeScanCompilerInstance().
| std::string clang::FrontendOptions::OriginalModuleMap |
When the input is a module map, the original module map file from which that map was inferred, if any (for umbrella modules).
Definition at line 439 of file FrontendOptions.h.
Referenced by prepareToBuildModule().
| std::string clang::FrontendOptions::OutputFile |
The output file, if any.
Definition at line 442 of file FrontendOptions.h.
Referenced by clang::PrecompiledPreamble::Build(), clang::ento::CreateAnalysisConsumer(), clang::GenerateModuleInterfaceAction::CreateASTConsumer(), clang::CompilerInstance::createDefaultOutputFile(), clang::GenerateModuleAction::CreateMultiplexConsumer(), clang::GeneratePCHAction::CreateOutputFile(), clang::DumpModuleInfoAction::ExecuteAction(), makeCommonInvocationForModuleBuild(), and clang::tooling::dependencies::takeAndUpdateDependencyOutputOptionsFrom().
| std::string clang::FrontendOptions::OverrideRecordLayoutsFile |
File name of the file that will provide record layouts (in the format produced by -fdump-record-layouts).
Definition at line 507 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile().
| std::map<std::string, std::vector<std::string> > clang::FrontendOptions::PluginArgs |
Args to pass to the plugins.
Definition at line 473 of file FrontendOptions.h.
Referenced by clang::CreateFrontendBaseAction(), GenerateFrontendArgs(), and ParseFrontendArgs().
| std::vector<std::string> clang::FrontendOptions::Plugins |
The list of plugins to load.
Definition at line 479 of file FrontendOptions.h.
Referenced by clang::ento::CreateAnalysisConsumer(), GenerateFrontendArgs(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::PrintEnabledExtensions |
Print the extensions enabled for the current target.
Definition at line 310 of file FrontendOptions.h.
| unsigned clang::FrontendOptions::PrintSupportedCPUs |
print the supported cpus for the current target
Definition at line 302 of file FrontendOptions.h.
| unsigned clang::FrontendOptions::PrintSupportedExtensions |
Print the supported extensions for the current target.
Definition at line 306 of file FrontendOptions.h.
| std::string clang::FrontendOptions::ProductName |
The name of the product the input files belong too.
Definition at line 461 of file FrontendOptions.h.
Referenced by clang::ExtractAPIAction::CreateASTConsumer(), and clang::WrappingExtractAPIAction::CreateASTConsumer().
| frontend::ActionKind clang::FrontendOptions::ProgramAction = frontend::ParseSyntaxOnly |
The frontend action to perform.
Definition at line 454 of file FrontendOptions.h.
Referenced by clang::tooling::dependencies::ModuleDepCollector::applyDiscoveredDependencies(), clang::PrecompiledPreamble::Build(), clang::CreateFrontendBaseAction(), GenerateFrontendArgs(), InitializePredefinedMacros(), clang::CompilerInstance::LoadRequestedPlugins(), makeCommonInvocationForModuleBuild(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::RelocatablePCH |
When generating PCH files, instruct the AST writer to create relocatable PCH files.
Definition at line 287 of file FrontendOptions.h.
Referenced by clang::GeneratePCHAction::ComputeASTConsumerArguments(), clang::GeneratePCHAction::CreateASTConsumer(), and FrontendOptions().
| unsigned clang::FrontendOptions::ShowHelp |
Show the -help text.
Definition at line 291 of file FrontendOptions.h.
Referenced by clang::ExecuteCompilerInvocation(), and FrontendOptions().
| unsigned clang::FrontendOptions::ShowStats |
Show frontend performance metrics and statistics.
Definition at line 295 of file FrontendOptions.h.
Referenced by clang::FrontendAction::EndSourceFile(), clang::ASTFrontendAction::ExecuteAction(), FixupInvocation(), and FrontendOptions().
| unsigned clang::FrontendOptions::ShowVersion |
Show the -version text.
Definition at line 314 of file FrontendOptions.h.
Referenced by clang::ExecuteCompilerInvocation(), and FrontendOptions().
| unsigned clang::FrontendOptions::SkipFunctionBodies |
Skip over function bodies to speed up parsing in cases you do not need them (e.g.
with code completion).
Definition at line 335 of file FrontendOptions.h.
Referenced by clang::ASTFrontendAction::ExecuteAction(), and FrontendOptions().
| std::string clang::FrontendOptions::StatsFile |
Filename to write statistics to.
Definition at line 519 of file FrontendOptions.h.
Referenced by clang::CompilerInstance::ExecuteAction().
| std::string clang::FrontendOptions::SymbolGraphOutputDir |
Definition at line 470 of file FrontendOptions.h.
Referenced by clang::ExtractAPIAction::CreateASTConsumer(), and clang::CreateFrontendAction().
| unsigned clang::FrontendOptions::TimeTraceGranularity |
Minimum time granularity (in microseconds) traced by time profiler.
Definition at line 522 of file FrontendOptions.h.
Referenced by FrontendOptions().
| std::string clang::FrontendOptions::TimeTracePath |
Path which stores the output files for -ftime-trace.
Definition at line 530 of file FrontendOptions.h.
| unsigned clang::FrontendOptions::TimeTraceVerbose |
Make time trace capture verbose event details (e.g.
source filenames). This can increase the size of the output by 2-3 times.
Definition at line 527 of file FrontendOptions.h.
Referenced by FrontendOptions().
| unsigned clang::FrontendOptions::UseClangIRPipeline |
Use Clang IR pipeline to emit code.
Definition at line 415 of file FrontendOptions.h.
Referenced by clang::CreateFrontendBaseAction(), FrontendOptions(), and ParseFrontendArgs().
| unsigned clang::FrontendOptions::UseGlobalModuleIndex |
Whether we can use the global module index if available.
Definition at line 339 of file FrontendOptions.h.
Referenced by FixupInvocation(), FrontendOptions(), and clang::tooling::dependencies::initializeScanCompilerInstance().
| unsigned clang::FrontendOptions::UseTemporary |
Should a temporary file be used during compilation.
Definition at line 379 of file FrontendOptions.h.
Referenced by FrontendOptions().