[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 3 08:22:35 PST 2024
================
@@ -205,14 +288,60 @@ uses the function `buffer-file-name'."
(delete-file temp-file)
(when (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
+;;;###autoload
+(defun clang-format-git-diffs (&optional style assume-file-name)
----------------
goldsteinn wrote:
The reason I chose `diffs` was to indicate it wasn't just the diff at point or something, but Ill rename `clang-format-vc-diff`
https://github.com/llvm/llvm-project/pull/112792
More information about the cfe-commits
mailing list