================ @@ -458,6 +532,9 @@ class ASTNodeTraverser if (Traversal == TK_IgnoreUnlessSpelledInSource && D->isCXXForRangeDecl()) return; + if (VisitLocs) ---------------- sam-mccall wrote:
Yes, there may be others but for now this is the only place I found where a Loc node contains a non-Loc node which contains a Loc node (and so has to decide whether to dump it). https://github.com/llvm/llvm-project/pull/65484 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits