Home
last modified time | relevance | path

Searched refs:SLoc (Results 1 – 5 of 5) sorted by relevance

/external/clang/tools/libclang/
DCXSourceLocation.cpp130 SourceLocation SLoc = CXXUnit->getLocation(File, line, column); in clang_getLocation() local
131 if (SLoc.isInvalid()) { in clang_getLocation()
141 << SLoc.getRawEncoding() << "\n"; in clang_getLocation()
143 return cxloc::translateSourceLocation(CXXUnit->getASTContext(), SLoc); in clang_getLocation()
154 SourceLocation SLoc in clang_getLocationForOffset() local
157 if (SLoc.isInvalid()) in clang_getLocationForOffset()
160 return cxloc::translateSourceLocation(CXXUnit->getASTContext(), SLoc); in clang_getLocationForOffset()
DCIndex.cpp3697 SourceLocation SLoc = cxloc::translateSourceLocation(Loc); in clang_getCursor() local
3698 CXCursor Result = cxcursor::getCursor(TU, SLoc); in clang_getCursor()
3945 CXCursor cxcursor::getCursor(CXTranslationUnit TU, SourceLocation SLoc) { in getCursor() argument
3950 if (SLoc.isInvalid()) in getCursor()
3957 SLoc = Lexer::GetBeginningOfToken(SLoc, CXXUnit->getSourceManager(), in getCursor()
3961 if (SLoc.isValid()) { in getCursor()
3962 GetCursorData ResultData(CXXUnit->getSourceManager(), SLoc, Result); in getCursor()
3966 SourceLocation(SLoc)); in getCursor()
/external/clang/lib/Basic/
DSourceManager.cpp640 const SLocEntry &SLoc = getSLocEntry(FID, &MyInvalid); in getBufferData() local
641 if (!SLoc.isFile() || MyInvalid) { in getBufferData()
648 = SLoc.getFile().getContentCache()->getBuffer(Diag, *this, SourceLocation(), in getBufferData()
1493 const SLocEntry &SLoc = getLocalSLocEntry(I, &Invalid); in translateFile() local
1497 if (SLoc.isFile() && in translateFile()
1498 SLoc.getFile().getContentCache() && in translateFile()
1499 SLoc.getFile().getContentCache()->OrigEntry == SourceFile) { in translateFile()
1507 const SLocEntry &SLoc = getLoadedSLocEntry(I); in translateFile() local
1508 if (SLoc.isFile() && in translateFile()
1509 SLoc.getFile().getContentCache() && in translateFile()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp1888 SourceLocation SLoc = S->getLocStart(); in getNodeLabel() local
1894 if (SLoc.isFileID()) { in getNodeLabel()
1896 << GraphPrintSourceManager->getExpansionLineNumber(SLoc) in getNodeLabel()
1898 << GraphPrintSourceManager->getExpansionColumnNumber(SLoc) in getNodeLabel()
1941 SourceLocation SLoc = T->getLocStart(); in getNodeLabel() local
1947 if (SLoc.isFileID()) { in getNodeLabel()
1949 << GraphPrintSourceManager->getExpansionLineNumber(SLoc) in getNodeLabel()
1951 << GraphPrintSourceManager->getExpansionColumnNumber(SLoc); in getNodeLabel()
/external/clang/lib/Serialization/
DASTWriter.cpp1432 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteSourceManagerBlock() local
1439 if (SLoc->isFile()) { in WriteSourceManagerBlock()
1440 const SrcMgr::ContentCache *Cache = SLoc->getFile().getContentCache(); in WriteSourceManagerBlock()
1452 Record.push_back(SLoc->getOffset() - 2); in WriteSourceManagerBlock()
1453 if (SLoc->isFile()) { in WriteSourceManagerBlock()
1454 const SrcMgr::FileInfo &File = SLoc->getFile(); in WriteSourceManagerBlock()
1473 FileDeclIDsTy::iterator FDI = FileDeclIDs.find(SLoc); in WriteSourceManagerBlock()
1531 const SrcMgr::ExpansionInfo &Expansion = SLoc->getExpansion(); in WriteSourceManagerBlock()
1541 Record.push_back(NextOffset - SLoc->getOffset() - 1); in WriteSourceManagerBlock()