================
@@ -458,6 +532,9 @@ class ASTNodeTraverser
if (Traversal == TK_IgnoreUnlessSpelledInSource && D->isCXXForRangeDecl())
return;
+ if (VisitLocs)
----------------
cor3ntin wrote:
Is that the only place where `VisitLocs` is used?
https://github.com/llvm/llvm-project/pull/65484