New false positive in clang-tidy 18 bugprone-unchecked-optional access #93194
Labels
clang:dataflow
Clang Dataflow Analysis framework - https://clang.llvm.org/docs/DataFlowAnalysisIntro.html
clang-tidy
false-positive
Warning fires when it should not
I'm trying to upgrade to clang-tidy-18 and found a regression with the changed bugprone-unchecked-optional-access check.
I managed to distill the following minimal reproducer:
The reuse of the loop indexing variable name seems to be the root cause.
The text was updated successfully, but these errors were encountered: