| Issue |
61664
|
| Summary |
clang-format removes spaces around && operator in template.
|
| Labels |
clang-format
|
| Assignees |
|
| Reporter |
ZequanWu
|
Example:
```
#include <type_traits>
template <typename T>
struct B {};
template <typename T,
bool B1 = std::is_trivially_move_constructible<T>::value &&
std::is_copy_constructible<T>::value>
struct A : B<T> {
int a = 0;
};
```
clang-format removes the space between `value` and `&&`:
`- bool B1 = std::is_trivially_move_constructible<T>::value &&`
`+ bool B1 = std::is_trivially_move_constructible<T>::value&&`
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs