| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 67 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() local 69 if (PLoc.isInvalid()) { in print() 74 OS << PLoc.getFilename() << ':' << PLoc.getLine() in print() 75 << ':' << PLoc.getColumn(); in print() 108 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in PrintDifference() local 110 if (PLoc.isInvalid()) { in PrintDifference() 116 strcmp(PLoc.getFilename(), Previous.getFilename()) != 0) { in PrintDifference() 117 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in PrintDifference() 118 << PLoc.getColumn(); in PrintDifference() 119 } else if (Previous.isInvalid() || PLoc.getLine() != Previous.getLine()) { in PrintDifference() [all …]
|
| H A D | Sarif.cpp | 328 json::Object PLoc = createPhysicalLocation(ThreadFlow.Range); in createThreadFlows() local 329 json::Object Loc = createLocation(std::move(PLoc), ThreadFlow.Message); in createThreadFlows()
|
| H A D | SourceManager.cpp | 1210 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local 1211 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber() 1212 return PLoc.getColumn(); in getPresumedColumnNumber() 1416 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local 1417 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber() 1418 return PLoc.getLine(); in getPresumedLineNumber()
|
| H A D | Diagnostic.cpp | 615 if (PresumedLoc PLoc = SM.getPresumedLoc(DiagLoc); PLoc.isValid()) in isDiagSuppressed() local 618 llvm::sys::path::remove_leading_dotslash(PLoc.getFilename())); in isDiagSuppressed()
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | FileIndexRecord.cpp | 58 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local 59 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print() 60 << PLoc.getLine() << ':' << PLoc.getColumn(); in print() 68 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local 69 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print() 70 << PLoc.getLine() << ':' << PLoc.getColumn(); in print()
|
| /freebsd/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 210 void SARIFDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() argument [all …]
|
| H A D | DiagnosticRenderer.cpp | 117 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts.ShowPresumedLoc); in emitDiagnostic() local 121 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic() 124 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic() 162 void DiagnosticRenderer::emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, in emitIncludeStack() argument 165 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack() 166 : FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager()); in emitIncludeStack() 193 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts.ShowPresumedLoc); in emitIncludeStackRecursively() local 194 if (PLoc.isInvalid()) in emitIncludeStackRecursively() 209 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively() 212 emitIncludeLocation(Loc, PLoc); in emitIncludeStackRecursively() [all …]
|
| H A D | LogDiagnosticPrinter.cpp | 142 PresumedLoc PLoc = SM.getPresumedLoc(Info.getLocation()); in HandleDiagnostic() local 144 if (PLoc.isInvalid()) { in HandleDiagnostic() 152 DE.Filename = PLoc.getFilename(); in HandleDiagnostic() 153 DE.Line = PLoc.getLine(); in HandleDiagnostic() 154 DE.Column = PLoc.getColumn(); in HandleDiagnostic()
|
| H A D | TextDiagnostic.cpp | 662 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() argument 669 emitDiagnosticLoc(Loc, PLoc, Level, Ranges); in emitDiagnosticMessage() 782 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 785 if (PLoc.isInvalid()) { in emitDiagnosticLoc() 795 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() 803 emitFilename(PLoc.getFilename(), Loc.getManager()); in emitDiagnosticLoc() 816 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc() 881 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() argument 882 if (DiagOpts.ShowLocation && PLoc.isValid()) { in emitIncludeLocation() 884 emitFilename(PLoc.getFilename(), Loc.getManager()); in emitIncludeLocation() [all …]
|
| H A D | SerializedDiagnosticPrinter.cpp | 63 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 68 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 185 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 210 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 342 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord() argument 344 if (PLoc.isInvalid()) { in AddLocToRecord() 353 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord() 354 Record.push_back(PLoc.getLine()); in AddLocToRecord() 355 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord() 640 void SDiagsWriter::EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in EmitDiagnosticMessage() argument [all …]
|
| H A D | PrintPreprocessedOutput.cpp | 209 PresumedLoc PLoc = SM.getPresumedLoc(Tok.getLocation()); in MoveToLine() local 210 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 212 Tok.isAtStartOfLine() && PLoc.isValid() && PLoc.getLine() == 1; in MoveToLine() 219 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local 220 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 1139 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local 1140 if (PLoc.isInvalid()) in DoPrintPreprocessedInput() 1143 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | DiagnosticRenderer.h | 75 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 81 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 90 virtual void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) = 0; 91 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 93 virtual void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 103 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, 149 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 151 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 154 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/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/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PPMacroExpansion.cpp | 1624 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); in ExpandBuiltinMacro() local 1627 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro() 1633 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in ExpandBuiltinMacro() local 1637 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { in ExpandBuiltinMacro() 1638 SourceLocation NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1640 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro() 1641 if (PLoc.isInvalid()) in ExpandBuiltinMacro() 1644 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1650 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1654 processPathToFileName(FN, PLoc, getLangOpts(), getTargetInfo()); in ExpandBuiltinMacro() [all …]
|
| H A D | Pragma.cpp | 492 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local 493 if (PLoc.isInvalid()) in HandlePragmaSystemHeader() 496 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader() 506 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader()
|
| H A D | PPDirectives.cpp | 1604 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local 1605 if (PLoc.isInvalid()) in ReadLineMarkerFlags() 1610 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | TextNodeDumper.cpp | 870 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local 872 if (PLoc.isInvalid()) { in dumpLocation() 877 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation() 878 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation() 879 << PLoc.getColumn(); in dumpLocation() 880 LastLocFilename = PLoc.getFilename(); in dumpLocation() 881 LastLocLine = PLoc.getLine(); in dumpLocation() 882 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation() 883 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation() 884 LastLocLine = PLoc.getLine(); in dumpLocation() [all …]
|
| H A D | TypePrinter.cpp | 1524 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local 1526 if (PLoc.isValid()) { in printTag() 1528 StringRef File = PLoc.getFilename(); in printTag() 1542 OS << WrittenFile << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
|
| H A D | Expr.cpp | 2307 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( in EvaluateInContext() local 2324 FileName, PLoc, Ctx.getLangOpts(), Ctx.getTargetInfo()); in EvaluateInContext() 2328 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2343 return APValue(Ctx.MakeIntValue(PLoc.getLine(), Ctx.UnsignedIntTy)); in EvaluateInContext() 2345 return APValue(Ctx.MakeIntValue(PLoc.getColumn(), Ctx.UnsignedIntTy)); in EvaluateInContext() 2361 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2375 llvm::APSInt IntVal = Ctx.MakeIntValue(PLoc.getLine(), F->getType()); in EvaluateInContext() 2378 llvm::APSInt IntVal = Ctx.MakeIntValue(PLoc.getColumn(), F->getType()); in EvaluateInContext()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangExpressionParser.cpp | 268 clang::PresumedLoc PLoc = fsloc.getPresumedLoc(true); in HandleDiagnostic() local 270 PLoc.isValid() ? PLoc.getFilename() : StringRef{}; in HandleDiagnostic()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 3556 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local 3557 if (PLoc.isValid()) in EmitAnnotationUnit() 3558 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit() 3564 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local 3565 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo() 8080 PresumedLoc PLoc = SM.getPresumedLoc(D->getLocation()); in printPostfixForExternalizedDecl() local 8081 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() 8092 if (llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in printPostfixForExternalizedDecl() 8093 PLoc = SM.getPresumedLoc(D->getLocation(), /*UseLineDirectives=*/false); in printPostfixForExternalizedDecl() 8094 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() [all …]
|
| H A D | CGOpenMPRuntime.cpp | 1354 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in getIdentStringFromSourceLocation() local 1357 OS << DbgInfo->remapDIPath(PLoc.getFilename()); in getIdentStringFromSourceLocation() 1359 OS << PLoc.getFilename(); in getIdentStringFromSourceLocation() 1363 OS << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in getIdentStringFromSourceLocation() 1381 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in emitUpdateLocation() local 1383 FileName = DbgInfo->remapDIPath(PLoc.getFilename()); in emitUpdateLocation() 1385 FileName = PLoc.getFilename(); in emitUpdateLocation() 1386 unsigned Line = PLoc.getLine(); in emitUpdateLocation() 1387 unsigned Column = PLoc.getColumn(); in emitUpdateLocation() 1539 PresumedLoc PLoc = SM.getPresumedLoc(BeginLoc); in getEntryInfoFromPresumedLoc() local [all …]
|
| H A D | CGDebugInfo.cpp | 554 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local 555 FileName = PLoc.getFilename(); in getOrCreateFile() 560 FileName = PLoc.getFilename(); in getOrCreateFile() 562 FID = PLoc.getFileID(); in getOrCreateFile() 648 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local 649 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber() 6129 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in AddStringLiteralDebugInfo() local 6130 if (!PLoc.isValid()) in AddStringLiteralDebugInfo()
|