summaryrefslogtreecommitdiffstats
path: root/clang/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/Parse/ParseDecl.cpp')
-rw-r--r--clang/Parse/ParseDecl.cpp11
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);
OpenPOWER on IntegriCloud