clang
3.7.0
|
Enumerations | |
enum | ID { TY_INVALID, TY_LAST } |
Functions | |
const char * | getTypeName (ID Id) |
getTypeName - Return the name of the type for Id . More... | |
ID | getPreprocessedType (ID Id) |
const char * | getTypeTempSuffix (ID Id, bool CLMode=false) |
bool | onlyAssembleType (ID Id) |
onlyAssembleType - Should this type only be assembled. More... | |
bool | onlyPrecompileType (ID Id) |
onlyPrecompileType - Should this type only be precompiled. More... | |
bool | canTypeBeUserSpecified (ID Id) |
bool | appendSuffixForType (ID Id) |
bool | canLipoType (ID Id) |
bool | isAcceptedByClang (ID Id) |
isAcceptedByClang - Can clang handle this input type. More... | |
bool | isCXX (ID Id) |
isCXX - Is this a "C++" input (C++ and Obj-C++ sources and headers). More... | |
bool | isCuda (ID Id) |
isCuda - Is this a CUDA input. More... | |
bool | isObjC (ID Id) |
isObjC - Is this an "ObjC" input (Obj-C and Obj-C++ sources and headers). More... | |
ID | lookupTypeForExtension (const char *Ext) |
ID | lookupTypeForTypeSpecifier (const char *Name) |
void | getCompilationPhases (ID Id, llvm::SmallVectorImpl< phases::ID > &Phases) |
ID | lookupCXXTypeForCType (ID Id) |
appendSuffixForType - When generating outputs of this type, should the suffix be appended (instead of replacing the existing suffix).
Definition at line 69 of file Types.cpp.
References getInfo().
Referenced by clang::driver::Driver::GetNamedOutputPath().
canLipoType - Is this type acceptable as the output of a universal build (currently, just the Nothing, Image, and Object types).
Definition at line 73 of file Types.cpp.
Referenced by clang::driver::Driver::BuildUniversalActions().
canTypeBeUserSpecified - Can this type be specified on the command line (by the type name); this is used when forwarding commands to gcc.
Definition at line 65 of file Types.cpp.
References getInfo().
Referenced by clang::driver::tools::gcc::Common::ConstructJob(), and lookupTypeForTypeSpecifier().
void clang::driver::types::getCompilationPhases | ( | ID | Id, |
llvm::SmallVectorImpl< phases::ID > & | Phases | ||
) |
getCompilationPhases - Get the list of compilation phases ('Phases') to be done for type 'Id'.
Definition at line 209 of file Types.cpp.
References clang::driver::phases::Assemble, clang::driver::phases::Backend, clang::driver::phases::Compile, getPreprocessedType(), clang::driver::phases::Link, clang::driver::phases::MaxNumberOfPhases, onlyAssembleType(), onlyPrecompileType(), clang::driver::phases::Precompile, clang::driver::phases::Preprocess, and TY_INVALID.
Referenced by clang::driver::Driver::BuildActions().
getPreprocessedType - Get the ID of the type for this input when it has been preprocessed, or INVALID if this input is not preprocessed.
Definition at line 43 of file Types.cpp.
References getInfo(), and TypeInfo::PreprocessedType.
Referenced by clang::driver::Driver::BuildActions(), clang::driver::tools::Clang::ConstructJob(), clang::driver::Driver::ConstructPhaseAction(), clang::driver::Driver::generateCompilationDiagnostics(), and getCompilationPhases().
const char * clang::driver::types::getTypeName | ( | ID | Id | ) |
getTypeName - Return the name of the type for Id
.
Definition at line 39 of file Types.cpp.
References getInfo(), and TypeInfo::Name.
Referenced by addDashXForInput(), clang::driver::Driver::BuildInputs(), clang::driver::Driver::BuildUniversalActions(), clang::driver::tools::gcc::Common::ConstructJob(), clang::Sema::DiagnoseUnknownTypeName(), clang::Sema::getTypeName(), PrintActions1(), and clang::driver::tools::gcc::Compiler::RenderExtraToolArgs().
getTypeTempSuffix - Return the suffix to use when creating a temp file of this type, or null if unspecified.
Definition at line 47 of file Types.cpp.
References getInfo(), and TypeInfo::TempSuffix.
Referenced by clang::driver::Driver::GetNamedOutputPath(), and MakeCLOutputFilename().
isAcceptedByClang - Can clang handle this input type.
Definition at line 80 of file Types.cpp.
Referenced by clang::driver::Driver::ShouldUseClangCompiler().
isCuda - Is this a CUDA input.
Definition at line 131 of file Types.cpp.
Referenced by clang::driver::tools::Clang::ConstructJob().
isCXX - Is this a "C++" input (C++ and Obj-C++ sources and headers).
Definition at line 117 of file Types.cpp.
Referenced by clang::driver::SanitizerArgs::addArgs(), addExceptionArgs(), and clang::driver::tools::Clang::ConstructJob().
isObjC - Is this an "ObjC" input (Obj-C and Obj-C++ sources and headers).
Definition at line 104 of file Types.cpp.
Referenced by addExceptionArgs(), and clang::driver::tools::Clang::ConstructJob().
lookupCXXTypeForCType - Lookup CXX input type that corresponds to given C type (used for clang++ emulation of g++ behaviour)
Definition at line 235 of file Types.cpp.
Referenced by clang::driver::Driver::BuildInputs().
types::ID clang::driver::types::lookupTypeForExtension | ( | const char * | Ext | ) |
lookupTypeForExtension - Lookup the type to use for the file extension Ext
.
Definition at line 143 of file Types.cpp.
References TY_INVALID.
Referenced by clang::driver::ToolChain::LookupTypeForExtension(), and clang::driver::toolchains::MachO::LookupTypeForExtension().
types::ID clang::driver::types::lookupTypeForTypeSpecifier | ( | const char * | Name | ) |
lookupTypeForTypSpecifier - Lookup the type to use for a user specified type name.
Definition at line 197 of file Types.cpp.
References canTypeBeUserSpecified(), getInfo(), numTypes, and TY_INVALID.
Referenced by clang::driver::Driver::BuildInputs().
onlyAssembleType - Should this type only be assembled.
Definition at line 57 of file Types.cpp.
References getInfo().
Referenced by getCompilationPhases().