mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 965120 - Use .clang-format to set tree default format; r=gps
This commit is contained in:
parent
3217142ab5
commit
9dc5bfae01
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