Fix build with CLANG_ENABLE_STATIC_ANALYZER

Dmitri Gribenko gribozavr at gmail.com
Mon Jun 17 11:47:37 PDT 2013


On Mon, Jun 17, 2013 at 11:19 AM, Jordan Rose <jordan_rose at apple.com> wrote:
> Hm. Does clang-check really need the static analyzer? Can it be made optional there as well? It seems weird that CLANG_ENABLE_STATIC_ANALYZER=0 would completely prevent clang-check from building.

IIRC, one can do 'clang-check -analyze ...'

Maybe adding an #ifdef in clang-check source would help.

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-commits mailing list