| Issue |
60948
|
| Summary |
[clang-format-16] IntegerLiteralSeparator for binary literals broken
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
h-2
|
With the following options:
```
IntegerLiteralSeparator:
Binary: 4
Decimal: 0
Hex: 0
```
clang_format complains:
```
error: code should be clang-formatted [-Wclang-format-violations]
constexpr uint8_t to_op_rank() const noexcept { return rank & 0b1111; }
^
```
This is a false positive, because `0b'1111` is not a valid bianry literal. Interestingly, `clang-format -i` also does not "fix" this.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs