[clang] [emacs][clang-format] Add elisp API for clang-format on git diffs (PR #112792)

Luke Lau via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 3 06:53:06 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)
----------------
lukel97 wrote:

I think the term diff would be more consistent with existing emacs functions e.g. vc-diff, diff-delete-trailing-whitespace etc. 

https://github.com/llvm/llvm-project/pull/112792


More information about the cfe-commits mailing list