| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 69 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 D | Sarif.cpp | 301 json::Object PLoc = createPhysicalLocation(ThreadFlow.Range); in createThreadFlows() local 302 json::Object Loc = createLocation(std::move(PLoc), ThreadFlow.Message); in createThreadFlows()
|
| H A D | SourceManager.cpp | 1248 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedColumnNumber() local 1249 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber() 1250 return PLoc.getColumn(); in getPresumedColumnNumber() 1453 PresumedLoc PLoc = getPresumedLoc(Loc); in getPresumedLineNumber() local 1454 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber() 1455 return PLoc.getLine(); in getPresumedLineNumber()
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | FileIndexRecord.cpp | 62 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local 63 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print() 64 << PLoc.getLine() << ':' << PLoc.getColumn(); in print() 72 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in print() local 73 OS << llvm::sys::path::filename(PLoc.getFilename()) << ':' in print() 74 << PLoc.getLine() << ':' << PLoc.getColumn(); in print()
|
| /llvm-project-15.0.7/clang/include/clang/Frontend/ |
| H A D | 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,
|
| H A D | TextDiagnostic.h | 76 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,
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 124 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 D | LogDiagnosticPrinter.cpp | 144 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()
|
| H A D | TextDiagnostic.cpp | 797 if (PLoc.isInvalid()) { in emitDiagnosticLoc() 808 unsigned LineNo = PLoc.getLine(); in emitDiagnosticLoc() 829 if (unsigned ColNo = PLoc.getColumn()) { in emitDiagnosticLoc() 900 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitIncludeLocation() 902 << PLoc.getLine() << ":\n"; in emitIncludeLocation() 909 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitImportLocation() 911 << PLoc.getFilename() << ':' << PLoc.getLine() << ":\n"; in emitImportLocation() 919 if (DiagOpts->ShowLocation && PLoc.isValid()) in emitBuildingModuleLocation() 921 << PLoc.getFilename() << ':' << PLoc.getLine() << ":\n"; in emitBuildingModuleLocation() 1343 if (PLoc.isInvalid()) in emitParseableFixits() [all …]
|
| H A D | SerializedDiagnosticPrinter.cpp | 68 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 73 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 190 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 215 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 345 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord() argument 347 if (PLoc.isInvalid()) { in AddLocToRecord() 356 Record.push_back(getEmitFile(PLoc.getFilename())); in AddLocToRecord() 357 Record.push_back(PLoc.getLine()); in AddLocToRecord() 358 Record.push_back(PLoc.getColumn()+TokSize); in AddLocToRecord() 653 AddLocToRecord(Loc, PLoc, Record); in EmitDiagnosticMessage() [all …]
|
| H A D | PrintPreprocessedOutput.cpp | 192 PresumedLoc PLoc = SM.getPresumedLoc(Tok.getLocation()); in MoveToLine() local 193 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 195 Tok.isAtStartOfLine() && PLoc.isValid() && PLoc.getLine() == 1; in MoveToLine() 202 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in MoveToLine() local 203 unsigned TargetLine = PLoc.isValid() ? PLoc.getLine() : CurLine; in MoveToLine() 1024 PresumedLoc PLoc = SourceMgr.getPresumedLoc(Tok.getLocation()); in DoPrintPreprocessedInput() local 1025 if (PLoc.isInvalid()) in DoPrintPreprocessedInput() 1028 if (strcmp(PLoc.getFilename(), "<built-in>")) in DoPrintPreprocessedInput()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | JsonSupport.h | 92 PresumedLoc PLoc = SM.getPresumedLoc(Loc); 94 if (PLoc.isInvalid()) { 101 std::string filename(PLoc.getFilename()); 115 Out << "\"line\": " << PLoc.getLine() 116 << ", \"column\": " << PLoc.getColumn()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndexInclusionStack.cpp | 50 PresumedLoc PLoc = SM.getPresumedLoc(L); in getInclusions() local 52 L = PLoc.isValid()? PLoc.getIncludeLoc() : SourceLocation(); in getInclusions()
|
| H A D | CIndexDiagnostic.cpp | 110 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticMessage() argument 126 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | PPMacroExpansion.cpp | 1515 OS << (PLoc.isValid()? PLoc.getLine() : 1); in ExpandBuiltinMacro() 1528 PLoc = SourceMgr.getPresumedLoc(NextLoc); in ExpandBuiltinMacro() 1529 if (PLoc.isInvalid()) in ExpandBuiltinMacro() 1532 NextLoc = PLoc.getIncludeLoc(); in ExpandBuiltinMacro() 1538 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1548 FN += PLoc.getFilename(); in ExpandBuiltinMacro() 1550 FN += PLoc.getFilename(); in ExpandBuiltinMacro() 1583 if (PLoc.isValid()) { in ExpandBuiltinMacro() 1584 PLoc = SourceMgr.getPresumedLoc(PLoc.getIncludeLoc()); in ExpandBuiltinMacro() 1585 for (; PLoc.isValid(); ++Depth) in ExpandBuiltinMacro() [all …]
|
| H A D | Pragma.cpp | 484 PresumedLoc PLoc = SourceMgr.getPresumedLoc(SysHeaderTok.getLocation()); in HandlePragmaSystemHeader() local 485 if (PLoc.isInvalid()) in HandlePragmaSystemHeader() 488 unsigned FilenameID = SourceMgr.getLineTableFilenameID(PLoc.getFilename()); in HandlePragmaSystemHeader() 498 SourceMgr.AddLineNote(SysHeaderTok.getLocation(), PLoc.getLine() + 1, in HandlePragmaSystemHeader()
|
| /llvm-project-15.0.7/clang-tools-extra/pp-trace/ |
| H A D | PPCallbacksTracker.cpp | 31 PresumedLoc PLoc = PP.getSourceManager().getPresumedLoc(Loc); in getSourceLocationString() local 33 if (PLoc.isInvalid()) { in getSourceLocationString() 41 SS << "\"" << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in getSourceLocationString() 42 << PLoc.getColumn() << "\""; in getSourceLocationString()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | TextNodeDumper.cpp | 627 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation() local 629 if (PLoc.isInvalid()) { in dumpLocation() 634 if (strcmp(PLoc.getFilename(), LastLocFilename) != 0) { in dumpLocation() 635 OS << PLoc.getFilename() << ':' << PLoc.getLine() << ':' in dumpLocation() 636 << PLoc.getColumn(); in dumpLocation() 637 LastLocFilename = PLoc.getFilename(); in dumpLocation() 638 LastLocLine = PLoc.getLine(); in dumpLocation() 639 } else if (PLoc.getLine() != LastLocLine) { in dumpLocation() 640 OS << "line" << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in dumpLocation() 641 LastLocLine = PLoc.getLine(); in dumpLocation() [all …]
|
| H A D | TypePrinter.cpp | 1366 PresumedLoc PLoc = D->getASTContext().getSourceManager().getPresumedLoc( in printTag() local 1368 if (PLoc.isValid()) { in printTag() 1370 StringRef File = PLoc.getFilename(); in printTag() 1375 OS << ':' << PLoc.getLine() << ':' << PLoc.getColumn(); in printTag()
|
| H A D | Expr.cpp | 2185 PresumedLoc PLoc = Ctx.getSourceManager().getPresumedLoc( in EvaluateInContext() local 2198 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2213 IntVal = getIdentKind() == SourceLocExpr::Line ? PLoc.getLine() in EvaluateInContext() 2214 : PLoc.getColumn(); in EvaluateInContext() 2232 SmallString<256> Path(PLoc.getFilename()); in EvaluateInContext() 2249 IntVal = PLoc.getLine(); in EvaluateInContext() 2255 IntVal = PLoc.getColumn(); in EvaluateInContext()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidyDiagnosticConsumer.cpp | 54 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticMessage() argument 104 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() argument 136 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override {} in emitIncludeLocation() argument 138 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitImportLocation() argument 141 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitBuildingModuleLocation() argument
|
| /llvm-project-15.0.7/clang-tools-extra/modularize/ |
| H A D | PreprocessorTracker.cpp | 291 clang::PresumedLoc PLoc = PP.getSourceManager().getPresumedLoc(Loc); in getSourceLocationLineAndColumn() local 292 if (PLoc.isInvalid()) { in getSourceLocationLineAndColumn() 297 Line = PLoc.getLine(); in getSourceLocationLineAndColumn() 298 Column = PLoc.getColumn(); in getSourceLocationLineAndColumn()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenModule.cpp | 2735 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in EmitAnnotationUnit() local 2736 if (PLoc.isValid()) in EmitAnnotationUnit() 2737 return EmitAnnotationString(PLoc.getFilename()); in EmitAnnotationUnit() 2743 PresumedLoc PLoc = SM.getPresumedLoc(L); in EmitAnnotationLineNo() local 2744 unsigned LineNo = PLoc.isValid() ? PLoc.getLine() : in EmitAnnotationLineNo() 6954 PresumedLoc PLoc = SM.getPresumedLoc(D->getLocation()); in printPostfixForExternalizedDecl() local 6955 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() 6966 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in printPostfixForExternalizedDecl() 6968 assert(PLoc.isValid() && "Source location is expected to be valid."); in printPostfixForExternalizedDecl() 6969 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) in printPostfixForExternalizedDecl() [all …]
|
| H A D | CGDebugInfo.cpp | 389 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getOrCreateFile() local 390 FileName = PLoc.getFilename(); in getOrCreateFile() 395 FileName = PLoc.getFilename(); in getOrCreateFile() 397 FID = PLoc.getFileID(); in getOrCreateFile() 484 PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc); in getColumnNumber() local 485 return PLoc.isValid() ? PLoc.getColumn() : 0; in getColumnNumber() 5468 PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc); in AddStringLiteralDebugInfo() local 5469 if (!PLoc.isValid()) in AddStringLiteralDebugInfo()
|
| H A D | CGOpenMPRuntime.cpp | 1363 OS << ";" << PLoc.getFilename() << ";"; in getIdentStringFromSourceLocation() 1366 OS << ";" << PLoc.getLine() << ";" << PLoc.getColumn() << ";;"; in getIdentStringFromSourceLocation() 1383 const char *FileName = PLoc.getFilename(); in emitUpdateLocation() 1384 unsigned Line = PLoc.getLine(); in emitUpdateLocation() 1385 unsigned Column = PLoc.getColumn(); in emitUpdateLocation() 1608 PresumedLoc PLoc = SM.getPresumedLoc(Loc); in getTargetEntryUniqueInfo() local 1612 if (auto EC = llvm::sys::fs::getUniqueID(PLoc.getFilename(), ID)) { in getTargetEntryUniqueInfo() 1613 PLoc = SM.getPresumedLoc(Loc, /*UseLineDirectives=*/false); in getTargetEntryUniqueInfo() 1617 << PLoc.getFilename() << EC.message(); in getTargetEntryUniqueInfo() 1622 LineNum = PLoc.getLine(); in getTargetEntryUniqueInfo() [all …]
|