[PATCH] D135518: [clangAST] support TypeLoc in TextNodeDumper

Tobias Ribizel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 00:19:56 PDT 2022


upsj updated this revision to Diff 467698.
upsj marked 6 inline comments as done.
upsj added a comment.

I incorporated the `cast`, `ASTContext` and `StringRef` suggestions. About JSONDumper, I was surprised to see that it doesn't seem to use `AddChild` for the AST hierarchy at all, so I'm not quite clear how (if?) it builds a nested output. What's the easiest way to invoke it?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135518/new/

https://reviews.llvm.org/D135518

Files:
  clang/include/clang/AST/ASTNodeTraverser.h
  clang/include/clang/AST/TextNodeDumper.h
  clang/include/clang/AST/TypeLoc.h
  clang/lib/AST/TextNodeDumper.cpp
  clang/lib/AST/TypeLoc.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135518.467698.patch
Type: text/x-patch
Size: 13523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221014/8577d7de/attachment-0001.bin>


More information about the cfe-commits mailing list