[clang] [clang-format] Enable again some operator tests (PR #83380)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 29 22:03:53 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:
It seems that D114696 restored the space in `operator` function declarations and definitions.
https://github.com/llvm/llvm-project/pull/83380
More information about the cfe-commits
mailing list