This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Small refactor for ExceptionAnalyzer
ClosedPublic

Authored by AMS21 on Apr 1 2023, 5:11 AM.

Details

Summary
  • Use llvm::DenseMap<> with pre-allocation instead of std::map<> for FunctionCache
  • Avoid double lookup for FunctionCache
  • Use try_emplace instead of insert
  • Simplify definition of State enum

Diff Detail

Event Timeline

AMS21 created this revision.Apr 1 2023, 5:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2023, 5:11 AM
AMS21 requested review of this revision.Apr 1 2023, 5:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2023, 5:11 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
PiotrZSL accepted this revision.Apr 2 2023, 8:52 AM

LGTM.

This revision is now accepted and ready to land.Apr 2 2023, 8:52 AM
AMS21 added a comment.Apr 3 2023, 11:14 PM

LGTM.

I would kindly ask for someone to commit this on my behalf.

This revision was automatically updated to reflect the committed changes.