[cfe-commits] r144272 - /cfe/trunk/tools/c-index-test/c-index-test.c

Ted Kremenek kremenek at apple.com
Thu Nov 10 07:02:06 PST 2011


Thanks so much!

Sent from my iPad

On Nov 10, 2011, at 1:30 AM, NAKAMURA Takumi <geek4civic at gmail.com> wrote:

> Author: chapuni
> Date: Thu Nov 10 03:30:15 2011
> New Revision: 144272
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=144272&view=rev
> Log:
> c-index-test.c: Fix syntax. It is C source.
> 
> Modified:
>    cfe/trunk/tools/c-index-test/c-index-test.c
> 
> Modified: cfe/trunk/tools/c-index-test/c-index-test.c
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/c-index-test.c?rev=144272&r1=144271&r2=144272&view=diff
> ==============================================================================
> --- cfe/trunk/tools/c-index-test/c-index-test.c (original)
> +++ cfe/trunk/tools/c-index-test/c-index-test.c Thu Nov 10 03:30:15 2011
> @@ -2510,13 +2510,14 @@
> }
> 
> static void printDiagnosticSet(CXDiagnosticSet Diags, unsigned indent) {
> +  unsigned i, n;
> +
>   if (!Diags)
>     return;
> 
>   fprintf(stderr, "\n");
> 
> -  unsigned i = 0;
> -  unsigned n = clang_getNumDiagnosticsInSet(Diags);
> +  n = clang_getNumDiagnosticsInSet(Diags);
>   for (i = 0; i < n; ++i) {
>     CXSourceLocation DiagLoc;
>     CXDiagnostic D;
> 
> 
> _______________________________________________
> 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