Issue |
149010
|
Summary |
clang-format 20 ignores reference alignment in requires clause
|
Labels |
clang-format
|
Assignees |
|
Reporter |
ozars
|
This is a change of behavior from clang-format 19.
Example .clang-format:
```
Language: Cpp
Standard: c++20
PointerAlignment: Left
ReferenceAlignment: Left
DerivePointerAlignment: false
```
Example input file:
```cpp
bool kTrivialExample = requires { static_cast< int && >(1); };
```
Example output with clang-format 20:
```cpp
bool kTrivialExample = requires { static_cast<int &&>(1); };
```
Example output with clang-format 19:
```cpp
bool kTrivialExample = requires { static_cast<int&&>(1); };
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs