[clang] [clang-format] Revert "[clang-format][NFC] Delete TT_LambdaArrow (#70… (PR #105923)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 23 22:12:56 PDT 2024
================
@@ -3369,6 +3371,20 @@ TEST_F(TokenAnnotatorTest, GNULanguageStandard) {
EXPECT_TOKEN(Tokens[2], tok::spaceship, TT_BinaryOperator);
}
+TEST_F(TokenAnnotatorTest, SplitPenalty) {
+ auto Style = getLLVMStyle();
+ Style.ColumnLimit = 20;
+
+ auto Tokens = annotate("class foo {\n"
+ " auto bar()\n"
+ " -> bool;\n"
+ "};",
+ Style);
+ ASSERT_EQ(Tokens.size(), 13u);
----------------
owenca wrote:
```suggestion
ASSERT_EQ(Tokens.size(), 13u) << Tokens;
```
https://github.com/llvm/llvm-project/pull/105923
More information about the cfe-commits
mailing list