This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][NFC] Uplift checkers after D126801
ClosedPublic

Authored by steakhal on Jun 1 2022, 11:54 AM.

Diff Detail

Event Timeline

steakhal created this revision.Jun 1 2022, 11:54 AM
Herald added a project: Restricted Project. · View Herald Transcript
steakhal requested review of this revision.Jun 1 2022, 11:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2022, 11:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

I think we should avoid auto when using State->get<> because the type is not immediate for the reader. (Unlike in a cast<T>.)

clang/lib/StaticAnalyzer/Checkers/ErrnoModeling.cpp
198
clang/lib/StaticAnalyzer/Checkers/ObjCSelfInitChecker.cpp
108

I'd rather keep the type here.

steakhal updated this revision to Diff 433737.Jun 2 2022, 7:09 AM
steakhal marked 2 inline comments as done.
  • replace auto
martong accepted this revision.Jun 2 2022, 7:27 AM

LGTM

This revision is now accepted and ready to land.Jun 2 2022, 7:27 AM
This revision was automatically updated to reflect the committed changes.