This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][NoStoreFuncVisitor][NFC] Move methods out-of-line, turn some to static functions
ClosedPublic

Authored by Szelethus on Jun 10 2019, 11:30 AM.

Details

Summary

I personally found NoStoreFuncVisitor very hard to read, and since I'm planning to make other changes to it later on, I think this time is as good as any to make it somewhat more readable.

  • Make several methods static functions
  • Move non-trivial methods out-of-line
  • Add a divider
  • Turn non-obvious autos into Optional<RegionVector>
  • clang-format affected lines

Diff Detail

Repository
rL LLVM

Event Timeline

Szelethus created this revision.Jun 10 2019, 11:30 AM
NoQ accepted this revision.Jun 10 2019, 6:55 PM

Thx for the cleanup!

clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
340 ↗(On Diff #203865)

Wait, it's not necessarily a CXX decl.

This revision is now accepted and ready to land.Jun 10 2019, 6:55 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2019, 7:07 AM