[clang] Add isTrivial() and isTriviallyCopyable() AST matchers (PR #90634)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 09:58:59 PDT 2024
================
@@ -5444,6 +5444,43 @@ AST_MATCHER(FunctionDecl, isDefaulted) {
return Node.isDefaulted();
}
+/// Matches trivial methods and types.
----------------
higher-performance wrote:
Ah I see, yeah. I don't think we want to support that since the other matchers don't do that either (e.g., `isSameOrDerivedFrom`). That seems like a higher-level design change that should be made uniformly if it's desired.
https://github.com/llvm/llvm-project/pull/90634
More information about the cfe-commits
mailing list