| /freebsd-14.2/contrib/llvm-project/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 159 FileID FullSourceLoc::getFileID() const { in getFileID() 164 FullSourceLoc FullSourceLoc::getExpansionLoc() const { in getExpansionLoc() 173 FullSourceLoc FullSourceLoc::getSpellingLoc() const { in getSpellingLoc() 178 FullSourceLoc FullSourceLoc::getFileLoc() const { in getFileLoc() 190 bool FullSourceLoc::isMacroArgExpansion(FullSourceLoc *StartLoc) const { in isMacroArgExpansion() 195 FullSourceLoc FullSourceLoc::getImmediateMacroCallerLoc() const { in getImmediateMacroCallerLoc() 200 std::pair<FullSourceLoc, StringRef> FullSourceLoc::getModuleImportLoc() const { in getModuleImportLoc() 210 unsigned FullSourceLoc::getFileOffset() const { in getFileOffset() 225 const FileEntry *FullSourceLoc::getFileEntry() const { in getFileEntry() 255 bool FullSourceLoc::isInSystemHeader() const { in isInSystemHeader() [all …]
|
| H A D | Sarif.cpp | 118 static unsigned int adjustColumnPos(FullSourceLoc Loc, in adjustColumnPos() 153 FullSourceLoc BeginCharLoc{R.getBegin(), SM}; in createTextRegion() 154 FullSourceLoc EndCharLoc{R.getEnd(), SM}; in createTextRegion() 216 FullSourceLoc Start{R.getBegin(), SourceMgr}; in createPhysicalLocation()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Frontend/ |
| H A D | DiagnosticRenderer.h | 82 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 86 virtual void emitCodeContext(FullSourceLoc Loc, 92 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 104 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, 106 void emitIncludeStackRecursively(FullSourceLoc Loc); 107 void emitImportStack(FullSourceLoc Loc); 110 void emitCaret(FullSourceLoc Loc, DiagnosticsEngine::Level Level, 112 void emitSingleMacroExpansion(FullSourceLoc Loc, 152 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 155 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, [all …]
|
| H A D | SARIFDiagnostic.h | 36 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 41 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 45 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitCodeContext() 49 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 51 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 54 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 61 SarifResult addLocationToResult(SarifResult Result, FullSourceLoc Loc,
|
| H A D | TextDiagnostic.h | 76 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 81 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, 85 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitCodeContext() 91 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override; 93 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, 96 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, 102 void emitSnippetAndCaret(FullSourceLoc Loc, DiagnosticsEngine::Level Level,
|
| H A D | LogDiagnosticPrinter.h | 57 FullSourceLoc LastLoc;
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 86 void DiagnosticRenderer::emitDiagnostic(FullSourceLoc Loc, in emitDiagnostic() 114 FullSourceLoc UnexpandedLoc = Loc; in emitDiagnostic() 166 FullSourceLoc IncludeLoc = in emitIncludeStack() 167 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack() 211 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively() 218 void DiagnosticRenderer::emitImportStack(FullSourceLoc Loc) { in emitImportStack() 423 void DiagnosticRenderer::emitCaret(FullSourceLoc Loc, in emitCaret() 435 FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitSingleMacroExpansion() 439 FullSourceLoc SpellingLoc = Loc.getSpellingLoc(); in emitSingleMacroExpansion() 489 static bool checkRangesForMacroArgExpansion(FullSourceLoc Loc, in checkRangesForMacroArgExpansion() [all …]
|
| H A D | SARIFDiagnostic.cpp | 40 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() 65 SarifResult Result, FullSourceLoc Loc, PresumedLoc PLoc, in addLocationToResult() 108 FullSourceLoc BF(B, SM), EF(E, SM); in addLocationToResult() 204 void SARIFDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() 210 void SARIFDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() 214 void SARIFDiagnostic::emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitImportLocation() 219 void SARIFDiagnostic::emitBuildingModuleLocation(FullSourceLoc Loc, in emitBuildingModuleLocation()
|
| H A D | SerializedDiagnosticPrinter.cpp | 66 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 71 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() 75 void emitNote(FullSourceLoc Loc, StringRef Message) override; 77 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, 188 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 213 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 217 void AddLocToRecord(FullSourceLoc Loc, RecordDataImpl &Record, in AddLocToRecord() 363 AddLocToRecord(FullSourceLoc(Range.getBegin(), SM), Record); in AddCharSourceRangeToRecord() 369 AddLocToRecord(FullSourceLoc(Range.getEnd(), SM), Record, TokSize); in AddCharSourceRangeToRecord() 607 EmitDiagnosticMessage(FullSourceLoc(), PresumedLoc(), DiagLevel, in HandleDiagnostic() [all …]
|
| H A D | SARIFDiagnosticPrinter.cpp | 80 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), Level, in HandleDiagnostic()
|
| H A D | TextDiagnostic.cpp | 655 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() 775 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() 860 FullSourceLoc BF(B, SM), EF(E, SM); in emitDiagnosticLoc() 874 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() 883 void TextDiagnostic::emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitImportLocation() 892 void TextDiagnostic::emitBuildingModuleLocation(FullSourceLoc Loc, in emitBuildingModuleLocation() 1123 FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitSnippetAndCaret()
|
| H A D | TextDiagnosticPrinter.cpp | 152 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), Level, in HandleDiagnostic()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | SourceLocation.h | 368 class FullSourceLoc : public SourceLocation { 373 FullSourceLoc() = default; 389 FullSourceLoc getExpansionLoc() const; 390 FullSourceLoc getSpellingLoc() const; 391 FullSourceLoc getFileLoc() const; 394 FullSourceLoc getImmediateMacroCallerLoc() const; 395 std::pair<FullSourceLoc, StringRef> getModuleImportLoc() const; 438 bool isBeforeInTranslationUnitThan(FullSourceLoc Loc) const { 446 bool operator()(const FullSourceLoc& lhs, const FullSourceLoc& rhs) const { 457 operator==(const FullSourceLoc &LHS, const FullSourceLoc &RHS) { [all …]
|
| H A D | PlistSupport.h | 110 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/ |
| H A D | IssueHash.h | 15 class FullSourceLoc; variable 34 llvm::SmallString<32> getIssueHash(const FullSourceLoc &IssueLoc, 43 std::string getIssueString(const FullSourceLoc &IssueLoc,
|
| H A D | PathDiagnostic.h | 202 FullSourceLoc Loc; 208 FullSourceLoc genLocation( 339 FullSourceLoc asLocation() const { in asLocation()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | PathDiagnostic.cpp | 247 FullSourceLoc X_CEL = X.callEnter.asLocation(); in compareCall() 248 FullSourceLoc Y_CEL = Y.callEnter.asLocation(); in compareCall() 255 FullSourceLoc X_CRL = X.callReturn.asLocation(); in compareCall() 256 FullSourceLoc Y_CRL = Y.callReturn.asLocation(); in compareCall() 267 FullSourceLoc XL = X.getLocation().asLocation(); in comparePiece() 268 FullSourceLoc YL = Y.getLocation().asLocation(); in comparePiece() 323 static bool compareCrossTUSourceLocs(FullSourceLoc XL, FullSourceLoc YL) { in compareCrossTUSourceLocs() 348 FullSourceLoc XL = X.getLocation().asLocation(); in compare() 349 FullSourceLoc YL = Y.getLocation().asLocation(); in compare() 737 FullSourceLoc L = PDL.asLocation(); in createSingleLocation() [all …]
|
| H A D | IssueHash.cpp | 137 static std::string NormalizeLine(const SourceManager &SM, const FullSourceLoc &L, in NormalizeLine() 185 std::string clang::getIssueString(const FullSourceLoc &IssueLoc, in getIssueString() 200 SmallString<32> clang::getIssueHash(const FullSourceLoc &IssueLoc, in getIssueHash()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | BackendConsumer.h | 63 std::vector<std::pair<llvm::hash_code, FullSourceLoc>> 120 const FullSourceLoc getBestLocationFromDebugLoc( 125 std::optional<FullSourceLoc> getFunctionSourceLocation(
|
| H A D | CodeGenAction.cpp | 427 static FullSourceLoc ConvertBackendLocation(const llvm::SMDiagnostic &D, in ConvertBackendLocation() 451 return FullSourceLoc(NewLoc, CSM); in ConvertBackendLocation() 515 FullSourceLoc Loc; in SrcMgrDiagHandler() 566 FullSourceLoc Loc; in InlineAsmDiagHandler() 604 const FullSourceLoc BackendConsumer::getBestLocationFromDebugLoc( in getBestLocationFromDebugLoc() 629 FullSourceLoc Loc(DILoc, SourceMgr); in getBestLocationFromDebugLoc() 646 std::optional<FullSourceLoc> 665 FullSourceLoc Loc; in UnsupportedDiagHandler() 702 FullSourceLoc Loc; in EmitOptimizationMessage() 813 FullSourceLoc Loc = in MisExpectDiagHandler() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/ARCMigrate/ |
| H A D | TransformActions.cpp | 65 FullSourceLoc Begin, End; 71 Begin = FullSourceLoc(srcMgr.getExpansionLoc(beginLoc), srcMgr); in CharRange() 72 End = FullSourceLoc(getLocForEndOfToken(endLoc, srcMgr, PP), srcMgr); in CharRange() 74 Begin = FullSourceLoc(srcMgr.getExpansionLoc(beginLoc), srcMgr); in CharRange() 75 End = FullSourceLoc(srcMgr.getExpansionLoc(endLoc), srcMgr); in CharRange() 106 typedef std::map<FullSourceLoc, TextsVec, FullSourceLoc::BeforeThanCompare> 516 Inserts[FullSourceLoc(loc, SM)].push_back(text); in addInsertion()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Lex/ |
| H A D | LiteralSupport.cpp | 81 FullSourceLoc TokLoc, in MakeCharSourceRange() 100 const LangOptions &Features, FullSourceLoc TokLoc, in Diag() 133 FullSourceLoc Loc, unsigned CharWidth, in ProcessCharEscape() 542 DiagnosticsEngine *Diags, const LangOptions &Features, FullSourceLoc Loc, in DiagnoseInvalidUnicodeCharacterName() 599 unsigned short &UcnLen, FullSourceLoc Loc, in ProcessNamedUCNEscape() 647 unsigned short &UcnLen, FullSourceLoc Loc, in ProcessUCNEscape() 729 FullSourceLoc Loc; in MeasureUCNEscape() 758 FullSourceLoc Loc, unsigned CharByteWidth, in EncodeUCNEscape() 1788 FullSourceLoc(Loc, PP.getSourceManager()), in CharLiteralParser() 2173 FullSourceLoc(StringToks[i].getLocation(), SM), in init() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | PlistDiagnostics.cpp | 314 FullSourceLoc L = P.getLocation().asLocation(); in ReportEvent() 398 FullSourceLoc L = P->getLocation().asLocation(); in ReportMacroExpansions() 431 FullSourceLoc L = P.getLocation().asLocation(); in ReportNote() 462 FullSourceLoc L = P.getLocation().asLocation(); in ReportPopUp() 701 FullSourceLoc L(SM.getExpansionLoc(UPDLoc.isValid() in FlushDiagnosticsImpl() 750 FullSourceLoc UFunL( in FlushDiagnosticsImpl() 760 FullSourceLoc FunL(SM.getExpansionLoc(Body->getBeginLoc()), SM); in FlushDiagnosticsImpl()
|
| H A D | HTMLDiagnostics.cpp | 253 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in getIssueHash() 297 FullSourceLoc L( in ReportDiag() 300 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag() 663 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in FinalizeHTML() 895 FullSourceLoc Pos = P.getLocation().asLocation(); in HandlePiece() 1038 FullSourceLoc L = MP->getLocation().asLocation().getExpansionLoc(); in HandlePiece()
|
| H A D | TextDiagnostics.cpp | 70 auto reportPiece = [&](unsigned ID, FullSourceLoc Loc, StringRef String, in FlushDiagnosticsImpl()
|