/external/compiler-rt/lib/ubsan/ |
D | ubsan_diag.cc | 75 SourceLocation SLoc = Loc.getSourceLocation(); in MaybeReportErrorSummary() local 76 if (!SLoc.isInvalid()) { in MaybeReportErrorSummary() 78 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary() 79 AI.line = SLoc.getLine(); in MaybeReportErrorSummary() 80 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary() 140 SourceLocation SLoc = Loc.getSourceLocation(); in RenderLocation() local 141 if (SLoc.isInvalid()) in RenderLocation() 144 RenderSourceLocation(Buffer, SLoc.getFilename(), SLoc.getLine(), in RenderLocation() 145 SLoc.getColumn(), common_flags()->symbolize_vs_style, in RenderLocation()
|
D | ubsan_handlers.cc | 25 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET) { in ignoreReport() argument 35 return SLoc.isDisabled() || IsPCSuppressed(ET, Opts.pc, SLoc.getFilename()); in ignoreReport() 381 SourceLocation SLoc = Data->Loc.acquire(); in handleFloatCastOverflow() local 382 if (ignoreReport(SLoc, Opts, ET)) in handleFloatCastOverflow() 384 Loc = SLoc; in handleFloatCastOverflow()
|
D | ubsan_diag.h | 228 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET);
|
/external/llvm-project/compiler-rt/lib/ubsan/ |
D | ubsan_diag.cpp | 87 SourceLocation SLoc = Loc.getSourceLocation(); in MaybeReportErrorSummary() local 88 if (!SLoc.isInvalid()) { in MaybeReportErrorSummary() 90 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary() 91 AI.line = SLoc.getLine(); in MaybeReportErrorSummary() 92 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary() 150 SourceLocation SLoc = Loc.getSourceLocation(); in RenderLocation() local 151 if (SLoc.isInvalid()) in RenderLocation() 154 RenderSourceLocation(Buffer, SLoc.getFilename(), SLoc.getLine(), in RenderLocation() 155 SLoc.getColumn(), common_flags()->symbolize_vs_style, in RenderLocation()
|
D | ubsan_handlers.cpp | 27 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET) { in ignoreReport() argument 37 return SLoc.isDisabled() || IsPCSuppressed(ET, Opts.pc, SLoc.getFilename()); in ignoreReport() 496 SourceLocation SLoc = Data->Loc.acquire(); in handleFloatCastOverflow() local 497 if (ignoreReport(SLoc, Opts, ET)) in handleFloatCastOverflow() 499 Loc = SLoc; in handleFloatCastOverflow()
|
D | ubsan_diag.h | 231 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET);
|
/external/clang/tools/libclang/ |
D | CXSourceLocation.cpp | 138 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()
|
D | CIndex.cpp | 5015 SourceLocation SLoc = cxloc::translateSourceLocation(Loc); in clang_getCursor() local 5016 CXCursor Result = cxcursor::getCursor(TU, SLoc); in clang_getCursor() 5284 CXCursor cxcursor::getCursor(CXTranslationUnit TU, SourceLocation SLoc) { in getCursor() argument 5289 if (SLoc.isInvalid()) in getCursor() 5296 SLoc = Lexer::GetBeginningOfToken(SLoc, CXXUnit->getSourceManager(), in getCursor() 5300 if (SLoc.isValid()) { in getCursor() 5301 GetCursorData ResultData(CXXUnit->getSourceManager(), SLoc, Result); in getCursor() 5305 SourceLocation(SLoc)); in getCursor()
|
/external/llvm-project/clang/tools/libclang/ |
D | CXSourceLocation.cpp | 132 SourceLocation SLoc = CXXUnit->getLocation(File, line, column); in clang_getLocation() local 133 if (SLoc.isInvalid()) { in clang_getLocation() 141 cxloc::translateSourceLocation(CXXUnit->getASTContext(), SLoc); in clang_getLocation() 162 SourceLocation SLoc in clang_getLocationForOffset() local 165 if (SLoc.isInvalid()) in clang_getLocationForOffset() 168 return cxloc::translateSourceLocation(CXXUnit->getASTContext(), SLoc); in clang_getLocationForOffset()
|
D | CIndex.cpp | 5783 SourceLocation SLoc = cxloc::translateSourceLocation(Loc); in clang_getCursor() local 5784 CXCursor Result = cxcursor::getCursor(TU, SLoc); in clang_getCursor() 6058 CXCursor cxcursor::getCursor(CXTranslationUnit TU, SourceLocation SLoc) { in getCursor() argument 6063 if (SLoc.isInvalid()) in getCursor() 6070 SLoc = Lexer::GetBeginningOfToken(SLoc, CXXUnit->getSourceManager(), in getCursor() 6074 if (SLoc.isValid()) { in getCursor() 6075 GetCursorData ResultData(CXXUnit->getSourceManager(), SLoc, Result); in getCursor() 6079 SourceLocation(SLoc)); in getCursor()
|
/external/clang/lib/Basic/ |
D | SourceManager.cpp | 684 const SLocEntry &SLoc = getSLocEntry(FID, &MyInvalid); in getBufferData() local 685 if (!SLoc.isFile() || MyInvalid) { in getBufferData() 691 llvm::MemoryBuffer *Buf = SLoc.getFile().getContentCache()->getBuffer( in getBufferData() 1656 const SLocEntry &SLoc = getLocalSLocEntry(I, &Invalid); in translateFile() local 1660 if (SLoc.isFile() && in translateFile() 1661 SLoc.getFile().getContentCache() && in translateFile() 1662 SLoc.getFile().getContentCache()->OrigEntry == SourceFile) { in translateFile() 1670 const SLocEntry &SLoc = getLoadedSLocEntry(I); in translateFile() local 1671 if (SLoc.isFile() && in translateFile() 1672 SLoc.getFile().getContentCache() && in translateFile() [all …]
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | FunctionCognitiveComplexityCheck.cpp | 95 Detail(SourceLocation SLoc, unsigned short CurrentNesting, Criteria Crit) in Detail() 96 : Loc(SLoc), Nesting(CurrentNesting), C(Crit) {} in Detail()
|
/external/llvm-project/clang/lib/Tooling/ASTDiff/ |
D | ASTDiff.cpp | 176 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()
|
/external/llvm-project/clang/lib/Basic/ |
D | SourceManager.cpp | 1621 const SLocEntry &SLoc = getLocalSLocEntry(I); in translateFile() local 1622 if (SLoc.isFile() && in translateFile() 1623 SLoc.getFile().getContentCache().OrigEntry == SourceFile) in translateFile() 1629 const SLocEntry &SLoc = getLoadedSLocEntry(I); in translateFile() local 1630 if (SLoc.isFile() && in translateFile() 1631 SLoc.getFile().getContentCache().OrigEntry == SourceFile) in translateFile()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngine.cpp | 2543 static void printLocation(raw_ostream &Out, SourceLocation SLoc) { in printLocation() 2544 if (SLoc.isFileID()) { in printLocation() 2546 << GraphPrintSourceManager->getExpansionLineNumber(SLoc) in printLocation() 2548 << GraphPrintSourceManager->getExpansionColumnNumber(SLoc) in printLocation() 2643 SourceLocation SLoc = T->getLocStart(); in getNodeLabel() local 2649 if (SLoc.isFileID()) { in getNodeLabel() 2651 << GraphPrintSourceManager->getExpansionLineNumber(SLoc) in getNodeLabel() 2653 << GraphPrintSourceManager->getExpansionColumnNumber(SLoc); in getNodeLabel()
|
D | BugReporter.cpp | 3493 if (const Stmt *SLoc = getLocStmt(getLocation())) in dump() local 3494 SLoc->dump(); in dump()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | Diagnostics.cpp | 170 auto GetIncludeLoc = [&SM](SourceLocation SLoc) { in getMainFileRange() argument 171 return SM.getIncludeLoc(SM.getFileID(SLoc)); in getMainFileRange()
|
/external/clang/lib/Serialization/ |
D | ASTWriter.cpp | 1568 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteInputFiles() local 1569 assert(&SourceMgr.getSLocEntry(FileID::get(I)) == SLoc); in WriteInputFiles() 1572 if (!SLoc->isFile()) in WriteInputFiles() 1574 const SrcMgr::ContentCache *Cache = SLoc->getFile().getContentCache(); in WriteInputFiles() 1923 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteSourceManagerBlock() local 1925 assert(&SourceMgr.getSLocEntry(FID) == SLoc); in WriteSourceManagerBlock() 1932 if (SLoc->isFile()) { in WriteSourceManagerBlock() 1933 const SrcMgr::ContentCache *Cache = SLoc->getFile().getContentCache(); in WriteSourceManagerBlock() 1944 Record.push_back(SLoc->getOffset() - 2); in WriteSourceManagerBlock() 1945 if (SLoc->isFile()) { in WriteSourceManagerBlock() [all …]
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTWriter.cpp | 1449 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteInputFiles() local 1450 assert(&SourceMgr.getSLocEntry(FileID::get(I)) == SLoc); in WriteInputFiles() 1453 if (!SLoc->isFile()) in WriteInputFiles() 1455 const SrcMgr::FileInfo &File = SLoc->getFile(); in WriteInputFiles() 1943 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteSourceManagerBlock() local 1945 assert(&SourceMgr.getSLocEntry(FID) == SLoc); in WriteSourceManagerBlock() 1954 if (SLoc->isFile()) { in WriteSourceManagerBlock() 1955 const SrcMgr::ContentCache *Cache = &SLoc->getFile().getContentCache(); in WriteSourceManagerBlock() 1966 Record.push_back(SLoc->getOffset() - 2); in WriteSourceManagerBlock() 1967 if (SLoc->isFile()) { in WriteSourceManagerBlock() [all …]
|
/external/llvm-project/clang/lib/Analysis/ |
D | PathDiagnostic.cpp | 1162 if (const Stmt *SLoc = getLocation().getStmtOrNull()) in dump() local 1163 SLoc->dump(); in dump()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGStmt.cpp | 1153 llvm::Constant *SLoc = EmitCheckSourceLocation(S.getBeginLoc()); in EmitReturnStmt() local 1155 new llvm::GlobalVariable(CGM.getModule(), SLoc->getType(), false, in EmitReturnStmt() 1156 llvm::GlobalVariable::PrivateLinkage, SLoc); in EmitReturnStmt()
|
D | CGOpenMPRuntime.cpp | 11402 char ISA, unsigned VecRegSize, llvm::Function *Fn, SourceLocation SLoc) { in emitAArch64DeclareSimdFunction() argument 11416 CGM.getDiags().Report(SLoc, DiagID); in emitAArch64DeclareSimdFunction() 11426 CGM.getDiags().Report(SLoc, DiagID); in emitAArch64DeclareSimdFunction() 11439 CGM.getDiags().Report(SLoc, DiagID) << WDS; in emitAArch64DeclareSimdFunction()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaOpenMP.cpp | 143 SourceLocation SLoc; member 146 : ImplicitBehavior(M), SLoc(Loc) {} in DefaultmapInfo() 710 DMI.SLoc = Loc; in setDefaultDMAAttr()
|