[PATCH] D65092: [clang] Add isDirectlyDerivedFrom AST Matcher.

Manuel Klimek via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 24 06:38:36 PDT 2019


klimek added a comment.

So, I did like the more exhaustive doc, I thought you'd move it to the code so it also shows up in the generated doc page :) (sorry for not being clearer here)



================
Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:2637
               internal::Matcher<NamedDecl>, Base) {
-  return Finder->classIsDerivedFrom(&Node, Base, Builder);
+  return Finder->classIsDerivedFrom(&Node, Base, Builder, /*Directly*/ false);
 }
----------------
If you say /*Directly=*/false, you should
a) not get a space from clang-format
b) clang-tidy can check it's the right parameter name :)


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