clang 20.0.0git
Namespaces | Macros | Enumerations | Functions
Types.h File Reference
#include "clang/Driver/Phases.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Option/ArgList.h"
#include "clang/Driver/Types.def"

Go to the source code of this file.

Namespaces

namespace  llvm
 Diagnostic wrappers for TextAPI types for error reporting.
 
namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::driver
 
namespace  clang::driver::types
 

Macros

#define TYPE(NAME, ID, PP_TYPE, TEMP_SUFFIX, ...)   TY_##ID,
 

Enumerations

enum  clang::driver::types::ID { clang::driver::types::TY_INVALID , clang::driver::types::TY_LAST }
 

Functions

const char * clang::driver::types::getTypeName (ID Id)
 getTypeName - Return the name of the type for Id.
 
ID clang::driver::types::getPreprocessedType (ID Id)
 getPreprocessedType - Get the ID of the type for this input when it has been preprocessed, or INVALID if this input is not preprocessed.
 
ID clang::driver::types::getPrecompiledType (ID Id)
 getPrecompiledType - Get the ID of the type for this input when it has been precompiled, or INVALID if this input is not precompiled.
 
const char * clang::driver::types::getTypeTempSuffix (ID Id, bool CLStyle=false)
 getTypeTempSuffix - Return the suffix to use when creating a temp file of this type, or null if unspecified.
 
bool clang::driver::types::onlyPrecompileType (ID Id)
 onlyPrecompileType - Should this type only be precompiled.
 
bool clang::driver::types::canTypeBeUserSpecified (ID Id)
 canTypeBeUserSpecified - Can this type be specified on the command line (by the type name); this is used when forwarding commands to gcc.
 
bool clang::driver::types::appendSuffixForType (ID Id)
 appendSuffixForType - When generating outputs of this type, should the suffix be appended (instead of replacing the existing suffix).
 
bool clang::driver::types::canLipoType (ID Id)
 canLipoType - Is this type acceptable as the output of a universal build (currently, just the Nothing, Image, and Object types).
 
bool clang::driver::types::isAcceptedByClang (ID Id)
 isAcceptedByClang - Can clang handle this input type.
 
bool clang::driver::types::isAcceptedByFlang (ID Id)
 isAcceptedByFlang - Can flang handle this input type.
 
bool clang::driver::types::isDerivedFromC (ID Id)
 isDerivedFromC - Is the input derived from C.
 
bool clang::driver::types::isCXX (ID Id)
 isCXX - Is this a "C++" input (C++ and Obj-C++ sources and headers).
 
bool clang::driver::types::isLLVMIR (ID Id)
 Is this LLVM IR.
 
bool clang::driver::types::isCuda (ID Id)
 isCuda - Is this a CUDA input.
 
bool clang::driver::types::isHIP (ID Id)
 isHIP - Is this a HIP input.
 
bool clang::driver::types::isObjC (ID Id)
 isObjC - Is this an "ObjC" input (Obj-C and Obj-C++ sources and headers).
 
bool clang::driver::types::isOpenCL (ID Id)
 isOpenCL - Is this an "OpenCL" input.
 
bool clang::driver::types::isHLSL (ID Id)
 isHLSL - Is this an HLSL input.
 
bool clang::driver::types::isSrcFile (ID Id)
 isSrcFile - Is this a source file, i.e.
 
ID clang::driver::types::lookupTypeForExtension (llvm::StringRef Ext)
 lookupTypeForExtension - Lookup the type to use for the file extension Ext.
 
ID clang::driver::types::lookupTypeForTypeSpecifier (const char *Name)
 lookupTypeForTypSpecifier - Lookup the type to use for a user specified type name.
 
llvm::SmallVector< phases::ID, phases::MaxNumberOfPhases > clang::driver::types::getCompilationPhases (ID Id, phases::ID LastPhase=phases::IfsMerge)
 getCompilationPhases - Get the list of compilation phases ('Phases') to be done for type 'Id' up until including LastPhase.
 
llvm::SmallVector< phases::ID, phases::MaxNumberOfPhases > clang::driver::types::getCompilationPhases (const clang::driver::Driver &Driver, llvm::opt::DerivedArgList &DAL, ID Id)
 
ID clang::driver::types::lookupCXXTypeForCType (ID Id)
 lookupCXXTypeForCType - Lookup CXX input type that corresponds to given C type (used for clang++ emulation of g++ behaviour)
 
ID clang::driver::types::lookupHeaderTypeForSourceType (ID Id)
 Lookup header file input type that corresponds to given source file type (used for clang-cl emulation of \Yc).
 

Macro Definition Documentation

◆ TYPE

#define TYPE (   NAME,
  ID,
  PP_TYPE,
  TEMP_SUFFIX,
  ... 
)    TY_##ID,

Definition at line 25 of file Types.h.