clang API Documentation

Defines | 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.

Defines

#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 []

Define Documentation

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

Variable Documentation

const char* const TokNames[] [static]

Definition at line 18 of file TokenKinds.cpp.

Referenced by clang::tok::getTokenName().