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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to