[cfe-commits] r172320 - in /cfe/trunk/include/clang: AST/ ASTMatchers/ Analysis/Analyses/ Basic/ Lex/ Sema/ Serialization/ StaticAnalyzer/Core/ StaticAnalyzer/Core/PathSensitive/

Dmitri Gribenko gribozavr at gmail.com
Mon Jan 14 11:00:14 PST 2013


On Mon, Jan 14, 2013 at 7:27 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>
> On Jan 12, 2013, at 8:54 , Dmitri Gribenko <gribozavr at gmail.com> wrote:
>
>> Author: gribozavr
>> Date: Sat Jan 12 10:54:37 2013
>> New Revision: 172320
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=172320&view=rev
>> Log:
>> Add missing includes and forward declarations so that headers don't depend on
>> other headers included before them.
>
> How did you discover these? Did you use a tool? Or did you just try to compile the headers on their own and see what broke?

Something in between:

$ find include/clang/ -name \*.h | parallel clang -fsyntax-only -x c++
-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -I include/ -I
../../include/ -I ../../../build-cmake-r+a/include/ -I
../../../build-cmake-r+a/tools/clang/include/ -fcolor-diagnostics

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