-
Notifications
You must be signed in to change notification settings - Fork 13.3k
clang-format 19-rc1 regression: member function pointers as template arguments #100841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
@llvm/issue-subscribers-clang-format Author: Adrian Vogelsgesang (vogelsgesang)
In our internal code base, we have a function templated with a member function pointer.
Upgrading from clang-format-17 to 19.1.0-rc1, clang-format proposed the following change, which is incorrect / unexpected
-template <llvm::Value* (llvm::IRBuilderBase::*func)(llvm::Value*, llvm::Value*, const llvm::Twine&, bool, bool)>
+template <llvm::Value* (llvm::IRBuilderBase::* func)(llvm::Value*, llvm::Value*, const llvm::Twine&, bool, bool)>
llvm::Value* LLVMTranslator::generateArithmetic(const IRBinaryOp& op) { |
Bisected to 579dc7f. This looks intentional, though |
Yeah, IMO it's a bug fix rather than a regression. |
Can this be closed or removed from the LLVM 19.x milestone? |
Yes, given this was an intentional change, let's close it |
owenca
added a commit
to owenca/llvm-project
that referenced
this issue
Aug 20, 2024
Also, don't insert a space after ::* for method pointers. See llvm#86253 (comment). Fixes llvm#100841.
owenca
added a commit
that referenced
this issue
Aug 23, 2024
Also, don't insert a space after ::* for method pointers. See #86253 (comment). Fixes #100841.
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Aug 23, 2024
Also, don't insert a space after ::* for method pointers. See llvm#86253 (comment). Fixes llvm#100841. (cherry picked from commit 714033a)
cjdb
pushed a commit
to cjdb/llvm-project
that referenced
this issue
Aug 23, 2024
Also, don't insert a space after ::* for method pointers. See llvm#86253 (comment). Fixes llvm#100841.
tru
pushed a commit
to llvmbot/llvm-project
that referenced
this issue
Aug 26, 2024
Also, don't insert a space after ::* for method pointers. See llvm#86253 (comment). Fixes llvm#100841. (cherry picked from commit 714033a)
Duplicate of #93678. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In our internal code base, we have a function templated with a member function pointer.
Upgrading from clang-format-17 to 19.1.0-rc1, clang-format proposed the following change, which is incorrect / unexpected
The text was updated successfully, but these errors were encountered: