diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2017-07-19 13:54:20 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-19 18:19:55 +0000 |
commit | b7e8c3b52a306357ecd08d00170062137ec641d4 (patch) | |
tree | 8041288e1b622f09c2f964ec4a5209832dff734c /gn | |
parent | e5b399ee69332e0d68a660d6695d1182a4cb16b1 (diff) |
run skslc output through clang-format
Bug: skia:
Change-Id: I97af420d1c3270e24e5d0959237b8163faa9e069
Reviewed-on: https://skia-review.googlesource.com/24646
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Diffstat (limited to 'gn')
-rwxr-xr-x | gn/compile_processors.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gn/compile_processors.py b/gn/compile_processors.py index fabdbc2a70..9fc5c3de59 100755 --- a/gn/compile_processors.py +++ b/gn/compile_processors.py @@ -16,7 +16,11 @@ for p in processors: print("Recompiling " + p + "...") try: subprocess.check_output([skslc, p, path + ".h"]) + subprocess.check_call("clang-format --sort-includes=false -i \"" + + path + ".h\"", shell=True) subprocess.check_output([skslc, p, path + ".cpp"]) + subprocess.check_call("clang-format --sort-includes=false -i \"" + + path + ".cpp\"", shell=True) except subprocess.CalledProcessError as err: print("### Error compiling " + p + ":") print(err.output) |