The underlying model already supports ignoring accesses to optionals through
smart pointers. This patch exposes that option through ClangTidy's configuration
options.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D140021
[clang-tidy] Add configuration option to bugprone-unchecked-optional-access check. ClosedPublic Authored by ymandel on Dec 14 2022, 6:11 AM.
Details Summary The underlying model already supports ignoring accesses to optionals through
Diff Detail
Event TimelineEugene.Zelenko added reviewers: aaron.ballman, LegalizeAdulthood, hokein, gribozavr.Dec 14 2022, 7:32 AM This revision is now accepted and ready to land.Dec 14 2022, 8:45 AM This revision was landed with ongoing or failed builds.Dec 15 2022, 7:43 AM Closed by commit rG98550df7b7bb: [clang-tidy] Add configuration option to bugprone-unchecked-optional-access… (authored by ymandel). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 482834 clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.h
clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/bugprone/unchecked-optional-access-ignore-smart.cpp
|