[cfe-commits] r170606 - in /cfe/trunk: include/clang/AST/PrettyPrinter.h lib/AST/DeclPrinter.cpp tools/libclang/CXComment.cpp unittests/AST/DeclPrinterTest.cpp

Fariborz Jahanian fjahanian at apple.com
Wed Dec 19 18:28:14 PST 2012


On Dec 19, 2012, at 3:41 PM, Dmitri Gribenko wrote:

> On Thu, Dec 20, 2012 at 1:36 AM, Fariborz Jahanian <fjahanian at apple.com> wrote:
>> Author: fjahanian
>> Date: Wed Dec 19 17:36:00 2012
>> New Revision: 170606
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=170606&view=rev
>> Log:
>> Audit DeclPrinter with -ast-dump on Cocoa.h and
>> fix any bad objectiveC syntax coming out of
>> DeclPrinter. This is on going. Also, introduce a new
>> PrintPolicy and use it as needed when declaration tag
>> is to be produced via DeclPrinter.
> 
> Tests, please.
> 
> 

I added couple of protocol tests in r170635. But I am not familiar adding test for more complex situations.

This is the other test I need to add.

@interface SUPER @end
@interface SUB : SUPER 
- (void) Meth; 
@end

before the improvement:

@interface SUPER at end
@interface SUB : SUPER- (void) Meth; 
@end

after the improvement:

@interface SUPER @end
@interface SUB : SUPER
- (void) Meth;
@end

- Fariborz

> -- 
> 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>*/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121219/2a289d7e/attachment.html>


More information about the cfe-commits mailing list