FileEntry to FileEntryRef updates

This commit is contained in:
Ben Barham
2024-03-22 20:52:50 -07:00
parent 440421bcc5
commit a9077d7129
4 changed files with 48 additions and 64 deletions

View File

@@ -864,7 +864,7 @@ static void setLocationInfoForClangNode(ClangNode ClangNode,
std::pair<clang::FileID, unsigned> Decomp =
ClangSM.getDecomposedLoc(CharRange.getBegin());
if (!Decomp.first.isInvalid()) {
if (auto FE = ClangSM.getFileEntryForID(Decomp.first)) {
if (auto FE = ClangSM.getFileEntryRefForID(Decomp.first)) {
Location.Filename = FE->getName();
std::pair<clang::FileID, unsigned> EndDecomp =