[PATCH] clang-format: [JS] recognize .ts and .json in git-clang-format.

Daniel Jasper djasper at google.com
Fri Jun 19 01:27:41 PDT 2015


Submitted just the .ts part in r240128.


================
Comment at: tools/clang-format/git-clang-format:80
@@ -79,2 +79,3 @@
       'proto', 'protodevel',  # Protocol Buffers
-      'js',  # JavaScript
+      'js', 'json', # JavaScript
+      'ts', # TypeScript
----------------
We don't properly support plain json files yet, AFAICT. Shouldn't be much of a change, but that should be separate.

Also, if we add it, it should be in sync with clang-format-diff.py and getLanguageByFileName().

http://reviews.llvm.org/D10543

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list