clang-format-version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 16 Dec 2021 16:49:22 +0000 (16:49 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 16 Dec 2021 16:49:22 +0000 (16:49 +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 6e653a1342896371f659ba3d6ee61d846956f072..ce7eab742ea5fe0ee56932bbe0dab6fe32c74f17 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-12',
                       help='location of binary to use for clang-format')
   args = parser.parse_args()
 
index 768acb3a5d0ddc6916d23c13f3b6d9ac4eb1e49b..96278825a48f41a86cdd1f7e38312662ea088ffe 100644 (file)
@@ -37,7 +37,7 @@
   :group 'tools)
 
 (defcustom clang-format-executable
-  (or (executable-find "clang-format")
+  (or (executable-find "clang-format-12")
       "clang-format")
   "Location of the clang-format executable.
 
index 76fedb6481474594612a81be25a4073a96c3d44a..773a62dd79a4ed26f12df9a4f008e4c3d2594200 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-12'
 if vim.eval('exists("g:clang_format_path")') == "1":
   binary = vim.eval('g:clang_format_path')