[PATCH] D120408: clang-format.el: Make clang-format work in indirect buffers.

2022-02-23 Thread Sam McCall via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG2f906683ed14: clang-format.el: Make clang-format work in indirect buffers. (authored by phst, committed by sammccall). Repository: rG LLVM Github

[PATCH] D120408: clang-format.el: Make clang-format work in indirect buffers.

2022-02-23 Thread Philipp via Phabricator via cfe-commits
phst added a comment. Thanks for the review! I think you have to commit this (I don't have commit access). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D120408/new/ https://reviews.llvm.org/D120408 ___

[PATCH] D120408: clang-format.el: Make clang-format work in indirect buffers.

2022-02-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Makes sense, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D120408/new/ https://reviews.llvm.org/D120408 _

[PATCH] D120408: clang-format.el: Make clang-format work in indirect buffers.

2022-02-23 Thread Philipp via Phabricator via cfe-commits
phst created this revision. phst added a reviewer: sammccall. phst requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. In an indirect buffer, buffer-file-name is nil, so check the base buffer instead. This works fine in direct buffers where bu