reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
265 return SM.isBeforeInTranslationUnit(T.location(), L); 268 assert(It->location() == L);tools/clang/lib/Tooling/Syntax/Tokens.cpp
51 const char *Start = SM.getCharacterData(location(), &Invalid); 57 assert(location().isFileID() && "must be a spelled token"); 60 std::tie(File, StartOffset) = SM.getDecomposedLoc(location()); 129 SourceMgr->getFileID(SourceMgr->getExpansionLoc(Expanded->location()))); 187 FileID FID = SourceMgr->getFileID(BeginSpelled->location()); 189 if (FID != SourceMgr->getFileID(LastSpelled->location())) 212 assert(Spelled->location().isFileID() && "not a spelled token"); 213 auto FileIt = Files.find(SourceMgr->getFileID(Spelled->location())); 375 SM.getFileID(Result.ExpandedTokens.back().location())); 377 Result.ExpandedTokens.back().location(), 393 auto L = Result.ExpandedTokens[I].location(); 405 assert(File.SpelledTokens[NextSpelled[FID]].location() == L && 426 auto NextL = Result.ExpandedTokens[I + 1].location(); 441 SM.getFileID(SM.getExpansionLoc(Result.ExpandedTokens[I].location())); 524 auto L = File.SpelledTokens[NextSpelled].location();tools/clang/tools/extra/clangd/Selection.cpp
50 S.StartOffset = SM.getFileOffset(Tok.location());
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandMacro.cpp54 assert(T.location().isFileID()); 55 return SM.getFileOffset(T.location()) <= CursorOffset; 120 CharSourceRange::getCharRange(Expansion.Spelled.front().location(),tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
83 return arg.location() == SourceRng.first &&