[clang] [clang-format] Fix annotation of alternative operator and (PR #199112)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 19 01:00:35 PDT 2026


================
@@ -22508,6 +22508,8 @@ TEST_F(FormatTest, DoNotCrashOnInvalidInput) {
   verifyNoCrash("        tst     %o5     ! are we doing the gray case?\n"
                 "LY52:                   ! [internal]");
   verifyNoCrash("operator foo *;");
+  verifyNoCrash(
+      "  #xxxx??x<xxxxxxx||??x<xxxxxxx and xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
----------------
owenca wrote:

This doesn't test the patch as it doesn't crash clang-format without the patch.

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


More information about the cfe-commits mailing list