[llvm-bugs] [Bug 47865] New: Wrong formatting for '&&' after qualified constants in expressions
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Oct 15 11:21:37 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47865
Bug ID: 47865
Summary: Wrong formatting for '&&' after qualified constants in
expressions
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: yshuiv7 at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Example:
enum class A: int { X = 0, Y, Z };
template <typename T, A Size = static_cast<A>(sizeof(T))>
inline constexpr bool ah = Size != A::X && Size != A::Y;
The inline constexpr got formatted as:
inline constexpr bool ah = Size != A::X &&Size != A::Y;
As if A::X is a type, and Size is a rvalue reference.
--
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/20201015/67c1db80/attachment.html>
More information about the llvm-bugs
mailing list