[PATCH] D114725: [clang-format] add back tests which didn't cause a regression
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 29 10:23:54 PST 2021
MyDeveloperDay created this revision.
MyDeveloperDay added a reviewer: crayroud.
MyDeveloperDay added projects: clang, clang-format.
MyDeveloperDay requested review of this revision.
bring back the valid tests removed as part of D114696: [clang-format] regressed default behavior for operator parentheses <https://reviews.llvm.org/D114696>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D114725
Files:
clang/unittests/Format/FormatTest.cpp
Index: clang/unittests/Format/FormatTest.cpp
===================================================================
--- clang/unittests/Format/FormatTest.cpp
+++ clang/unittests/Format/FormatTest.cpp
@@ -14180,8 +14180,7 @@
verifyFormat("int f() throw (Deprecated);", SomeSpace);
verifyFormat("typedef void (*cb) (int);", SomeSpace);
verifyFormat("T A::operator()();", SomeSpace);
- // FIXME these tests regressed behaviour.
- // verifyFormat("X A::operator++ (T);", SomeSpace);
+ verifyFormat("X A::operator++ (T);", SomeSpace);
verifyFormat("int x = int (y);", SomeSpace);
verifyFormat("auto lambda = []() { return 0; };", SomeSpace);
@@ -14274,6 +14273,7 @@
verifyFormat("typedef void (*cb)(int);", SpaceFuncDef);
verifyFormat("T A::operator()();", SpaceFuncDef);
verifyFormat("X A::operator++(T);", SpaceFuncDef);
+ // FIXME these tests regressed behaviour.
// verifyFormat("T A::operator() () {}", SpaceFuncDef);
verifyFormat("auto lambda = [] () { return 0; };", SpaceFuncDef);
verifyFormat("int x = int(y);", SpaceFuncDef);
@@ -14349,6 +14349,7 @@
verifyFormat("int f() throw (Deprecated);", SomeSpace2);
verifyFormat("typedef void (*cb) (int);", SomeSpace2);
verifyFormat("T A::operator()();", SomeSpace2);
+ // FIXME these tests regressed behaviour.
// verifyFormat("X A::operator++ (T);", SomeSpace2);
verifyFormat("int x = int (y);", SomeSpace2);
verifyFormat("auto lambda = []() { return 0; };", SomeSpace2);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114725.390406.patch
Type: text/x-patch
Size: 1476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211129/2f125067/attachment-0001.bin>
More information about the cfe-commits
mailing list