/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | FileIndexRecord.cpp | 60 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local 61 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print() 62 << PLoc.getLine() << ':' << PLoc.getColumn(); in print() 70 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local 71 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print() 72 << PLoc.getLine() << ':' << PLoc.getColumn(); in print()
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
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,
|
H A D | SARIFDiagnostic.h | 36 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 41 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 49 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 51 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 54 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 62 PresumedLoc PLoc,
|
H A D | TextDiagnostic.h | 85 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 90 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 100 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 102 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 105 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | DiagnosticRenderer.cpp | 119 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitDiagnostic() local 123 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic() 126 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic() 164 void DiagnosticRenderer::emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, in emitIncludeStack() argument 167 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack() 168 : FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager()); in emitIncludeStack() 195 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively() local 196 if (PLoc.isInvalid()) in emitIncludeStackRecursively() 211 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively() 214 emitIncludeLocation(Loc, PLoc); in emitIncludeStackRecursively() [all …]
|
H A D | TextDiagnostic.cpp | 664 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() argument 671 emitDiagnosticLoc(Loc, PLoc, Level, Ranges); in emitDiagnosticMessage() 784 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 787 if (PLoc.isInvalid()) { in emitDiagnosticLoc() 797 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() 805 emitFilename(PLoc.getFilename(), Loc.getManager()); in emitDiagnosticLoc() 818 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc() 883 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() argument 884 if (DiagOpts->ShowLocation && PLoc.isValid()) { in emitIncludeLocation() 886 emitFilename(PLoc.getFilename(), Loc.getManager()); in emitIncludeLocation() [all …]
|
H A D | SerializedDiagnosticPrinter.cpp | 66 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 71 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 188 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 213 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 343 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord() argument 345 if (PLoc.isInvalid()) { in AddLocToRecord() 354 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord() 355 Record.push_back(PLoc.getLine()); in AddLocToRecord() 356 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord() 639 void SDiagsWriter::EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in EmitDiagnosticMessage() argument [all …]
|
H A D | PrintPreprocessedOutput.cpp | 210 PresumedLoc PLoc = SM.getPresumedLoc(Tok.getLocation()); in MoveToLine() local 211 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 213 Tok.isAtStartOfLine() && PLoc.isValid() && PLoc.getLine() == 1; in MoveToLine() 220 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local 221 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 1143 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local 1144 if (PLoc.isInvalid()) in DoPrintPreprocessedInput() 1147 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPMacroExpansion.cpp | 1674 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); in ExpandBuiltinMacro() local 1677 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro() 1683 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in ExpandBuiltinMacro() local 1687 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { in ExpandBuiltinMacro() 1688 SourceLocation NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1690 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro() 1691 if (PLoc.isInvalid()) in ExpandBuiltinMacro() 1694 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1700 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1704 processPathToFileName(FN, PLoc, getLangOpts(), getTargetInfo()); in ExpandBuiltinMacro() [all …]
|
H A D | Pragma.cpp | 496 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local 497 if (PLoc.isInvalid()) in HandlePragmaSystemHeader() 500 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader() 510 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader()
|
H A D | PPDirectives.cpp | 1578 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local 1579 if (PLoc.isInvalid()) in ReadLineMarkerFlags() 1584 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | TextNodeDumper.cpp | 769 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local 771 if (PLoc.isInvalid()) { in dumpLocation() 776 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation() 777 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation() 778 << PLoc.getColumn(); in dumpLocation() 779 LastLocFilename = PLoc.getFilename(); in dumpLocation() 780 LastLocLine = PLoc.getLine(); in dumpLocation() 781 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation() 782 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation() 783 LastLocLine = PLoc.getLine(); in dumpLocation() [all …]
|
H A D | TypePrinter.cpp | 1477 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local 1479 if (PLoc.isValid()) { in printTag() 1481 StringRef File = PLoc.getFilename(); in printTag() 1495 OS << WrittenFile << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
|
H A D | Expr.cpp | 2290 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( in EvaluateInContext() local 2307 FileName, PLoc, Ctx.getLangOpts(), Ctx.getTargetInfo()); in EvaluateInContext() 2311 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2326 return APValue(Ctx.MakeIntValue(PLoc.getLine(), Ctx.UnsignedIntTy)); in EvaluateInContext() 2328 return APValue(Ctx.MakeIntValue(PLoc.getColumn(), Ctx.UnsignedIntTy)); in EvaluateInContext() 2344 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2358 llvm::APSInt IntVal = Ctx.MakeIntValue(PLoc.getLine(), F->getType()); in EvaluateInContext() 2361 llvm::APSInt IntVal = Ctx.MakeIntValue(PLoc.getColumn(), F->getType()); in EvaluateInContext()
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | Sarif.cpp | 329 json::Object PLoc = createPhysicalLocation(ThreadFlow.Range); in createThreadFlows() local 330 json::Object Loc = createLocation(std::move(PLoc), ThreadFlow.Message); in createThreadFlows()
|
H A D | SourceManager.cpp | 1205 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local 1206 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber() 1207 return PLoc.getColumn(); in getPresumedColumnNumber() 1411 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local 1412 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber() 1413 return PLoc.getLine(); in getPresumedLineNumber()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenModule.cpp | 3304 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local 3305 if (PLoc.isValid()) in EmitAnnotationUnit() 3306 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit() 3312 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local 3313 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo() 7747 PresumedLoc PLoc = SM.getPresumedLoc(D->getLocation()); in printPostfixForExternalizedDecl() local 7748 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() 7759 if (llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in printPostfixForExternalizedDecl() 7760 PLoc = SM.getPresumedLoc(D->getLocation(), /*UseLineDirectives=*/false); in printPostfixForExternalizedDecl() 7761 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() [all …]
|
H A D | CGDebugInfo.cpp | 413 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local 414 FileName = PLoc.getFilename(); in getOrCreateFile() 419 FileName = PLoc.getFilename(); in getOrCreateFile() 421 FID = PLoc.getFileID(); in getOrCreateFile() 507 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local 508 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber() 5866 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in AddStringLiteralDebugInfo() local 5867 if (!PLoc.isValid()) in AddStringLiteralDebugInfo()
|
H A D | CGOpenMPRuntime.cpp | 1360 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in getIdentStringFromSourceLocation() local 1361 OS << ";" << PLoc.getFilename() << ";"; in getIdentStringFromSourceLocation() 1364 OS << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in getIdentStringFromSourceLocation() 1381 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in emitUpdateLocation() local 1382 const char *FileName = PLoc.getFilename(); in emitUpdateLocation() 1383 unsigned Line = PLoc.getLine(); in emitUpdateLocation() 1384 unsigned Column = PLoc.getColumn(); in emitUpdateLocation() 1549 PresumedLoc PLoc = SM.getPresumedLoc(BeginLoc); in getEntryInfoFromPresumedLoc() local 1552 if (llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in getEntryInfoFromPresumedLoc() 1553 PLoc = SM.getPresumedLoc(BeginLoc, /*UseLineDirectives=*/false); in getEntryInfoFromPresumedLoc() [all …]
|
H A D | CGExpr.cpp | 3391 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); in EmitCheckSourceLocation() local 3392 if (PLoc.isValid()) { in EmitCheckSourceLocation() 3393 StringRef FilenameString = PLoc.getFilename(); in EmitCheckSourceLocation() 3425 Line = PLoc.getLine(); in EmitCheckSourceLocation() 3426 Column = PLoc.getColumn(); in EmitCheckSourceLocation()
|
H A D | CGStmtOpenMP.cpp | 7998 PresumedLoc PLoc = SM.getPresumedLoc(L); in emitTargetTeamsLoopCodegenStatus() local 7999 const char *FileName = PLoc.isValid() ? PLoc.getFilename() : nullptr; in emitTargetTeamsLoopCodegenStatus() 8001 PLoc.isValid() ? PLoc.getLine() : SM.getExpansionLineNumber(L); in emitTargetTeamsLoopCodegenStatus()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaObjC.h | 287 IdentifierInfo *PName, SourceLocation &PLoc, SourceLocation PrevLoc,
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 1627 PresumedLoc PLoc = SM->getPresumedLoc(Loc); in ConvertSourceLocationToLineDirective() local 1628 LineString += utostr(PLoc.getLine()); in ConvertSourceLocationToLineDirective() 1630 LineString += Lexer::Stringify(PLoc.getFilename()); in ConvertSourceLocationToLineDirective() 3062 PresumedLoc PLoc = SM->getPresumedLoc(Location); in RewriteLineDirective() local 3063 LineString += utostr(PLoc.getLine()); in RewriteLineDirective() 3065 LineString += Lexer::Stringify(PLoc.getFilename()); in RewriteLineDirective()
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | Preprocessor.h | 2925 const PresumedLoc &PLoc,
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/ |
H A D | ARMAsmParser.cpp | 7281 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local 7284 ARMOperand::CreateVPTPred(ARMVCC::None, PLoc, *this)); in ParseInstruction() 7297 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local 7300 ARMOperand::CreateVPTPred(ARMVCC::Else, PLoc, *this)); in ParseInstruction() 7342 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local 7347 ARMVCC::VPTCodes(VPTPredicationCode), PLoc, *this)); in ParseInstruction()
|