| /freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/ |
| HD | SourceLocation.cpp | 50 PresumedLoc PLoc = SM.getPresumedLoc(*this); in print() local 52 if (PLoc.isInvalid()) { in print() 57 OS << PLoc.getFilename() << ':' << PLoc.getLine() in print() 58 << ':' << PLoc.getColumn(); in print() 91 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in PrintDifference() local 93 if (PLoc.isInvalid()) { in PrintDifference() 99 strcmp(PLoc.getFilename(), Previous.getFilename()) != 0) { in PrintDifference() 100 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in PrintDifference() 101 << PLoc.getColumn(); in PrintDifference() 102 } else if (Previous.isInvalid() || PLoc.getLine() != Previous.getLine()) { in PrintDifference() [all …]
|
| HD | SourceManager.cpp | 1222 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local 1223 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber() 1224 return PLoc.getColumn(); in getPresumedColumnNumber() 1385 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local 1386 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber() 1387 return PLoc.getLine(); in getPresumedLineNumber()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/ |
| HD | DiagnosticRenderer.cpp | 120 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 …]
|
| HD | TextDiagnostic.cpp | 674 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() argument 681 emitDiagnosticLoc(Loc, PLoc, Level, Ranges); in emitDiagnosticMessage() 805 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 808 if (PLoc.isInvalid()) { in emitDiagnosticLoc() 820 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() 828 emitFilename(PLoc.getFilename(), Loc.getManager()); in emitDiagnosticLoc() 837 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc() 906 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() argument 907 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitIncludeLocation() 908 OS << "In file included from " << PLoc.getFilename() << ':' in emitIncludeLocation() [all …]
|
| HD | LogDiagnosticPrinter.cpp | 144 PresumedLoc PLoc = SM.getPresumedLoc(Info.getLocation()); in HandleDiagnostic() local 146 if (PLoc.isInvalid()) { in HandleDiagnostic() 155 DE.Filename = PLoc.getFilename(); in HandleDiagnostic() 156 DE.Line = PLoc.getLine(); in HandleDiagnostic() 157 DE.Column = PLoc.getColumn(); in HandleDiagnostic()
|
| HD | SerializedDiagnosticPrinter.cpp | 67 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 72 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 190 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 215 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 342 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord() argument 344 if (PLoc.isInvalid()) { in AddLocToRecord() 353 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord() 354 Record.push_back(PLoc.getLine()); in AddLocToRecord() 355 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord() 627 void SDiagsWriter::EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in EmitDiagnosticMessage() argument [all …]
|
| HD | PrintPreprocessedOutput.cpp | 157 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-11-stable/contrib/llvm-project/clang/include/clang/Frontend/ |
| HD | 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,
|
| HD | TextDiagnostic.h | 77 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 82 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 92 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 94 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 97 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
|
| /freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/ |
| HD | JsonSupport.h | 91 PresumedLoc PLoc = SM.getPresumedLoc(Loc); 93 if (PLoc.isInvalid()) { 100 Out << "\"line\": " << PLoc.getLine() 101 << ", \"column\": " << PLoc.getColumn() 102 << ", \"file\": \"" << PLoc.getFilename() << "\"";
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Index/ |
| HD | FileIndexRecord.cpp | 49 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local 50 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' << PLoc.getLine() in print() 51 << ':' << PLoc.getColumn(); in print()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/ |
| HD | SanitizerMetadata.cpp | 92 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in getLocationMetadata() local 93 if (!PLoc.isValid()) in getLocationMetadata() 97 llvm::MDString::get(VMContext, PLoc.getFilename()), in getLocationMetadata() 99 llvm::Type::getInt32Ty(VMContext), PLoc.getLine())), in getLocationMetadata() 101 llvm::Type::getInt32Ty(VMContext), PLoc.getColumn())), in getLocationMetadata()
|
| HD | CGDebugInfo.cpp | 405 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local 407 StringRef FileName = PLoc.getFilename(); in getOrCreateFile() 408 if (PLoc.isInvalid() || FileName.empty()) in getOrCreateFile() 426 computeChecksum(PLoc.getFileID(), Checksum); in getOrCreateFile() 483 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getLineNumber() local 484 return PLoc.isValid() ? PLoc.getLine() : 0; in getLineNumber() 496 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local 497 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber()
|
| HD | CGOpenMPRuntime.cpp | 1723 PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc); in emitUpdateLocation() local 1724 OS2 << ";" << PLoc.getFilename() << ";"; in emitUpdateLocation() 1727 OS2 << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in emitUpdateLocation() 2690 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getTargetEntryUniqueInfo() local 2691 assert(PLoc.isValid() && "Source location is expected to be always valid."); in getTargetEntryUniqueInfo() 2694 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) in getTargetEntryUniqueInfo() 2696 << PLoc.getFilename() << EC.message(); in getTargetEntryUniqueInfo() 2700 LineNum = PLoc.getLine(); in getTargetEntryUniqueInfo() 11366 PresumedLoc PLoc = local 11368 assert(PLoc.isValid() && "Source location is expected to be always valid."); [all …]
|
| HD | CodeGenModule.cpp | 2221 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local 2222 if (PLoc.isValid()) in EmitAnnotationUnit() 2223 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit() 2229 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local 2230 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo()
|
| HD | CGExpr.cpp | 2893 PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc); in EmitCheckSourceLocation() local 2894 if (PLoc.isValid()) { in EmitCheckSourceLocation() 2895 StringRef FilenameString = PLoc.getFilename(); in EmitCheckSourceLocation() 2925 Line = PLoc.getLine(); in EmitCheckSourceLocation() 2926 Column = PLoc.getColumn(); in EmitCheckSourceLocation()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Lex/ |
| HD | PPMacroExpansion.cpp | 1506 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 …]
|
| HD | Pragma.cpp | 470 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local 471 if (PLoc.isInvalid()) in HandlePragmaSystemHeader() 474 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader() 484 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader()
|
| HD | PPDirectives.cpp | 1251 PresumedLoc PLoc = SM.getPresumedLoc(FlagTok.getLocation()); in ReadLineMarkerFlags() local 1252 if (PLoc.isInvalid()) in ReadLineMarkerFlags() 1257 SourceLocation IncLoc = PLoc.getIncludeLoc(); in ReadLineMarkerFlags()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/AST/ |
| HD | TextNodeDumper.cpp | 350 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local 352 if (PLoc.isInvalid()) { in dumpLocation() 357 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation() 358 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation() 359 << PLoc.getColumn(); in dumpLocation() 360 LastLocFilename = PLoc.getFilename(); in dumpLocation() 361 LastLocLine = PLoc.getLine(); in dumpLocation() 362 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation() 363 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation() 364 LastLocLine = PLoc.getLine(); in dumpLocation() [all …]
|
| HD | TypePrinter.cpp | 1194 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local 1196 if (PLoc.isValid()) { in printTag() 1198 StringRef File = PLoc.getFilename(); in printTag() 1203 OS << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
|
| HD | Expr.cpp | 2204 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( in EvaluateInContext() local 2217 return MakeStringLiteral(PLoc.getFilename()); in EvaluateInContext() 2228 IntVal = getIdentKind() == SourceLocExpr::Line ? PLoc.getLine() in EvaluateInContext() 2229 : PLoc.getColumn(); in EvaluateInContext()
|
| /freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| HD | RewriteModernObjC.cpp | 1625 PresumedLoc PLoc = SM->getPresumedLoc(Loc); in ConvertSourceLocationToLineDirective() local 1626 LineString += utostr(PLoc.getLine()); in ConvertSourceLocationToLineDirective() 1628 LineString += Lexer::Stringify(PLoc.getFilename()); in ConvertSourceLocationToLineDirective() 3057 PresumedLoc PLoc = SM->getPresumedLoc(Location); in RewriteLineDirective() local 3058 LineString += utostr(PLoc.getLine()); in RewriteLineDirective() 3060 LineString += Lexer::Stringify(PLoc.getFilename()); in RewriteLineDirective()
|
| /freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/ARM/AsmParser/ |
| HD | ARMAsmParser.cpp | 7000 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local 7003 ARMOperand::CreateVPTPred(ARMVCC::None, PLoc)); in ParseInstruction() 7015 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local 7018 ARMOperand::CreateVPTPred(ARMVCC::Else, PLoc)); in ParseInstruction() 7063 SMLoc PLoc = SMLoc::getFromPointer(NameLoc.getPointer() + in ParseInstruction() local 7067 ARMVCC::VPTCodes(VPTPredicationCode), PLoc)); in ParseInstruction()
|
| /freebsd-11-stable/contrib/llvm-project/clang/include/clang/Sema/ |
| HD | Sema.h | 8949 SourceLocation &PLoc, SourceLocation PrevLoc,
|