clang-format-version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 1 Jan 2023 14:46:39 +0000 (14:46 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Jan 2023 14:46:39 +0000 (14:46 +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 1f6ff0fe295f88d165e79b6571c22fd36f4561f2..cd3104b1b974a16e12da5c294cf61f3899a69446 100755 (executable)
@@ -63,7 +63,7 @@ def main():
                       'fallback in case clang-format is invoked with'
                       '-style=file, but can not find the .clang-format'
                       'file to use.')
-  parser.add_argument('-binary', default='clang-format',
+  parser.add_argument('-binary', default='clang-format-15',
                       help='location of binary to use for clang-format')
   args = parser.parse_args()
 
index 4e6daa82d4ade6551be8b93992bbedcf0bf790df..2dc9dc6feb45f9948df9f4f3e8fa632db86c376d 100644 (file)
@@ -37,7 +37,7 @@
   :group 'tools)
 
 (defcustom clang-format-executable
-  (or (executable-find "clang-format")
+  (or (executable-find "clang-format-15")
       "clang-format")
   "Location of the clang-format executable.
 
index 76fedb6481474594612a81be25a4073a96c3d44a..e5da1ad28fc5c52ccf4a3e2651db29b5d9641ab1 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-15'
 if vim.eval('exists("g:clang_format_path")') == "1":
   binary = vim.eval('g:clang_format_path')