|
clang
5.0.0
|
The kind of a file that we've been handed as an input. More...
#include "clang/Frontend/FrontendOptions.h"
Public Types | |
| enum | Language { Unknown, Asm, LLVM_IR, C, CXX, ObjC, ObjCXX, OpenCL, CUDA, RenderScript } |
| The language for the input, used to select and validate the language standard and possible actions. More... | |
| enum | Format { Source, ModuleMap, Precompiled } |
| The input file format. More... | |
Public Member Functions | |
| constexpr | InputKind (Language L=Unknown, Format F=Source, bool PP=false) |
| Language | getLanguage () const |
| Format | getFormat () const |
| bool | isPreprocessed () const |
| bool | isUnknown () const |
| Is the input kind fully-unknown? More... | |
| bool | isObjectiveC () const |
| Is the language of the input some dialect of Objective-C? More... | |
| InputKind | getPreprocessed () const |
| InputKind | withFormat (Format F) const |
The kind of a file that we've been handed as an input.
Definition at line 67 of file FrontendOptions.h.
The input file format.
| Enumerator | |
|---|---|
| Source | |
| ModuleMap | |
| Precompiled | |
Definition at line 98 of file FrontendOptions.h.
The language for the input, used to select and validate the language standard and possible actions.
Definition at line 76 of file FrontendOptions.h.
|
inline |
Definition at line 104 of file FrontendOptions.h.
Referenced by getPreprocessed(), and withFormat().
|
inline |
Definition at line 109 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile(), getPreprocessed(), clang::CompilerInstance::InitializeSourceManager(), and ParseFrontendArgs().
|
inline |
Definition at line 108 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile(), GetInputKindName(), getOptimizationLevel(), getPreprocessed(), IsInputCompatibleWithStandard(), ParseCodeGenArgs(), clang::CompilerInvocation::setLangDefaults(), and withFormat().
|
inline |
Definition at line 118 of file FrontendOptions.h.
References getFormat(), getLanguage(), and InputKind().
Referenced by ParseFrontendArgs().
|
inline |
Is the language of the input some dialect of Objective-C?
Definition at line 116 of file FrontendOptions.h.
Referenced by clang::CompilerInvocation::setLangDefaults().
|
inline |
Definition at line 110 of file FrontendOptions.h.
Referenced by withFormat().
|
inline |
Is the input kind fully-unknown?
Definition at line 113 of file FrontendOptions.h.
References Source, and Unknown.
Referenced by ParseFrontendArgs().
Definition at line 121 of file FrontendOptions.h.
References getLanguage(), InputKind(), and isPreprocessed().
Referenced by clang::FrontendAction::BeginSourceFile(), and ParseFrontendArgs().
1.8.6