[cfe-commits] r144269 - in /cfe/trunk: include/clang-c/ include/clang/Frontend/ lib/Frontend/ tools/c-index-test/ tools/libclang/
Ted Kremenek
kremenek at apple.com
Thu Nov 10 01:16:21 PST 2011
Hi Takumi,
Unfortunately right now I'm not conveniently close to a machine where I can change the code. If you know the fix, and you don't mind doing it, please feel free to commit it. Otherwise, please revert my patch and I'll make the right changes tomorrow.
Thanks,
Ted
Sent from my iPad
On Nov 10, 2011, at 1:08 AM, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> 2011/11/10 Ted Kremenek <kremenek at apple.com>:
>> Author: kremenek
>> Date: Thu Nov 10 02:43:12 2011
>> New Revision: 144269
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=144269&view=rev
>> Log:
>> serialized diagnostics: implement full deserialization of clang diagnostics via the libclang API.
>>
>> I've tested it on simple cases and it works. Test cases to follow as well as a few tweaks.
>
>> 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=144269&r1=144268&r2=144269&view=diff
>> ==============================================================================
>> +static void printDiagnosticSet(CXDiagnosticSet Diags, unsigned indent) {
>> + if (!Diags)
>> + return;
>> +
>> + fprintf(stderr, "\n");
>> +
>> + unsigned i = 0;
>> + unsigned n = clang_getNumDiagnosticsInSet(Diags);
>
> Ted, it is not C++. :D
> MS CL.EXE rejects it on *.c
>
> ...Takumi
More information about the cfe-commits
mailing list