File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,7 @@ bool needsSpacePrefix(SourceLocation Loc, ASTContext &Context) {
160
160
return true ;
161
161
162
162
const StringRef AllowedCharacters (" \t\n\v\f\r (){}[]<>;,+=-|&~!^*/" );
163
- return SpaceBeforeStmtStr.rtrim (AllowedCharacters).size () ==
164
- SpaceBeforeStmtStr.size ();
163
+ return !AllowedCharacters.contains (SpaceBeforeStmtStr.back ());
165
164
}
166
165
167
166
void fixGenericExprCastFromBool (DiagnosticBuilder &Diag,
Original file line number Diff line number Diff line change @@ -529,7 +529,7 @@ namespace PR71848 {
529
529
int fun () {
530
530
bool foo = false ;
531
531
return ( foo );
532
- // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: implicit conversion bool -> 'int' [readability-implicit-bool-conversion]
532
+ // CHECK-MESSAGES: :[[@LINE-1]]:11: warning: implicit conversion ' bool' -> 'int' [readability-implicit-bool-conversion]
533
533
// CHECK-FIXES: return static_cast<int>( foo );
534
534
}
535
535
}
You can’t perform that action at this time.
0 commit comments