[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: Improve handling of value constructors for `bsl::optional` and `bdlb::NullableValue` (PR #224969)
Valentyn Yukhymenko via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 20 14:38:35 PDT 2026
================
@@ -247,7 +247,7 @@ auto isMakeOptionalCall() {
callee(functionDecl(hasAnyName(
"std::make_optional", "base::make_optional", "absl::make_optional",
"folly::make_optional", "bsl::make_optional"))),
- hasOptionalType());
+ hasOptionalOrDerivedType());
----------------
BaLiKfromUA wrote:
This is needed to fix a regression introduced in https://github.com/llvm/llvm-project/pull/168863
https://github.com/llvm/llvm-project/pull/224969
More information about the cfe-commits
mailing list