/freebsd-13-stable/contrib/llvm-project/clang/lib/Index/ |
H A D | FileIndexRecord.cpp | 50 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 51 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' << PLoc.getLine() 52 << ':' << PLoc.getColumn();
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Basic/ |
H A D | SourceLocation.cpp | 50 PresumedLoc PLoc = SM.getPresumedLoc(*this); local 52 if (PLoc.isInvalid()) { 57 OS << PLoc.getFilename() << ':' << PLoc.getLine() 58 << ':' << PLoc.getColumn(); 91 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 93 if (PLoc.isInvalid()) { 99 strcmp(PLoc.getFilename(), Previous.getFilename()) != 0) { 100 OS << PLoc.getFilename() << ':' << PLoc [all...] |
H A D | SourceManager.cpp | 1303 PresumedLoc PLoc = getPresumedLoc(Loc); local 1304 if (isInvalid(PLoc, Invalid)) return 0; 1305 return PLoc.getColumn(); 1466 PresumedLoc PLoc = getPresumedLoc(Loc); local 1467 if (isInvalid(PLoc, Invalid)) return 0; 1468 return PLoc.getLine();
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | TextDiagnostic.h | 77 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 82 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 92 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 94 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 97 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
H A D | DiagnosticRenderer.h | 76 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 82 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 91 virtual void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) = 0; 92 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 94 virtual void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 104 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, 150 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 152 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 155 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | JsonSupport.h | 91 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 93 if (PLoc.isInvalid()) { 100 std::string filename(PLoc.getFilename()); 113 Out << "\"line\": " << PLoc.getLine() 114 << ", \"column\": " << PLoc.getColumn()
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 120 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); local 124 emitIncludeStack(Loc, PLoc, Level); 127 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); 163 /// \param PLoc The presumed location of the diagnostic location. 165 void DiagnosticRenderer::emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, argument 168 PLoc.isInvalid() ? FullSourceLoc() 169 : FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager()); 196 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); local 197 if (PLoc.isInvalid()) 212 FullSourceLoc(PLoc 237 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); local 592 emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) argument 602 emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) argument 616 emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, StringRef ModuleName) argument [all...] |
H A D | LogDiagnosticPrinter.cpp | 145 PresumedLoc PLoc = SM.getPresumedLoc(Info.getLocation()); local 147 if (PLoc.isInvalid()) { 156 DE.Filename = PLoc.getFilename(); 157 DE.Line = PLoc.getLine(); 158 DE.Column = PLoc.getColumn();
|
H A D | SerializedDiagnosticPrinter.cpp | 68 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 73 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 191 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 216 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 346 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, argument 348 if (PLoc.isInvalid()) { 357 Record.push_back(getEmitFile(PLoc.getFilename())); 358 Record.push_back(PLoc.getLine()); 359 Record.push_back(PLoc.getColumn()+TokSize); 642 void SDiagsWriter::EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, argument 671 emitDiagnosticMessage( FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, DiagOrStoredDiag D) argument 737 PresumedLoc PLoc = Loc.hasManager() ? Loc.getPresumedLoc() : PresumedLoc(); local [all...] |
H A D | PrintPreprocessedOutput.cpp | 157 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 158 if (PLoc.isInvalid()) 160 return MoveToLine(PLoc.getLine()) || (PLoc.getLine() == 1); 920 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); local 921 if (PLoc.isInvalid()) 924 if (strcmp(PLoc.getFilename(), "<built-in>"))
|
H A D | TextDiagnostic.cpp | 674 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, 681 emitDiagnosticLoc(Loc, PLoc, Level, Ranges); 805 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 808 if (PLoc.isInvalid()) { 820 unsigned LineNo = PLoc.getLine(); 828 emitFilename(PLoc.getFilename(), Loc.getManager()); 837 if (unsigned ColNo = PLoc.getColumn()) { 906 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { 907 if (DiagOpts->ShowLocation && PLoc.isValid()) 908 OS << "In file included from " << PLoc [all...] |
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | SanitizerMetadata.cpp | 93 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); local 94 if (!PLoc.isValid()) 98 llvm::MDString::get(VMContext, PLoc.getFilename()), 100 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), 102 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())),
|
H A D | CGDebugInfo.cpp | 412 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 414 StringRef FileName = PLoc.getFilename(); 415 if (PLoc.isInvalid() || FileName.empty()) 430 // directive that refers to a file, PLoc will have an invalid FileID, and we 433 computeChecksum(PLoc.getFileID(), Checksum); 494 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); local 495 return PLoc.isValid() ? PLoc.getLine() : 0; 507 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); local 508 return PLoc [all...] |
H A D | CodeGenModule.cpp | 2269 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 2270 if (PLoc.isValid()) 2271 return EmitAnnotationString(PLoc.getFilename()); 2277 PresumedLoc PLoc = SM.getPresumedLoc(L); local 2278 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() :
|
H A D | CGExpr.cpp | 3011 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); local 3012 if (PLoc.isValid()) { 3013 StringRef FilenameString = PLoc.getFilename(); 3044 Line = PLoc.getLine(); 3045 Column = PLoc.getColumn();
|
H A D | CGOpenMPRuntime.cpp | 1418 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); local 1419 const char *FileName = PLoc.getFilename(); 1420 unsigned Line = PLoc.getLine(); 1421 unsigned Column = PLoc.getColumn(); 1623 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 1624 assert(PLoc.isValid() && "Source location is expected to be always valid."); 1627 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) 1629 << PLoc.getFilename() << EC.message(); 1633 LineNum = PLoc.getLine();
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPMacroExpansion.cpp | 1504 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); 1507 OS << (PLoc.isValid()? PLoc.getLine() : 1); 1513 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); 1517 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { 1518 SourceLocation NextLoc = PLoc.getIncludeLoc(); 1520 PLoc = SourceMgr.getPresumedLoc(NextLoc); 1521 if (PLoc.isInvalid()) 1524 NextLoc = PLoc.getIncludeLoc(); 1530 if (PLoc [all...] |
H A D | Pragma.cpp | 475 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); local 476 if (PLoc.isInvalid()) 479 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); 489 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1,
|
H A D | PPDirectives.cpp | 1251 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); local 1252 if (PLoc.isInvalid()) 1257 SourceLocation IncLoc = PLoc.getIncludeLoc();
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | TextNodeDumper.cpp | 584 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); local 586 if (PLoc.isInvalid()) { 591 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { 592 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' 593 << PLoc.getColumn(); 594 LastLocFilename = PLoc.getFilename(); 595 LastLocLine = PLoc.getLine(); 596 } else if (PLoc.getLine() != LastLocLine) { 597 OS << "line" << ':' << PLoc [all...] |
H A D | TypePrinter.cpp | 1254 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( local 1256 if (PLoc.isValid()) { 1258 StringRef File = PLoc.getFilename(); 1263 OS << ':' << PLoc.getLine() << ':' << PLoc.getColumn();
|
H A D | ItaniumMangle.cpp | 1797 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 1798 Mangler.mangleNumber(PLoc.getLine()); 1800 Mangler.mangleNumber(PLoc.getColumn()); 1807 PLoc = SM.getPresumedLoc(SM.getSpellingLoc(SLToPrint)); 1809 Mangler.mangleNumber(PLoc.getLine()); 1811 Mangler.mangleNumber(PLoc.getColumn());
|
H A D | Expr.cpp | 2094 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( local 2107 return MakeStringLiteral(PLoc.getFilename()); 2118 IntVal = getIdentKind() == SourceLocExpr::Line ? PLoc.getLine() 2119 : PLoc.getColumn();
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 1626 PresumedLoc PLoc = SM->getPresumedLoc(Loc); local 1627 LineString += utostr(PLoc.getLine()); 1629 LineString += Lexer::Stringify(PLoc.getFilename()); 3059 PresumedLoc PLoc = SM->getPresumedLoc(Location); local 3060 LineString += utostr(PLoc.getLine()); 3062 LineString += Lexer::Stringify(PLoc.getFilename());
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/ |
H A D | ARMAsmParser.cpp | 7175 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + local 7178 ARMOperand::CreateVPTPred(ARMVCC::None, PLoc)); 7190 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + local 7193 ARMOperand::CreateVPTPred(ARMVCC::Else, PLoc)); 7238 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + local 7242 ARMVCC::VPTCodes(VPTPredicationCode), PLoc));
|