Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/compiler-rt/lib/ubsan/
H A Dubsan_diag.cc80 SourceLocation SLoc = Loc.getSourceLocation(); in MaybeReportErrorSummary() local
81 if (!SLoc.isInvalid()) { in MaybeReportErrorSummary()
83 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary()
84 AI.line = SLoc.getLine(); in MaybeReportErrorSummary()
85 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary()
143 SourceLocation SLoc = Loc.getSourceLocation(); in RenderLocation() local
144 if (SLoc.isInvalid()) in RenderLocation()
147 RenderSourceLocation(Buffer, SLoc.getFilename(), SLoc.getLine(), in RenderLocation()
148 SLoc.getColumn(), common_flags()->symbolize_vs_style, in RenderLocation()
H A Dubsan_handlers.cc27 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET) { in ignoreReport() argument
37 return SLoc.isDisabled() || IsPCSuppressed(ET, Opts.pc, SLoc.getFilename()); in ignoreReport()
454 SourceLocation SLoc = Data->Loc.acquire(); in handleFloatCastOverflow() local
455 if (ignoreReport(SLoc, Opts, ET)) in handleFloatCastOverflow()
457 Loc = SLoc; in handleFloatCastOverflow()
H A Dubsan_diag.h232 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET);
/freebsd-12.1/contrib/llvm/tools/clang/lib/Analysis/
H A DProgramPoint.cpp50 static void printLocation(raw_ostream &Out, SourceLocation SLoc, in printLocation() argument
54 if (SLoc.isFileID()) { in printLocation()
55 Out << CR << "line=" << SM.getExpansionLineNumber(SLoc) in printLocation()
56 << " col=" << SM.getExpansionColumnNumber(SLoc) << Postfix; in printLocation()
149 SourceLocation SLoc = T->getBeginLoc(); in print() local
153 printLocation(Out, SLoc, SM, CR, /*Postfix=*/""); in print()
H A DAnalysisDeclContext.cpp467 SourceLocation SLoc) { in printLocation() argument
468 if (SLoc.isFileID() && SM.isInMainFile(SLoc)) in printLocation()
469 OS << "line " << SM.getExpansionLineNumber(SLoc); in printLocation()
471 SLoc.print(OS, SM); in printLocation()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/
H A DSourceManager.cpp672 const SLocEntry &SLoc = getSLocEntry(FID, &MyInvalid); in getBufferData() local
673 if (!SLoc.isFile() || MyInvalid) { in getBufferData()
1614 const SLocEntry &SLoc = getLocalSLocEntry(I, &Invalid); in translateFile() local
1618 if (SLoc.isFile() && in translateFile()
1619 SLoc.getFile().getContentCache() && in translateFile()
1628 const SLocEntry &SLoc = getLoadedSLocEntry(I); in translateFile() local
1629 if (SLoc.isFile() && in translateFile()
1630 SLoc.getFile().getContentCache() && in translateFile()
1650 const SLocEntry &SLoc = getSLocEntry(IFileID, &Invalid); in translateFile() local
1654 if (SLoc.isFile()) { in translateFile()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp176 SourceLocation SLoc = N->getSourceRange().getBegin(); in isNodeExcluded() local
177 if (SLoc.isValid()) { in isNodeExcluded()
179 if (!SrcMgr.isInMainFile(SLoc)) in isNodeExcluded()
182 if (SLoc != SrcMgr.getSpellingLoc(SLoc)) in isNodeExcluded()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTWriter.cpp1782 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteInputFiles() local
1783 assert(&SourceMgr.getSLocEntry(FileID::get(I)) == SLoc); in WriteInputFiles()
1786 if (!SLoc->isFile()) in WriteInputFiles()
1788 const SrcMgr::FileInfo &File = SLoc->getFile(); in WriteInputFiles()
2245 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteSourceManagerBlock() local
2247 assert(&SourceMgr.getSLocEntry(FID) == SLoc); in WriteSourceManagerBlock()
2254 if (SLoc->isFile()) { in WriteSourceManagerBlock()
2266 Record.push_back(SLoc->getOffset() - 2); in WriteSourceManagerBlock()
2267 if (SLoc->isFile()) { in WriteSourceManagerBlock()
2268 const SrcMgr::FileInfo &File = SLoc->getFile(); in WriteSourceManagerBlock()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGStmt.cpp1023 llvm::Constant *SLoc = EmitCheckSourceLocation(S.getBeginLoc()); in EmitReturnStmt() local
1025 new llvm::GlobalVariable(CGM.getModule(), SLoc->getType(), false, in EmitReturnStmt()
1026 llvm::GlobalVariable::PrivateLinkage, SLoc); in EmitReturnStmt()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DPathDiagnostic.cpp1349 if (const Stmt *SLoc = getLocation().getStmtOrNull()) in dump() local
1350 SLoc->dump(); in dump()