summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-31 06:11:09 +0000
committerAlp Toker <alp@nuanti.com>2014-05-31 06:11:09 +0000
commit363e7c4f42d8517c0df64724fa0fd650ec67c438 (patch)
tree955fbece438896b6f944af9c1ece20d04e240279 /clang
parent84212df7c52662e2048a8d7eff7cd3a368ddf343 (diff)
downloadbcm5719-llvm-363e7c4f42d8517c0df64724fa0fd650ec67c438.tar.gz
bcm5719-llvm-363e7c4f42d8517c0df64724fa0fd650ec67c438.zip
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. llvm-svn: 209970
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/AST/Decl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index f6547910038..ba7645e4b7c 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/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<EnumDecl>(DC))
- DC = DC->getParent();
+ DC = DC->getRedeclContext();
return DC->isRecord();
}
OpenPOWER on IntegriCloud