[PATCH] D116328: [ast-matchers] Add hasSubstmt() traversal matcher for caseStmt(), defaultStmt(), labelStmt()

Richard via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 31 13:00:05 PST 2021


LegalizeAdulthood added inline comments.


================
Comment at: clang/lib/ASTMatchers/Dynamic/Registry.cpp:358
   REGISTER_MATCHER(hasStructuredBlock);
+  REGISTER_MATCHER(hasSubstmt);
   REGISTER_MATCHER(hasSyntacticForm);
----------------
I see there is another matcher called hasAnySubstatement where "substatement" is spelled out; I think I will rename this matcher hasSubstatement to be consistent with hasAnySubstatement.


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

https://reviews.llvm.org/D116328



More information about the cfe-commits mailing list