summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/TokenKinds.h
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-06 15:52:13 +0000
committerAlp Toker <alp@nuanti.com>2014-01-06 15:52:13 +0000
commit9d73b9383714da5ec2e6a7d2f92d487c46a5d552 (patch)
tree17b4d53e216c3eef7c9fe7b3ecd918c1e9770458 /include/clang/Basic/TokenKinds.h
parentb8951e782399c301c6cedff8c8d7a3aecf968368 (diff)
Prospective MSVC 2010 build fix
Try to fix Compiler Error C2011 following r198607 by removing enum from 'enum TokenKind' parameter types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TokenKinds.h')
-rw-r--r--include/clang/Basic/TokenKinds.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Basic/TokenKinds.h b/include/clang/Basic/TokenKinds.h
index 5ba168e215..bca267fe50 100644
--- a/include/clang/Basic/TokenKinds.h
+++ b/include/clang/Basic/TokenKinds.h
@@ -54,7 +54,7 @@ enum OnOffSwitch {
///
/// The name of a token will be an internal name (such as "l_square")
/// 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
/// '!' 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
/// digraph). For the actual spelling of a given Token, use
/// 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
/// 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.
inline bool isAnyIdentifier(TokenKind K) {