mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 965120 - Use .clang-format to set tree default format; r=gps
This commit is contained in:
parent
147a7bcbdb
commit
a4c0bcf9b0
1
.clang-format
Normal file
1
.clang-format
Normal file
@ -0,0 +1 @@
|
||||
BasedOnStyle: Mozilla
|
@ -1,2 +1,3 @@
|
||||
\mfbt/
|
||||
\js/
|
||||
\media/
|
||||
|
@ -356,7 +356,7 @@ class FormatProvider(MachCommandBase):
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user