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

            Bug ID: 45107
           Summary: clang-format inserts space before & in operator Foo&()
                    const
           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], [email protected],
                    [email protected]

I thought
https://github.com/llvm/llvm-project/commit/33463cfba2be7c8d6c08e666123cc34f114a1f3e
would have fixed this, but it seems not.

This is blocking Chromium's update of clang-format.

At current master (llvmorg-11-init-4771-g3a063d68e3c):

$ echo 'operator const Vector<String>&() const { return strings_; }' |
bin/clang-format --style=Chromium
operator const Vector<String> &() const {
  return strings_;
}

Expected:
operator const Vector<String>&() const {
  return strings_;
}

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