| /openbsd-src/gnu/llvm/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() 118 strcmp(PLoc.getFilename(), Previous.getFilename()) != 0) { in PrintDifference() 119 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in PrintDifference() 120 << PLoc.getColumn(); in PrintDifference() 121 } else if (Previous.isInvalid() || PLoc.getLine() != Previous.getLine()) { in PrintDifference() [all …]
|
| H A D | Sarif.cpp | 327 json::Object PLoc = createPhysicalLocation(ThreadFlow.Range); in createThreadFlows() local 328 json::Object Loc = createLocation(std::move(PLoc), ThreadFlow.Message); in createThreadFlows()
|
| H A D | SourceManager.cpp | 1255 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local 1256 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber() 1257 return PLoc.getColumn(); in getPresumedColumnNumber() 1462 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local 1463 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber() 1464 return PLoc.getLine(); in getPresumedLineNumber()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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() 205 void SARIFDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 211 void SARIFDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() argument [all …]
|
| 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 | 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 | 674 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() argument 681 emitDiagnosticLoc(Loc, PLoc, Level, Ranges); in emitDiagnosticMessage() 794 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 797 if (PLoc.isInvalid()) { in emitDiagnosticLoc() 808 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() 816 emitFilename(PLoc.getFilename(), Loc.getManager()); in emitDiagnosticLoc() 829 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc() 899 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() argument 900 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitIncludeLocation() 901 OS << "In file included from " << PLoc.getFilename() << ':' in emitIncludeLocation() [all …]
|
| H A D | SerializedDiagnosticPrinter.cpp | 68 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 73 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 190 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 215 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 345 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord() argument 347 if (PLoc.isInvalid()) { in AddLocToRecord() 356 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord() 357 Record.push_back(PLoc.getLine()); in AddLocToRecord() 358 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord() 641 void SDiagsWriter::EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in EmitDiagnosticMessage() argument [all …]
|
| H A D | PrintPreprocessedOutput.cpp | 192 PresumedLoc PLoc = SM.getPresumedLoc(Tok.getLocation()); in MoveToLine() local 193 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 195 Tok.isAtStartOfLine() && PLoc.isValid() && PLoc.getLine() == 1; in MoveToLine() 202 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local 203 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 1018 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local 1019 if (PLoc.isInvalid()) in DoPrintPreprocessedInput() 1022 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
|
| /openbsd-src/gnu/llvm/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,
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/tools/libclang/ |
| H A D | CIndexInclusionStack.cpp | 50 PresumedLoc PLoc = SM.getPresumedLoc(L); in getInclusions() local 52 L = PLoc.isValid()? PLoc.getIncludeLoc() : SourceLocation(); in getInclusions()
|
| H A D | CIndexDiagnostic.cpp | 110 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticMessage() argument 126 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument
|
| /openbsd-src/gnu/llvm/clang/lib/Lex/ |
| H A D | PPMacroExpansion.cpp | 1532 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); in ExpandBuiltinMacro() local 1535 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro() 1541 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in ExpandBuiltinMacro() local 1545 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { in ExpandBuiltinMacro() 1546 SourceLocation NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1548 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro() 1549 if (PLoc.isInvalid()) in ExpandBuiltinMacro() 1552 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1558 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1564 StringRef PLFileName = llvm::sys::path::filename(PLoc.getFilename()); in ExpandBuiltinMacro() [all …]
|
| H A D | Pragma.cpp | 485 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local 486 if (PLoc.isInvalid()) in HandlePragmaSystemHeader() 489 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader() 499 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader()
|
| H A D | PPDirectives.cpp | 1482 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local 1483 if (PLoc.isInvalid()) in ReadLineMarkerFlags() 1488 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | TextNodeDumper.cpp | 627 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local 629 if (PLoc.isInvalid()) { in dumpLocation() 634 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation() 635 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation() 636 << PLoc.getColumn(); in dumpLocation() 637 LastLocFilename = PLoc.getFilename(); in dumpLocation() 638 LastLocLine = PLoc.getLine(); in dumpLocation() 639 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation() 640 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation() 641 LastLocLine = PLoc.getLine(); in dumpLocation() [all …]
|
| H A D | TypePrinter.cpp | 1354 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local 1356 if (PLoc.isValid()) { in printTag() 1358 StringRef File = PLoc.getFilename(); in printTag() 1363 OS << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
|
| H A D | Expr.cpp | 2272 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( in EvaluateInContext() local 2285 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2300 IntVal = getIdentKind() == SourceLocExpr::Line ? PLoc.getLine() in EvaluateInContext() 2301 : PLoc.getColumn(); in EvaluateInContext() 2319 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2336 IntVal = PLoc.getLine(); in EvaluateInContext() 2342 IntVal = PLoc.getColumn(); in EvaluateInContext()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 2865 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local 2866 if (PLoc.isValid()) in EmitAnnotationUnit() 2867 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit() 2873 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local 2874 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo() 7162 PresumedLoc PLoc = SM.getPresumedLoc(D->getLocation()); in printPostfixForExternalizedDecl() local 7163 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() 7174 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in printPostfixForExternalizedDecl() 7175 PLoc = SM.getPresumedLoc(D->getLocation(), /*UseLineDirectives=*/false); in printPostfixForExternalizedDecl() 7176 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() [all …]
|
| H A D | CGDebugInfo.cpp | 402 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local 403 FileName = PLoc.getFilename(); in getOrCreateFile() 408 FileName = PLoc.getFilename(); in getOrCreateFile() 410 FID = PLoc.getFileID(); in getOrCreateFile() 498 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local 499 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber() 5509 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in AddStringLiteralDebugInfo() local 5510 if (!PLoc.isValid()) in AddStringLiteralDebugInfo()
|
| H A D | CGOpenMPRuntime.cpp | 1358 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in getIdentStringFromSourceLocation() local 1359 OS << ";" << PLoc.getFilename() << ";"; in getIdentStringFromSourceLocation() 1362 OS << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in getIdentStringFromSourceLocation() 1379 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in emitUpdateLocation() local 1380 const char *FileName = PLoc.getFilename(); in emitUpdateLocation() 1381 unsigned Line = PLoc.getLine(); in emitUpdateLocation() 1382 unsigned Column = PLoc.getColumn(); in emitUpdateLocation() 1605 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getTargetEntryUniqueInfo() local 1606 assert(PLoc.isValid() && "Source location is expected to be always valid."); in getTargetEntryUniqueInfo() 1609 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in getTargetEntryUniqueInfo() [all …]
|