freebsd-ports/devel/llvm16/files/patch-clang_tools_clang-format_clang-format.py
Brooks Davis 73fd0eb88d devel/llvm16: copy unchanged from devel/llvm15
This is a copy of llvm15 at 79aeb739c5.
Copying it unmodifed makes it easy to diff to the source.

Sponsored by: DARPA
2023-01-30 23:38:36 +00:00

12 lines
463 B
Python

--- clang/tools/clang-format/clang-format.py.orig 2015-09-08 20:44:00 UTC
+++ clang/tools/clang-format/clang-format.py
@@ -34,7 +34,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%%LLVM_SUFFIX%%'
if vim.eval('exists("g:clang_format_path")') == "1":
binary = vim.eval('g:clang_format_path')