Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DSourceLocation.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()
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 DSourceManager.cpp1253 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local
1254 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber()
1255 return PLoc.getColumn(); in getPresumedColumnNumber()
1458 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local
1459 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber()
1460 return PLoc.getLine(); in getPresumedLineNumber()
/freebsd-13.1/contrib/llvm-project/clang/lib/Index/
H A DFileIndexRecord.cpp63 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local
64 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print()
65 << PLoc.getLine() << ':' << PLoc.getColumn(); in print()
73 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local
74 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print()
75 << PLoc.getLine() << ':' << PLoc.getColumn(); in print()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Frontend/
H A DDiagnosticRenderer.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,
H A DTextDiagnostic.h76 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-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp124 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic()
168 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack()
197 if (PLoc.isInvalid()) in emitIncludeStackRecursively()
212 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively()
215 emitIncludeLocation(Loc, PLoc); in emitIncludeStackRecursively()
244 emitImportLocation(Loc, PLoc, ModuleName); in emitImportStackRecursively()
605 << PLoc.getLine() << ":"; in emitIncludeLocation()
616 if (PLoc.isValid()) in emitImportLocation()
618 << PLoc.getLine(); in emitImportLocation()
629 if (PLoc.isValid()) in emitBuildingModuleLocation()
[all …]
H A DLogDiagnosticPrinter.cpp145 PresumedLoc PLoc = SM.getPresumedLoc(Info.getLocation()); in HandleDiagnostic() local
147 if (PLoc.isInvalid()) { in HandleDiagnostic()
156 DE.Filename = PLoc.getFilename(); in HandleDiagnostic()
157 DE.Line = PLoc.getLine(); in HandleDiagnostic()
158 DE.Column = PLoc.getColumn(); in HandleDiagnostic()
H A DTextDiagnostic.cpp797 if (PLoc.isInvalid()) { in emitDiagnosticLoc()
809 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc()
829 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc()
899 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitIncludeLocation()
901 << PLoc.getLine() << ":\n"; in emitIncludeLocation()
908 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitImportLocation()
910 << PLoc.getFilename() << ':' << PLoc.getLine() << ":\n"; in emitImportLocation()
918 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitBuildingModuleLocation()
920 << PLoc.getFilename() << ':' << PLoc.getLine() << ":\n"; in emitBuildingModuleLocation()
1342 if (PLoc.isInvalid()) in emitParseableFixits()
[all …]
H A DSerializedDiagnosticPrinter.cpp68 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc,
73 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument
191 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc,
216 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc,
346 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord() argument
348 if (PLoc.isInvalid()) { in AddLocToRecord()
357 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord()
358 Record.push_back(PLoc.getLine()); in AddLocToRecord()
359 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord()
654 AddLocToRecord(Loc, PLoc, Record); in EmitDiagnosticMessage()
[all …]
H A DPrintPreprocessedOutput.cpp157 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local
158 if (PLoc.isInvalid()) in MoveToLine()
160 return MoveToLine(PLoc.getLine()) || (PLoc.getLine() == 1); in MoveToLine()
920 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local
921 if (PLoc.isInvalid()) in DoPrintPreprocessedInput()
924 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DJsonSupport.h91 PresumedLoc PLoc = SM.getPresumedLoc(Loc);
93 if (PLoc.isInvalid()) {
100 std::string filename(PLoc.getFilename());
113 Out << "\"line\": " << PLoc.getLine()
114 << ", \"column\": " << PLoc.getColumn()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DSanitizerMetadata.cpp93 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in getLocationMetadata() local
94 if (!PLoc.isValid()) in getLocationMetadata()
98 llvm::MDString::get(VMContext, PLoc.getFilename()), in getLocationMetadata()
100 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), in getLocationMetadata()
102 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())), in getLocationMetadata()
H A DCGOpenMPRuntime.cpp1429 OS << ";" << PLoc.getFilename() << ";"; in getIdentStringFromSourceLocation()
1432 OS << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in getIdentStringFromSourceLocation()
1448 const char *FileName = PLoc.getFilename(); in emitUpdateLocation()
1449 unsigned Line = PLoc.getLine(); in emitUpdateLocation()
1450 unsigned Column = PLoc.getColumn(); in emitUpdateLocation()
1663 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getTargetEntryUniqueInfo() local
1672 << PLoc.getFilename() << EC.message(); in getTargetEntryUniqueInfo()
1677 LineNum = PLoc.getLine(); in getTargetEntryUniqueInfo()
9459 const char *FileName = PLoc.getFilename(); in emitMappingInformation()
9460 unsigned Line = PLoc.getLine(); in emitMappingInformation()
[all …]
H A DCGDebugInfo.cpp386 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local
387 FileName = PLoc.getFilename(); in getOrCreateFile()
392 FileName = PLoc.getFilename(); in getOrCreateFile()
394 FID = PLoc.getFileID(); in getOrCreateFile()
480 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local
481 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber()
H A DCodeGenModule.cpp2517 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local
2518 if (PLoc.isValid()) in EmitAnnotationUnit()
2519 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit()
2525 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local
2526 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo()
H A DCGExpr.cpp3069 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); in EmitCheckSourceLocation() local
3070 if (PLoc.isValid()) { in EmitCheckSourceLocation()
3071 StringRef FilenameString = PLoc.getFilename(); in EmitCheckSourceLocation()
3102 Line = PLoc.getLine(); in EmitCheckSourceLocation()
3103 Column = PLoc.getColumn(); in EmitCheckSourceLocation()
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DPPMacroExpansion.cpp1500 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro()
1513 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro()
1514 if (PLoc.isInvalid()) in ExpandBuiltinMacro()
1517 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro()
1523 if (PLoc.isValid()) { in ExpandBuiltinMacro()
1533 FN += PLoc.getFilename(); in ExpandBuiltinMacro()
1535 FN += PLoc.getFilename(); in ExpandBuiltinMacro()
1568 if (PLoc.isValid()) { in ExpandBuiltinMacro()
1569 PLoc = SourceMgr.getPresumedLoc(PLoc.getIncludeLoc()); in ExpandBuiltinMacro()
1570 for (; PLoc.isValid(); ++Depth) in ExpandBuiltinMacro()
[all …]
H A DPragma.cpp481 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local
482 if (PLoc.isInvalid()) in HandlePragmaSystemHeader()
485 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader()
495 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader()
H A DPPDirectives.cpp1344 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local
1345 if (PLoc.isInvalid()) in ReadLineMarkerFlags()
1350 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DTextNodeDumper.cpp625 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local
627 if (PLoc.isInvalid()) { in dumpLocation()
632 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation()
633 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation()
634 << PLoc.getColumn(); in dumpLocation()
635 LastLocFilename = PLoc.getFilename(); in dumpLocation()
636 LastLocLine = PLoc.getLine(); in dumpLocation()
637 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation()
638 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation()
639 LastLocLine = PLoc.getLine(); in dumpLocation()
[all …]
H A DTypePrinter.cpp1326 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local
1328 if (PLoc.isValid()) { in printTag()
1330 StringRef File = PLoc.getFilename(); in printTag()
1335 OS << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
H A DExpr.cpp2224 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( in EvaluateInContext() local
2237 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext()
2251 IntVal = getIdentKind() == SourceLocExpr::Line ? PLoc.getLine() in EvaluateInContext()
2252 : PLoc.getColumn(); in EvaluateInContext()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DRewriteModernObjC.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()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/
H A DARMAsmParser.cpp7282 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local
7285 ARMOperand::CreateVPTPred(ARMVCC::None, PLoc)); in ParseInstruction()
7297 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local
7300 ARMOperand::CreateVPTPred(ARMVCC::Else, PLoc)); in ParseInstruction()
7345 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local
7349 ARMVCC::VPTCodes(VPTPredicationCode), PLoc)); in ParseInstruction()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h9569 SourceLocation &PLoc, SourceLocation PrevLoc,