[cfe-commits] Note and FixIt for additional case of vexing parse

Nikola Smiljanic popizdeh at gmail.com
Wed Jun 27 14:10:10 PDT 2012


The patch adds a note and a fixit for the missing case of vexing parse
(it's even covered here with clang output
http://en.wikipedia.org/wiki/Most_vexing_parse).
fixit-vexing-parse.cpp and fixit-vexing-parse-cxx0x.cpp contain one
additional test each, since the wording is different for c++11. Other
changes are only fixes for failing tests.

The text for note_replace_parens_for_variable_declaration is copied
from DiagnosticSemaKinds.td verbatim. I couldn't use the existing note
from Sema since Parse code doesn't know about it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vexing-note-fixit
Type: application/octet-stream
Size: 11524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120627/4796f36c/attachment.obj>


More information about the cfe-commits mailing list