PreprocessorTracker is the last user of the old StringPool class, which
isn't super loved and isn't a great improvement over a plan StringSet.
Once this goes in we can remove StringPool entirely.
This is as discussed on cfe-dev.
| Paths 
 |  Differential  D78273  
[clang-tools-extra] reimplement PreprocessorTracker in terms of StringSet. ClosedPublic Authored by lattner on Apr 15 2020, 10:28 PM. 
Details Summary PreprocessorTracker is the last user of the old StringPool class, which This is as discussed on cfe-dev. 
Diff Detail 
 Event TimelineMaskRay added inline comments. 
 Comment Actions Hey @MaskRay, yes StringSet/StringMap's entries are separately allocated and the iterators/pointers are stable. The strings are held in each entry. This revision is now accepted and ready to land.Apr 16 2020, 12:21 PM Closed by commit rG39c9c12b76da: [clang-tools-extra] reimplement PreprocessorTracker in terms of StringSet. (authored by lattner).  ·  Explain WhyApr 16 2020, 1:25 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 258159 clang-tools-extra/modularize/PreprocessorTracker.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Nice.