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

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


================
@@ -16710,7 +16705,7 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeParens) {
   verifyFormat("typedef void (*cb)(int);", SpaceFuncDef);
   verifyFormat("T A::operator()();", SpaceFuncDef);
   verifyFormat("X A::operator++(T);", SpaceFuncDef);
-  // verifyFormat("T A::operator() () {}", SpaceFuncDef);
+  verifyFormat("T A::operator()() {}", SpaceFuncDef);
----------------
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