Home
last modified time | relevance | path

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

/external/clang/tools/libclang/
DCXSourceLocation.cpp138 SourceLocation SLoc = CXXUnit->getLocation(File, line, column); in clang_getLocation() local
139 if (SLoc.isInvalid()) { in clang_getLocation()
147 cxloc::translateSourceLocation(CXXUnit->getASTContext(), SLoc); in clang_getLocation()
167 SourceLocation SLoc in clang_getLocationForOffset() local
170 if (SLoc.isInvalid()) in clang_getLocationForOffset()
173 return cxloc::translateSourceLocation(CXXUnit->getASTContext(), SLoc); in clang_getLocationForOffset()
DCIndex.cpp4138 SourceLocation SLoc = cxloc::translateSourceLocation(Loc); in clang_getCursor() local
4139 CXCursor Result = cxcursor::getCursor(TU, SLoc); in clang_getCursor()
4407 CXCursor cxcursor::getCursor(CXTranslationUnit TU, SourceLocation SLoc) { in getCursor() argument
4412 if (SLoc.isInvalid()) in getCursor()
4419 SLoc = Lexer::GetBeginningOfToken(SLoc, CXXUnit->getSourceManager(), in getCursor()
4423 if (SLoc.isValid()) { in getCursor()
4424 GetCursorData ResultData(CXXUnit->getSourceManager(), SLoc, Result); in getCursor()
4428 SourceLocation(SLoc)); in getCursor()
/external/compiler-rt/lib/ubsan/
Dubsan_diag.cc112 SourceLocation SLoc = Loc.getSourceLocation(); in renderLocation() local
113 if (SLoc.isInvalid()) in renderLocation()
116 PrintSourceLocation(&LocBuffer, SLoc.getFilename(), SLoc.getLine(), in renderLocation()
117 SLoc.getColumn()); in renderLocation()
/external/clang/lib/Basic/
DSourceManager.cpp690 const SLocEntry &SLoc = getSLocEntry(FID, &MyInvalid); in getBufferData() local
691 if (!SLoc.isFile() || MyInvalid) { in getBufferData()
697 llvm::MemoryBuffer *Buf = SLoc.getFile().getContentCache()->getBuffer( in getBufferData()
1650 const SLocEntry &SLoc = getLocalSLocEntry(I, &Invalid); in translateFile() local
1654 if (SLoc.isFile() && in translateFile()
1655 SLoc.getFile().getContentCache() && in translateFile()
1656 SLoc.getFile().getContentCache()->OrigEntry == SourceFile) { in translateFile()
1664 const SLocEntry &SLoc = getLoadedSLocEntry(I); in translateFile() local
1665 if (SLoc.isFile() && in translateFile()
1666 SLoc.getFile().getContentCache() && in translateFile()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp2317 static void printLocation(raw_ostream &Out, SourceLocation SLoc) { in printLocation()
2318 if (SLoc.isFileID()) { in printLocation()
2320 << GraphPrintSourceManager->getExpansionLineNumber(SLoc) in printLocation()
2322 << GraphPrintSourceManager->getExpansionColumnNumber(SLoc) in printLocation()
2417 SourceLocation SLoc = T->getLocStart(); in getNodeLabel() local
2423 if (SLoc.isFileID()) { in getNodeLabel()
2425 << GraphPrintSourceManager->getExpansionLineNumber(SLoc) in getNodeLabel()
2427 << GraphPrintSourceManager->getExpansionColumnNumber(SLoc); in getNodeLabel()
DBugReporter.cpp3522 if (const Stmt *SLoc = getLocStmt(getLocation())) in dump() local
3523 SLoc->dump(); in dump()
/external/clang/lib/Serialization/
DASTWriter.cpp1318 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteInputFiles() local
1319 assert(&SourceMgr.getSLocEntry(FileID::get(I)) == SLoc); in WriteInputFiles()
1322 if (!SLoc->isFile()) in WriteInputFiles()
1324 const SrcMgr::ContentCache *Cache = SLoc->getFile().getContentCache(); in WriteInputFiles()
1679 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteSourceManagerBlock() local
1681 assert(&SourceMgr.getSLocEntry(FID) == SLoc); in WriteSourceManagerBlock()
1688 if (SLoc->isFile()) { in WriteSourceManagerBlock()
1689 const SrcMgr::ContentCache *Cache = SLoc->getFile().getContentCache(); in WriteSourceManagerBlock()
1700 Record.push_back(SLoc->getOffset() - 2); in WriteSourceManagerBlock()
1701 if (SLoc->isFile()) { in WriteSourceManagerBlock()
[all …]