//===--- TokenKinds.cpp - Token Kinds Support -----------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file implements the TokenKind enum and support functions. // //===----------------------------------------------------------------------===// #include "clang/Basic/TokenKinds.h" #include "llvm/Support/ErrorHandling.h" usingnamespaceclang; static const char * const TokNames[] = …; const char *tok::getTokenName(TokenKind Kind) { … } const char *tok::getPunctuatorSpelling(TokenKind Kind) { … } const char *tok::getKeywordSpelling(TokenKind Kind) { … } const char *tok::getPPKeywordSpelling(tok::PPKeywordKind Kind) { … } bool tok::isAnnotation(TokenKind Kind) { … } bool tok::isPragmaAnnotation(TokenKind Kind) { … }