[PATCH] D94877: Add API to retrieve a clade kind from ASTNodeKind

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 19 06:31:51 PST 2021


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

LGTM aside from the use of `auto`.



================
Comment at: clang/lib/AST/ASTTypeTraits.cpp:67
+ASTNodeKind ASTNodeKind::getCladeKind() const {
+  auto LastId = KindId;
+  while (LastId) {
----------------



================
Comment at: clang/lib/AST/ASTTypeTraits.cpp:69
+  while (LastId) {
+    auto ParentId = AllKindInfo[LastId].ParentId;
+    if (ParentId == NKI_None)
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94877



More information about the cfe-commits mailing list