Previously, xrefs has inconsistent behavior when the reference is inside
macro body:
- AST-based xrefs (for main file) uses the expansion location;
- our index uses the spelling location;
This patch makes our index use expansion location, which is consistent with
AST-based xrefs, and kythe as well.
We're using getSpellingLoc here and getFileLoc later. Why not use getFileLoc everywhere?
Having a variable (similar to the SpellingLoc we had before) and calling getFileLoc only once also seems preferable.