]> granicus.if.org Git - clang/commitdiff
[C++11] Expand and eliminate the LLVM_ENUM_INT_TYPE() macro
authorAlp Toker <alp@nuanti.com>
Sun, 2 Mar 2014 03:20:16 +0000 (03:20 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 2 Mar 2014 03:20:16 +0000 (03:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202606 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Comment.h
include/clang/AST/Expr.h
include/clang/Basic/SourceLocation.h
lib/Sema/SemaAttr.cpp

index 4ad575b3b70febf440de759488395df8fd602a0a..50e9196b1a9d62adec9d4d57fa2f23d834fba06d 100644 (file)
@@ -699,7 +699,7 @@ private:
   unsigned ParamIndex;
 
 public:
-  enum LLVM_ENUM_INT_TYPE(unsigned) {
+  enum : unsigned {
     InvalidParamIndex = ~0U,
     VarArgParamIndex = ~0U/*InvalidParamIndex*/ - 1U
   };
index 0db3166002eb4d665ccd38d3f9f820ecc22c5b58..dcc24b93432aaa658e6b2c4991ccfd5db6a6a3d2 100644 (file)
@@ -4636,7 +4636,7 @@ class PseudoObjectExpr : public Expr {
 public:
   /// NoResult - A value for the result index indicating that there is
   /// no semantic result.
-  enum LLVM_ENUM_INT_TYPE(unsigned) { NoResult = ~0U };
+  enum : unsigned { NoResult = ~0U };
 
   static PseudoObjectExpr *Create(const ASTContext &Context, Expr *syntactic,
                                   ArrayRef<Expr*> semantic,
index 0fecfb868b42e362c83232c988b407f4a69ab6d7..01ca9a5ac18f8c171f2d989d6232cff09f73e672 100644 (file)
@@ -89,7 +89,7 @@ class SourceLocation {
   friend class SourceManager;
   friend class ASTReader;
   friend class ASTWriter;
-  enum LLVM_ENUM_INT_TYPE(unsigned) {
+  enum : unsigned {
     MacroIDBit = 1U << 31
   };
 public:
index 6c6ba18018ffc688b71b4a66d5e249511ae36a4c..2e344ff930637b62d138263d27a13263b4a10ed2 100644 (file)
@@ -365,7 +365,7 @@ void Sema::AddCFAuditedAttribute(Decl *D) {
 }
 
 typedef std::vector<std::pair<unsigned, SourceLocation> > VisStack;
-enum LLVM_ENUM_INT_TYPE(unsigned) { NoVisibility = ~0U };
+enum : unsigned { NoVisibility = ~0U };
 
 void Sema::AddPushedVisibilityAttribute(Decl *D) {
   if (!VisContext)