[cfe-commits] clang formatter patch to move and rename RewriterTestContext.h

jahanian fjahanian at apple.com
Mon Dec 17 09:13:29 PST 2012


Hi Daniel,

Are you going to provide the new public header in clang/Tooling this week? I have gone ahead and made the necessary changes for formatting ObjC declarations and
and provide the tests in the attached patch which enforces our convention for formatting them.  Here is my complete patch (including the plumbing for 
declaration tags which you may ignore).  How do you want to proceed?

- Thanks, Fariborz

	

On Dec 16, 2012, at 10:21 PM, Daniel Jasper <djasper at google.com> wrote:

> I think the RewriterTestContext should remain in Tooling as it has nothing to do with formatting. I guess, we could make it a public header there (clang/Tooling). And it should remain being called RewriterTestContext.
> 
> The ObjC change looks fine as a temporary fix. Especially the part in Format.cpp will undergo a rewrite anyway, hopefully this week. I will look into what else needs to change to support ObjC. At the very least, we probably shouldn't set CPlusPlus LangOpts for the Lexer..
> 
> 
> 
> On Wed, Dec 12, 2012 at 8:50 PM, Sean Silva <silvas at purdue.edu> wrote:
> On Wed, Dec 12, 2012 at 1:00 PM, jahanian <fjahanian at apple.com> wrote:
> > ter. This patch is an attempt to have a header in Format directory
> > that others can use. Any suggestion is welcome.
> 
> +djasper
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121217/30b07d5a/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-objc-formatting.txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121217/30b07d5a/attachment.txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121217/30b07d5a/attachment-0001.html>


More information about the cfe-commits mailing list