[cfe-commits] r68725 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Eli Friedman
eli.friedman at gmail.com
Thu Apr 9 14:26:43 PDT 2009
Author: efriedma
Date: Thu Apr 9 16:26:42 2009
New Revision: 68725
URL: http://llvm.org/viewvc/llvm-project?rev=68725&view=rev
Log:
Add some FIXMEs for missing checks.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=68725&r1=68724&r2=68725&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Thu Apr 9 16:26:42 2009
@@ -934,6 +934,13 @@
/// ParsedFreeStandingDeclSpec - This method is invoked when a declspec with
/// no declarator (e.g. "struct foo;") is parsed.
Sema::DeclPtrTy Sema::ParsedFreeStandingDeclSpec(Scope *S, DeclSpec &DS) {
+ // FIXME: Error on auto/register at file scope
+ // FIXME: Error on inline/virtual/explicit
+ // FIXME: Error on invalid restrict
+ // FIXME: Warn on useless const/volatile
+ // FIXME: Warn on useless static/extern/typedef/private_extern/mutable
+ // FIXME: Warn on useless attributes
+
TagDecl *Tag = 0;
if (DS.getTypeSpecType() == DeclSpec::TST_class ||
DS.getTypeSpecType() == DeclSpec::TST_struct ||
More information about the cfe-commits
mailing list