| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | SourceLocation.cpp | 159 FileID FullSourceLoc::getFileID() const { in getFileID() 164 FullSourceLoc FullSourceLoc::getExpansionLoc() const { in getExpansionLoc() 169 FullSourceLoc FullSourceLoc::getSpellingLoc() const { in getSpellingLoc() 174 FullSourceLoc FullSourceLoc::getFileLoc() const { in getFileLoc() 186 bool FullSourceLoc::isMacroArgExpansion(FullSourceLoc *StartLoc) const { in isMacroArgExpansion() 191 FullSourceLoc FullSourceLoc::getImmediateMacroCallerLoc() const { in getImmediateMacroCallerLoc() 196 std::pair<FullSourceLoc, StringRef> FullSourceLoc::getModuleImportLoc() const { in getModuleImportLoc() 206 unsigned FullSourceLoc::getFileOffset() const { in getFileOffset() 221 const FileEntry *FullSourceLoc::getFileEntry() const { in getFileEntry() 246 bool FullSourceLoc::isInSystemHeader() const { in isInSystemHeader() [all …]
|
| H A D | Sarif.cpp | 117 static unsigned int adjustColumnPos(FullSourceLoc Loc, in adjustColumnPos() 152 FullSourceLoc FirstTokenLoc{R.getBegin(), SM}; in createTextRegion() 153 FullSourceLoc LastTokenLoc{R.getEnd(), SM}; in createTextRegion() 197 FullSourceLoc Start{R.getBegin(), SourceMgr}; in createPhysicalLocation()
|
| /llvm-project-15.0.7/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 | 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;
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | DiagnosticRenderer.cpp | 87 void DiagnosticRenderer::emitDiagnostic(FullSourceLoc Loc, in emitDiagnostic() 115 FullSourceLoc UnexpandedLoc = Loc; in emitDiagnostic() 167 FullSourceLoc IncludeLoc = in emitIncludeStack() 168 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack() 212 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively() 219 void DiagnosticRenderer::emitImportStack(FullSourceLoc Loc) { in emitImportStack() 424 void DiagnosticRenderer::emitCaret(FullSourceLoc Loc, in emitCaret() 436 FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitSingleMacroExpansion() 440 FullSourceLoc SpellingLoc = Loc.getSpellingLoc(); in emitSingleMacroExpansion() 490 static bool checkRangesForMacroArgExpansion(FullSourceLoc Loc, in checkRangesForMacroArgExpansion() [all …]
|
| H A D | SerializedDiagnosticPrinter.cpp | 68 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 73 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() 77 void emitNote(FullSourceLoc Loc, StringRef Message) override; 79 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, 190 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, 215 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, 219 void AddLocToRecord(FullSourceLoc Loc, RecordDataImpl &Record, in AddLocToRecord() 365 AddLocToRecord(FullSourceLoc(Range.getBegin(), SM), Record); in AddCharSourceRangeToRecord() 371 AddLocToRecord(FullSourceLoc(Range.getEnd(), SM), Record, TokSize); in AddCharSourceRangeToRecord() 609 EmitDiagnosticMessage(FullSourceLoc(), PresumedLoc(), DiagLevel, in HandleDiagnostic() [all …]
|
| H A D | TextDiagnostic.cpp | 674 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage() 794 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() 885 FullSourceLoc BF(B, SM), EF(E, SM); in emitDiagnosticLoc() 899 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation() 907 void TextDiagnostic::emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitImportLocation() 916 void TextDiagnostic::emitBuildingModuleLocation(FullSourceLoc Loc, in emitBuildingModuleLocation() 1131 FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitSnippetAndCaret()
|
| H A D | TextDiagnosticPrinter.cpp | 152 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), Level, in HandleDiagnostic()
|
| /llvm-project-15.0.7/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; 431 bool isBeforeInTranslationUnitThan(FullSourceLoc Loc) const { 439 bool operator()(const FullSourceLoc& lhs, const FullSourceLoc& rhs) const { 450 operator==(const FullSourceLoc &LHS, const FullSourceLoc &RHS) { [all …]
|
| H A D | PlistSupport.h | 111 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
|
| /llvm-project-15.0.7/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,
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | PathDiagnostic.cpp | 252 FullSourceLoc X_CEL = X.callEnter.asLocation(); in compareCall() 253 FullSourceLoc Y_CEL = Y.callEnter.asLocation(); in compareCall() 260 FullSourceLoc X_CRL = X.callReturn.asLocation(); in compareCall() 261 FullSourceLoc Y_CRL = Y.callReturn.asLocation(); in compareCall() 272 FullSourceLoc XL = X.getLocation().asLocation(); in comparePiece() 273 FullSourceLoc YL = Y.getLocation().asLocation(); in comparePiece() 329 static bool compareCrossTUSourceLocs(FullSourceLoc XL, FullSourceLoc YL) { in compareCrossTUSourceLocs() 352 FullSourceLoc XL = X.getLocation().asLocation(); in compare() 353 FullSourceLoc YL = Y.getLocation().asLocation(); in compare() 738 FullSourceLoc L = PDL.asLocation(); in createSingleLocation() [all …]
|
| H A D | IssueHash.cpp | 136 static std::string NormalizeLine(const SourceManager &SM, const FullSourceLoc &L, in NormalizeLine() 184 std::string clang::getIssueString(const FullSourceLoc &IssueLoc, in getIssueString() 199 SmallString<32> clang::getIssueHash(const FullSourceLoc &IssueLoc, in getIssueHash()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | TestVisitor.h | 164 const FullSourceLoc FullLocation = this->Context->getFullLoc(Location); in Match() 191 bool Matches(StringRef Name, FullSourceLoc const &Location) const { in Matches() 195 bool PartiallyMatches(StringRef Name, FullSourceLoc const &Location) const { in PartiallyMatches() 203 bool MatchesLocation(FullSourceLoc const &Location) const { in MatchesLocation() 222 void UpdateFor(StringRef Name, FullSourceLoc Location, SourceManager &SM) { in UpdateFor()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenAction.cpp | 420 const FullSourceLoc 493 return FullSourceLoc(NewLoc, CSM); in ConvertBackendLocation() 557 FullSourceLoc Loc; in SrcMgrDiagHandler() 608 FullSourceLoc Loc; in InlineAsmDiagHandler() 659 FullSourceLoc Loc(DILoc, SourceMgr); in getBestLocationFromDebugLoc() 676 Optional<FullSourceLoc> 683 return Optional<FullSourceLoc>(); in getFunctionSourceLocation() 695 FullSourceLoc Loc; in UnsupportedDiagHandler() 732 FullSourceLoc Loc; in EmitOptimizationMessage() 843 FullSourceLoc Loc = in MisExpectDiagHandler() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-query/ |
| H A D | Query.cpp | 123 TD.emitDiagnostic(FullSourceLoc(Iter->first, SM), DiagnosticsEngine::Note, in dumpLocations() 140 TD.emitDiagnostic(FullSourceLoc(Iter->first.getBegin(), SM), in dumpLocations() 158 FullSourceLoc(Iter->first.getBegin(), SM), DiagnosticsEngine::Note, in dumpLocations() 165 TD.emitDiagnostic(FullSourceLoc(Iter->first.getEnd(), SM), in dumpLocations() 233 FullSourceLoc(R.getBegin(), AST->getSourceManager()), in run()
|
| /llvm-project-15.0.7/clang/unittests/Frontend/ |
| H A D | TextDiagnosticTest.cpp | 23 static std::string PrintDiag(const DiagnosticOptions &Opts, FullSourceLoc Loc) { in PrintDiag() 66 FullSourceLoc Loc(SrcMgr.translateLineCol(fid, /*Line=*/1, /*Col=*/2), in TEST()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | LiteralSupport.cpp | 61 FullSourceLoc TokLoc, in MakeCharSourceRange() 80 const LangOptions &Features, FullSourceLoc TokLoc, in Diag() 95 FullSourceLoc Loc, unsigned CharWidth, in ProcessCharEscape() 587 unsigned short &UcnLen, FullSourceLoc Loc, in ProcessUCNEscape() 663 FullSourceLoc Loc; in MeasureUCNEscape() 692 FullSourceLoc Loc, unsigned CharByteWidth, in EncodeUCNEscape() 1714 FullSourceLoc(Loc, PP.getSourceManager()), in CharLiteralParser() 1728 FullSourceLoc(Loc,PP.getSourceManager()), in CharLiteralParser() 2075 FullSourceLoc(StringToks[i].getLocation(), SM), in init() 2176 FullSourceLoc SourceLoc(Tok.getLocation(), SM); in CopyStringFragment() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | ClangTidyDiagnosticConsumer.cpp | 54 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticMessage() 104 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() 108 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitCodeContext() 136 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override {} in emitIncludeLocation() 138 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitImportLocation() 141 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitBuildingModuleLocation() 420 FullSourceLoc Loc; in HandleDiagnostic() 422 Loc = FullSourceLoc(Info.getLocation(), Info.getSourceManager()); in HandleDiagnostic()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | PlistDiagnostics.cpp | 313 FullSourceLoc L = P.getLocation().asLocation(); in ReportEvent() 399 FullSourceLoc L = P->getLocation().asLocation(); in ReportMacroExpansions() 432 FullSourceLoc L = P.getLocation().asLocation(); in ReportNote() 463 FullSourceLoc L = P.getLocation().asLocation(); in ReportPopUp() 702 FullSourceLoc L(SM.getExpansionLoc(UPDLoc.isValid() in FlushDiagnosticsImpl() 751 FullSourceLoc UFunL( in FlushDiagnosticsImpl() 761 FullSourceLoc FunL(SM.getExpansionLoc(Body->getBeginLoc()), SM); in FlushDiagnosticsImpl()
|
| H A D | HTMLDiagnostics.cpp | 252 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in getIssueHash() 296 FullSourceLoc L( in ReportDiag() 299 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag() 650 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in FinalizeHTML() 882 FullSourceLoc Pos = P.getLocation().asLocation(); in HandlePiece() 1025 FullSourceLoc L = MP->getLocation().asLocation().getExpansionLoc(); in HandlePiece()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndexDiagnostic.cpp | 110 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticMessage() 126 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc() 130 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitCodeContext() 134 void emitNote(FullSourceLoc Loc, StringRef Message) override { in emitNote()
|
| /llvm-project-15.0.7/clang-tools-extra/include-cleaner/unittests/ |
| H A D | WalkASTTest.cpp | 65 FullSourceLoc(SM.getComposedLoc(TargetFile, Offset), SM), in testWalk()
|