]> granicus.if.org Git - clang/commitdiff
Add some FIXMEs to the ASTReader code
authorDouglas Gregor <dgregor@apple.com>
Wed, 3 Oct 2012 18:36:10 +0000 (18:36 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 3 Oct 2012 18:36:10 +0000 (18:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReaderDecl.cpp

index c291b4b2401a41296902ba99956cef14257cdc6b..54344051dc0f7fbb0bfc90919d8b5fc0562bea64 100644 (file)
@@ -322,6 +322,8 @@ void ASTDeclReader::Visit(Decl *D) {
     // FunctionDecl's body was written last after all other Stmts/Exprs.
     // We only read it if FD doesn't already have a body (e.g., from another
     // module).
+    // FIXME: Also consider = default and = delete.
+    // FIXME: Can we diagnose ODR violations somehow?
     if (Record[Idx++] &&
         (!Reader.getContext().getLangOpts().Modules || !FD->hasBody()))
       FD->setLazyBody(GetCurrentCursorOffset());