[clang] [clang][dataflow] Make optional checker work for types derived from optional. (PR #84138)
Yitzhak Mandelbaum via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 18 12:08:16 PDT 2024
================
@@ -129,19 +215,19 @@ auto inPlaceClass() {
auto isOptionalNulloptConstructor() {
return cxxConstructExpr(
- hasOptionalType(),
+ hasOptionalOrDerivedType(),
----------------
ymand wrote:
Here and below -- now that this matcher is more expensive, please move until after the less expensive matchers.
https://github.com/llvm/llvm-project/pull/84138
More information about the cfe-commits
mailing list