clang-format-version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 22 Oct 2020 20:29:07 +0000 (21:29 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 22 Oct 2020 20:29:07 +0000 (21:29 +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 122db49ff73c764f2cb89f774d74b14344b84c1d..bbca1a52f8ec2b7a14fd4efae7144e77d1afcbe3 100755 (executable)
@@ -54,7 +54,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-10',
                       help='location of binary to use for clang-format')
   args = parser.parse_args()
 
index 768acb3a5d0ddc6916d23c13f3b6d9ac4eb1e49b..a8d122d0a9912898f5a5a3172f8a3378f03a4e61 100644 (file)
@@ -37,7 +37,7 @@
   :group 'tools)
 
 (defcustom clang-format-executable
-  (or (executable-find "clang-format")
+  (or (executable-find "clang-format-10")
       "clang-format")
   "Location of the clang-format executable.
 
index 1a615b170722b81a97f54cef31b53403bad650af..89d33d7ec48e199d9e547feaf3dbaae11cc7a716 100644 (file)
@@ -48,7 +48,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-10'
 if vim.eval('exists("g:clang_format_path")') == "1":
   binary = vim.eval('g:clang_format_path')