This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Update unchecked-optional-access-check to use convenience function for diagnosing `FunctionDecl`s.
ClosedPublic

Authored by ymandel on Jul 25 2023, 11:28 AM.

Details

Summary

Also changes code in the underlying model to fit the type expected by the convenience function.

Diff Detail

Event Timeline

ymandel created this revision.Jul 25 2023, 11:28 AM
Herald added a reviewer: njames93. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
ymandel requested review of this revision.Jul 25 2023, 11:28 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 25 2023, 11:28 AM
mboehme retitled this revision from [clang-tidy] Update unchecked-optiona-access-check to use convenience function for diagnosing `FunctionDecl`s. to [clang-tidy] Update unchecked-optional-access-check to use convenience function for diagnosing `FunctionDecl`s..Jul 26 2023, 12:48 AM
mboehme accepted this revision.Jul 26 2023, 12:57 AM

Note this appears to have clang-format errors

clang-tools-extra/clang-tidy/bugprone/UncheckedOptionalAccessCheck.cpp
57–62

Errors could be confused with the error that is present inside the Expected.

This revision is now accepted and ready to land.Jul 26 2023, 12:57 AM
ymandel updated this revision to Diff 544370.Jul 26 2023, 7:50 AM

address comment

xazax.hun accepted this revision.Jul 26 2023, 9:07 AM
ymandel updated this revision to Diff 544415.Jul 26 2023, 10:02 AM

clang-format

This revision was landed with ongoing or failed builds.Jul 26 2023, 10:12 AM
This revision was automatically updated to reflect the committed changes.