[clang] [clang-format] adds a space after not inside macros (PR #78176)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 4 12:43:44 PST 2024


================
@@ -24160,6 +24160,14 @@ TEST_F(FormatTest, AlternativeOperators) {
   verifyFormat("int a compl(5);");
   verifyFormat("int a not(5);");
 
+  verifyFormat("v(not)");
+  verifyFormat("v(not!)");
+  verifyFormat("Symbol(not, None)");
+  verifyFormat("Symbol(not!, None)");
+
+  verifyFormat("assert(!\"fail\")");
+  verifyFormat("assert(not\"fail\")");
----------------
owenca wrote:

You're right!

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


More information about the cfe-commits mailing list