clang  6.0.0svn
Macros | Variables
TokenKinds.cpp File Reference
#include "clang/Basic/TokenKinds.h"
#include "llvm/Support/ErrorHandling.h"
#include "clang/Basic/TokenKinds.def"
Include dependency graph for TokenKinds.cpp:

Go to the source code of this file.

Macros

#define TOK(X)   #X,
 
#define KEYWORD(X, Y)   #X,
 
#define PUNCTUATOR(X, Y)   case X: return Y;
 
#define KEYWORD(X, Y)   case kw_ ## X: return #X;
 

Variables

static const char *const TokNames []
 

Macro Definition Documentation

◆ KEYWORD [1/2]

#define KEYWORD (   X,
 
)    #X,

◆ KEYWORD [2/2]

#define KEYWORD (   X,
 
)    case kw_ ## X: return #X;

◆ PUNCTUATOR

#define PUNCTUATOR (   X,
 
)    case X: return Y;

◆ TOK

#define TOK (   X)    #X,

Variable Documentation

◆ TokNames

const char* const TokNames[]
static
Initial value:
= {
#define TOK(X)
#define KEYWORD(X,Y)
nullptr
}

Definition at line 18 of file TokenKinds.cpp.

Referenced by clang::tok::getTokenName(), and clang::format::getTokenTypeName().