Home
last modified time | relevance | path

Searched refs:DecompLoc (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DPreambleTests.cpp488 auto DecompLoc = SM.getDecomposedLoc(TranslatedLoc); in TEST() local
489 EXPECT_EQ(DecompLoc.first, SM.getMainFileID()); in TEST()
490 EXPECT_EQ(SM.getLineNumber(DecompLoc.first, DecompLoc.second), 3U); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DPreamble.cpp234 auto DecompLoc = SM.getDecomposedLoc(DirectiveRange.getBegin()); in spellDirective() local
235 DirectiveLine = SM.getLineNumber(DecompLoc.first, DecompLoc.second); in spellDirective()
236 Offset = DecompLoc.second; in spellDirective()
237 auto TargetColumn = SM.getColumnNumber(DecompLoc.first, DecompLoc.second) - 1; in spellDirective()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSourceManager.cpp1079 std::pair<FileID, unsigned> DecompLoc = getDecomposedLoc(Loc); in isAtStartOfImmediateMacroExpansion() local
1080 if (DecompLoc.second > 0) in isAtStartOfImmediateMacroExpansion()
1085 getSLocEntry(DecompLoc.first, &Invalid).getExpansion(); in isAtStartOfImmediateMacroExpansion()
1094 FileID PrevFID = getPreviousFileID(DecompLoc.first); in isAtStartOfImmediateMacroExpansion()
1951 DecompTy &DecompLoc = InsertOp.first->second; in getDecomposedIncludedLoc() local
1953 return DecompLoc; // already in map. in getDecomposedIncludedLoc()
1966 DecompLoc = getDecomposedLoc(UpperLoc); in getDecomposedIncludedLoc()
1968 return DecompLoc; in getDecomposedIncludedLoc()