clang-format-version
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Fri, 4 Nov 2022 18:36:56 +0000 (18:36 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Fri, 4 Nov 2022 18:36:56 +0000 (18:36 +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..bb31acff909317ea549baa00f178a4086f7f1f55 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-14',
                       help='location of binary to use for clang-format')
   args = parser.parse_args()
 
index 768acb3a5d0ddc6916d23c13f3b6d9ac4eb1e49b..a97535540ef6bc9e859a047f64c5d73e17fba7db 100644 (file)
@@ -37,7 +37,7 @@
   :group 'tools)
 
 (defcustom clang-format-executable
-  (or (executable-find "clang-format")
+  (or (executable-find "clang-format-14")
       "clang-format")
   "Location of the clang-format executable.
 
index 76fedb6481474594612a81be25a4073a96c3d44a..09de592420bc699f39e18f10c9a3687ce00d2aea 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-14'
 if vim.eval('exists("g:clang_format_path")') == "1":
   binary = vim.eval('g:clang_format_path')