[clang] [clang-format] adds a space after not inside macros (PR #78176)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 4 06:54:53 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\")");
----------------
mydeveloperday wrote:
I've seen this used extensively, I'm not sure it triggers a compile warning.
assert(!"fail")
https://github.com/llvm/llvm-project/pull/78176
More information about the cfe-commits
mailing list