Skip to content

Commit 09f6a7b

Browse files
committed
Spell types explicitly (no auto).
1 parent 8819461 commit 09f6a7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ AST_MATCHER_P(DeclRefExpr, doesNotMutateObject, int, Indirections) {
7777

7878
llvm::SmallVector<StackEntry, 4> Stack;
7979
Stack.emplace_back(&Node, Indirections);
80-
auto &Ctx = Finder->getASTContext();
80+
ASTContext &Ctx = Finder->getASTContext();
8181

8282
while (!Stack.empty()) {
8383
const StackEntry Entry = Stack.back();
@@ -96,7 +96,7 @@ AST_MATCHER_P(DeclRefExpr, doesNotMutateObject, int, Indirections) {
9696

9797
// Otherwise we have to look at the parents to see how the expression is
9898
// used.
99-
const auto Parents = Ctx.getParents(*Entry.E);
99+
const DynTypedNodeList Parents = Ctx.getParents(*Entry.E);
100100
// Note: most nodes have a single parents, but there exist nodes that have
101101
// several parents, such as `InitListExpr` that have semantic and syntactic
102102
// forms.

0 commit comments

Comments
 (0)