clang-format-version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sat, 9 Mar 2019 06:10:15 +0000 (06:10 +0000)
committerMo Zhou <cdluminate@gmail.com>
Sat, 9 Mar 2019 06:10:15 +0000 (06:10 +0000)
Gbp-Pq: Name clang-format-version.diff

clang/tools/clang-format/clang-format-diff.py
clang/tools/clang-format/clang-format.el
clang/tools/clang-format/clang-format.py

index ffa30e70ddc33696a60869dfbc3b16ce59b39644..be1252d849ad8b5d07e636c7673048e946702a92 100755 (executable)
@@ -55,7 +55,7 @@ def main():
   parser.add_argument('-style',
                       help='formatting style to apply (LLVM, Google, Chromium, '
                       'Mozilla, WebKit)')
-  parser.add_argument('-binary', default='clang-format',
+  parser.add_argument('-binary', default='clang-format-6.0',
                       help='location of binary to use for clang-format')
   args = parser.parse_args()
 
index 6c626e0b83d1d5dff480c2f2c5a993e5a329df1a..341842a447c7a55af1af964b5e6957b16970e740 100644 (file)
@@ -36,7 +36,7 @@
   :group 'tools)
 
 (defcustom clang-format-executable
-  (or (executable-find "clang-format")
+  (or (executable-find "clang-format-6.0")
       "clang-format")
   "Location of the clang-format executable.
 
index 5fe592a9202bc50cf4193f016564270cec565df2..dbe6cca8f45e0ec8d61fe10903d74a8ac9b7d7d2 100644 (file)
@@ -36,7 +36,7 @@ import vim
 
 # set g:clang_format_path to the path to clang-format if it is not on the path
 # Change this to the full path if clang-format is not on the path.
-binary = 'clang-format'
+binary = 'clang-format-6.0'
 if vim.eval('exists("g:clang_format_path")') == "1":
   binary = vim.eval('g:clang_format_path')