[clang] [clang-tools-extra] [clang-tidy] `bugprone-unchecked-optional-access`: handle `BloombergLP::bdlb:NullableValue::makeValue` to prevent false-positives (PR #144313)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 5 11:41:25 PDT 2025


================
@@ -245,6 +245,9 @@ Changes in existing checks
   <clang-tidy/checks/readability/qualified-auto>` check by adding the option
   `IgnoreAliasing`, that allows not looking at underlying types of type aliases.
 
+- 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.
+
----------------
vbvictor wrote:

Please make lines no more than 80 characters long in ReleaseNotes.

https://github.com/llvm/llvm-project/pull/144313


More information about the cfe-commits mailing list