aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
diff options
context:
space:
mode:
authorPiotr Zegar <me@piotrzegar.pl>2023-08-26 16:30:14 +0000
committerPiotr Zegar <me@piotrzegar.pl>2023-08-27 08:52:09 +0000
commitf1f16331bd6810a574100a31d369921c1f4adcaf (patch)
tree822c21650662c41a36c1da3b9a6c56752fc01ad5 /clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
parente41d383440883fa2f87012b765fcc2d450f6fd55 (diff)
downloadllvm-f1f16331bd6810a574100a31d369921c1f4adcaf.zip
llvm-f1f16331bd6810a574100a31d369921c1f4adcaf.tar.gz
llvm-f1f16331bd6810a574100a31d369921c1f4adcaf.tar.bz2
[clang-tidy][NFC] Fix readability-inconsistent-declaration-parameter-name findings
Fix issues found by clang-tidy in clang-tidy source directory.
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp')
-rw-r--r--clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp b/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
index 295c244..7593615 100644
--- a/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
+++ b/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
@@ -49,10 +49,10 @@ bool StmtAncestorASTVisitor::TraverseStmt(Stmt *Statement) {
/// Combined with StmtAncestors, this provides roughly the same information as
/// Scope, as we can map a VarDecl to its DeclStmt, then walk up the parent tree
/// using StmtAncestors.
-bool StmtAncestorASTVisitor::VisitDeclStmt(DeclStmt *Decls) {
- for (const auto *Decl : Decls->decls()) {
+bool StmtAncestorASTVisitor::VisitDeclStmt(DeclStmt *Statement) {
+ for (const auto *Decl : Statement->decls()) {
if (const auto *V = dyn_cast<VarDecl>(Decl))
- DeclParents.insert(std::make_pair(V, Decls));
+ DeclParents.insert(std::make_pair(V, Statement));
}
return true;
}