clang  14.0.0git
Macros | Variables
TypeTraits.cpp File Reference
#include "clang/Basic/TypeTraits.h"
#include "llvm/Support/ErrorHandling.h"
#include <cassert>
#include "clang/Basic/TokenKinds.def"
Include dependency graph for TypeTraits.cpp:

Go to the source code of this file.

Macros

#define TYPE_TRAIT_1(Spelling, Name, Key)   #Name,
 
#define TYPE_TRAIT_2(Spelling, Name, Key)   #Name,
 
#define TYPE_TRAIT_N(Spelling, Name, Key)   #Name,
 
#define TYPE_TRAIT_1(Spelling, Name, Key)   #Spelling,
 
#define TYPE_TRAIT_2(Spelling, Name, Key)   #Spelling,
 
#define TYPE_TRAIT_N(Spelling, Name, Key)   #Spelling,
 
#define ARRAY_TYPE_TRAIT(Spelling, Name, Key)   #Name,
 
#define ARRAY_TYPE_TRAIT(Spelling, Name, Key)   #Spelling,
 
#define UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key)   #Name,
 
#define CXX11_UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key)   #Name,
 
#define UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key)   #Spelling,
 
#define CXX11_UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key)   #Spelling,
 

Variables

static constexpr const char * TypeTraitNames []
 
static constexpr const char * TypeTraitSpellings []
 
static constexpr const char * ArrayTypeTraitNames []
 
static constexpr const char * ArrayTypeTraitSpellings []
 
static constexpr const char * UnaryExprOrTypeTraitNames []
 
static constexpr const char * UnaryExprOrTypeTraitSpellings []
 

Macro Definition Documentation

◆ ARRAY_TYPE_TRAIT [1/2]

#define ARRAY_TYPE_TRAIT (   Spelling,
  Name,
  Key 
)    #Name,

◆ ARRAY_TYPE_TRAIT [2/2]

#define ARRAY_TYPE_TRAIT (   Spelling,
  Name,
  Key 
)    #Spelling,

◆ CXX11_UNARY_EXPR_OR_TYPE_TRAIT [1/2]

#define CXX11_UNARY_EXPR_OR_TYPE_TRAIT (   Spelling,
  Name,
  Key 
)    #Name,

◆ CXX11_UNARY_EXPR_OR_TYPE_TRAIT [2/2]

#define CXX11_UNARY_EXPR_OR_TYPE_TRAIT (   Spelling,
  Name,
  Key 
)    #Spelling,

◆ TYPE_TRAIT_1 [1/2]

#define TYPE_TRAIT_1 (   Spelling,
  Name,
  Key 
)    #Name,

◆ TYPE_TRAIT_1 [2/2]

#define TYPE_TRAIT_1 (   Spelling,
  Name,
  Key 
)    #Spelling,

◆ TYPE_TRAIT_2 [1/2]

#define TYPE_TRAIT_2 (   Spelling,
  Name,
  Key 
)    #Name,

◆ TYPE_TRAIT_2 [2/2]

#define TYPE_TRAIT_2 (   Spelling,
  Name,
  Key 
)    #Spelling,

◆ TYPE_TRAIT_N [1/2]

#define TYPE_TRAIT_N (   Spelling,
  Name,
  Key 
)    #Name,

◆ TYPE_TRAIT_N [2/2]

#define TYPE_TRAIT_N (   Spelling,
  Name,
  Key 
)    #Spelling,

◆ UNARY_EXPR_OR_TYPE_TRAIT [1/2]

#define UNARY_EXPR_OR_TYPE_TRAIT (   Spelling,
  Name,
  Key 
)    #Name,

◆ UNARY_EXPR_OR_TYPE_TRAIT [2/2]

#define UNARY_EXPR_OR_TYPE_TRAIT (   Spelling,
  Name,
  Key 
)    #Spelling,

Variable Documentation

◆ ArrayTypeTraitNames

constexpr const char* ArrayTypeTraitNames[]
staticconstexpr
Initial value:
= {
#define ARRAY_TYPE_TRAIT(Spelling, Name, Key)
}

Definition at line 36 of file TypeTraits.cpp.

Referenced by clang::getTraitName().

◆ ArrayTypeTraitSpellings

constexpr const char* ArrayTypeTraitSpellings[]
staticconstexpr
Initial value:
= {
#define ARRAY_TYPE_TRAIT(Spelling, Name, Key)
}

Definition at line 41 of file TypeTraits.cpp.

Referenced by clang::getTraitSpelling().

◆ TypeTraitNames

constexpr const char* TypeTraitNames[]
staticconstexpr
Initial value:
= {
#define TYPE_TRAIT_1(Spelling, Name, Key)
#define TYPE_TRAIT_2(Spelling, Name, Key)
#define TYPE_TRAIT_N(Spelling, Name, Key)
}

Definition at line 18 of file TypeTraits.cpp.

Referenced by clang::getTraitName().

◆ TypeTraitSpellings

constexpr const char* TypeTraitSpellings[]
staticconstexpr
Initial value:
= {
#define TYPE_TRAIT_1(Spelling, Name, Key)
#define TYPE_TRAIT_2(Spelling, Name, Key)
#define TYPE_TRAIT_N(Spelling, Name, Key)
}

Definition at line 27 of file TypeTraits.cpp.

Referenced by clang::getTraitSpelling().

◆ UnaryExprOrTypeTraitNames

constexpr const char* UnaryExprOrTypeTraitNames[]
staticconstexpr
Initial value:
= {
#define UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key)
#define CXX11_UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key)
}

Definition at line 46 of file TypeTraits.cpp.

Referenced by clang::getTraitName().

◆ UnaryExprOrTypeTraitSpellings

constexpr const char* UnaryExprOrTypeTraitSpellings[]
staticconstexpr
Initial value:
= {
#define UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key)
#define CXX11_UNARY_EXPR_OR_TYPE_TRAIT(Spelling, Name, Key)
}

Definition at line 52 of file TypeTraits.cpp.

Referenced by clang::getTraitSpelling().