File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ void StringConstructorCheck::check(const MatchFinder::MatchResult &Result) {
134
134
const auto *Str = Result.Nodes .getNodeAs <StringLiteral>(" str" );
135
135
const auto *Lit = Result.Nodes .getNodeAs <IntegerLiteral>(" int" );
136
136
if (Lit->getValue ().ugt (Str->getLength ())) {
137
- diag (Loc, " length is bigger then string literal size" );
137
+ diag (Loc, " length is bigger than string literal size" );
138
138
}
139
139
} else if (const auto *Ptr = Result.Nodes .getNodeAs <Expr>(" from-ptr" )) {
140
140
Expr::EvalResult ConstPtr;
Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ void Test() {
39
39
std::string q1 (kText , -4 );
40
40
// CHECK-MESSAGES: [[@LINE-1]]:15: warning: negative value used as length parameter
41
41
std::string q2 (" test" , 200 );
42
- // CHECK-MESSAGES: [[@LINE-1]]:15: warning: length is bigger then string literal size
42
+ // CHECK-MESSAGES: [[@LINE-1]]:15: warning: length is bigger than string literal size
43
43
std::string q3 (kText , 200 );
44
- // CHECK-MESSAGES: [[@LINE-1]]:15: warning: length is bigger then string literal size
44
+ // CHECK-MESSAGES: [[@LINE-1]]:15: warning: length is bigger than string literal size
45
45
std::string q4 (kText2 , 200 );
46
- // CHECK-MESSAGES: [[@LINE-1]]:15: warning: length is bigger then string literal size
46
+ // CHECK-MESSAGES: [[@LINE-1]]:15: warning: length is bigger than string literal size
47
47
std::string q5 (kText3 , 0x1000000 );
48
48
// CHECK-MESSAGES: [[@LINE-1]]:15: warning: suspicious large length parameter
49
49
std::string q6 (nullptr );
You can’t perform that action at this time.
0 commit comments