r204334 - Make format-strings-fixit.c aware of "%hu" uint16_t on wchar_t for targeting win32.

Jordan Rose jordan_rose at apple.com
Thu Mar 20 08:53:06 PDT 2014


Thanks, Takumi. Sorry for the breakage!

On Mar 20, 2014, at 3:54 , NAKAMURA Takumi <geek4civic at gmail.com> wrote:

> Author: chapuni
> Date: Thu Mar 20 05:54:53 2014
> New Revision: 204334
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=204334&view=rev
> Log:
> Make format-strings-fixit.c aware of "%hu" uint16_t on wchar_t for targeting win32.
> 
> Modified:
>    cfe/trunk/test/Sema/format-strings-fixit.c
> 
> Modified: cfe/trunk/test/Sema/format-strings-fixit.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/format-strings-fixit.c?rev=204334&r1=204333&r2=204334&view=diff
> ==============================================================================
> --- cfe/trunk/test/Sema/format-strings-fixit.c (original)
> +++ cfe/trunk/test/Sema/format-strings-fixit.c Thu Mar 20 05:54:53 2014
> @@ -225,8 +225,8 @@ void test2(int intSAParm[static 2]) {
> // CHECK: scanf("%99s", str);
> // CHECK: scanf("%s", vstr);
> // CHECK: scanf("%99s", str);
> -// CHECK: scanf("%d", wstr);
> -// CHECK: scanf("%d", wstr);
> +// CHECK: scanf("{{%d|%hu}}", wstr);
> +// CHECK: scanf("{{%d|%hu}}", wstr);
> // CHECK: scanf("%99s", str);
> // CHECK: scanf("%hd", &shortVar);
> // CHECK: scanf("%hu", &uShortVar);
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list