diff options
author | Marshall Greenblatt <magreenblatt@gmail.com> | 2017-05-19 10:39:29 +0200 |
---|---|---|
committer | Marshall Greenblatt <magreenblatt@gmail.com> | 2017-05-19 10:39:29 +0200 |
commit | 4d138c72bfa977523f68dd53bfe2156c1fe44c38 (patch) | |
tree | 48e5ce21261c412a33ff70560769c27689d7823f /tools/fix_style.py | |
parent | b2a04641e89023ac13ca12bf137a41adf7ab72e2 (diff) | |
download | jcef-4d138c72bfa977523f68dd53bfe2156c1fe44c38.tar.gz |
Update tooling to use clang-format for Java files (issue #272)
Diffstat (limited to 'tools/fix_style.py')
-rw-r--r-- | tools/fix_style.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fix_style.py b/tools/fix_style.py index 11b41d1..4c066ad 100644 --- a/tools/fix_style.py +++ b/tools/fix_style.py @@ -9,7 +9,7 @@ from file_util import * from git_util import get_changed_files # Valid extensions for files we want to clang-format. -DEFAULT_LINT_WHITELIST_REGEX = r"(.*\.cpp|.*\.cc|.*\.h|.*\.mm)$" +DEFAULT_LINT_WHITELIST_REGEX = r"(.*\.cpp|.*\.cc|.*\.h|.*\.java|.*\.mm)$" DEFAULT_LINT_BLACKLIST_REGEX = r"$^" IGNORE_DIRECTORIES = ["binary_distrib", "jcef_build", "out", "third_party", @@ -37,7 +37,7 @@ def update_file(filename): msg(filename, "empty") return; - newcontents = clang_format(oldcontents) + newcontents = clang_format(filename, oldcontents) if newcontents is None: raise Exception("Failed to process %s" % filename) |