clang-format-version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 14 Jun 2017 17:06:20 +0000 (18:06 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 14 Jun 2017 17:06:20 +0000 (18:06 +0100)
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..18fd8a2187048c173e24d6165a911c80276b806a 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-4.0',
                       help='location of binary to use for clang-format')
   args = parser.parse_args()
 
index 0ac2da3ad29aa82efabd8ef21359f359a7bd5a9c..d46d53fa74e9f3257e5b95dcd0f315755c85898d 100644 (file)
@@ -36,7 +36,7 @@
   :group 'tools)
 
 (defcustom clang-format-executable
-  (or (executable-find "clang-format")
+  (or (executable-find "clang-format-4.0")
       "clang-format")
   "Location of the clang-format executable.
 
index ae8a6ebf74e9215662c39ceb5c695627bf958a42..838eaef6e22ad46ff3cc90bc39893cfefe558ea7 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-4.0'
 if vim.eval('exists("g:clang_format_path")') == "1":
   binary = vim.eval('g:clang_format_path')