[libclang] Refactored SharedParsedRegionsStorage
authorDmitri Gribenko <gribozavr@gmail.com>
Thu, 5 Sep 2019 09:48:39 +0000 (09:48 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Thu, 5 Sep 2019 09:48:39 +0000 (09:48 +0000)
commit84dd9f4d5bbde123d422c1a39676aaee9602843a
treef9127142a5fb8dcef1a6647615800e2e50aaadc2
parentc6fda60d71ad4958a2ae0e6c11a89e39cddb6d70
[libclang] Refactored SharedParsedRegionsStorage

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.

Subscribers: arphaman, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67077

llvm-svn: 371041
clang/tools/libclang/Indexing.cpp