Hello,

The attached patch adds a flag
PrintingPolicy::DontRecurseInDeclContext to provide "terse" output
from DeclPrinter.  The motivation is to use DeclPrinter to print
declarations in user-friendly format, without overwhelming user with
inner detail of the declaration being printed.

This patch also adds many tests for DeclPrinter.  There are quite a
few things that we print incorrectly: search for WRONG in test file --
and these tests check our output against incorrect output, so that we
can fix/refactor/rewrite the DeclPrinter later.

Please review.

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 <[email protected]>*/

Attachment: terse-decl-printer-v1.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to