Home
last modified time | relevance | path

Searched refs:FullSourceLoc (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceLocation.cpp157 FileID FullSourceLoc::getFileID() const { in getFileID()
162 FullSourceLoc FullSourceLoc::getExpansionLoc() const { in getExpansionLoc()
164 return FullSourceLoc(SrcMgr->getExpansionLoc(*this), *SrcMgr); in getExpansionLoc()
167 FileIDAndOffset FullSourceLoc::getDecomposedExpansionLoc() const { in getDecomposedExpansionLoc()
171 FullSourceLoc FullSourceLoc::getSpellingLoc() const { in getSpellingLoc()
173 return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr); in getSpellingLoc()
176 FullSourceLoc FullSourceLoc::getFileLoc() const { in getFileLoc()
178 return FullSourceLoc(SrcMgr->getFileLoc(*this), *SrcMgr); in getFileLoc()
181 PresumedLoc FullSourceLoc::getPresumedLoc(bool UseLineDirectives) const { in getPresumedLoc()
188 bool FullSourceLoc::isMacroArgExpansion(FullSourceLoc *StartLoc) const { in isMacroArgExpansion()
[all …]
H A DSarif.cpp116 static unsigned int adjustColumnPos(FullSourceLoc Loc, in adjustColumnPos()
151 FullSourceLoc BeginCharLoc{R.getBegin(), SM}; in createTextRegion()
152 FullSourceLoc EndCharLoc{R.getEnd(), SM}; in createTextRegion()
214 FullSourceLoc Start{R.getBegin(), SourceMgr}; in createPhysicalLocation()
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DDiagnosticRenderer.h75 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc,
81 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc,
85 virtual void emitCodeContext(FullSourceLoc Loc,
90 virtual void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) = 0;
91 virtual void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc,
93 virtual void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
103 void emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc,
105 void emitIncludeStackRecursively(FullSourceLoc Loc);
106 void emitImportStack(FullSourceLoc Loc);
107 void emitImportStackRecursively(FullSourceLoc Loc, StringRef ModuleName);
[all …]
H A DSARIFDiagnostic.h36 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 DTextDiagnostic.h85 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc,
90 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc,
94 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitCodeContext()
100 void emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) override;
102 void emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc,
105 void emitBuildingModuleLocation(FullSourceLoc Loc, PresumedLoc PLoc,
111 void emitSnippetAndCaret(FullSourceLoc Loc, DiagnosticsEngine::Level Level,
H A DLogDiagnosticPrinter.h56 FullSourceLoc LastLoc;
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp85 void DiagnosticRenderer::emitDiagnostic(FullSourceLoc Loc, in emitDiagnostic()
112 FullSourceLoc UnexpandedLoc = Loc; in emitDiagnostic()
147 emitDiagnosticMessage(FullSourceLoc(), PresumedLoc(), DiagnosticsEngine::Note, in emitBasicNote()
162 void DiagnosticRenderer::emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, in emitIncludeStack()
164 FullSourceLoc IncludeLoc = in emitIncludeStack()
165 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack()
166 : FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager()); in emitIncludeStack()
187 void DiagnosticRenderer::emitIncludeStackRecursively(FullSourceLoc Loc) { in emitIncludeStackRecursively()
200 std::pair<FullSourceLoc, StringRef> Imported = Loc.getModuleImportLoc(); in emitIncludeStackRecursively()
209 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively()
[all …]
H A DSARIFDiagnostic.cpp40 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 DSerializedDiagnosticPrinter.cpp63 void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc,
68 void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc()
72 void emitNote(FullSourceLoc Loc, StringRef Message) override;
74 void emitCodeContext(FullSourceLoc Loc, DiagnosticsEngine::Level Level,
185 void EmitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc,
210 void AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc,
214 void AddLocToRecord(FullSourceLoc Loc, RecordDataImpl &Record, in AddLocToRecord()
342 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord()
362 AddLocToRecord(FullSourceLoc(Range.getBegin(), SM), Record); in AddCharSourceRangeToRecord()
368 AddLocToRecord(FullSourceLoc(Range.getEnd(), SM), Record, TokSize); in AddCharSourceRangeToRecord()
[all …]
H A DSARIFDiagnosticPrinter.cpp76 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), Level, in HandleDiagnostic()
H A DTextDiagnostic.cpp662 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage()
782 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc()
867 FullSourceLoc BF(B, SM), EF(E, SM); in emitDiagnosticLoc()
881 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation()
890 void TextDiagnostic::emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitImportLocation()
899 void TextDiagnostic::emitBuildingModuleLocation(FullSourceLoc Loc, in emitBuildingModuleLocation()
1285 FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitSnippetAndCaret()
H A DTextDiagnosticPrinter.cpp151 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), Level, in HandleDiagnostic()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h371 class FullSourceLoc : public SourceLocation {
376 FullSourceLoc() = default;
378 explicit FullSourceLoc(SourceLocation Loc, const SourceManager &SM)
392 FullSourceLoc getExpansionLoc() const;
393 FullSourceLoc getSpellingLoc() const;
394 FullSourceLoc getFileLoc() const;
396 bool isMacroArgExpansion(FullSourceLoc *StartLoc = nullptr) const;
397 FullSourceLoc getImmediateMacroCallerLoc() const;
398 std::pair<FullSourceLoc, StringRef> getModuleImportLoc() const;
441 bool isBeforeInTranslationUnitThan(FullSourceLoc Loc) const {
[all …]
H A DPlistSupport.h107 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
H A DDiagnostic.h1668 FullSourceLoc Loc;
1679 StringRef Message, FullSourceLoc Loc,
1688 const FullSourceLoc &getLocation() const { return Loc; } in getLocation()
1691 void setLocation(FullSourceLoc Loc) { this->Loc = Loc; } in setLocation()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DPathDiagnostic.cpp163 FullSourceLoc L = piece->getLocation().asLocation().getExpansionLoc(); in HandlePathDiagnostic()
227 FullSourceLoc XSL = X.getStartLocation().asLocation(); in compareControlFlow()
228 FullSourceLoc YSL = Y.getStartLocation().asLocation(); in compareControlFlow()
231 FullSourceLoc XEL = X.getEndLocation().asLocation(); in compareControlFlow()
232 FullSourceLoc YEL = Y.getEndLocation().asLocation(); in compareControlFlow()
245 FullSourceLoc X_CEL = X.callEnter.asLocation(); in compareCall()
246 FullSourceLoc Y_CEL = Y.callEnter.asLocation(); in compareCall()
249 FullSourceLoc X_CEWL = X.callEnterWithin.asLocation(); in compareCall()
250 FullSourceLoc Y_CEWL = Y.callEnterWithin.asLocation(); in compareCall()
253 FullSourceLoc X_CRL = X.callReturn.asLocation(); in compareCall()
[all …]
H A DIssueHash.cpp133 static std::string NormalizeLine(const SourceManager &SM, const FullSourceLoc &L, in NormalizeLine()
181 std::string clang::getIssueString(const FullSourceLoc &IssueLoc, in getIssueString()
196 SmallString<32> clang::getIssueHash(const FullSourceLoc &IssueLoc, in getIssueHash()
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DIssueHash.h15 class FullSourceLoc; variable
34 llvm::SmallString<32> getIssueHash(const FullSourceLoc &IssueLoc,
43 std::string getIssueString(const FullSourceLoc &IssueLoc,
H A DPathDiagnostic.h202 FullSourceLoc Loc;
208 FullSourceLoc genLocation(
339 FullSourceLoc asLocation() const { in asLocation()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DBackendConsumer.h64 std::vector<std::pair<llvm::hash_code, FullSourceLoc>>
103 const FullSourceLoc getBestLocationFromDebugLoc(
108 std::optional<FullSourceLoc> getFunctionSourceLocation(
H A DCodeGenAction.cpp364 static FullSourceLoc ConvertBackendLocation(const llvm::SMDiagnostic &D, in ConvertBackendLocation()
388 return FullSourceLoc(NewLoc, CSM); in ConvertBackendLocation()
452 FullSourceLoc Loc; in SrcMgrDiagHandler()
503 FullSourceLoc Loc; in InlineAsmDiagHandler()
541 const FullSourceLoc BackendConsumer::getBestLocationFromDebugLoc( in getBestLocationFromDebugLoc()
566 FullSourceLoc Loc(DILoc, SourceMgr); in getBestLocationFromDebugLoc()
583 std::optional<FullSourceLoc>
602 FullSourceLoc Loc; in UnsupportedDiagHandler()
639 FullSourceLoc Loc; in EmitOptimizationMessage()
748 FullSourceLoc Loc = in MisExpectDiagHandler()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp82 FullSourceLoc TokLoc, in MakeCharSourceRange()
101 const LangOptions &Features, FullSourceLoc TokLoc, in Diag()
134 FullSourceLoc Loc, unsigned CharWidth, in ProcessCharEscape()
460 FullSourceLoc Loc, DiagnosticsEngine *Diags, in ProcessNumericUCNEscape()
543 DiagnosticsEngine *Diags, const LangOptions &Features, FullSourceLoc Loc, in DiagnoseInvalidUnicodeCharacterName()
600 unsigned short &UcnLen, FullSourceLoc Loc, in ProcessNamedUCNEscape()
648 unsigned short &UcnLen, FullSourceLoc Loc, in ProcessUCNEscape()
727 FullSourceLoc Loc; in MeasureUCNEscape()
756 FullSourceLoc Loc, unsigned CharByteWidth, in EncodeUCNEscape()
1866 FullSourceLoc(Loc, PP.getSourceManager()), in CharLiteralParser()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DPlistDiagnostics.cpp311 FullSourceLoc L = P.getLocation().asLocation(); in ReportEvent()
395 FullSourceLoc L = P->getLocation().asLocation(); in ReportMacroExpansions()
428 FullSourceLoc L = P.getLocation().asLocation(); in ReportNote()
459 FullSourceLoc L = P.getLocation().asLocation(); in ReportPopUp()
698 FullSourceLoc L(SM.getExpansionLoc(UPDLoc.isValid() in FlushDiagnosticsImpl()
747 FullSourceLoc UFunL( in FlushDiagnosticsImpl()
757 FullSourceLoc FunL(SM.getExpansionLoc(Body->getBeginLoc()), SM); in FlushDiagnosticsImpl()
H A DHTMLDiagnostics.cpp253 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in getIssueHash()
297 FullSourceLoc L( in ReportDiag()
300 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag()
659 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in FinalizeHTML()
891 FullSourceLoc Pos = P.getLocation().asLocation(); in HandlePiece()
1034 FullSourceLoc L = MP->getLocation().asLocation().getExpansionLoc(); in HandlePiece()
H A DTextDiagnostics.cpp65 auto reportPiece = [&](unsigned ID, FullSourceLoc Loc, StringRef String, in FlushDiagnosticsImpl()

12