[clang-tools-extra] [clangd] Extract to function: Pass unmodified scalar parameters by value (PR #227675)
Aleksandr Platonov via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 1 00:12:08 PDT 2026
https://github.com/ArcsinX requested changes to this pull request.
I also found that we have a problem with function pointers
```cpp
void foo(void (*F)(int)) {
[[F(1);]]
}
```
Extract to function leads to incorrect extracted function parameter type`void extracted(void (*)(int) Fn)`.
But maybe we can fix this separately, because this was not introduced by this PR.
https://github.com/llvm/llvm-project/pull/227675
More information about the cfe-commits
mailing list