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

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 29 00:43:57 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);
----------------
owenca wrote:

Why are the spaces removed?

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


More information about the cfe-commits mailing list