[cfe-commits] r146390 - in /cfe/trunk: include/clang/Basic/Builtins.def test/Sema/format-strings-scanf.c
Hans Wennborg
hans at hanshq.net
Mon Dec 12 10:33:03 PST 2011
Author: hans
Date: Mon Dec 12 12:33:02 2011
New Revision: 146390
URL: http://llvm.org/viewvc/llvm-project?rev=146390&view=rev
Log:
Fix signature of sscanf in Builtins.def
Modified:
cfe/trunk/include/clang/Basic/Builtins.def
cfe/trunk/test/Sema/format-strings-scanf.c
Modified: cfe/trunk/include/clang/Basic/Builtins.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def?rev=146390&r1=146389&r2=146390&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Builtins.def (original)
+++ cfe/trunk/include/clang/Basic/Builtins.def Mon Dec 12 12:33:02 2011
@@ -658,7 +658,7 @@
LIBBUILTIN(vsprintf, "ic*cC*a", "fP:1:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(scanf, "icC*.", "fs:0:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(fscanf, "iP*cC*.", "fs:1:", "stdio.h", ALL_LANGUAGES)
-LIBBUILTIN(sscanf, "ic*cC*.", "fs:1:", "stdio.h", ALL_LANGUAGES)
+LIBBUILTIN(sscanf, "icC*cC*.", "fs:1:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(vscanf, "icC*a", "fS:0:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(vfscanf, "iP*cC*a", "fS:1:", "stdio.h", ALL_LANGUAGES)
LIBBUILTIN(vsscanf, "ic*cC*a", "fS:1:", "stdio.h", ALL_LANGUAGES)
Modified: cfe/trunk/test/Sema/format-strings-scanf.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-scanf.c?rev=146390&r1=146389&r2=146390&view=diff
==============================================================================
--- cfe/trunk/test/Sema/format-strings-scanf.c (original)
+++ cfe/trunk/test/Sema/format-strings-scanf.c Mon Dec 12 12:33:02 2011
@@ -7,7 +7,7 @@
int fscanf(FILE * restrict, const char * restrict, ...) ;
int scanf(const char * restrict, ...) ;
-int sscanf(char * restrict, const char * restrict, ...) ;
+int sscanf(const char * restrict, const char * restrict, ...) ;
int my_scanf(const char * restrict, ...) __attribute__((__format__(__scanf__, 1, 2)));
int vscanf(const char * restrict, va_list);
More information about the cfe-commits
mailing list