[clang-tidy][NFC] Add preposition "of" to code annotation of ElseAfterReturnCheck

Reviewed By: njames93

Differential Revision: https://reviews.llvm.org/D129953
This commit is contained in:
Zhouyi Zhou 2022-07-22 12:37:50 +01:00 committed by Nathan James
parent 798fa7e9d6
commit 934d603826
No known key found for this signature in database
GPG Key ID: CC007AFCDA90AA5F
1 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ void ElseAfterReturnCheck::check(const MatchFinder::MatchResult &Result) {
if (!WarnOnConditionVariables)
return;
if (IsLastInScope) {
// If the if statement is the last statement its enclosing statements
// If the if statement is the last statement of its enclosing statements
// scope, we can pull the decl out of the if statement.
DiagnosticBuilder Diag = diag(ElseLoc, WarningMessage)
<< ControlFlowInterruptor
@ -299,7 +299,7 @@ void ElseAfterReturnCheck::check(const MatchFinder::MatchResult &Result) {
if (!WarnOnConditionVariables)
return;
if (IsLastInScope) {
// If the if statement is the last statement its enclosing statements
// If the if statement is the last statement of its enclosing statements
// scope, we can pull the decl out of the if statement.
DiagnosticBuilder Diag = diag(ElseLoc, WarningMessage)
<< ControlFlowInterruptor