Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/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()
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 DSourceManager.cpp1251 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local
1252 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber()
1253 return PLoc.getColumn(); in getPresumedColumnNumber()
1456 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local
1457 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber()
1458 return PLoc.getLine(); in getPresumedLineNumber()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp120 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitDiagnostic() local
124 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic()
127 emitDiagnosticMessage(Loc, PLoc, Level, Message, Ranges, D); in emitDiagnostic()
165 void DiagnosticRenderer::emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, in emitIncludeStack() argument
168 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack()
169 : FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager()); in emitIncludeStack()
196 PresumedLoc PLoc = Loc.getPresumedLoc(DiagOpts->ShowPresumedLoc); in emitIncludeStackRecursively() local
197 if (PLoc.isInvalid()) in emitIncludeStackRecursively()
212 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively()
215 emitIncludeLocation(Loc, PLoc); in emitIncludeStackRecursively()
[all …]
H A DTextDiagnostic.cpp674 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()
809 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc()
817 emitFilename(PLoc.getFilename(), Loc.getManager()); in emitDiagnosticLoc()
829 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc()
898 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() argument
899 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitIncludeLocation()
900 OS << "In file included from " << PLoc.getFilename() << ':' in emitIncludeLocation()
[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 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()
642 void SDiagsWriter::EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in EmitDiagnosticMessage() argument
[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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Index/
H A DFileIndexRecord.cpp68 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()
78 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local
79 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print()
80 << PLoc.getLine() << ':' << PLoc.getColumn(); in print()
/netbsd-src/external/apache2/llvm/dist/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,
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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.cpp1424 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in getIdentStringFromSourceLocation() local
1425 OS << ";" << PLoc.getFilename() << ";"; in getIdentStringFromSourceLocation()
1428 OS << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in getIdentStringFromSourceLocation()
1443 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in emitUpdateLocation() local
1444 const char *FileName = PLoc.getFilename(); in emitUpdateLocation()
1445 unsigned Line = PLoc.getLine(); in emitUpdateLocation()
1446 unsigned Column = PLoc.getColumn(); in emitUpdateLocation()
1659 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getTargetEntryUniqueInfo() local
1660 assert(PLoc.isValid() && "Source location is expected to be always valid."); in getTargetEntryUniqueInfo()
1663 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in getTargetEntryUniqueInfo()
[all …]
H A DCGDebugInfo.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()
H A DCodeGenModule.cpp2487 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local
2488 if (PLoc.isValid()) in EmitAnnotationUnit()
2489 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit()
2495 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local
2496 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()
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCIndexInclusionStack.cpp50 PresumedLoc PLoc = SM.getPresumedLoc(L); in getInclusions() local
52 L = PLoc.isValid()? PLoc.getIncludeLoc() : SourceLocation(); in getInclusions()
H A DCIndexDiagnostic.cpp110 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticMessage() argument
126 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument
/netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/
H A DPPMacroExpansion.cpp1506 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Loc); in ExpandBuiltinMacro() local
1509 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro()
1515 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in ExpandBuiltinMacro() local
1519 if (II == Ident__BASE_FILE__ && PLoc.isValid()) { in ExpandBuiltinMacro()
1520 SourceLocation NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro()
1522 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro()
1523 if (PLoc.isInvalid()) in ExpandBuiltinMacro()
1526 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro()
1532 if (PLoc.isValid()) { in ExpandBuiltinMacro()
1538 StringRef PLFileName = llvm::sys::path::filename(PLoc.getFilename()); in ExpandBuiltinMacro()
[all …]
H A DPragma.cpp475 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local
476 if (PLoc.isInvalid()) in HandlePragmaSystemHeader()
479 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader()
489 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader()
H A DPPDirectives.cpp1278 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local
1279 if (PLoc.isInvalid()) in ReadLineMarkerFlags()
1284 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DTextNodeDumper.cpp584 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local
586 if (PLoc.isInvalid()) { in dumpLocation()
591 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation()
592 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation()
593 << PLoc.getColumn(); in dumpLocation()
594 LastLocFilename = PLoc.getFilename(); in dumpLocation()
595 LastLocLine = PLoc.getLine(); in dumpLocation()
596 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation()
597 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation()
598 LastLocLine = PLoc.getLine(); in dumpLocation()
[all …]
H A DTypePrinter.cpp1321 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local
1323 if (PLoc.isValid()) { in printTag()
1325 StringRef File = PLoc.getFilename(); in printTag()
1330 OS << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
H A DExpr.cpp2155 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( in EvaluateInContext() local
2168 return MakeStringLiteral(PLoc.getFilename()); in EvaluateInContext()
2179 IntVal = getIdentKind() == SourceLocExpr::Line ? PLoc.getLine() in EvaluateInContext()
2180 : PLoc.getColumn(); in EvaluateInContext()
/netbsd-src/external/apache2/llvm/dist/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()

12