[cfe-commits] r146367 - in /cfe/trunk: include/clang/Basic/Builtins.def test/Sema/format-strings-scanf.c

Hans Wennborg hans at chromium.org
Mon Dec 12 10:38:58 PST 2011

On Mon, Dec 12, 2011 at 6:15 PM, Anna Zaks <ganna at apple.com> wrote:
>> +#include <stdarg.h>
> Is it possible to fake the header inclusion here?

I don't know. I modeled this on test/Sema/format-strings.c which
includes it too. If someone has a good idea of how to get rid of it,
that would be nice.

>> -int sscanf(const char * restrict, const char * restrict, ...) ;
>> +int sscanf(char * restrict, const char * restrict, ...) ;
> Why the change of the signature here? Shouldn't the first parameter be of type 'const char *restrict' (same for vsscanf below)?

I must have had a slight brain malfunction :) Fixed in r146390.


More information about the cfe-commits mailing list