projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84212df
)
Support C++11 scoped enums in NamedDecl::isCXXClassMember()
author
Alp Toker
<alp@nuanti.com>
Sat, 31 May 2014 06:11:09 +0000
(06:11 +0000)
committer
Alp Toker
<alp@nuanti.com>
Sat, 31 May 2014 06:11:09 +0000
(06:11 +0000)
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
clang/include/clang/AST/Decl.h
patch
|
blob
|
history
diff --git
a/clang/include/clang/AST/Decl.h
b/clang/include/clang/AST/Decl.h
index
f654791
..
ba7645e
100644
(file)
--- 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->get
Paren
t();
+ DC = DC->get
RedeclContex
t();
return DC->isRecord();
}