https://bugs.llvm.org/show_bug.cgi?id=47161
Bug ID: 47161
Summary: clang-format does not handle semicolons in template
argument lists
Product: clang
Version: trunk
Hardware: PC
URL: https://reviews.llvm.org/D79773#2141164
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: johel...@gmail.com
CC: djas...@google.com, johel...@gmail.com,
kli...@google.com, llvm-bugs@lists.llvm.org
This is how semicolons in template argument lists are formatted with the
default configuration:
```C++
template <auto> struct X {};
struct Y : X < [] {
return 0;
} > {};
struct Z : X < decltype([]
{
return 0;
}){} > {};
struct W : X < requires {
ill - formed;
} > {};
```
These uses will become more common in C++20 thanks to the used features.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs