Home
last modified time | relevance | path

Searched refs:translateLineCol (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/clang/unittests/Basic/
H A DSourceManagerTest.cpp159 SourceLocation macroExpStartLoc = SourceMgr.translateLineCol(mainFileID, 2, 1); in TEST_F()
160 SourceLocation macroExpEndLoc = SourceMgr.translateLineCol(mainFileID, 2, 6); in TEST_F()
252 auto BeginEOLLoc = SourceMgr.translateLineCol(MainFileID, 1, 7); in TEST_F()
393 SourceLocation defLoc = SourceMgr.translateLineCol(mainFileID, 2, 13); in TEST_F()
394 SourceLocation loc1 = SourceMgr.translateLineCol(mainFileID, 3, 8); in TEST_F()
395 SourceLocation loc2 = SourceMgr.translateLineCol(mainFileID, 4, 4); in TEST_F()
396 SourceLocation loc3 = SourceMgr.translateLineCol(mainFileID, 5, 7); in TEST_F()
397 SourceLocation defLoc2 = SourceMgr.translateLineCol(mainFileID, 6, 22); in TEST_F()
H A DSarifTest.cpp75 auto BeginLoc = SourceMgr.translateLineCol(FID, Begin.first, Begin.second); in getFakeCharSourceRange()
76 auto EndLoc = SourceMgr.translateLineCol(FID, End.first, End.second); in getFakeCharSourceRange()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DMacroToEnumCheck.cpp238 SM.translateLineCol(SM.getFileID(Loc), SM.getSpellingLineNumber(Loc), 1); in isConsecutiveMacro()
484 Begin = SM.translateLineCol(SM.getFileID(Begin), in fixEnumMacro()
494 SourceLocation DefineBegin = SM.translateLineCol( in fixEnumMacro()
515 End = SM.translateLineCol(SM.getFileID(End), in fixEnumMacro()
/llvm-project-15.0.7/clang/unittests/Frontend/
H A DTextDiagnosticTest.cpp66 FullSourceLoc Loc(SrcMgr.translateLineCol(fid, /*Line=*/1, /*Col=*/2), in TEST()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DVerifyDiagnosticConsumer.cpp519 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), ExpectedLine, 1); in ParseDirective()
524 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), Line, 1); in ParseDirective()
559 ExpectedLoc = SM.translateLineCol(FID, Line, 1); in ParseDirective()
562 ExpectedLoc = SM.translateLineCol(FID, 1, 1); in ParseDirective()
H A DTextDiagnostic.cpp1183 SM.getDecomposedLoc(SM.translateLineCol(FID, LineNo, 1)).second; in emitSnippetAndCaret()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DIssueHash.cpp148 SM.translateLineCol(SM.getFileID(L), L.getExpansionLineNumber(), col); in NormalizeLine()
/llvm-project-15.0.7/clang/tools/clang-format/
H A DClangFormat.cpp257 SourceLocation Start = Sources.translateLineCol(ID, FromLine, 1); in fillRanges()
258 SourceLocation End = Sources.translateLineCol(ID, ToLine, UINT_MAX); in fillRanges()
/llvm-project-15.0.7/clang/tools/clang-refactor/
H A DClangRefactor.cpp128 SM.translateLineCol(FID, Range.Begin.first, Range.Begin.second)); in forAllRanges()
130 SM.translateLineCol(FID, Range.End.first, Range.End.second)); in forAllRanges()
/llvm-project-15.0.7/clang/unittests/Analysis/
H A DMacroExpansionContextTest.cpp90 SourceMgr.translateLineCol(SourceMgr.getMainFileID(), row, col); in at()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DPreamble.cpp760 Loc = SM.translateLineCol(SM.getMainFileID(), Presumed.getLine(), in translatePreamblePatchLocation()
H A DXRefs.cpp698 SourceLocation LocMin = SM.translateLineCol(File, LineMin, 1); in findNearbyIdentifier()
700 SourceLocation LocMax = SM.translateLineCol(File, LineMax, 1); in findNearbyIdentifier()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceManager.cpp1645 return translateLineCol(FirstFID, Line, Col); in translateFileLineCol()
1691 SourceLocation SourceManager::translateLineCol(FileID FID, in translateLineCol() function in SourceManager
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceManager.h1618 SourceLocation translateLineCol(FileID FID,
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DASTSelectionTest.cpp22 return SM.translateLineCol(SM.getMainFileID(), Line, Column); in translate()