[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)
Valentyn Yukhymenko via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 9 05:33:36 PDT 2025
================
@@ -201,6 +201,11 @@ Changes in existing checks
namespace are treated as the tag or the data part of a user-defined
tagged union respectively.
+- Improved :doc:`bugprone-unchecked-optional-access
+ <clang-tidy/checks/bugprone/unchecked-optional-access>` check by supporting
+ `NullableValue::makeValue` and `NullableValue::makeValueInplace` to prevent
+ false-positives for `BloombergLP::bdlb::NullableValue` type.
----------------
BaLiKfromUA wrote:
Sorry, I was not aware of this style requirement. Applied your diff
https://github.com/llvm/llvm-project/pull/144313
More information about the cfe-commits
mailing list