[cfe-commits] r97929 - /cfe/trunk/lib/Sema/JumpDiagnostics.cpp

Douglas Gregor dgregor at apple.com
Sun Mar 7 18:49:08 PST 2010


Author: dgregor
Date: Sun Mar  7 20:49:08 2010
New Revision: 97929

URL: http://llvm.org/viewvc/llvm-project?rev=97929&view=rev
Log:
Make a note for the C++0x future, when we'll have to revisit the jump-diagnostics handling for variables without initializers

Modified:
    cfe/trunk/lib/Sema/JumpDiagnostics.cpp

Modified: cfe/trunk/lib/Sema/JumpDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/JumpDiagnostics.cpp?rev=97929&r1=97928&r2=97929&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/JumpDiagnostics.cpp (original)
+++ cfe/trunk/lib/Sema/JumpDiagnostics.cpp Sun Mar  7 20:49:08 2010
@@ -85,6 +85,8 @@
       return diag::note_protected_by_cleanup;
     if (VD->hasAttr<BlocksAttr>())
       return diag::note_protected_by___block;
+    // FIXME: In C++0x, we have to check more conditions than "did we
+    // just give it an initializer?". See 6.7p3.
     if (isCPlusPlus && VD->hasLocalStorage() && VD->hasInit())
       return diag::note_protected_by_variable_init;
     





More information about the cfe-commits mailing list