Skip to content

Commit 827be5a

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in IntegerPolyhedronTest.cpp (NFC)
1 parent d25b2c8 commit 827be5a

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

mlir/unittests/Analysis/Presburger/IntegerPolyhedronTest.cpp

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,14 +1087,15 @@ TEST(IntegerPolyhedronTest, negativeDividends) {
10871087
checkDivisionRepresentation(poly1, divisions, denoms);
10881088
}
10891089

1090-
void expectRationalLexMin(const IntegerPolyhedron &poly,
1091-
ArrayRef<Fraction> min) {
1090+
static void expectRationalLexMin(const IntegerPolyhedron &poly,
1091+
ArrayRef<Fraction> min) {
10921092
auto lexMin = poly.findRationalLexMin();
10931093
ASSERT_TRUE(lexMin.isBounded());
10941094
EXPECT_EQ(ArrayRef<Fraction>(*lexMin), min);
10951095
}
10961096

1097-
void expectNoRationalLexMin(OptimumKind kind, const IntegerPolyhedron &poly) {
1097+
static void expectNoRationalLexMin(OptimumKind kind,
1098+
const IntegerPolyhedron &poly) {
10981099
ASSERT_NE(kind, OptimumKind::Bounded)
10991100
<< "Use expectRationalLexMin for bounded min";
11001101
EXPECT_EQ(poly.findRationalLexMin().getKind(), kind);
@@ -1167,13 +1168,15 @@ TEST(IntegerPolyhedronTest, findRationalLexMin) {
11671168
parseIntegerPolyhedron("(x) : (2*x >= 0, -x - 1 >= 0)"));
11681169
}
11691170

1170-
void expectIntegerLexMin(const IntegerPolyhedron &poly, ArrayRef<int64_t> min) {
1171+
static void expectIntegerLexMin(const IntegerPolyhedron &poly,
1172+
ArrayRef<int64_t> min) {
11711173
MaybeOptimum<SmallVector<DynamicAPInt, 8>> lexMin = poly.findIntegerLexMin();
11721174
ASSERT_TRUE(lexMin.isBounded());
11731175
EXPECT_EQ(*lexMin, getDynamicAPIntVec(min));
11741176
}
11751177

1176-
void expectNoIntegerLexMin(OptimumKind kind, const IntegerPolyhedron &poly) {
1178+
static void expectNoIntegerLexMin(OptimumKind kind,
1179+
const IntegerPolyhedron &poly) {
11771180
ASSERT_NE(kind, OptimumKind::Bounded)
11781181
<< "Use expectRationalLexMin for bounded min";
11791182
EXPECT_EQ(poly.findRationalLexMin().getKind(), kind);
@@ -1191,7 +1194,7 @@ TEST(IntegerPolyhedronTest, findIntegerLexMin) {
11911194
">= 0, -11*z + 5*y - 3*x + 7 >= 0)"));
11921195
}
11931196

1194-
void expectSymbolicIntegerLexMin(
1197+
static void expectSymbolicIntegerLexMin(
11951198
StringRef polyStr,
11961199
ArrayRef<std::pair<StringRef, StringRef>> expectedLexminRepr,
11971200
ArrayRef<StringRef> expectedUnboundedDomainRepr) {
@@ -1218,8 +1221,9 @@ void expectSymbolicIntegerLexMin(
12181221
}
12191222
}
12201223

1221-
void expectSymbolicIntegerLexMin(
1222-
StringRef polyStr, ArrayRef<std::pair<StringRef, StringRef>> result) {
1224+
static void
1225+
expectSymbolicIntegerLexMin(StringRef polyStr,
1226+
ArrayRef<std::pair<StringRef, StringRef>> result) {
12231227
expectSymbolicIntegerLexMin(polyStr, result, {});
12241228
}
12251229

@@ -1463,8 +1467,8 @@ TEST(IntegerPolyhedronTest, computeVolume) {
14631467
/*trueVolume=*/{}, /*resultBound=*/{});
14641468
}
14651469

1466-
bool containsPointNoLocal(const IntegerPolyhedron &poly,
1467-
ArrayRef<int64_t> point) {
1470+
static bool containsPointNoLocal(const IntegerPolyhedron &poly,
1471+
ArrayRef<int64_t> point) {
14681472
return poly.containsPointNoLocal(getDynamicAPIntVec(point)).has_value();
14691473
}
14701474

0 commit comments

Comments
 (0)