[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:34 PDT 2026


================
@@ -4194,6 +4194,10 @@ TEST_F(TokenAnnotatorTest, CppAltOperatorKeywords) {
   ASSERT_EQ(Tokens.size(), 7u) << Tokens;
   EXPECT_TOKEN(Tokens[3], tok::caretequal, TT_BinaryOperator);
 
+  Tokens = annotate("if (a and b) {}");
----------------
owenca wrote:

This doesn't test the patch as the `and` is correctly annotated without this patch.

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


More information about the cfe-commits mailing list