summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-09-12 10:02:46 +0000
committerDaniel Jasper <djasper@google.com>2016-09-12 10:02:46 +0000
commitc6a123111a3b24ea48d15c13b4374c3671fea815 (patch)
tree759265c9bbc1ab25b4c032be37a166ff7d0e454b
parent99da7529800750e8553fbf0be2586c9720346b10 (diff)
downloadbcm5719-llvm-c6a123111a3b24ea48d15c13b4374c3671fea815.tar.gz
bcm5719-llvm-c6a123111a3b24ea48d15c13b4374c3671fea815.zip
clang-format: Make emacs integration work with narrowed buffers.
Use (call-process region nil ...) instead of (point-min) so that the call works in narrowed buffers. Patch by Philipp Stephani, thank you! llvm-svn: 281203
-rw-r--r--clang/tools/clang-format/clang-format.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format.el b/clang/tools/clang-format/clang-format.el
index ca461444e22..4d6007925fb 100644
--- a/clang/tools/clang-format/clang-format.el
+++ b/clang/tools/clang-format/clang-format.el
@@ -122,7 +122,7 @@ is no active region. If no style is given uses `clang-format-style'."
(let (status stderr operations)
(setq status
(call-process-region
- (point-min) (point-max) clang-format-executable
+ nil nil clang-format-executable
nil `(,temp-buffer ,temp-file) nil
"-output-replacements-xml"
OpenPOWER on IntegriCloud