clang API Documentation

Enumerations
clang::frontend Namespace Reference

Enumerations

enum  ActionKind {
  ASTDeclList, ASTDump, ASTPrint, ASTView,
  DumpRawTokens, DumpTokens, EmitAssembly, EmitBC,
  EmitHTML, EmitLLVM, EmitLLVMOnly, EmitCodeGenOnly,
  EmitObj, FixIt, GenerateModule, GeneratePCH,
  GeneratePTH, InitOnly, ModuleFileInfo, VerifyPCH,
  ParseSyntaxOnly, PluginAction, PrintDeclContext, PrintPreamble,
  PrintPreprocessedInput, RewriteMacros, RewriteObjC, RewriteTest,
  RunAnalysis, MigrateSource, RunPreprocessorOnly
}
enum  LangFeatures {
  LineComment = (1 << 0), C89 = (1 << 1), C99 = (1 << 2), C11 = (1 << 3),
  CPlusPlus = (1 << 4), CPlusPlus11 = (1 << 5), CPlusPlus14 = (1 << 6), CPlusPlus1z = (1 << 7),
  Digraphs = (1 << 8), GNUMode = (1 << 9), HexFloat = (1 << 10), ImplicitInt = (1 << 11)
}
enum  IncludeDirGroup {
  Quoted = 0, Angled, IndexHeaderMap, System,
  ExternCSystem, CSystem, CXXSystem, ObjCSystem,
  ObjCXXSystem, After
}

Enumeration Type Documentation

Enumerator:
ASTDeclList 

Parse ASTs and list Decl nodes.

ASTDump 

Parse ASTs and dump them.

ASTPrint 

Parse ASTs and print them.

ASTView 

Parse ASTs and view them in Graphviz.

DumpRawTokens 

Dump out raw tokens.

DumpTokens 

Dump out preprocessed tokens.

EmitAssembly 

Emit a .s file.

EmitBC 

Emit a .bc file.

EmitHTML 

Translate input source into HTML.

EmitLLVM 

Emit a .ll file.

EmitLLVMOnly 

Generate LLVM IR, but do not emit anything.

EmitCodeGenOnly 

Generate machine code, but don't emit anything.

EmitObj 

Emit a .o file.

FixIt 

Parse and apply any fixits to the source.

GenerateModule 

Generate pre-compiled module.

GeneratePCH 

Generate pre-compiled header.

GeneratePTH 

Generate pre-tokenized header.

InitOnly 

Only execute frontend initialization.

ModuleFileInfo 

Dump information about a module file.

VerifyPCH 

Load and verify that a PCH file is usable.

ParseSyntaxOnly 

Parse and perform semantic analysis.

PluginAction 

Run a plugin action,.

See also:
ActionName.
PrintDeclContext 

Print DeclContext and their Decls.

PrintPreamble 

Print the "preamble" of the input file.

PrintPreprocessedInput 

-E mode.

RewriteMacros 

Expand macros but not #includes.

RewriteObjC 

ObjC->C Rewriter.

RewriteTest 

Rewriter playground.

RunAnalysis 

Run one or more source code analyses.

MigrateSource 

Run migrator.

RunPreprocessorOnly 

Just lex, no output.

Definition at line 26 of file FrontendOptions.h.

IncludeDirGroup - Identifiers the group a include entry belongs to, which represents its relative positive in the search list. A #include of a "" path starts at the -iquote group, then searches the Angled group, then searches the system group, etc.

Enumerator:
Quoted 

'#include ""' paths, added by 'gcc -iquote'.

Angled 

Paths for '#include <>' added by '-I'.

IndexHeaderMap 

Like Angled, but marks header maps used when

System 

building frameworks.

Like Angled, but marks system directories.

ExternCSystem 

Like System, but headers are implicitly wrapped in extern "C".

CSystem 

Like System, but only used for C.

CXXSystem 

Like System, but only used for C++.

ObjCSystem 

Like System, but only used for ObjC.

ObjCXXSystem 

Like System, but only used for ObjC++.

After 

Like System, but searched after the system directories.

Definition at line 27 of file HeaderSearchOptions.h.

Enumerator:
LineComment 
C89 
C99 
C11 
CPlusPlus 
CPlusPlus11 
CPlusPlus14 
CPlusPlus1z 
Digraphs 
GNUMode 
HexFloat 
ImplicitInt 

Definition at line 20 of file LangStandard.h.