clang 24.0.0git
FrontendOptions.h
Go to the documentation of this file.
1//===- FrontendOptions.h ----------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
10#define LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
11
17#include "llvm/ADT/StringRef.h"
18#include "llvm/Support/Compiler.h"
19#include "llvm/Support/MemoryBuffer.h"
20#include "llvm/Support/TimeProfiler.h"
21#include <cassert>
22#include <map>
23#include <memory>
24#include <optional>
25#include <string>
26#include <vector>
27
28namespace llvm {
29
30class MemoryBuffer;
31
32} // namespace llvm
33
34namespace clang {
35
36namespace frontend {
37
39 /// Parse ASTs and list Decl nodes.
41
42 /// Parse ASTs and dump them.
44
45 /// Parse ASTs and print them.
47
48 /// Parse ASTs and view them in Graphviz.
50
51 /// Dump the compiler configuration.
53
54 /// Dump out raw tokens.
56
57 /// Dump out preprocessed tokens.
59
60 /// Emit a .s file.
62
63 /// Emit a .bc file.
65
66 /// Translate input source into HTML.
68
69 /// Emit a .cir file
71
72 /// Emit a .cirbc file (ClangIR bytecode).
74
75 /// Emit a .ll file.
77
78 /// Generate LLVM IR, but do not emit anything.
80
81 /// Generate machine code, but don't emit anything.
83
84 /// Emit a .o file.
86
87 // Extract API information
89
90 /// Parse and apply any fixits to the source.
92
93 /// Generate pre-compiled module from a module map.
95
96 /// Generate pre-compiled module from a standard C++ module interface unit.
98
99 /// Generate reduced module interface for a standard C++ module interface
100 /// unit.
102
103 /// Generate a C++20 header unit module from a header file.
105
106 /// Generate pre-compiled header.
108
109 /// Generate Interface Stub Files.
111
112 /// Only execute frontend initialization.
114
115 /// Dump information about a module file.
117
118 /// Load and verify that a PCH file is usable.
120
121 /// Parse and perform semantic analysis.
123
124 /// Run a plugin action, \see ActionName.
126
127 /// Print the "preamble" of the input file
129
130 /// -E mode.
132
133 /// Expand macros but not \#includes.
135
136 /// ObjC->C Rewriter.
138
139 /// Rewriter playground
141
142 /// Run one or more source code analyses.
144
145 /// Just lex, no output.
147
148 /// Print the output of the dependency directives source minimizer.
150};
151
152} // namespace frontend
153
154/// The kind of a file that we've been handed as an input.
156public:
157 /// The input file format.
163
164 // If we are building a header unit, what kind it is; this affects whether
165 // we look for the file in the user or system include search paths before
166 // flagging a missing input.
173
174private:
175 Language Lang;
176 LLVM_PREFERRED_TYPE(Format)
177 unsigned Fmt : 3;
178 LLVM_PREFERRED_TYPE(bool)
179 unsigned Preprocessed : 1;
180 LLVM_PREFERRED_TYPE(HeaderUnitKind)
181 unsigned HeaderUnit : 3;
182 LLVM_PREFERRED_TYPE(bool)
183 unsigned IsHeader : 1;
184
185public:
187 bool PP = false, HeaderUnitKind HU = HeaderUnit_None,
188 bool HD = false)
189 : Lang(L), Fmt(F), Preprocessed(PP), HeaderUnit(HU), IsHeader(HD) {}
190
191 Language getLanguage() const { return static_cast<Language>(Lang); }
192 Format getFormat() const { return static_cast<Format>(Fmt); }
194 return static_cast<HeaderUnitKind>(HeaderUnit);
195 }
196 bool isPreprocessed() const { return Preprocessed; }
197 bool isHeader() const { return IsHeader; }
198 bool isHeaderUnit() const { return HeaderUnit != HeaderUnit_None; }
199
200 /// Is the input kind fully-unknown?
201 bool isUnknown() const { return Lang == Language::Unknown && Fmt == Source; }
202
203 /// Is the language of the input some dialect of Objective-C?
204 bool isObjectiveC() const {
205 return Lang == Language::ObjC || Lang == Language::ObjCXX;
206 }
207
210 isHeader());
211 }
212
215 getHeaderUnitKind(), true);
216 }
217
222
227};
228
229/// An input file for the front end.
231 /// The file name, or "-" to read from standard input.
232 std::string File;
233
234 /// The input, if it comes from a buffer rather than a file. This object
235 /// does not own the buffer, and the caller is responsible for ensuring
236 /// that it outlives any users.
237 std::optional<llvm::MemoryBufferRef> Buffer;
238
239 /// The kind of input, e.g., C source, AST file, LLVM IR.
240 InputKind Kind;
241
242 /// Whether we're dealing with a 'system' input (vs. a 'user' input).
243 bool IsSystem = false;
244
246
247public:
248 FrontendInputFile() = default;
249 FrontendInputFile(StringRef File, InputKind Kind, bool IsSystem = false)
250 : File(File.str()), Kind(Kind), IsSystem(IsSystem) {}
251 FrontendInputFile(llvm::MemoryBufferRef Buffer, InputKind Kind,
252 bool IsSystem = false)
253 : Buffer(Buffer), Kind(Kind), IsSystem(IsSystem) {}
254
255 InputKind getKind() const { return Kind; }
256 bool isSystem() const { return IsSystem; }
257
258 bool isEmpty() const { return File.empty() && Buffer == std::nullopt; }
259 bool isFile() const { return !isBuffer(); }
260 bool isBuffer() const { return Buffer != std::nullopt; }
261 bool isPreprocessed() const { return Kind.isPreprocessed(); }
262 bool isHeader() const { return Kind.isHeader(); }
264 return Kind.getHeaderUnitKind();
265 }
266
267 StringRef getFile() const {
268 assert(isFile());
269 return File;
270 }
271
272 llvm::MemoryBufferRef getBuffer() const {
273 assert(isBuffer());
274 return *Buffer;
275 }
276};
277
278/// FrontendOptions - Options for controlling the behavior of the frontend.
280public:
281 /// Disable memory freeing on exit.
282 LLVM_PREFERRED_TYPE(bool)
284
285 /// When generating PCH files, instruct the AST writer to create relocatable
286 /// PCH files.
287 LLVM_PREFERRED_TYPE(bool)
288 unsigned RelocatablePCH : 1;
289
290 /// Show the -help text.
291 LLVM_PREFERRED_TYPE(bool)
292 unsigned ShowHelp : 1;
293
294 /// Show frontend performance metrics and statistics.
295 LLVM_PREFERRED_TYPE(bool)
296 unsigned ShowStats : 1;
297
298 LLVM_PREFERRED_TYPE(bool)
299 unsigned AppendStats : 1;
300
301 /// print the supported cpus for the current target
302 LLVM_PREFERRED_TYPE(bool)
303 unsigned PrintSupportedCPUs : 1;
304
305 /// Print the supported extensions for the current target.
306 LLVM_PREFERRED_TYPE(bool)
308
309 /// Print the extensions enabled for the current target.
310 LLVM_PREFERRED_TYPE(bool)
312
313 /// Show the -version text.
314 LLVM_PREFERRED_TYPE(bool)
315 unsigned ShowVersion : 1;
316
317 /// Apply fixes even if there are unfixable errors.
318 LLVM_PREFERRED_TYPE(bool)
319 unsigned FixWhatYouCan : 1;
320
321 /// Apply fixes only for warnings.
322 LLVM_PREFERRED_TYPE(bool)
323 unsigned FixOnlyWarnings : 1;
324
325 /// Apply fixes and recompile.
326 LLVM_PREFERRED_TYPE(bool)
327 unsigned FixAndRecompile : 1;
328
329 /// Apply fixes to temporary files.
330 LLVM_PREFERRED_TYPE(bool)
331 unsigned FixToTemporaries : 1;
332
333 /// Skip over function bodies to speed up parsing in cases you do not need
334 /// them (e.g. with code completion).
335 LLVM_PREFERRED_TYPE(bool)
336 unsigned SkipFunctionBodies : 1;
337
338 /// Whether we can use the global module index if available.
339 LLVM_PREFERRED_TYPE(bool)
341
342 /// Whether we can generate the global module index if needed.
343 LLVM_PREFERRED_TYPE(bool)
345
346 /// Whether we include declaration dumps in AST dumps.
347 LLVM_PREFERRED_TYPE(bool)
348 unsigned ASTDumpDecls : 1;
349
350 /// Whether we deserialize all decls when forming AST dumps.
351 LLVM_PREFERRED_TYPE(bool)
352 unsigned ASTDumpAll : 1;
353
354 /// Whether we include lookup table dumps in AST dumps.
355 LLVM_PREFERRED_TYPE(bool)
356 unsigned ASTDumpLookups : 1;
357
358 /// Whether we include declaration type dumps in AST dumps.
359 LLVM_PREFERRED_TYPE(bool)
360 unsigned ASTDumpDeclTypes : 1;
361
362 /// Whether we are performing an implicit module build.
363 LLVM_PREFERRED_TYPE(bool)
365
366 /// Whether to use a filesystem lock when building implicit modules.
367 LLVM_PREFERRED_TYPE(bool)
369
370 /// Whether we should embed all used files into the PCM file.
371 LLVM_PREFERRED_TYPE(bool)
373
374 /// Whether timestamps should be written to the produced PCH file.
375 LLVM_PREFERRED_TYPE(bool)
376 unsigned IncludeTimestamps : 1;
377
378 /// Should a temporary file be used during compilation.
379 LLVM_PREFERRED_TYPE(bool)
380 unsigned UseTemporary : 1;
381
382 /// When using -emit-module, treat the modulemap as a system module.
383 LLVM_PREFERRED_TYPE(bool)
384 unsigned IsSystemModule : 1;
385
386 /// Output (and read) PCM files regardless of compiler errors.
387 LLVM_PREFERRED_TYPE(bool)
389
390 /// Whether to share the FileManager when building modules.
391 LLVM_PREFERRED_TYPE(bool)
393
394 /// Whether to emit symbol graph files as a side effect of compilation.
395 LLVM_PREFERRED_TYPE(bool)
396 unsigned EmitSymbolGraph : 1;
397
398 /// Whether to emit additional symbol graphs for extended modules.
399 LLVM_PREFERRED_TYPE(bool)
401
402 /// Whether to emit symbol labels for testing in generated symbol graphs
403 LLVM_PREFERRED_TYPE(bool)
405
406 /// Whether to emit symbol labels for testing in generated symbol graphs
407 LLVM_PREFERRED_TYPE(bool)
409
410 /// Whether to generate reduced BMI for C++20 named modules.
411 LLVM_PREFERRED_TYPE(bool)
412 unsigned GenReducedBMI : 1;
413
414 /// Use Clang IR pipeline to emit code
415 LLVM_PREFERRED_TYPE(bool)
416 unsigned UseClangIRPipeline : 1;
417
418 /// Disable Clang IR specific (CIR) passes
419 LLVM_PREFERRED_TYPE(bool)
421
422 /// Disable Clang IR (CIR) verifier
423 LLVM_PREFERRED_TYPE(bool)
425
426 /// Enable Clang IR (CIR) idiom recognizer
427 LLVM_PREFERRED_TYPE(bool)
429
430 /// Run the Clang IR (CIR) calling-convention lowering pass. A no-op on
431 /// targets whose calling convention is not yet implemented.
432 LLVM_PREFERRED_TYPE(bool)
434
435 /// Enable ClangIR library optimization.
436 /// Set when -fclangir-lib-opt or -fclangir-lib-opt= was passed.
437 LLVM_PREFERRED_TYPE(bool)
439
440 /// Options to control ClangIR library optimization
442
444
445 /// Specifies the output format of the AST.
447
448 /// The input kind, either specified via -x argument or deduced from the input
449 /// file name.
451
452 /// The input files and their types.
454
455 /// When the input is a module map, the original module map file from which
456 /// that map was inferred, if any (for umbrella modules).
458
459 /// The output file, if any.
461
462 /// If given, the new suffix for fix-it rewritten files.
464
465 /// If given, filter dumped AST Decl nodes by this substring.
467
468 /// If given, filter dumped AST Decl nodes by source file path (glob pattern).
470
471 /// If given, enable code completion at the provided location.
473
474 /// The frontend action to perform.
475 frontend::ActionKind ProgramAction = frontend::ParseSyntaxOnly;
476
477 /// The name of the action to run when using a plugin action.
479
480 // Currently this is only used as part of the `-extract-api` action.
481 /// The name of the product the input files belong too.
483
484 // Currently this is only used as part of the `-extract-api` action.
485 // A comma separated list of files providing a list of APIs to
486 // ignore when extracting documentation.
488
489 // Location of output directory where symbol graph information would
490 // be dumped. This overrides regular -o output file specification
492
493 /// Args to pass to the plugins
494 std::map<std::string, std::vector<std::string>> PluginArgs;
495
496 /// The list of plugin actions to run in addition to the normal action.
497 std::vector<std::string> AddPluginActions;
498
499 /// The list of plugins to load.
500 std::vector<std::string> Plugins;
501
502 /// The list of module file extensions.
504
505 /// The list of module map files to load before processing the input.
506 std::vector<std::string> ModuleMapFiles;
507
508 /// The list of additional prebuilt module files to load before
509 /// processing the input.
510 std::vector<std::string> ModuleFiles;
511
512 /// The list of files to embed into the compiled module file.
513 std::vector<std::string> ModulesEmbedFiles;
514
515 /// The time in seconds to wait on an implicit module lock before timing out.
517
518 /// The list of AST files to merge.
519 std::vector<std::string> ASTMergeFiles;
520
521 /// A list of arguments to forward to LLVM's option processing; this
522 /// should only be used for debugging and experimental features.
523 std::vector<std::string> LLVMArgs;
524
525 /// A list of arguments to forward to MLIR's option processing; this
526 /// should only be used for debugging and experimental features.
527 std::vector<std::string> MLIRArgs;
528
529 /// File name of the file that will provide record layouts
530 /// (in the format produced by -fdump-record-layouts).
532
533 /// Auxiliary triple for CUDA/HIP/SYCL compilation.
534 std::string AuxTriple;
535
536 /// Auxiliary target CPU for CUDA/HIP compilation.
537 std::optional<std::string> AuxTargetCPU;
538
539 /// Auxiliary target features for CUDA/HIP compilation.
540 std::optional<std::vector<std::string>> AuxTargetFeatures;
541
542 /// Filename to write statistics to.
543 std::string StatsFile;
544
545 /// Minimum time granularity (in microseconds) traced by time profiler.
547
548 /// Make time trace capture verbose event details (e.g. source filenames).
549 /// This can increase the size of the output by 2-3 times.
550 LLVM_PREFERRED_TYPE(bool)
551 unsigned TimeTraceVerbose : 1;
552
553 /// Compression mode for -ftime-trace output.
554 llvm::TimeTraceCompression TimeTraceCompress =
555 llvm::TimeTraceCompression::Infer;
556
557 /// Path which stores the output files for -ftime-trace
559
560 /// Output Path for module output file.
562
563 /// Output path to dump ranges of deserialized declarations to use as
564 /// minimization hints.
566
567public:
586
587 /// getInputKindForExtension - Return the appropriate input kind for a file
588 /// extension. For example, "c" would return Language::C.
589 ///
590 /// \return The input kind for the extension, or Language::Unknown if the
591 /// extension is not recognized.
592 static InputKind getInputKindForExtension(StringRef Extension);
593};
594
595} // namespace clang
596
597#endif // LLVM_CLANG_FRONTEND_FRONTENDOPTIONS_H
Options controlling the behavior of code completion.
An input file for the front end.
llvm::MemoryBufferRef getBuffer() const
FrontendInputFile(llvm::MemoryBufferRef Buffer, InputKind Kind, bool IsSystem=false)
InputKind getKind() const
StringRef getFile() const
InputKind::HeaderUnitKind getHeaderUnitKind() const
FrontendInputFile(StringRef File, InputKind Kind, bool IsSystem=false)
InputKind DashX
The input kind, either specified via -x argument or deduced from the input file name.
unsigned BuildingImplicitModule
Whether we are performing an implicit module build.
unsigned TimeTraceGranularity
Minimum time granularity (in microseconds) traced by time profiler.
std::vector< std::string > ModuleFiles
The list of additional prebuilt module files to load before processing the input.
unsigned AllowPCMWithCompilerErrors
Output (and read) PCM files regardless of compiler errors.
unsigned SkipFunctionBodies
Skip over function bodies to speed up parsing in cases you do not need them (e.g.
unsigned ClangIRDisablePasses
Disable Clang IR specific (CIR) passes.
unsigned IncludeTimestamps
Whether timestamps should be written to the produced PCH file.
llvm::TimeTraceCompression TimeTraceCompress
Compression mode for -ftime-trace output.
unsigned EmitSymbolGraphSymbolLabelsForTesting
Whether to emit symbol labels for testing in generated symbol graphs.
unsigned EmitSymbolGraph
Whether to emit symbol graph files as a side effect of compilation.
std::map< std::string, std::vector< std::string > > PluginArgs
Args to pass to the plugins.
unsigned ClangIRDisableCIRVerifier
Disable Clang IR (CIR) verifier.
unsigned BuildingImplicitModuleUsesLock
Whether to use a filesystem lock when building implicit modules.
unsigned ModulesShareFileManager
Whether to share the FileManager when building modules.
std::vector< std::string > MLIRArgs
A list of arguments to forward to MLIR's option processing; this should only be used for debugging an...
std::string ASTDumpFilter
If given, filter dumped AST Decl nodes by this substring.
unsigned ASTDumpLookups
Whether we include lookup table dumps in AST dumps.
unsigned UseTemporary
Should a temporary file be used during compilation.
CodeCompleteOptions CodeCompleteOpts
unsigned IsSystemModule
When using -emit-module, treat the modulemap as a system module.
unsigned ClangIRLibOptEnabled
Enable ClangIR library optimization.
unsigned PrintSupportedCPUs
print the supported cpus for the current target
unsigned FixToTemporaries
Apply fixes to temporary files.
unsigned PrintSupportedExtensions
Print the supported extensions for the current target.
unsigned PrintEnabledExtensions
Print the extensions enabled for the current target.
std::vector< std::string > LLVMArgs
A list of arguments to forward to LLVM's option processing; this should only be used for debugging an...
unsigned ShowHelp
Show the -help text.
std::string TimeTracePath
Path which stores the output files for -ftime-trace.
unsigned FixAndRecompile
Apply fixes and recompile.
unsigned UseClangIRPipeline
Use Clang IR pipeline to emit code.
unsigned FixOnlyWarnings
Apply fixes only for warnings.
ASTDumpOutputFormat ASTDumpFormat
Specifies the output format of the AST.
std::optional< std::string > AuxTargetCPU
Auxiliary target CPU for CUDA/HIP compilation.
std::string StatsFile
Filename to write statistics to.
std::string OutputFile
The output file, if any.
unsigned ShowStats
Show frontend performance metrics and statistics.
unsigned GenReducedBMI
Whether to generate reduced BMI for C++20 named modules.
std::string ActionName
The name of the action to run when using a plugin action.
std::vector< std::shared_ptr< ModuleFileExtension > > ModuleFileExtensions
The list of module file extensions.
ParsedSourceLocation CodeCompletionAt
If given, enable code completion at the provided location.
std::string FixItSuffix
If given, the new suffix for fix-it rewritten files.
std::string OriginalModuleMap
When the input is a module map, the original module map file from which that map was inferred,...
std::vector< std::string > ModulesEmbedFiles
The list of files to embed into the compiled module file.
unsigned ShowVersion
Show the -version text.
std::string ProductName
The name of the product the input files belong too.
unsigned ModulesEmbedAllFiles
Whether we should embed all used files into the PCM file.
std::string ClangIRLibOptOptions
Options to control ClangIR library optimization.
std::string ModuleOutputPath
Output Path for module output file.
std::vector< std::string > AddPluginActions
The list of plugin actions to run in addition to the normal action.
unsigned ASTDumpDeclTypes
Whether we include declaration type dumps in AST dumps.
unsigned FixWhatYouCan
Apply fixes even if there are unfixable errors.
static InputKind getInputKindForExtension(StringRef Extension)
getInputKindForExtension - Return the appropriate input kind for a file extension.
unsigned ClangIREnableIdiomRecognizer
Enable Clang IR (CIR) idiom recognizer.
std::vector< std::string > ASTMergeFiles
The list of AST files to merge.
std::vector< std::string > Plugins
The list of plugins to load.
unsigned ASTDumpAll
Whether we deserialize all decls when forming AST dumps.
unsigned GenerateGlobalModuleIndex
Whether we can generate the global module index if needed.
unsigned TimeTraceVerbose
Make time trace capture verbose event details (e.g.
std::string DumpMinimizationHintsPath
Output path to dump ranges of deserialized declarations to use as minimization hints.
unsigned RelocatablePCH
When generating PCH files, instruct the AST writer to create relocatable PCH files.
std::string ASTDumpFilterPath
If given, filter dumped AST Decl nodes by source file path (glob pattern).
unsigned EmitExtensionSymbolGraphs
Whether to emit additional symbol graphs for extended modules.
unsigned DisableFree
Disable memory freeing on exit.
unsigned ClangIRCallConvLowering
Run the Clang IR (CIR) calling-convention lowering pass.
SmallVector< FrontendInputFile, 0 > Inputs
The input files and their types.
frontend::ActionKind ProgramAction
The frontend action to perform.
std::optional< std::vector< std::string > > AuxTargetFeatures
Auxiliary target features for CUDA/HIP compilation.
unsigned EmitPrettySymbolGraphs
Whether to emit symbol labels for testing in generated symbol graphs.
std::string OverrideRecordLayoutsFile
File name of the file that will provide record layouts (in the format produced by -fdump-record-layou...
std::vector< std::string > ExtractAPIIgnoresFileList
std::string AuxTriple
Auxiliary triple for CUDA/HIP/SYCL compilation.
unsigned UseGlobalModuleIndex
Whether we can use the global module index if available.
std::vector< std::string > ModuleMapFiles
The list of module map files to load before processing the input.
unsigned ASTDumpDecls
Whether we include declaration dumps in AST dumps.
unsigned ImplicitModulesLockTimeoutSeconds
The time in seconds to wait on an implicit module lock before timing out.
The kind of a file that we've been handed as an input.
bool isPreprocessed() const
InputKind withHeaderUnit(HeaderUnitKind HU) const
bool isHeaderUnit() const
bool isUnknown() const
Is the input kind fully-unknown?
bool isObjectiveC() const
Is the language of the input some dialect of Objective-C?
constexpr InputKind(Language L=Language::Unknown, Format F=Source, bool PP=false, HeaderUnitKind HU=HeaderUnit_None, bool HD=false)
Format
The input file format.
InputKind getPreprocessed() const
bool isHeader() const
Format getFormat() const
HeaderUnitKind getHeaderUnitKind() const
InputKind getHeader() const
InputKind withFormat(Format F) const
Language getLanguage() const
An abstract superclass that describes a custom extension to the module/precompiled header file format...
@ GenerateHeaderUnit
Generate a C++20 header unit module from a header file.
@ VerifyPCH
Load and verify that a PCH file is usable.
@ PrintPreprocessedInput
-E mode.
@ RewriteTest
Rewriter playground.
@ ParseSyntaxOnly
Parse and perform semantic analysis.
@ EmitBC
Emit a .bc file.
@ GenerateModuleInterface
Generate pre-compiled module from a standard C++ module interface unit.
@ EmitLLVM
Emit a .ll file.
@ PrintPreamble
Print the "preamble" of the input file.
@ InitOnly
Only execute frontend initialization.
@ ASTView
Parse ASTs and view them in Graphviz.
@ PluginAction
Run a plugin action,.
@ EmitObj
Emit a .o file.
@ DumpRawTokens
Dump out raw tokens.
@ PrintDependencyDirectivesSourceMinimizerOutput
Print the output of the dependency directives source minimizer.
@ RewriteObjC
ObjC->C Rewriter.
@ RunPreprocessorOnly
Just lex, no output.
@ ModuleFileInfo
Dump information about a module file.
@ EmitCIR
Emit a .cir file.
@ DumpCompilerOptions
Dump the compiler configuration.
@ RunAnalysis
Run one or more source code analyses.
@ ASTPrint
Parse ASTs and print them.
@ GenerateReducedModuleInterface
Generate reduced module interface for a standard C++ module interface unit.
@ GenerateInterfaceStubs
Generate Interface Stub Files.
@ ASTDump
Parse ASTs and dump them.
@ EmitCIRBC
Emit a .cirbc file (ClangIR bytecode).
@ DumpTokens
Dump out preprocessed tokens.
@ FixIt
Parse and apply any fixits to the source.
@ EmitAssembly
Emit a .s file.
@ EmitCodeGenOnly
Generate machine code, but don't emit anything.
@ RewriteMacros
Expand macros but not #includes.
@ EmitHTML
Translate input source into HTML.
@ GeneratePCH
Generate pre-compiled header.
@ EmitLLVMOnly
Generate LLVM IR, but do not emit anything.
@ GenerateModule
Generate pre-compiled module from a module map.
@ ASTDeclList
Parse ASTs and list Decl nodes.
Top level wrappers for InstallAPI frontend operations.
ASTDumpOutputFormat
Used to specify the format for printing AST dump information.
Language
The language for the input, used to select and validate the language standard and possible actions.
Diagnostic wrappers for TextAPI types for error reporting.
Definition Dominators.h:30
#define false
Definition stdbool.h:26
#define true
Definition stdbool.h:25
A source location that has been parsed on the command line.