https://bugs.llvm.org/show_bug.cgi?id=48410

            Bug ID: 48410
           Summary: parameter PointerAlignemtn when #define interface
                    struct
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

https://gcc.godbolt.org/z/fee4Y6

Code is

    #define interface struct

    struct One {
    template <typename T>
    bool DynamicCast(T*& pObj);
    };

    interface Two {
    template <typename T>
    bool DynamicCast(T*& pObj);
    };

.clang-format is

    PointerAlignment: Left

One::DynamicCast parameter is formatted correctly but Two::DynamicCast's
parameter doesn't have correct PointerAlignment

    interface Two {
      template <typename T> bool DynamicCast(T * &pObj);
    };

-- 
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