[PATCH] D65092: [clang] Add isDirectlyDerivedFrom AST Matcher.
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 24 06:54:49 PDT 2019
aaron.ballman added inline comments.
================
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:2672
+ BaseName, 1) {
+ assert(!BaseName.empty());
+ return isDirectlyDerivedFrom(hasName(BaseName))
----------------
I don't think this assertion is reasonable -- we should instead test this as a predicate and return false if the base name is empty.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65092/new/
https://reviews.llvm.org/D65092
More information about the cfe-commits
mailing list