[cfe-commits] r166130 - in /cfe/trunk: bindings/xml/comment-xml-schema.rng include/clang/AST/Comment.h include/clang/AST/PrettyPrinter.h lib/AST/Comment.cpp lib/AST/DeclPrinter.cpp test/Index/annotate-comments-availability-attrs.cpp test/Index/an

jahanian fjahanian at apple.com
Thu Oct 18 11:03:31 PDT 2012

On Oct 18, 2012, at 11:01 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:

> On Thu, Oct 18, 2012 at 8:25 PM, jahanian <fjahanian at apple.com> wrote:
>> On Oct 18, 2012, at 10:21 AM, Douglas Gregor <dgregor at apple.com> wrote:
>>> The declaration printer is going to need a lot of work. We'll need to have tests for essentially every kind of AST node.
>> Yes, this is wip. Test annotate-comments.cpp already has many of them. I need to start writing unit tests.
> Just wanted to point out that for decl printer tests I started
> unittests/AST/DeclPrinterTest.cpp so that we can test decl printer
> directly without going through comment machinery.  (And producing
> unmaintainable tests like annotate-comments.cpp.)

Great to know. I will look into it. Thanks.
- fariborz

> 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