summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-05-16 07:06:02 +0000
committerMike Stump <mrs@apple.com>2009-05-16 07:06:02 +0000
commit6814d1c12624453138ea5451e2130e635fb9595e (patch)
treea31bd91e053576cb197edced1967d977cf4307bb /clang/lib/Sema/SemaDecl.cpp
parentf0d32374741f608c92d536cbb1a394ce069ee648 (diff)
downloadbcm5719-llvm-6814d1c12624453138ea5451e2130e635fb9595e.tar.gz
bcm5719-llvm-6814d1c12624453138ea5451e2130e635fb9595e.zip
Implement a FIXME, we now pass in the locations of the braces for enums.
llvm-svn: 71930
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 860dda001f1..1ed063ab400 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -4215,9 +4215,8 @@ Sema::DeclPtrTy Sema::ActOnEnumConstant(Scope *S, DeclPtrTy theEnumDecl,
return DeclPtrTy::make(New);
}
-// FIXME: For consistency with ActOnFields(), we should have the parser
-// pass in the source location for the left/right braces.
-void Sema::ActOnEnumBody(SourceLocation EnumLoc, DeclPtrTy EnumDeclX,
+void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceLocation LBraceLoc,
+ SourceLocation RBraceLoc, DeclPtrTy EnumDeclX,
DeclPtrTy *Elements, unsigned NumElements) {
EnumDecl *Enum = cast<EnumDecl>(EnumDeclX.getAs<Decl>());
QualType EnumType = Context.getTypeDeclType(Enum);
OpenPOWER on IntegriCloud