Skip to content

Commit 342ff1a

Browse files
committed
[clang-tidy] Add a release note about unchecked-optional-access smart pointer caching
With caching added in llvm#120249, inform in notes that the `IgnoreSmartPointerDereference` option shouldn't be needed anymore. Other caching also added earlier: llvm#112605
1 parent a0d7749 commit 342ff1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang-tools-extra/docs/ReleaseNotes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,9 @@ Changes in existing checks
232232
<clang-tidy/checks/bugprone/unchecked-optional-access>` to support
233233
`bsl::optional` and `bdlb::NullableValue` from
234234
<https://github.com/bloomberg/bde>_.
235+
Fixed false positives from smart pointer accessors repeated in checking
236+
``has_value`` and accessing ``value`` are now fixed by now caching.
237+
So the option `IgnoreSmartPointerDereference` should no longer be needed.
235238

236239
- Improved :doc:`bugprone-unhandled-self-assignment
237240
<clang-tidy/checks/bugprone/unhandled-self-assignment>` check by fixing smart

0 commit comments

Comments
 (0)