This is an archive of the discontinued LLVM Phabricator instance.

[libclang] Refactored SharedParsedRegionsStorage
ClosedPublic

Authored by gribozavr on Sep 2 2019, 5:52 AM.

Details

Summary

Removed the PPRegionSetTy typedef because it is only used 3 times, and
obscures code more than it helps.

Renamed SharedParsedRegionsStorage to ThreadSafeParsedRegions, because
that better reflects the reason for this type to exist.

Replaced the copyTo() method that had an out parameter with a getter.

Renamed the merge() method to addParsedRegions().

Renamed ParsedSrcLocationsTracker::ParsedRegions to
ParsedRegionsSnapshot, which better reflects its role.

Diff Detail

Repository
rL LLVM

Event Timeline

gribozavr created this revision.Sep 2 2019, 5:52 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 2 2019, 5:52 AM
jkorous accepted this revision.Sep 4 2019, 5:01 PM

Thanks for polishing this!

This revision is now accepted and ready to land.Sep 4 2019, 5:01 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 5 2019, 2:47 AM