https://bugs.llvm.org/show_bug.cgi?id=42418
Bug ID: 42418
Summary: clang-format option to insert a space before () in
operator overloading
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
I usually do not insert any space between function name and ().
However, I always insert a space for operator overloading only because without
space, consecutive symbols look too dense to me.
That is, I prefer
class Test {
auto func() -> int; // no space before ()
auto operator++ (int) -> int; // a space before ()
};
to
class Test {
auto func() -> int;
auto operator++(int) -> int;
};
It would be nice to have an option for this formatting in clang-format.
--
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