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

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


================
@@ -458,6 +532,9 @@ class ASTNodeTraverser
     if (Traversal == TK_IgnoreUnlessSpelledInSource && D->isCXXForRangeDecl())
       return;
 
+    if (VisitLocs)
+      if (const auto *TSI = D->getTypeSourceInfo())
+        Visit(TSI->getTypeLoc());
----------------
sam-mccall wrote:

Done

https://github.com/llvm/llvm-project/pull/65484


More information about the cfe-commits mailing list