| /llvm-project-15.0.7/compiler-rt/lib/ubsan/ |
| H A D | ubsan_diag.cpp | 85 SourceLocation SLoc = Loc.getSourceLocation(); in MaybeReportErrorSummary() local 86 if (!SLoc.isInvalid()) { in MaybeReportErrorSummary() 88 AI.file = internal_strdup(SLoc.getFilename()); in MaybeReportErrorSummary() 89 AI.line = SLoc.getLine(); in MaybeReportErrorSummary() 90 AI.column = SLoc.getColumn(); in MaybeReportErrorSummary() 148 SourceLocation SLoc = Loc.getSourceLocation(); in RenderLocation() local 149 if (SLoc.isInvalid()) in RenderLocation() 152 RenderSourceLocation(Buffer, SLoc.getFilename(), SLoc.getLine(), in RenderLocation() 153 SLoc.getColumn(), common_flags()->symbolize_vs_style, in RenderLocation()
|
| H A 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()
|
| H A D | ubsan_diag.h | 231 bool ignoreReport(SourceLocation SLoc, ReportOptions Opts, ErrorType ET);
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A 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()
|
| H A D | CIndex.cpp | 6061 SourceLocation SLoc = cxloc::translateSourceLocation(Loc); in clang_getCursor() local 6062 CXCursor Result = cxcursor::getCursor(TU, SLoc); in clang_getCursor() 6336 CXCursor cxcursor::getCursor(CXTranslationUnit TU, SourceLocation SLoc) { in getCursor() argument 6341 if (SLoc.isInvalid()) in getCursor() 6348 SLoc = Lexer::GetBeginningOfToken(SLoc, CXXUnit->getSourceManager(), in getCursor() 6352 if (SLoc.isValid()) { in getCursor() 6353 GetCursorData ResultData(CXXUnit->getSourceManager(), SLoc, Result); in getCursor() 6357 SourceLocation(SLoc)); in getCursor()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | MacroExpansionContext.cpp | 205 SourceLocation SLoc = Tok.getLocation(); in onTokenLexed() local 206 if (SLoc.isFileID()) in onTokenLexed() 211 SLoc.print(llvm::dbgs(), *SM); llvm::dbgs() << '\n';); in onTokenLexed() 214 SourceLocation CurrExpansionLoc = SM->getExpansionLoc(SLoc); in onTokenLexed()
|
| H A D | PathDiagnostic.cpp | 1162 if (const Stmt *SLoc = getLocation().getStmtOrNull()) in dump() local 1163 SLoc->dump(); in dump()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | FunctionCognitiveComplexityCheck.cpp | 95 Detail(SourceLocation SLoc, unsigned short CurrentNesting, Criteria Crit) in Detail() 96 : Loc(SLoc), Nesting(CurrentNesting), C(Crit) {} in Detail()
|
| /llvm-project-15.0.7/clang/lib/Tooling/ASTDiff/ |
| H A 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()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceManager.cpp | 1672 const SLocEntry &SLoc = getLocalSLocEntry(I); in translateFile() local 1673 if (SLoc.isFile() && in translateFile() 1674 SLoc.getFile().getContentCache().OrigEntry == SourceFile) in translateFile() 1680 const SLocEntry &SLoc = getLoadedSLocEntry(I); in translateFile() local 1681 if (SLoc.isFile() && in translateFile() 1682 SLoc.getFile().getContentCache().OrigEntry == SourceFile) in translateFile()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | Diagnostics.cpp | 169 auto GetIncludeLoc = [&SM](SourceLocation SLoc) { in getMainFileRange() argument 170 return SM.getIncludeLoc(SM.getFileID(SLoc)); in getMainFileRange()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTWriter.cpp | 1546 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteInputFiles() local 1547 assert(&SourceMgr.getSLocEntry(FileID::get(I)) == SLoc); in WriteInputFiles() 1550 if (!SLoc->isFile()) in WriteInputFiles() 1552 const SrcMgr::FileInfo &File = SLoc->getFile(); in WriteInputFiles() 2050 const SrcMgr::SLocEntry *SLoc = &SourceMgr.getLocalSLocEntry(I); in WriteSourceManagerBlock() local 2052 assert(&SourceMgr.getSLocEntry(FID) == SLoc); in WriteSourceManagerBlock() 2061 if (SLoc->isFile()) { in WriteSourceManagerBlock() 2073 Record.push_back(SLoc->getOffset() - 2); in WriteSourceManagerBlock() 2074 if (SLoc->isFile()) { in WriteSourceManagerBlock() 2075 const SrcMgr::FileInfo &File = SLoc->getFile(); in WriteSourceManagerBlock() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGStmt.cpp | 1277 llvm::Constant *SLoc = EmitCheckSourceLocation(S.getBeginLoc()); in EmitReturnStmt() local 1279 new llvm::GlobalVariable(CGM.getModule(), SLoc->getType(), false, in EmitReturnStmt() 1280 llvm::GlobalVariable::PrivateLinkage, SLoc); in EmitReturnStmt()
|
| H A D | CGOpenMPRuntime.cpp | 11692 char ISA, unsigned VecRegSize, llvm::Function *Fn, SourceLocation SLoc) { in emitAArch64DeclareSimdFunction() argument 11706 CGM.getDiags().Report(SLoc, DiagID); in emitAArch64DeclareSimdFunction() 11716 CGM.getDiags().Report(SLoc, DiagID); in emitAArch64DeclareSimdFunction() 11729 CGM.getDiags().Report(SLoc, DiagID) << WDS; in emitAArch64DeclareSimdFunction()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaOpenMP.cpp | 147 SourceLocation SLoc; member 150 : ImplicitBehavior(M), SLoc(Loc) {} in DefaultmapInfo() 732 DMI.SLoc = Loc; in setDefaultDMAAttr()
|