]> granicus.if.org Git - clang/commitdiff
Add comment back that Argiris pointed out that I mistakenly removed (the comments...
authorTed Kremenek <kremenek@apple.com>
Fri, 5 Sep 2008 17:39:33 +0000 (17:39 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 5 Sep 2008 17:39:33 +0000 (17:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55841 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index df9118238337bc164baa22c36d280845aea089b1..75fcc5173ed4a8d5413e968133a05fa060c830ab 100644 (file)
@@ -1766,6 +1766,7 @@ Sema::DeclTy *Sema::ActOnTag(Scope *S, unsigned TagType, TagKind TK,
     // FIXME: Tag decls should be chained to any simultaneous vardecls, e.g.:
     // struct X { int A; } D;    D should chain to X.
     if (getLangOptions().CPlusPlus)
+      // FIXME: Look for a way to use RecordDecl for simple structs.
       New = CXXRecordDecl::Create(Context, Kind, CurContext, Loc, Name);
     else
       New = RecordDecl::Create(Context, Kind, CurContext, Loc, Name);
@@ -1878,6 +1879,7 @@ Sema::DeclTy *Sema::ActOnTagStruct(Scope *S, TagDecl::TagKind Kind, TagKind TK,
   // FIXME: Tag decls should be chained to any simultaneous vardecls, e.g.:
   // struct X { int A; } D;    D should chain to X.
   if (getLangOptions().CPlusPlus)
+    // FIXME: Look for a way to use RecordDecl for simple structs.
     New = CXXRecordDecl::Create(Context, Kind, CurContext, Loc, Name,
                                 dyn_cast_or_null<CXXRecordDecl>(PrevDecl));
   else