Skip to content

Commit

Permalink
Bug 965120 - Use .clang-format to set tree default format; r=gps
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Jones committed Jan 30, 2014
1 parent 00f0c1a commit c58033f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BasedOnStyle: Mozilla
1 change: 1 addition & 0 deletions .clang-format-ignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
\mfbt/
\js/
\media/
2 changes: 1 addition & 1 deletion tools/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def clang_format(self, show=False):
from subprocess import Popen, PIPE
p1 = Popen(["hg", "diff", "-U0", "-r", "tip^", "--include", "glob:**.c", "--include", "glob:**.cpp",
"--include", "glob:**.h", "--exclude", "listfile:.clang-format-ignore"], stdout=PIPE)
args = [sys.executable, clang_format_diff, "-p1", "-style=Mozilla"]
args = [sys.executable, clang_format_diff, "-p1"]
if not show:
args.append("-i")
p2 = Popen(args, stdin=p1.stdout)
Expand Down

0 comments on commit c58033f

Please sign in to comment.