clang 22.0.0git
Types.cpp File Reference
#include "clang/Driver/Types.h"
#include "clang/Driver/Driver.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringSwitch.h"
#include <cassert>
#include <cstring>
#include "clang/Driver/Types.def"

Go to the source code of this file.

Classes

struct  TypeInfo
class  TypeInfo::PhasesBitSet

Macros

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

Functions

static const TypeInfogetInfo (unsigned id)
static bool isPreprocessedModuleType (ID Id)
static bool isPreprocessedHeaderUnitType (ID Id)

Variables

static constexpr TypeInfo TypeInfos []
static const unsigned numTypes = std::size(TypeInfos)

Macro Definition Documentation

◆ TYPE

#define TYPE ( NAME,
ID,
PP_TYPE,
TEMP_SUFFIX,
... )
Value:
{ NAME, TEMP_SUFFIX, TY_##PP_TYPE, { __VA_ARGS__ }, },

Function Documentation

◆ getInfo()

◆ isPreprocessedHeaderUnitType()

bool isPreprocessedHeaderUnitType ( ID Id)
static

Definition at line 65 of file Types.cpp.

Referenced by clang::driver::types::getPrecompiledType().

◆ isPreprocessedModuleType()

bool isPreprocessedModuleType ( ID Id)
static

Variable Documentation

◆ numTypes

const unsigned numTypes = std::size(TypeInfos)
static

Definition at line 42 of file Types.cpp.

Referenced by getInfo(), and clang::driver::types::lookupTypeForTypeSpecifier().

◆ TypeInfos

TypeInfo TypeInfos[]
staticconstexpr
Initial value:
= {
#define TYPE(NAME, ID, PP_TYPE, TEMP_SUFFIX, ...) \
}

Definition at line 36 of file Types.cpp.

Referenced by getInfo().