Skip to content

Commit e82f75f

Browse files
committed
Make helper functions 'static'
1 parent 51cac47 commit e82f75f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ enum class BadOffsetKind { Negative, Overflowing, Indeterminate };
134134

135135
constexpr llvm::StringLiteral Adjectives[] = {"a negative", "an overflowing",
136136
"a negative or overflowing"};
137-
StringRef asAdjective(BadOffsetKind Problem) {
137+
static StringRef asAdjective(BadOffsetKind Problem) {
138138
return Adjectives[static_cast<int>(Problem)];
139139
}
140140

141141
constexpr llvm::StringLiteral Prepositions[] = {"preceding", "after the end of",
142142
"around"};
143-
StringRef asPreposition(BadOffsetKind Problem) {
143+
static StringRef asPreposition(BadOffsetKind Problem) {
144144
return Prepositions[static_cast<int>(Problem)];
145145
}
146146

0 commit comments

Comments
 (0)