forked from OSchip/llvm-project
[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:
parent
798fa7e9d6
commit
934d603826
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue