| Issue |
61612
|
| Summary |
clang-format breaks C++ User-defined literal _$
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
duduarbel
|
applying clang-format on the following code:
```
int operator"" _€(unsigned long long amount) { return amount; }
int operator"" _$(unsigned long long amount) { return amount; }
int main()
{
auto euros = 1_€ ;
auto dollars = 2_$;
return 0;
}
```
works well for the euros, but adds an extra space between the _ and the $ - which causes the compilation to fail;
```
auto euros = 1_€ ; // Ok
auto dollars = 2_ $; // compilation fails
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs