This is an extension to diff D99260. This adds an additional exception for std::__addressof in InnerPointerChecker.
Originally authored by alishuja (Ali Shuja Siddiqui).
Paths
| Differential D109467
[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 TimelineHerald added subscribers: manas, martong, dkrupp and 7 others. · View Herald TranscriptSep 8 2021, 2:49 PM Comment Actions 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. This revision is now accepted and ready to land.May 2 2022, 3:47 AM Comment Actions @alishuja, Shall I submit this patch with --author="Ali Shuja Siddiqui <alishuja@gmail.com>" (thus on your behalf) ? This revision was landed with ongoing or failed builds.May 3 2022, 5:05 AM Closed by commit rGcf7cd664f3fd: [analyzer] Check for std::__addressof for inner pointer checker (authored by alishuja, committed by steakhal). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 426651 clang/lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp
clang/test/Analysis/inner-pointer.cpp
|