=?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= <[email protected]>,
=?utf-8?q?Bj=C3=B6rn_Sch=C3=A4pers?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
================
@@ -243,6 +243,22 @@ TEST_F(IntegerLiteralSeparatorTest, FloatingPoint) {
Style);
}
+TEST_F(IntegerLiteralSeparatorTest, MaxDigitsNoSeparator) {
+ auto Style = getLLVMStyle();
+ Style.IntegerLiteralSeparator.Decimal = 3;
+ Style.IntegerLiteralSeparator.DecimalMaxDigitsNoSeparator = 4;
+ Style.IntegerLiteralSeparator.DecimalMinDigits = 7;
+ verifyFormat("d0 = 2023;\n"
+ "d1 = 123456;\n"
----------------
owenca wrote:
It's weird that unlike `d2`, `d1` doesn't get a separator.
https://github.com/llvm/llvm-project/pull/164286
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits