From df3c2b88600e2e780cf41c628c871b8d2cd5e6e2 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 31 May 2014 06:11:09 +0000 Subject: [PATCH] Support C++11 scoped enums in NamedDecl::isCXXClassMember() Resolves an old FIXME. No callers depend on this giving the right answer so I haven't been able to cook up a useful test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209970 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Decl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index f654791003..ba7645e4b7 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -204,9 +204,8 @@ public: // C++0x [class.mem]p1: // The enumerators of an unscoped enumeration defined in // the class are members of the class. - // FIXME: support C++0x scoped enumerations. if (isa(DC)) - DC = DC->getParent(); + DC = DC->getRedeclContext(); return DC->isRecord(); } -- 2.40.0