| /freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 51 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() local 53 if (PLoc.isInvalid()) { in print() 58 OS << PLoc.getFilename() << ':' << PLoc.getLine() in print() 59 << ':' << PLoc.getColumn(); in print() 92 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in PrintDifference() local 94 if (PLoc.isInvalid()) { in PrintDifference() 101 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in PrintDifference() 102 << PLoc.getColumn(); in PrintDifference() 104 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in PrintDifference() 106 OS << "col" << ':' << PLoc.getColumn(); in PrintDifference() [all …]
|
| H A D | SourceManager.cpp | 1189 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local 1190 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber() 1191 return PLoc.getColumn(); in getPresumedColumnNumber() 1356 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local 1357 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber() 1358 return PLoc.getLine(); in getPresumedLineNumber()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Frontend/ |
| H A D | DiagnosticRenderer.h | 77 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 83 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 92 virtual void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) = 0; 93 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 95 virtual void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 105 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, 151 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 153 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 156 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
| H A D | TextDiagnostic.h | 78 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 83 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 93 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 95 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 98 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 125 emitIncludeStack(Loc, PLoc, Level); in emitDiagnostic() 169 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack() 198 if (PLoc.isInvalid()) in emitIncludeStackRecursively() 213 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively() 216 emitIncludeLocation(Loc, PLoc); in emitIncludeStackRecursively() 245 emitImportLocation(Loc, PLoc, ModuleName); in emitImportStackRecursively() 599 << PLoc.getLine() << ":"; in emitIncludeLocation() 610 if (PLoc.isValid()) in emitImportLocation() 612 << PLoc.getLine(); in emitImportLocation() 623 if (PLoc.isValid()) in emitBuildingModuleLocation() [all …]
|
| H A D | LogDiagnosticPrinter.cpp | 145 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 D | TextDiagnostic.cpp | 789 if (PLoc.isInvalid()) { in emitDiagnosticLoc() 803 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() 820 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc() 890 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitIncludeLocation() 892 << PLoc.getLine() << ":\n"; in emitIncludeLocation() 899 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitImportLocation() 901 << PLoc.getFilename() << ':' << PLoc.getLine() << ":\n"; in emitImportLocation() 909 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitBuildingModuleLocation() 911 << PLoc.getFilename() << ':' << PLoc.getLine() << ":\n"; in emitBuildingModuleLocation() 1333 if (PLoc.isInvalid()) in emitParseableFixits() [all …]
|
| H A D | SerializedDiagnosticPrinter.cpp | 66 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 71 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 189 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 214 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 341 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord() argument 343 if (PLoc.isInvalid()) { in AddLocToRecord() 352 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord() 353 Record.push_back(PLoc.getLine()); in AddLocToRecord() 354 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord() 638 AddLocToRecord(Loc, PLoc, Record); in EmitDiagnosticMessage() [all …]
|
| H A D | PrintPreprocessedOutput.cpp | 156 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local 157 if (PLoc.isInvalid()) in MoveToLine() 159 return MoveToLine(PLoc.getLine()) || (PLoc.getLine() == 1); in MoveToLine() 891 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local 892 if (PLoc.isInvalid()) in DoPrintPreprocessedInput() 895 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/ |
| H A D | SanitizerMetadata.cpp | 95 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in getLocationMetadata() local 96 if (!PLoc.isValid()) in getLocationMetadata() 100 llvm::MDString::get(VMContext, PLoc.getFilename()), in getLocationMetadata() 102 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), in getLocationMetadata() 104 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())), in getLocationMetadata()
|
| H A D | CGDebugInfo.cpp | 410 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local 412 StringRef FileName = PLoc.getFilename(); in getOrCreateFile() 413 if (PLoc.isInvalid() || FileName.empty()) in getOrCreateFile() 484 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getLineNumber() local 485 return PLoc.isValid() ? PLoc.getLine() : 0; in getLineNumber() 497 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local 498 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber()
|
| H A D | CodeGenModule.cpp | 1910 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local 1911 if (PLoc.isValid()) in EmitAnnotationUnit() 1912 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit() 1918 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local 1919 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo()
|
| H A D | CGExpr.cpp | 2795 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); in EmitCheckSourceLocation() local 2796 if (PLoc.isValid()) { in EmitCheckSourceLocation() 2797 StringRef FilenameString = PLoc.getFilename(); in EmitCheckSourceLocation() 2827 Line = PLoc.getLine(); in EmitCheckSourceLocation() 2828 Column = PLoc.getColumn(); in EmitCheckSourceLocation()
|
| H A D | CGOpenMPRuntime.cpp | 1574 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in emitUpdateLocation() local 1575 OS2 << ";" << PLoc.getFilename() << ";"; in emitUpdateLocation() 1578 OS2 << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in emitUpdateLocation() 2654 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getTargetEntryUniqueInfo() local 2655 assert(PLoc.isValid() && "Source location is expected to be always valid."); in getTargetEntryUniqueInfo() 2658 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) in getTargetEntryUniqueInfo() 2660 << PLoc.getFilename() << EC.message(); in getTargetEntryUniqueInfo() 2664 LineNum = PLoc.getLine(); in getTargetEntryUniqueInfo()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/AST/ |
| H A D | TextNodeDumper.cpp | 319 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local 321 if (PLoc.isInvalid()) { in dumpLocation() 326 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation() 327 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation() 328 << PLoc.getColumn(); in dumpLocation() 329 LastLocFilename = PLoc.getFilename(); in dumpLocation() 330 LastLocLine = PLoc.getLine(); in dumpLocation() 331 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation() 332 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation() 333 LastLocLine = PLoc.getLine(); in dumpLocation() [all …]
|
| H A D | TypePrinter.cpp | 1164 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local 1166 if (PLoc.isValid()) { in printTag() 1168 StringRef File = PLoc.getFilename(); in printTag() 1173 OS << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/ |
| H A D | PPMacroExpansion.cpp | 1501 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro() 1511 SourceLocation NextLoc = PLoc.getIncludeLoc(); 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() 1524 FN += PLoc.getFilename(); in ExpandBuiltinMacro() 1555 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1556 PLoc = SourceMgr.getPresumedLoc(PLoc.getIncludeLoc()); in ExpandBuiltinMacro() 1557 for (; PLoc.isValid(); ++Depth) in ExpandBuiltinMacro() [all …]
|
| H A D | Pragma.cpp | 464 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local 465 if (PLoc.isInvalid()) in HandlePragmaSystemHeader() 468 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader() 478 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader()
|
| H A D | PPDirectives.cpp | 1183 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local 1184 if (PLoc.isInvalid()) in ReadLineMarkerFlags() 1189 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
|
| /freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteModernObjC.cpp | 1623 PresumedLoc PLoc = SM->getPresumedLoc(Loc); in ConvertSourceLocationToLineDirective() local 1624 LineString += utostr(PLoc.getLine()); in ConvertSourceLocationToLineDirective() 1626 LineString += Lexer::Stringify(PLoc.getFilename()); in ConvertSourceLocationToLineDirective() 3056 PresumedLoc PLoc = SM->getPresumedLoc(Location); in RewriteLineDirective() local 3057 LineString += utostr(PLoc.getLine()); in RewriteLineDirective() 3059 LineString += Lexer::Stringify(PLoc.getFilename()); in RewriteLineDirective()
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/ |
| H A D | Sema.h | 8003 SourceLocation &PLoc, SourceLocation PrevLoc,
|