Home
last modified time | relevance | path

Searched refs:PLoc (Results 1 – 25 of 29) sorted by relevance

12

/freebsd-14-stable/contrib/llvm-project/clang/lib/Basic/
HDSourceLocation.cpp69 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 …]
HDSarif.cpp329 json::Object PLoc = createPhysicalLocation(ThreadFlow.Range); in createThreadFlows() local
330 json::Object Loc = createLocation(std::move(PLoc), ThreadFlow.Message); in createThreadFlows()
HDSourceManager.cpp1205 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-14-stable/contrib/llvm-project/clang/lib/Index/
HDFileIndexRecord.cpp60 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-stable/contrib/llvm-project/clang/lib/Frontend/
HDSARIFDiagnostic.cpp40 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 …]
HDDiagnosticRenderer.cpp119 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 …]
HDLogDiagnosticPrinter.cpp144 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()
HDTextDiagnostic.cpp664 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 …]
HDSerializedDiagnosticPrinter.cpp66 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 …]
HDPrintPreprocessedOutput.cpp210 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-14-stable/contrib/llvm-project/clang/include/clang/Frontend/
HDDiagnosticRenderer.h76 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,
HDSARIFDiagnostic.h36 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,
HDTextDiagnostic.h85 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-14-stable/contrib/llvm-project/clang/include/clang/Basic/
HDJsonSupport.h92 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-stable/contrib/llvm-project/clang/lib/Lex/
HDPPMacroExpansion.cpp1674 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 …]
HDPragma.cpp496 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()
HDPPDirectives.cpp1578 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local
1579 if (PLoc.isInvalid()) in ReadLineMarkerFlags()
1584 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
/freebsd-14-stable/contrib/llvm-project/clang/lib/AST/
HDTextNodeDumper.cpp769 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 …]
HDTypePrinter.cpp1477 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()
HDExpr.cpp2290 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-14-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCodeGenModule.cpp3304 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 …]
HDCGDebugInfo.cpp413 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()
HDCGOpenMPRuntime.cpp1360 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 …]
/freebsd-14-stable/contrib/llvm-project/clang/include/clang/Sema/
HDSemaObjC.h287 IdentifierInfo *PName, SourceLocation &PLoc, SourceLocation PrevLoc,
/freebsd-14-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/
HDRewriteModernObjC.cpp1627 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()

12