This is an archive of the discontinued LLVM Phabricator instance.

[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
smart pointers. This patch exposes that option through ClangTidy's configuration
options.

Diff Detail

Event Timeline

ymandel created this revision.Dec 14 2022, 6:11 AM
Herald added a project: Restricted Project. · View Herald Transcript
ymandel requested review of this revision.Dec 14 2022, 6:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2022, 6:11 AM
ymandel updated this revision to Diff 482833.Dec 14 2022, 6:17 AM

simplify new test file to only include relevant cases

ymandel updated this revision to Diff 482834.Dec 14 2022, 6:19 AM

comment tweaks

xazax.hun accepted this revision.Dec 14 2022, 8:45 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
This revision was automatically updated to reflect the committed changes.