10 #ifndef LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
11 #define LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
15 #include "llvm/ADT/StringRef.h"
85 llvm::MemoryBuffer *Buffer;
96 : File(File.str()), Buffer(nullptr), Kind(Kind), IsSystem(IsSystem) { }
98 bool IsSystem =
false)
99 : Buffer(buffer), Kind(Kind), IsSystem(IsSystem) { }
104 bool isEmpty()
const {
return File.empty() && Buffer ==
nullptr; }
106 bool isBuffer()
const {
return Buffer !=
nullptr; }
Expand macros but not #includes.
std::string OutputFile
The output file, if any.
std::string ObjCMTWhiteListPath
std::vector< std::vector< std::string > > AddPluginArgs
Args to pass to the additional plugins.
Generate pre-compiled module.
Parse and perform semantic analysis.
Parse ASTs and print them.
Enable migration of ObjC methods to 'instancetype'.
std::string ASTDumpFilter
If given, filter dumped AST Decl nodes by this substring.
std::vector< std::string > PluginArgs
Args to pass to the plugin.
std::string FixItSuffix
If given, the new suffix for fix-it rewritten files.
Parse and apply any fixits to the source.
Translate input source into HTML.
A source location that has been parsed on the command line.
std::vector< std::string > ASTMergeFiles
The list of AST files to merge.
Enable migration to add conforming protocols.
Print DeclContext and their Decls.
Generate LLVM IR, but do not emit anything.
Enable annotation of ObjCMethods of all kinds.
unsigned SkipFunctionBodies
unsigned FixAndRecompile
Apply fixes and recompile.
Dump out preprocessed tokens.
Enable migration to modern ObjC literals.
std::vector< std::string > Plugins
The list of plugins to load.
Only execute frontend initialization.
Print the "preamble" of the input file.
Enable migration to modern ObjC property.
unsigned FixOnlyWarnings
Apply fixes only for warnings.
Enable migration to modern ObjC readwrite property.
Options controlling the behavior of code completion.
unsigned ARCMTMigrateEmitARCErrors
Enable inferring NS_DESIGNATED_INITIALIZER for ObjC methods.
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.
std::vector< FrontendInputFile > Inputs
The input files and their types.
Parse ASTs and view them in Graphviz.
annotate property with NS_RETURNS_INNER_POINTER
Enable migration to modern ObjC readonly property.
Parse ASTs and list Decl nodes.
Enable migration to modern ObjC subscripting.
Load and verify that a PCH file is usable.
unsigned ShowVersion
Show the -version text.
unsigned GenerateGlobalModuleIndex
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...
unsigned FixToTemporaries
Apply fixes to temporary files.
frontend::ActionKind ProgramAction
The frontend action to perform.
Enable migration to NS_ENUM/NS_OPTIONS macros.
std::string ARCMTMigrateReportOut
unsigned UseGlobalModuleIndex
enum clang::FrontendOptions::@156 ARCMTAction
FrontendOptions - Options for controlling the behavior of the frontend.
Parse ASTs and dump them.
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.
Enable converting setter/getter expressions to property-dot syntx.
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.
prefer 'atomic' property over 'nonatomic'.
Generate pre-tokenized header.
static InputKind getInputKindForExtension(StringRef Extension)
use NS_NONATOMIC_IOSONLY for property 'atomic' attribute
std::vector< std::string > ModuleMapFiles
The list of module map files to load before processing the input.