[cfe-commits] r144269 - in /cfe/trunk: include/clang-c/ include/clang/Frontend/ lib/Frontend/ tools/c-index-test/ tools/libclang/
NAKAMURA Takumi
geek4civic at gmail.com
Thu Nov 10 01:08:30 PST 2011
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