As Miklos Vajna noticed clang-rename rename-all has significant performance problems, which exposed the fact that clang-rename parses translation unit N times where N stands for the number of {offset | old-name} -> new-name pairs.
This patch prevents clang-rename from parsing translation unit multiple times.
Use ArrayRef instead of const vector<>&. ArrayRef<> is less restrictive.