Page MenuHomePhabricator

[NFC] Cleanup Dex

Authored by kbobyrev on Aug 31 2018, 1:14 AM.


  • Use consistent assertion messages in iterators implementations
  • Silence a bunch of clang-tidy warnings: use emplace_back instead of push_back where possible, make sure arguments have the same name in header and implementation file, use for loop over ranges where possible

Diff Detail


Event Timeline

kbobyrev created this revision.Aug 31 2018, 1:14 AM

The next step would be to move Dex to index/ and slightly simplify file structure, but I guess I should consider doing that after D51422 lands, otherwise it's a lot of effort to keep rebasing everything on top of different patches.

ioeric accepted this revision.Aug 31 2018, 1:34 AM
ioeric added inline comments.
33 ↗(On Diff #163473)

Do you still need to spell out the constructor with emplace_back?

395 ↗(On Diff #163473)

No need for make_pair here?

This revision is now accepted and ready to land.Aug 31 2018, 1:34 AM
kbobyrev updated this revision to Diff 163485.Aug 31 2018, 2:09 AM
kbobyrev marked 2 inline comments as done.
Closed by commit rL341190: [NFC] Cleanup Dex (authored by omtcyfz, committed by ). · Explain WhyAug 31 2018, 2:19 AM
This revision was automatically updated to reflect the committed changes.