[clang] [clang-format] Enable again some operator tests (PR #83380)

via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 29 07:25:02 PST 2024


================
@@ -16671,9 +16667,8 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeParens) {
                SpaceFuncDecl);
   verifyFormat("int f () throw(Deprecated);", SpaceFuncDecl);
   verifyFormat("typedef void (*cb)(int);", SpaceFuncDecl);
-  // FIXME these tests regressed behaviour.
-  // verifyFormat("T A::operator() ();", SpaceFuncDecl);
-  // verifyFormat("X A::operator++ (T);", SpaceFuncDecl);
+  verifyFormat("T A::operator()();", SpaceFuncDecl);
+  verifyFormat("X A::operator++(T);", SpaceFuncDecl);
----------------
rayroudc wrote:

[D114696](https://reviews.llvm.org/D114696) reverted the behavior for function declaration and definition, to have no space before the parentheses.

https://github.com/llvm/llvm-project/pull/83380


More information about the cfe-commits mailing list