| /freebsd-14.2/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 69 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() local 71 if (PLoc.isInvalid()) { in print() 76 OS << PLoc.getFilename() << ':' << PLoc.getLine() in print() 77 << ':' << PLoc.getColumn(); in print() 110 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in PrintDifference() local 112 if (PLoc.isInvalid()) { in PrintDifference() 119 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in PrintDifference() 120 << PLoc.getColumn(); in PrintDifference() 122 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in PrintDifference() 124 OS << "col" << ':' << PLoc.getColumn(); in PrintDifference() [all …]
|
| H A D | Sarif.cpp | 330 json::Object PLoc = createPhysicalLocation(ThreadFlow.Range); in createThreadFlows() local 331 json::Object Loc = createLocation(std::move(PLoc), ThreadFlow.Message); in createThreadFlows()
|
| H A D | SourceManager.cpp | 1190 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local 1191 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber() 1192 return PLoc.getColumn(); in getPresumedColumnNumber() 1396 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local 1397 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber() 1398 return PLoc.getLine(); in getPresumedLineNumber()
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | SARIFDiagnostic.cpp | 40 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() argument 59 Result = addLocationToResult(Result, Loc, PLoc, Ranges, *Diag); in emitDiagnosticMessage() 65 SarifResult Result, FullSourceLoc Loc, PresumedLoc PLoc, in addLocationToResult() argument 69 if (PLoc.isInvalid()) { in addLocationToResult() 121 auto FID = PLoc.getFileID(); in addLocationToResult() 125 ? PLoc.getColumn() - 1 in addLocationToResult() 126 : PLoc.getColumn(); in addLocationToResult() 127 SourceLocation DiagLoc = SM.translateLineCol(FID, PLoc.getLine(), ColNo); in addLocationToResult() 204 void SARIFDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 214 void SARIFDiagnostic::emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitImportLocation() argument [all …]
|
| H A D | DiagnosticRenderer.cpp | 123 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic() 167 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack() 196 if (PLoc.isInvalid()) in emitIncludeStackRecursively() 211 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively() 214 emitIncludeLocation(Loc, PLoc); in emitIncludeStackRecursively() 243 emitImportLocation(Loc, PLoc, ModuleName); in emitImportStackRecursively() 602 << PLoc.getLine() << ":"; in emitIncludeLocation() 613 if (PLoc.isValid()) in emitImportLocation() 615 << PLoc.getLine(); in emitImportLocation() 626 if (PLoc.isValid()) in emitBuildingModuleLocation() [all …]
|
| H A D | LogDiagnosticPrinter.cpp | 144 PresumedLoc PLoc = SM.getPresumedLoc(Info.getLocation()); in HandleDiagnostic() local 146 if (PLoc.isInvalid()) { in HandleDiagnostic() 154 DE.Filename = PLoc.getFilename(); in HandleDiagnostic() 155 DE.Line = PLoc.getLine(); in HandleDiagnostic() 156 DE.Column = PLoc.getColumn(); in HandleDiagnostic()
|
| H A D | TextDiagnostic.cpp | 662 emitDiagnosticLoc(Loc, PLoc, Level, Ranges); in emitDiagnosticMessage() 778 if (PLoc.isInvalid()) { in emitDiagnosticLoc() 788 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() 809 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc() 878 OS << ':' << PLoc.getLine() << ":\n"; in emitIncludeLocation() 885 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitImportLocation() 887 << PLoc.getFilename() << ':' << PLoc.getLine() << ":\n"; in emitImportLocation() 895 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitBuildingModuleLocation() 897 << PLoc.getFilename() << ':' << PLoc.getLine() << ":\n"; in emitBuildingModuleLocation() 1341 if (PLoc.isInvalid()) in emitParseableFixits() [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() 651 AddLocToRecord(Loc, PLoc, Record); in EmitDiagnosticMessage() [all …]
|
| H A D | PrintPreprocessedOutput.cpp | 198 PresumedLoc PLoc = SM.getPresumedLoc(Tok.getLocation()); in MoveToLine() local 199 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 201 Tok.isAtStartOfLine() && PLoc.isValid() && PLoc.getLine() == 1; in MoveToLine() 208 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local 209 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 1034 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local 1035 if (PLoc.isInvalid()) in DoPrintPreprocessedInput() 1038 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
|
| /freebsd-14.2/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 | 76 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 81 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 91 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 93 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 96 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | JsonSupport.h | 92 PresumedLoc PLoc = SM.getPresumedLoc(Loc); 94 if (PLoc.isInvalid()) { 101 std::string filename(PLoc.getFilename()); 111 Out << "\"line\": " << PLoc.getLine() 112 << ", \"column\": " << PLoc.getColumn()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PPMacroExpansion.cpp | 1540 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro() 1553 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro() 1554 if (PLoc.isInvalid()) in ExpandBuiltinMacro() 1557 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1563 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1569 FN += PLoc.getFilename(); in ExpandBuiltinMacro() 1602 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1603 PLoc = SourceMgr.getPresumedLoc(PLoc.getIncludeLoc()); in ExpandBuiltinMacro() 1604 for (; PLoc.isValid(); ++Depth) in ExpandBuiltinMacro() 1605 PLoc = SourceMgr.getPresumedLoc(PLoc.getIncludeLoc()); 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 | 1501 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local 1502 if (PLoc.isInvalid()) in ReadLineMarkerFlags() 1507 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | TextNodeDumper.cpp | 655 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local 657 if (PLoc.isInvalid()) { in dumpLocation() 662 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation() 663 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation() 664 << PLoc.getColumn(); in dumpLocation() 665 LastLocFilename = PLoc.getFilename(); in dumpLocation() 666 LastLocLine = PLoc.getLine(); in dumpLocation() 667 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation() 668 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation() 669 LastLocLine = PLoc.getLine(); in dumpLocation() [all …]
|
| H A D | TypePrinter.cpp | 1410 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local 1412 if (PLoc.isValid()) { in printTag() 1414 StringRef File = PLoc.getFilename(); in printTag() 1428 OS << WrittenFile << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
|
| H A D | Expr.cpp | 2265 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( in EvaluateInContext() local 2282 FileName, PLoc, Ctx.getLangOpts(), Ctx.getTargetInfo()); in EvaluateInContext() 2286 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2301 return APValue(Ctx.MakeIntValue(PLoc.getLine(), Ctx.UnsignedIntTy)); in EvaluateInContext() 2303 return APValue(Ctx.MakeIntValue(PLoc.getColumn(), Ctx.UnsignedIntTy)); in EvaluateInContext() 2319 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2333 llvm::APSInt IntVal = Ctx.MakeIntValue(PLoc.getLine(), F->getType()); in EvaluateInContext() 2336 llvm::APSInt IntVal = Ctx.MakeIntValue(PLoc.getColumn(), F->getType()); in EvaluateInContext()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 3270 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local 3271 if (PLoc.isValid()) in EmitAnnotationUnit() 3272 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit() 3278 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local 3279 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo() 7598 PresumedLoc PLoc = SM.getPresumedLoc(D->getLocation()); in printPostfixForExternalizedDecl() local 7599 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() 7610 if (llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in printPostfixForExternalizedDecl() 7612 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() 7613 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) in printPostfixForExternalizedDecl() [all …]
|
| H A D | CGDebugInfo.cpp | 403 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local 404 FileName = PLoc.getFilename(); in getOrCreateFile() 409 FileName = PLoc.getFilename(); in getOrCreateFile() 411 FID = PLoc.getFileID(); in getOrCreateFile() 497 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local 498 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber() 5683 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in AddStringLiteralDebugInfo() local 5684 if (!PLoc.isValid()) in AddStringLiteralDebugInfo()
|
| H A D | CGOpenMPRuntime.cpp | 1359 OS << ";" << PLoc.getFilename() << ";"; in getIdentStringFromSourceLocation() 1362 OS << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in getIdentStringFromSourceLocation() 1380 const char *FileName = PLoc.getFilename(); in emitUpdateLocation() 1381 unsigned Line = PLoc.getLine(); in emitUpdateLocation() 1382 unsigned Column = PLoc.getColumn(); in emitUpdateLocation() 1547 PresumedLoc PLoc = SM.getPresumedLoc(BeginLoc); in getEntryInfoFromPresumedLoc() local 1550 if (llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in getEntryInfoFromPresumedLoc() 1551 PLoc = SM.getPresumedLoc(BeginLoc, /*UseLineDirectives=*/false); in getEntryInfoFromPresumedLoc() 1554 return std::pair<std::string, uint64_t>(PLoc.getFilename(), PLoc.getLine()); in getEntryInfoFromPresumedLoc() 8811 return OMPBuilder.getOrCreateSrcLocStr(PLoc.getFilename(), ExprName, in emitMappingInformation() [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()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 1628 PresumedLoc PLoc = SM->getPresumedLoc(Loc); in ConvertSourceLocationToLineDirective() local 1629 LineString += utostr(PLoc.getLine()); in ConvertSourceLocationToLineDirective() 1631 LineString += Lexer::Stringify(PLoc.getFilename()); in ConvertSourceLocationToLineDirective() 3063 PresumedLoc PLoc = SM->getPresumedLoc(Location); in RewriteLineDirective() local 3064 LineString += utostr(PLoc.getLine()); in RewriteLineDirective() 3066 LineString += Lexer::Stringify(PLoc.getFilename()); in RewriteLineDirective()
|