clang-format-version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Wed, 6 Jan 2021 19:16:26 +0000 (19:16 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 6 Jan 2021 19:16:26 +0000 (19:16 +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 c5331202fc1bdafb08f2b962cab1cbac343c2fd4..582631729dcee4f98a2873a4018b7ab3fab6f68c 100755 (executable)
@@ -58,7 +58,7 @@ def main():
   parser.add_argument('-style',
                       help='formatting style to apply (LLVM, GNU, Google, Chromium, '
                       'Microsoft, Mozilla, WebKit)')
-  parser.add_argument('-binary', default='clang-format',
+  parser.add_argument('-binary', default='clang-format-11',
                       help='location of binary to use for clang-format')
   args = parser.parse_args()
 
index 768acb3a5d0ddc6916d23c13f3b6d9ac4eb1e49b..a66085744f591967ff69bf4447b13e2362bb1068 100644 (file)
@@ -37,7 +37,7 @@
   :group 'tools)
 
 (defcustom clang-format-executable
-  (or (executable-find "clang-format")
+  (or (executable-find "clang-format-11")
       "clang-format")
   "Location of the clang-format executable.
 
index 76fedb6481474594612a81be25a4073a96c3d44a..7054359383c8ec3af4b7efcdf63c743006388948 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-11'
 if vim.eval('exists("g:clang_format_path")') == "1":
   binary = vim.eval('g:clang_format_path')