[clangd] Remove calls to getFileLoc() in declToSym() (#83532)

toHalfOpenFileRange() already handles translating macro locations to
file locations, and it can provide a better result by knowing about both
ends of the range.

Fixes https://github.com/clangd/clangd/issues/1941

GitOrigin-RevId: d1aec79a2ce077e49da7699c4ca2dee239d0a249
2 files changed