aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorgoldsteinn <35538541+goldsteinn@users.noreply.github.com>2025-02-04 17:17:43 -0600
committerGitHub <noreply@github.com>2025-02-04 17:17:43 -0600
commit32be90db269a6dbb876b99f6ef3df6563f66315a (patch)
tree548c73cbdc57ddd47d93698a0e258b15fbfa8eaa /flang/lib/Frontend/CompilerInvocation.cpp
parent0572580dd040a81dc69b798e202550d51d17204a (diff)
downloadllvm-32be90db269a6dbb876b99f6ef3df6563f66315a.zip
llvm-32be90db269a6dbb876b99f6ef3df6563f66315a.tar.gz
llvm-32be90db269a6dbb876b99f6ef3df6563f66315a.tar.bz2
[emacs][clang-format] Add elisp API for clang-format on git diffs (#112792)
New proposed function `clang-format-vc-diff`. It is the same as calling `clang-format-region` on all diffs between the content of a buffer-file and the content of the file at git revision HEAD. This is essentially the same thing as: `git-clang-format -f {filename}` If the current buffer is saved. The motivation is many project (LLVM included) both have code that is non-compliant with there clang-format style and disallow unrelated format diffs in PRs. This means users can't just run `clang-format-buffer` on the buffer they are working on, and need to manually go through all the regions by hand to get them formatted. This is both an error prone and annoying workflow.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions