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

Martin Probst martinprobst at google.com
Thu Jun 18 09:59:16 PDT 2015


Hi djasper,

http://reviews.llvm.org/D10543

Files:
  tools/clang-format/git-clang-format

Index: tools/clang-format/git-clang-format
===================================================================
--- tools/clang-format/git-clang-format
+++ tools/clang-format/git-clang-format
@@ -77,7 +77,8 @@
       'cc', 'cp', 'cpp', 'c++', 'cxx', 'hpp',  # C++
       # Other languages that clang-format supports
       'proto', 'protodevel',  # Protocol Buffers
-      'js',  # JavaScript
+      'js', 'json', # JavaScript
+      'ts', # TypeScript
       ])
 
   p = argparse.ArgumentParser(

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10543.27944.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150618/7d1f9b23/attachment.bin>


More information about the cfe-commits mailing list