[llvm-bugs] [Bug 47161] New: clang-format does not handle semicolons in template argument lists
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 13 18:06:47 PDT 2020
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: unassignedclangbugs at nondot.org
Reporter: johelegp at gmail.com
CC: djasper at google.com, johelegp at gmail.com,
klimek at google.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200814/77f91077/attachment.html>
More information about the llvm-bugs
mailing list