|
@@ -54,7 +54,7 @@ enum OnOffSwitch {
|
|
///
|
|
///
|
|
/// The name of a token will be an internal name (such as "l_square")
|
|
/// The name of a token will be an internal name (such as "l_square")
|
|
/// and should not be used as part of diagnostic messages.
|
|
/// and should not be used as part of diagnostic messages.
|
|
-const char *getTokenName(enum TokenKind Kind) LLVM_READNONE;
|
|
|
|
|
|
+const char *getTokenName(TokenKind Kind) LLVM_READNONE;
|
|
|
|
|
|
/// \brief Determines the spelling of simple punctuation tokens like
|
|
/// \brief Determines the spelling of simple punctuation tokens like
|
|
/// '!' or '%', and returns NULL for literal and annotation tokens.
|
|
/// '!' or '%', and returns NULL for literal and annotation tokens.
|
|
@@ -63,11 +63,11 @@ const char *getTokenName(enum TokenKind Kind) LLVM_READNONE;
|
|
/// and will not produce any alternative spellings (e.g., a
|
|
/// and will not produce any alternative spellings (e.g., a
|
|
/// digraph). For the actual spelling of a given Token, use
|
|
/// digraph). For the actual spelling of a given Token, use
|
|
/// Preprocessor::getSpelling().
|
|
/// Preprocessor::getSpelling().
|
|
-const char *getPunctuatorSpelling(enum TokenKind Kind) LLVM_READNONE;
|
|
|
|
|
|
+const char *getPunctuatorSpelling(TokenKind Kind) LLVM_READNONE;
|
|
|
|
|
|
/// \brief Determines the spelling of simple keyword and contextual keyword
|
|
/// \brief Determines the spelling of simple keyword and contextual keyword
|
|
/// tokens like 'int' and 'dynamic_cast'. Returns NULL for other token kinds.
|
|
/// tokens like 'int' and 'dynamic_cast'. Returns NULL for other token kinds.
|
|
-const char *getKeywordSpelling(enum TokenKind Kind) LLVM_READNONE;
|
|
|
|
|
|
+const char *getKeywordSpelling(TokenKind Kind) LLVM_READNONE;
|
|
|
|
|
|
/// \brief Return true if this is a raw identifier or an identifier kind.
|
|
/// \brief Return true if this is a raw identifier or an identifier kind.
|
|
inline bool isAnyIdentifier(TokenKind K) {
|
|
inline bool isAnyIdentifier(TokenKind K) {
|