clang 20.0.0git
|
The kind of a file that we've been handed as an input. More...
#include "clang/Frontend/FrontendOptions.h"
Public Types | |
enum | Format { Source , ModuleMap , Precompiled } |
The input file format. More... | |
enum | HeaderUnitKind { HeaderUnit_None , HeaderUnit_User , HeaderUnit_System , HeaderUnit_Abs } |
Public Member Functions | |
constexpr | InputKind (Language L=Language::Unknown, Format F=Source, bool PP=false, HeaderUnitKind HU=HeaderUnit_None, bool HD=false) |
Language | getLanguage () const |
Format | getFormat () const |
HeaderUnitKind | getHeaderUnitKind () const |
bool | isPreprocessed () const |
bool | isHeader () 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? | |
InputKind | getPreprocessed () const |
InputKind | getHeader () const |
InputKind | withHeaderUnit (HeaderUnitKind HU) const |
InputKind | withFormat (Format F) const |
The kind of a file that we've been handed as an input.
Definition at line 157 of file FrontendOptions.h.
The input file format.
Enumerator | |
---|---|
Source | |
ModuleMap | |
Precompiled |
Definition at line 160 of file FrontendOptions.h.
Enumerator | |
---|---|
HeaderUnit_None | |
HeaderUnit_User | |
HeaderUnit_System | |
HeaderUnit_Abs |
Definition at line 169 of file FrontendOptions.h.
|
inlineconstexpr |
Definition at line 188 of file FrontendOptions.h.
|
inline |
Definition at line 194 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile(), GenerateFrontendArgs(), getHeader(), getPreprocessed(), clang::CompilerInstance::InitializeSourceManager(), ParseFrontendArgs(), and withHeaderUnit().
|
inline |
Definition at line 215 of file FrontendOptions.h.
References getFormat(), getHeaderUnitKind(), getLanguage(), and isPreprocessed().
Referenced by ParseFrontendArgs().
|
inline |
Definition at line 195 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile(), GenerateFrontendArgs(), getHeader(), getPreprocessed(), ParseFrontendArgs(), and withFormat().
|
inline |
Definition at line 193 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile(), GenerateFrontendArgs(), getHeader(), GetInputKindName(), getOptimizationLevel(), getPreprocessed(), IsInputCompatibleWithStandard(), needsModules(), withFormat(), and withHeaderUnit().
|
inline |
Definition at line 210 of file FrontendOptions.h.
References getFormat(), getHeaderUnitKind(), getLanguage(), and isHeader().
Referenced by ParseFrontendArgs().
|
inline |
Definition at line 199 of file FrontendOptions.h.
Referenced by getPreprocessed(), withFormat(), and withHeaderUnit().
|
inline |
Definition at line 200 of file FrontendOptions.h.
References HeaderUnit_None.
Referenced by clang::FrontendAction::BeginSourceFile().
|
inline |
Is the language of the input some dialect of Objective-C?
Definition at line 206 of file FrontendOptions.h.
References clang::ObjC, and clang::ObjCXX.
|
inline |
Definition at line 198 of file FrontendOptions.h.
Referenced by clang::FrontendAction::BeginSourceFile(), GenerateFrontendArgs(), getHeader(), withFormat(), and withHeaderUnit().
|
inline |
Is the input kind fully-unknown?
Definition at line 203 of file FrontendOptions.h.
References Source, and clang::Unknown.
Referenced by ParseFrontendArgs().
Definition at line 225 of file FrontendOptions.h.
References getHeaderUnitKind(), getLanguage(), isHeader(), and isPreprocessed().
Referenced by ParseFrontendArgs().
|
inline |
Definition at line 220 of file FrontendOptions.h.
References getFormat(), getLanguage(), isHeader(), and isPreprocessed().
Referenced by clang::FrontendAction::BeginSourceFile(), and ParseFrontendArgs().