[clang] 879bd91 - [clang-format] Disable FixRanges in IntegerLiteralSeparatorTest
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 24 18:55:32 PST 2022
Author: Owen Pan
Date: 2022-12-24T18:55:24-08:00
New Revision: 879bd9146a2c9ea395abd7c1ebd0f76f414a4967
URL: https://github.com/llvm/llvm-project/commit/879bd9146a2c9ea395abd7c1ebd0f76f414a4967
DIFF: https://github.com/llvm/llvm-project/commit/879bd9146a2c9ea395abd7c1ebd0f76f414a4967.diff
LOG: [clang-format] Disable FixRanges in IntegerLiteralSeparatorTest
The FixRanges unit test from 46c94e5067b5 breaks the build bots.
Disable it for now.
Added:
Modified:
clang/unittests/Format/IntegerLiteralSeparatorTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Format/IntegerLiteralSeparatorTest.cpp b/clang/unittests/Format/IntegerLiteralSeparatorTest.cpp
index 8698947818e5..7f6d3049e27d 100644
--- a/clang/unittests/Format/IntegerLiteralSeparatorTest.cpp
+++ b/clang/unittests/Format/IntegerLiteralSeparatorTest.cpp
@@ -152,6 +152,8 @@ TEST_F(IntegerLiteralSeparatorTest, UnderscoreAsSeparator) {
verifyFormat("o = 0o400000000000000003n;", Style);
}
+// FIXME: figure out why the following test breaks the build bots.
+#if 0
TEST_F(IntegerLiteralSeparatorTest, FixRanges) {
FormatStyle Style = getLLVMStyle();
Style.IntegerLiteralSeparator.Decimal = 3;
@@ -188,6 +190,7 @@ TEST_F(IntegerLiteralSeparatorTest, FixRanges) {
verifyFormat(Expected, Code, Style,
{tooling::Range(0, 11), tooling::Range(61, 12)}); // lines 1, 5
}
+#endif
TEST_F(IntegerLiteralSeparatorTest, FloatingPoint) {
FormatStyle Style = getLLVMStyle();
More information about the cfe-commits
mailing list