[cfe-commits] r148324 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaChecking.cpp lib/Sema/SemaExprObjC.cpp test/SemaObjC/format-strings-objc.m

Jean-Daniel Dupas devlists at shadowlab.org
Mon Jan 30 10:50:40 PST 2012


Le 30 janv. 2012 à 18:59, Chris Lattner a écrit :

> 
> On Jan 30, 2012, at 8:37 AM, Nico Weber wrote:
> 
>> Cool!
>> 
>> One thing that this warned on in the chromium source was:
>> 
>> ../../webkit/plugins/npapi/plugin_web_event_converter_mac.mm:213:37:
>> error: format specifies type 'wchar_t *' (aka 'wchar_t *') but the
> 
> Unrelated to the root issue, but why are we aka'ing to the same type?
> 
> -Chris



Because the FormatString checker build the type description itself (instead of using diagnostic facility, see FormatString.cpp:374), probably to get a type that match as much as possible the type defined in printf/scanf manual, and it look like it is not smart enough to detect when the underlying type need aka, or not.

-- Jean-Daniel








More information about the cfe-commits mailing list