/freebsd-12-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 | 1222 PresumedLoc PLoc = getPresumedLoc(Loc); local 1223 if (isInvalid(PLoc, Invalid)) return 0; 1224 return PLoc.getColumn(); 1385 PresumedLoc PLoc = getPresumedLoc(Loc); local 1386 if (isInvalid(PLoc, Invalid)) return 0; 1387 return PLoc.getLine();
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/Index/ |
H A D | FileIndexRecord.cpp | 49 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 50 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' << PLoc.getLine() 51 << ':' << PLoc.getColumn();
|
/freebsd-12-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 Out << "\"line\": " << PLoc.getLine() 101 << ", \"column\": " << PLoc.getColumn() 102 << ", \"file\": \"" << PLoc.getFilename() << "\"";
|
/freebsd-12-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-12-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 | 144 PresumedLoc PLoc = SM.getPresumedLoc(Info.getLocation()); local 146 if (PLoc.isInvalid()) { 155 DE.Filename = PLoc.getFilename(); 156 DE.Line = PLoc.getLine(); 157 DE.Column = PLoc.getColumn();
|
H A D | SerializedDiagnosticPrinter.cpp | 67 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 72 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 190 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 215 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 342 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, argument 344 if (PLoc.isInvalid()) { 353 Record.push_back(getEmitFile(PLoc.getFilename())); 354 Record.push_back(PLoc.getLine()); 355 Record.push_back(PLoc.getColumn()+TokSize); 627 void SDiagsWriter::EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, argument 656 emitDiagnosticMessage( FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<clang::CharSourceRange> Ranges, DiagOrStoredDiag D) argument 722 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-12-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | SanitizerMetadata.cpp | 92 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); local 93 if (!PLoc.isValid()) 97 llvm::MDString::get(VMContext, PLoc.getFilename()), 99 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), 101 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())),
|
H A D | CGDebugInfo.cpp | 405 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 407 StringRef FileName = PLoc.getFilename(); 408 if (PLoc.isInvalid() || FileName.empty()) 423 // directive that refers to a file, PLoc will have an invalid FileID, and we 426 computeChecksum(PLoc.getFileID(), Checksum); 483 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); local 484 return PLoc.isValid() ? PLoc.getLine() : 0; 496 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); local 497 return PLoc [all...] |
H A D | CGOpenMPRuntime.cpp | 1723 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); local 1724 OS2 << ";" << PLoc.getFilename() << ";"; 1727 OS2 << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; 2690 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 2691 assert(PLoc.isValid() && "Source location is expected to be always valid."); 2694 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) 2696 << PLoc.getFilename() << EC.message(); 2700 LineNum = PLoc.getLine(); 11366 PresumedLoc PLoc [all...] |
H A D | CodeGenModule.cpp | 2221 PresumedLoc PLoc = SM.getPresumedLoc(Loc); local 2222 if (PLoc.isValid()) 2223 return EmitAnnotationString(PLoc.getFilename()); 2229 PresumedLoc PLoc = SM.getPresumedLoc(L); local 2230 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() :
|
H A D | CGExpr.cpp | 2893 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); local 2894 if (PLoc.isValid()) { 2895 StringRef FilenameString = PLoc.getFilename(); 2925 Line = PLoc.getLine(); 2926 Column = PLoc.getColumn();
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPMacroExpansion.cpp | 1506 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); 1509 OS << (PLoc.isValid()? PLoc.getLine() : 1); 1515 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); 1519 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { 1520 SourceLocation NextLoc = PLoc.getIncludeLoc(); 1522 PLoc = SourceMgr.getPresumedLoc(NextLoc); 1523 if (PLoc.isInvalid()) 1526 NextLoc = PLoc.getIncludeLoc(); 1532 if (PLoc [all...] |
H A D | Pragma.cpp | 470 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); local 471 if (PLoc.isInvalid()) 474 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); 484 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-12-stable/contrib/llvm-project/clang/lib/AST/ |
H A D | TextNodeDumper.cpp | 350 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); local 352 if (PLoc.isInvalid()) { 357 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { 358 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' 359 << PLoc.getColumn(); 360 LastLocFilename = PLoc.getFilename(); 361 LastLocLine = PLoc.getLine(); 362 } else if (PLoc.getLine() != LastLocLine) { 363 OS << "line" << ':' << PLoc [all...] |
H A D | TypePrinter.cpp | 1194 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( local 1196 if (PLoc.isValid()) { 1198 StringRef File = PLoc.getFilename(); 1203 OS << ':' << PLoc.getLine() << ':' << PLoc.getColumn();
|
H A D | Expr.cpp | 2204 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( local 2217 return MakeStringLiteral(PLoc.getFilename()); 2228 IntVal = getIdentKind() == SourceLocExpr::Line ? PLoc.getLine() 2229 : PLoc.getColumn();
|
/freebsd-12-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 1625 PresumedLoc PLoc = SM->getPresumedLoc(Loc); local 1626 LineString += utostr(PLoc.getLine()); 1628 LineString += Lexer::Stringify(PLoc.getFilename()); 3057 PresumedLoc PLoc = SM->getPresumedLoc(Location); local 3058 LineString += utostr(PLoc.getLine()); 3060 LineString += Lexer::Stringify(PLoc.getFilename());
|
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/ |
H A D | ARMAsmParser.cpp | 7000 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + local 7003 ARMOperand::CreateVPTPred(ARMVCC::None, PLoc)); 7015 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + local 7018 ARMOperand::CreateVPTPred(ARMVCC::Else, PLoc)); 7063 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + local 7067 ARMVCC::VPTCodes(VPTPredicationCode), PLoc));
|
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 8949 SourceLocation &PLoc, SourceLocation PrevLoc,
|