10 #ifndef LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
11 #define LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
16 #include "llvm/ADT/StringRef.h"
19 #include <unordered_map>
71 unsigned Preprocessed : 1;
106 : Lang(L), Fmt(F), Preprocessed(PP) {}
131 llvm::MemoryBuffer *Buffer;
142 : File(File.str()), Buffer(nullptr), Kind(Kind), IsSystem(IsSystem) { }
144 bool IsSystem =
false)
145 : Buffer(buffer), Kind(Kind), IsSystem(IsSystem) { }
150 bool isEmpty()
const {
return File.empty() && Buffer ==
nullptr; }
152 bool isBuffer()
const {
return Buffer !=
nullptr; }
285 std::unordered_map<std::string,std::vector<std::string>>
PluginArgs;
Expand macros but not #includes.
std::string OutputFile
The output file, if any.
std::string OriginalModuleMap
When the input is a module map, the original module map file from which that map was inferred...
annotate property with NS_RETURNS_INNER_POINTER
std::string ObjCMTWhiteListPath
Generate pre-compiled module from a module map.
Parse and perform semantic analysis.
Enable annotation of ObjCMethods of all kinds.
Parse ASTs and print them.
Enable migration to modern ObjC readonly property.
Enable migration to modern ObjC readwrite property.
std::string ASTDumpFilter
If given, filter dumped AST Decl nodes by this substring.
std::string FixItSuffix
If given, the new suffix for fix-it rewritten files.
Enable migration to modern ObjC literals.
Parse and apply any fixits to the source.
std::string FindPchSource
If non-empty, search the pch input file as if it was a header included by this file.
Translate input source into HTML.
Enable migration to NS_ENUM/NS_OPTIONS macros.
A source location that has been parsed on the command line.
std::vector< std::string > ASTMergeFiles
The list of AST files to merge.
unsigned BuildingImplicitModule
Whether we are performing an implicit module build.
Print DeclContext and their Decls.
std::vector< std::string > ModulesEmbedFiles
The list of files to embed into the compiled module file.
unsigned RelocatablePCH
When generating PCH files, instruct the AST writer to create relocatable PCH files.
Enable migration to modern ObjC property.
Generate LLVM IR, but do not emit anything.
unsigned ShowStats
Show frontend performance metrics and statistics.
Enable migration to add conforming protocols.
unsigned FixWhatYouCan
Apply fixes even if there are unfixable errors.
unsigned SkipFunctionBodies
Emit ARC errors even if the migrator can fix them.
unsigned FixAndRecompile
Apply fixes and recompile.
Enable inferring NS_DESIGNATED_INITIALIZER for ObjC methods.
Dump out preprocessed tokens.
unsigned ASTDumpAll
Whether we deserialize all decls when forming AST dumps.
Generate pre-compiled module from a C++ module interface file.
std::vector< std::string > Plugins
The list of plugins to load.
prefer 'atomic' property over 'nonatomic'.
unsigned ShowTimers
Show timers for individual actions.
Only execute frontend initialization.
Print the "preamble" of the input file.
unsigned ModulesEmbedAllFiles
Whether we should embed all used files into the PCM file.
unsigned FixOnlyWarnings
Apply fixes only for warnings.
std::string AuxTriple
Auxiliary triple for CUDA compilation.
enum clang::FrontendOptions::@166 ARCMTAction
unsigned ARCMTMigrateEmitARCErrors
Enable migration to modern ObjC subscripting.
Generate machine code, but don't emit anything.
std::vector< std::string > ModuleFiles
The list of additional prebuilt module files to load before processing the input. ...
ParsedSourceLocation CodeCompletionAt
If given, enable code completion at the provided location.
Enable converting setter/getter expressions to property-dot syntx.
std::vector< FrontendInputFile > Inputs
The input files and their types.
unsigned IncludeTimestamps
Whether timestamps should be written to the produced PCH file.
Parse ASTs and view them in Graphviz.
Parse ASTs and list Decl nodes.
std::unordered_map< std::string, std::vector< std::string > > PluginArgs
Args to pass to the plugins.
unsigned ASTDumpLookups
Whether we include lookup table dumps in AST dumps.
Load and verify that a PCH file is usable.
unsigned ShowVersion
Show the -version text.
unsigned GenerateGlobalModuleIndex
Whether we can generate the global module index if needed.
unsigned ShowHelp
Show the -help text.
std::string OverrideRecordLayoutsFile
File name of the file that will provide record layouts (in the format produced by -fdump-record-layou...
use NS_NONATOMIC_IOSONLY for property 'atomic' attribute
unsigned FixToTemporaries
Apply fixes to temporary files.
Options controlling the behavior of code completion.
frontend::ActionKind ProgramAction
The frontend action to perform.
std::string ARCMTMigrateReportOut
unsigned UseGlobalModuleIndex
Whether we can use the global module index if available.
FrontendOptions - Options for controlling the behavior of the frontend.
std::string StatsFile
Filename to write statistics to.
Parse ASTs and dump them.
std::vector< std::shared_ptr< ModuleFileExtension > > ModuleFileExtensions
The list of module file extensions.
CodeCompleteOptions CodeCompleteOpts
std::vector< std::string > AddPluginActions
The list of plugin actions to run in addition to the normal action.
unsigned DisableFree
Disable memory freeing on exit.
Generate pre-compiled header.
unsigned ASTDumpDecls
Whether we include declaration dumps in AST dumps.
std::string ActionName
The name of the action to run when using a plugin action.
Run one or more source code analyses.
std::vector< std::string > LLVMArgs
A list of arguments to forward to LLVM's option processing; this should only be used for debugging an...
Dump information about a module file.
Generate pre-tokenized header.
static InputKind getInputKindForExtension(StringRef Extension)
getInputKindForExtension - Return the appropriate input kind for a file extension.
Enable migration of ObjC methods to 'instancetype'.
std::vector< std::string > ModuleMapFiles
The list of module map files to load before processing the input.