The check now understands that calling std::forward
will not modify the underlying optional value.
This fixes llvm#59705
Paths
| Differential D147383
[clang-tidy] Allow bugprone-unchecked-optional-access to handle calls to `std::forward` ClosedPublic Authored by AMS21 on Apr 1 2023, 12:14 PM.
Details Summary The check now understands that calling std::forward This fixes llvm#59705
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 1 2023, 12:14 PM Comment Actions LGTM
This revision is now accepted and ready to land.Apr 3 2023, 11:43 AM This revision was landed with ongoing or failed builds.Apr 4 2023, 12:25 AM Closed by commit rG25956d55d024: [clang-tidy] Allow bugprone-unchecked-optional-access to handle calls to `std… (authored by AMS21, committed by PiotrZSL). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 510698 clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/bugprone/unchecked-optional-access.cpp
clang/lib/Analysis/FlowSensitive/Models/UncheckedOptionalAccessModel.cpp
|