[C++11] Drop legacy conditionals for TokenKind's underlying type

This relies on forward declaration of enums.

llvm-svn: 202605
This commit is contained in:
Alp Toker 2014-03-02 02:26:52 +00:00
parent bac285f588
commit 7d659c8563
2 changed files with 1 additions and 6 deletions

View File

@ -18,9 +18,6 @@
#include "clang/Basic/DiagnosticIDs.h"
#include "clang/Basic/DiagnosticOptions.h"
#include "clang/Basic/SourceLocation.h"
#if !LLVM_HAS_STRONG_ENUMS
#include "clang/Basic/TokenKinds.h"
#endif
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
@ -38,11 +35,9 @@ namespace clang {
class Preprocessor;
class DiagnosticErrorTrap;
class StoredDiagnostic;
#if LLVM_HAS_STRONG_ENUMS
namespace tok {
enum TokenKind : unsigned short;
}
#endif
/// \brief Annotates a diagnostic with some code that should be
/// inserted, removed, or replaced to fix the problem.

View File

@ -22,7 +22,7 @@ namespace clang {
namespace tok {
/// \brief Provides a simple uniform namespace for tokens from all C languages.
enum TokenKind LLVM_ENUM_INT_TYPE(unsigned short) {
enum TokenKind : unsigned short {
#define TOK(X) X,
#include "clang/Basic/TokenKinds.def"
NUM_TOKENS