diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-11-08 06:54:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-11-08 06:54:53 +0000 |
| commit | 289ab7bb1dad4ab0ab60753feeada754194cb9a6 (patch) | |
| tree | 13c5c5db5b026e8f4befd497312ccbbc18c81ec3 /clang/Parse/ParseDecl.cpp | |
| parent | b26b665742fff7d44585805020365497bd9a6d96 (diff) | |
| download | bcm5719-llvm-289ab7bb1dad4ab0ab60753feeada754194cb9a6.tar.gz bcm5719-llvm-289ab7bb1dad4ab0ab60753feeada754194cb9a6.zip | |
rename SemaDecl.cpp/h to SemaDeclSpec.cpp/h
llvm-svn: 39149
Diffstat (limited to 'clang/Parse/ParseDecl.cpp')
| -rw-r--r-- | clang/Parse/ParseDecl.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/Parse/ParseDecl.cpp b/clang/Parse/ParseDecl.cpp index b3cb9353a72..6d184c50372 100644 --- a/clang/Parse/ParseDecl.cpp +++ b/clang/Parse/ParseDecl.cpp @@ -12,7 +12,7 @@ //===----------------------------------------------------------------------===// #include "clang/Parse/Parser.h" -#include "clang/Parse/SemaDecl.h" +#include "clang/Parse/SemaDeclSpec.h" using namespace llvm; using namespace clang; @@ -83,6 +83,10 @@ void Parser::ParseDeclaration(unsigned Context) { // TODO: emit error on 'int;' or 'const enum foo;'. // if (!DS.isMissingDeclaratorOk()) Diag(...); + // TODO: Register 'struct foo;' with the type system as an opaque struct. + // TODO: Check that we don't already have 'union foo;' or something else + // that conflicts. + ConsumeToken(); return; } @@ -141,8 +145,9 @@ ParseInitDeclaratorListAfterFirstDeclarator(Declarator &D) { } } - // Inform the current actions module that we just parsed a declarator. - // TODO: pass asm & attributes. + // Inform the current actions module that we just parsed a declarator or + // invoke semantic analysis for this declarator. + // FIXME: pass asm & attributes. LastDeclInGroup = Actions.ParseDeclarator(CurScope, D, Init.Val, LastDeclInGroup); |

