================
@@ -17630,6 +17630,13 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeParens) {
verifyFormat("int x = int (y);", SomeSpace2);
verifyFormat("auto lambda = []() { return 0; };", SomeSpace2);
+ FormatStyle SpaceAfterOperatorKeyword = getLLVMStyle();
+ SpaceAfterOperatorKeyword.SpaceAfterOperatorKeyword = true;
+ verifyFormat("bool operator ++(int a)", SpaceAfterOperatorKeyword);
+ verifyFormat("bool operator --(int a)", SpaceAfterOperatorKeyword);
+ verifyFormat("bool operator <(int a)", SpaceAfterOperatorKeyword);
+ verifyFormat("bool operator >(int a)", SpaceAfterOperatorKeyword);
----------------
HazardyKnusperkeks wrote:
I think one suffices.
https://github.com/llvm/llvm-project/pull/137610
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits