[cfe-dev] [ping] extra libclang functionality for the xdress project

Dmitri Gribenko gribozavr at gmail.com
Wed Nov 13 11:29:24 PST 2013


On Wed, Nov 13, 2013 at 11:17 AM, Geoffrey Irving <irving at naml.us> wrote:
> Great!  There is no hurry, since I'm not blocked, and I still have
> various other patches to clean up.  When you do get around to them,
> feel free to ask for large rewrites, given that this is intended to be
> a long term stable API.
>
> Quick configuration question: when Anthony tried to compile my code he
> ran into a bunch of non-C99 errors:
>
>     c-index-test.c:1299:3: error: ‘for’ loop initial declarations are
> only allowed in C99 mode
>
> Is there a configure option to make llvm+clang builds stricter so that
> I can catch such errors in future?

CMake build passes -std=c89 for c-index-test.c

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/




More information about the cfe-dev mailing list