clang 20.0.0git
Macros | Functions
DeclSpec.cpp File Reference
#include "clang/Sema/DeclSpec.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/Expr.h"
#include "clang/AST/LocInfoType.h"
#include "clang/AST/TypeLoc.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/Specifiers.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Sema/ParsedTemplate.h"
#include "clang/Sema/Sema.h"
#include "clang/Sema/SemaDiagnostic.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include <cstring>
#include "clang/Basic/OpenCLImageTypes.def"
#include "clang/Basic/HLSLIntangibleTypes.def"
#include "clang/Basic/TransformTypeTraits.def"

Go to the source code of this file.

Macros

#define GENERIC_IMAGE_TYPE(ImgType, Id)   case TST_##ImgType##_t:
 
#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId)   case TST_##Name:
 
#define TRANSFORM_TYPE_TRAIT_DEF(_, Trait)   case TST_##Trait:
 
#define TRANSFORM_TYPE_TRAIT_DEF(_, Trait)
 
#define GENERIC_IMAGE_TYPE(ImgType, Id)
 
#define HLSL_INTANGIBLE_TYPE(Name, Id, SingletonId)
 

Functions

template<class T >
static bool BadSpecifier (T TNew, T TPrev, const char *&PrevSpec, unsigned &DiagID, bool IsExtension=true)
 

Macro Definition Documentation

◆ GENERIC_IMAGE_TYPE [1/2]

#define GENERIC_IMAGE_TYPE (   ImgType,
  Id 
)    case TST_##ImgType##_t:

◆ GENERIC_IMAGE_TYPE [2/2]

#define GENERIC_IMAGE_TYPE (   ImgType,
  Id 
)
Value:
case DeclSpec::TST_##ImgType##_t: \
return #ImgType "_t";

◆ HLSL_INTANGIBLE_TYPE [1/2]

#define HLSL_INTANGIBLE_TYPE (   Name,
  Id,
  SingletonId 
)    case TST_##Name:

◆ HLSL_INTANGIBLE_TYPE [2/2]

#define HLSL_INTANGIBLE_TYPE (   Name,
  Id,
  SingletonId 
)
Value:
case DeclSpec::TST_##Name: \
return #Name;

◆ TRANSFORM_TYPE_TRAIT_DEF [1/2]

#define TRANSFORM_TYPE_TRAIT_DEF (   _,
  Trait 
)    case TST_##Trait:

◆ TRANSFORM_TYPE_TRAIT_DEF [2/2]

#define TRANSFORM_TYPE_TRAIT_DEF (   _,
  Trait 
)
Value:
case DeclSpec::TST_##Trait: \
return "__" #Trait;

Function Documentation

◆ BadSpecifier()

template<class T >
static bool BadSpecifier ( TNew,
TPrev,
const char *&  PrevSpec,
unsigned DiagID,
bool  IsExtension = true 
)
static