diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-01-25 07:29:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-01-25 07:29:02 +0000 |
| commit | c1915e2052f5874d030953e01adbf565cbf74b26 (patch) | |
| tree | 4c913da5a185ff47579cdb5a32cfbd328ab4cb9c /clang/Sema/Sema.h | |
| parent | 5f521506aa4689aceb62d425806821e184a39fbe (diff) | |
| download | bcm5719-llvm-c1915e2052f5874d030953e01adbf565cbf74b26.tar.gz bcm5719-llvm-c1915e2052f5874d030953e01adbf565cbf74b26.zip | |
Create EnumConstantDecl objects for each enum value, and fill them into
the EnumDecl when the enum type is complete. This allows us to detect
redefinitions of enums.
llvm-svn: 39300
Diffstat (limited to 'clang/Sema/Sema.h')
| -rw-r--r-- | clang/Sema/Sema.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/Sema/Sema.h b/clang/Sema/Sema.h index cc13aa8f467..b7642efc64d 100644 --- a/clang/Sema/Sema.h +++ b/clang/Sema/Sema.h @@ -90,6 +90,11 @@ public: Declarator &D, ExprTy *BitfieldWidth); virtual void ParseRecordBody(SourceLocation RecLoc, DeclTy *TagDecl, DeclTy **Fields, unsigned NumFields); + virtual DeclTy *ParseEnumConstant(Scope *S, DeclTy *EnumDecl, + SourceLocation IdLoc, IdentifierInfo *Id, + SourceLocation EqualLoc, ExprTy *Val); + virtual void ParseEnumBody(SourceLocation EnumLoc, DeclTy *EnumDecl, + DeclTy **Elements, unsigned NumElements); //===--------------------------------------------------------------------===// // Statement Parsing Callbacks: SemaStmt.cpp. |

