[cfe-commits] r153008 - in /cfe/trunk: lib/Sema/SemaFixItUtils.cpp test/FixIt/fixit-vexing-parse-cxx0x.cpp test/FixIt/fixit-vexing-parse.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sun Mar 18 09:28:32 PDT 2012


On 18.03.2012, at 03:56, David Blaikie wrote:

> Author: dblaikie
> Date: Sat Mar 17 21:56:47 2012
> New Revision: 153008
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=153008&view=rev
> Log:
> Use character literals for vexing initialization fixit hints.
> 
> Instead of suggesting " = 0" for "char c();", suggest " = '\0'", and similarly
> for other char types (wide, 16, and 32). Add tests for all these, and since
> this means testing such hints under C++0x, add tests for some untested C++0x
> hint cases in the existing code, including suggesting nullptr for pointer
> initialization.

Shouldn't we just hint to {} in C++11?

Sebastian



More information about the cfe-commits mailing list