Lines Matching refs:sourceMgr
59 auto *sourceMgr = const_cast<llvm::SourceMgr *>(diag.getSourceMgr()); in getLspDiagnoticFromDiag() local
60 if (!sourceMgr || !diag.getLoc().isValid()) in getLspDiagnoticFromDiag()
68 lsp::Location loc = getLocationFromLoc(*sourceMgr, diag.getLoc(), uri); in getLspDiagnoticFromDiag()
292 llvm::SourceMgr sourceMgr; member in __anond136bf7d0411::TableGenTextFile
339 sourceMgr = llvm::SourceMgr(); in initialize()
348 sourceMgr.setIncludeDirs(includeDirs); in initialize()
349 sourceMgr.AddNewSourceBuffer(std::move(memBuffer), SMLoc()); in initialize()
359 sourceMgr.setDiagHandler( in initialize()
366 bool failedToParse = llvm::TableGenParseFile(sourceMgr, *recordKeeper); in initialize()
369 lsp::gatherIncludeFiles(sourceMgr, parsedIncludes); in initialize()
384 SMLoc posLoc = defPos.getAsSMLoc(sourceMgr); in getLocationsOf()
389 locations.push_back(getLocationFromLoc(sourceMgr, symbol->defLoc, uri)); in getLocationsOf()
395 SMLoc posLoc = pos.getAsSMLoc(sourceMgr); in findReferencesOf()
400 references.push_back(getLocationFromLoc(sourceMgr, symbol->defLoc, uri)); in findReferencesOf()
402 references.push_back(getLocationFromLoc(sourceMgr, refLoc, uri)); in findReferencesOf()