[PATCH] D129953: [PATCH] [clang-tidy] NFC: add preposition "of" to code annotation of ElseAfterReturnCheck
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 22 04:40:30 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG934d60382673: [clang-tidy][NFC] Add preposition "of" to code annotation of… (authored by zhouyizhou, committed by njames93).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129953/new/
https://reviews.llvm.org/D129953
Files:
clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
Index: clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
===================================================================
--- clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
+++ clang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
@@ -263,7 +263,7 @@
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 @@
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129953.446785.patch
Type: text/x-patch
Size: 1155 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220722/4ded81a6/attachment.bin>
More information about the cfe-commits
mailing list