ΒΆconst char* getPunctuatorSpelling(
    clang::tok::TokenKind Kind)

Description

Determines the spelling of simple punctuation tokens like '!' or '%', and returns NULL for literal and annotation tokens. This routine only retrieves the "simple" spelling of the token, and will not produce any alternative spellings (e.g., a digraph). For the actual spelling of a given Token, use Preprocessor::getSpelling().

Declared at: clang/include/clang/Basic/TokenKinds.h:65

Parameters

clang::tok::TokenKind Kind