]> granicus.if.org Git - clang/commitdiff
clang-format: Add Java detection to git-clang-format.
authorStephen Hines <srhines@google.com>
Tue, 13 Sep 2016 05:00:20 +0000 (05:00 +0000)
committerStephen Hines <srhines@google.com>
Tue, 13 Sep 2016 05:00:20 +0000 (05:00 +0000)
Summary: This change adds "java" to the list of known extensions that clang-format supports.

Patch by Luis Hector Chavez

Reviewers: djasper

Subscribers: srhines, cfe-commits

Differential Revision: https://reviews.llvm.org/D24401

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281294 91177308-0d34-0410-b5e6-96231b3b80d8

tools/clang-format/git-clang-format

index 0c45762ea515b5bf565aca48eb56b1717acafeb2..860548e71eb39690f8ff6655184a9c59c906855f 100755 (executable)
@@ -77,6 +77,7 @@ def main():
       'cc', 'cp', 'cpp', 'c++', 'cxx', 'hpp',  # C++
       # Other languages that clang-format supports
       'proto', 'protodevel',  # Protocol Buffers
+      'java',  # Java
       'js',  # JavaScript
       'ts',  # TypeScript
       ])