This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] check for std::__addressof for inner pointer checker
ClosedPublic

Authored by steakhal on Sep 8 2021, 2:49 PM.

Details

Summary

This is an extension to diff D99260. This adds an additional exception for std::__addressof in InnerPointerChecker.

Originally authored by alishuja (Ali Shuja Siddiqui).

Diff Detail

Event Timeline

alishuja created this revision.Sep 8 2021, 2:49 PM
alishuja requested review of this revision.Sep 8 2021, 2:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2021, 2:49 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
NoQ added a comment.Sep 8 2021, 8:22 PM

Thanks! Can you add a regression test for this, like D99260 does in test/Analysis/inner-pointer.cpp? We typically want all commits to have associated test cases.

steakhal commandeered this revision.Apr 26 2022, 12:49 AM
steakhal edited reviewers, added: alishuja; removed: steakhal.

I'll finish this one.

Herald added a project: Restricted Project. · View Herald Transcript
steakhal updated this revision to Diff 425139.Apr 26 2022, 12:51 AM
steakhal edited the summary of this revision. (Show Details)
  • rebased (now using matchesAny(...)
  • added a test
martong accepted this revision.May 2 2022, 3:47 AM

LGTM

This revision is now accepted and ready to land.May 2 2022, 3:47 AM

@alishuja, Shall I submit this patch with --author="Ali Shuja Siddiqui <alishuja@gmail.com>" (thus on your behalf) ?
The LLVM DeveloperPolicy mandates me for asking permission.

alishuja accepted this revision.May 3 2022, 4:51 AM

@steakhal yes please go ahead, thank you.

This revision was landed with ongoing or failed builds.May 3 2022, 5:05 AM
This revision was automatically updated to reflect the committed changes.