[PATCH] D67057: [AST][JSON] Generate parent context id from Decl* instead of DeclContext*

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 4 06:15:42 PDT 2019


aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.

LGTM aside from a small nit. Thank you for this!



================
Comment at: clang/lib/AST/JSONNodeDumper.cpp:118
+    // same AST Node.
+    auto ParentDeclContextDecl = dyn_cast<Decl>(D->getDeclContext());
+    JOS.attribute("parentDeclContextId",
----------------
`const auto *`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D67057





More information about the cfe-commits mailing list