From 5c649d3a91dbf09e47466ab876f34f56820224b1 Mon Sep 17 00:00:00 2001 From: Bruno Ricci Date: Fri, 21 Sep 2018 13:11:39 +0000 Subject: [PATCH] [AST][NFC] Remove a superfluous enum in ObjCMethodDeclBitfields added in r338641 I originally added this enum to avoid including Basic/IdentifierTable.h in AST/DeclBase.h. However I did not realise it is already included transitively by AST/DeclarationName.h. Therefore remove this enum and explicitly include Basic/IdentifierTable.h llvm-svn: 342731 --- clang/include/clang/AST/DeclBase.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/clang/include/clang/AST/DeclBase.h b/clang/include/clang/AST/DeclBase.h index 0d52120..c174242 100644 --- a/clang/include/clang/AST/DeclBase.h +++ b/clang/include/clang/AST/DeclBase.h @@ -16,6 +16,7 @@ #include "clang/AST/AttrIterator.h" #include "clang/AST/DeclarationName.h" +#include "clang/Basic/IdentifierTable.h" #include "clang/Basic/LLVM.h" #include "clang/Basic/SourceLocation.h" #include "clang/Basic/Specifiers.h" @@ -1558,13 +1559,6 @@ class DeclContext { class ObjCMethodDeclBitfields { friend class ObjCMethodDecl; - /// This is needed for the bitwidth of Family below but - /// is defined in Basic/IdentifierTable.h which we do not include. - /// To avoid mismatches between the two definitions we have - /// a static_assert in the ctor of ObjCMethodDecl which checks - /// that these two ObjCMethodFamilyBitWidth are equal. - enum { ObjCMethodFamilyBitWidth = 4 }; - /// For the bits in DeclContextBitfields. uint64_t : NumDeclContextBits; -- 2.7.4