[clang] [AST] Add dump() method to TypeLoc (PR #65484)

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 13:51:02 PDT 2023


================
@@ -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


More information about the cfe-commits mailing list