Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have been doing some testing with clang-format and formatting only the
lines that have been modified.
Version 3.5 is good enough for Mozilla style although the defaults for
style=Mozilla need to be corrected. It doesn't handle weird cases like
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN and _END blocks.
To try it out, all you need to do is add the "Add a clang-format-diff
helper to mach;" patch from bug 952379 to the head of your patch queue.
It will download clang-format and clang-format-diff for you. I have
built the binary on Ubuntu 64 so let me know if it's broken on other 64
bit Linuxes.
The workflow looks like this:
$ hg qrefresh
$ mach clang-format
<shows changes>
This reformats only the lines that are different from tip^. If you're
happy with the changes then you do:
$ hg qrefresh
$ hg bzexport ...
Otherwise you do:
$ hg revert --all
I've also added a file called .clang-format-ignore which lists
directories to exclude from the "mach clang-format" command. This
currently lsits js/ and mfbt/.
Anthony
Anthony Jones
unread,
Jan 8, 2014, 3:55:19 PM1/8/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
Link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
clang-format-3.5 is now available for Windows using the updated patch in
bug 952379.
Anthony
Anthony Jones
unread,
Jan 22, 2014, 8:52:49 PM1/22/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
Link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Excuse the continued conversation with myself.....
Bug 952379 has landed on m-c so you can now use the work flow below:
$ hg qrefresh
$ mach clang-format
This reformats only the lines that are different from tip^. It doesn't
show anything on the console. Review the changes with your favourite
diff tool. You can see a beautiful screenshot here:
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Bobby Holley, Anthony Jones, dev-pl...@lists.mozilla.org
As a temporary workaround until upstream gets patched, we're downloading and running hosted binaries from ajone's people account (with consent of course). He hasn't built the binary for OS X yet.
> On OSX10.9, I get:
>
> Unsupported platform Darwin/x86_64. Supported platforms are Windows/* and
> Linux/x86_64
>
> Is there a reason for this?
>
>
> On Wed, Jan 22, 2014 at 5:52 PM, Anthony Jones <ajo...@mozilla.com> wrote:
>
Anthony Jones
unread,
Jan 22, 2014, 11:48:54 PM1/22/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
Link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
On 23/01/14 15:26, Gregory Szorc wrote:
> As a temporary workaround until upstream gets patched, we're
> downloading and running hosted binaries from ajone's people account
> (with consent of course). He hasn't built the binary for OS X yet.