llvm-toolchain/debian/patches/clang-format-version.diff
2013-09-02 12:03:30 +00:00

40 lines
2.0 KiB
Diff

Index: llvm-toolchain-snapshot_3.4~svn189753/clang/tools/clang-format/clang-format.py
===================================================================
--- llvm-toolchain-snapshot_3.4~svn189753.orig/clang/tools/clang-format/clang-format.py 2013-09-02 14:03:41.000000000 +0200
+++ llvm-toolchain-snapshot_3.4~svn189753/clang/tools/clang-format/clang-format.py 2013-09-02 14:03:41.000000000 +0200
@@ -24,7 +24,7 @@
import vim
# Change this to the full path if clang-format is not on the path.
-binary = 'clang-format'
+binary = 'clang-format-3.4'
# Change this to format according to other formatting styles. See the output of
# 'clang-format --help' for a list of supported styles. The default looks for
Index: llvm-toolchain-snapshot_3.4~svn189753/clang/tools/clang-format/clang-format-diff.py
===================================================================
--- llvm-toolchain-snapshot_3.4~svn189753.orig/clang/tools/clang-format/clang-format-diff.py 2013-09-02 14:03:41.000000000 +0200
+++ llvm-toolchain-snapshot_3.4~svn189753/clang/tools/clang-format/clang-format-diff.py 2013-09-02 14:03:41.000000000 +0200
@@ -28,7 +28,7 @@
# Change this to the full path if clang-format is not on the path.
-binary = 'clang-format'
+binary = 'clang-format-3.4'
def getOffsetLength(filename, line_number, line_count):
Index: llvm-toolchain-snapshot_3.4~svn189753/clang/tools/clang-format/clang-format.el
===================================================================
--- llvm-toolchain-snapshot_3.4~svn189753.orig/clang/tools/clang-format/clang-format.el 2013-09-02 14:03:41.000000000 +0200
+++ llvm-toolchain-snapshot_3.4~svn189753/clang/tools/clang-format/clang-format.el 2013-09-02 14:03:41.000000000 +0200
@@ -13,7 +13,7 @@
;; *Location of the clang-format binary. If it is on your PATH, a full path name
;; need not be specified.
-(defvar clang-format-binary "clang-format")
+(defvar clang-format-binary "clang-format-3.4")
(defun clang-format-region ()
"Use clang-format to format the currently active region."