Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/Frontend/
H A DDiagnosticRenderer.h76 virtual void emitDiagnosticMessage(FullSourceLoc Loc, PresumedLoc PLoc,
82 virtual void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc,
86 virtual void emitCodeContext(FullSourceLoc Loc,
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,
106 void emitIncludeStackRecursively(FullSourceLoc Loc);
107 void emitImportStack(FullSourceLoc Loc);
108 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.h57 FullSourceLoc LastLoc;
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp86 void DiagnosticRenderer::emitDiagnostic(FullSourceLoc Loc, in emitDiagnostic()
114 FullSourceLoc UnexpandedLoc = Loc; in emitDiagnostic()
149 emitDiagnosticMessage(FullSourceLoc(), PresumedLoc(), DiagnosticsEngine::Note, in emitBasicNote()
164 void DiagnosticRenderer::emitIncludeStack(FullSourceLoc Loc, PresumedLoc PLoc, in emitIncludeStack()
166 FullSourceLoc IncludeLoc = in emitIncludeStack()
167 PLoc.isInvalid() ? FullSourceLoc() in emitIncludeStack()
168 : FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager()); in emitIncludeStack()
189 void DiagnosticRenderer::emitIncludeStackRecursively(FullSourceLoc Loc) { in emitIncludeStackRecursively()
202 std::pair<FullSourceLoc, StringRef> Imported = Loc.getModuleImportLoc(); in emitIncludeStackRecursively()
211 FullSourceLoc(PLoc.getIncludeLoc(), Loc.getManager())); in emitIncludeStackRecursively()
[all …]
H A DSerializedDiagnosticPrinter.cpp66 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()
343 void SDiagsWriter::AddLocToRecord(FullSourceLoc Loc, PresumedLoc PLoc, in AddLocToRecord()
363 AddLocToRecord(FullSourceLoc(Range.getBegin(), SM), Record); in AddCharSourceRangeToRecord()
369 AddLocToRecord(FullSourceLoc(Range.getEnd(), SM), Record, TokSize); in AddCharSourceRangeToRecord()
[all …]
H A DSARIFDiagnosticPrinter.cpp80 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), Level, in HandleDiagnostic()
H A DTextDiagnostic.cpp664 FullSourceLoc Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, in emitDiagnosticMessage()
784 void TextDiagnostic::emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc, in emitDiagnosticLoc()
869 FullSourceLoc BF(B, SM), EF(E, SM); in emitDiagnosticLoc()
883 void TextDiagnostic::emitIncludeLocation(FullSourceLoc Loc, PresumedLoc PLoc) { in emitIncludeLocation()
892 void TextDiagnostic::emitImportLocation(FullSourceLoc Loc, PresumedLoc PLoc, in emitImportLocation()
901 void TextDiagnostic::emitBuildingModuleLocation(FullSourceLoc Loc, in emitBuildingModuleLocation()
1288 FullSourceLoc Loc, DiagnosticsEngine::Level Level, in emitSnippetAndCaret()
H A DTextDiagnosticPrinter.cpp152 FullSourceLoc(Info.getLocation(), Info.getSourceManager()), Level, in HandleDiagnostic()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h369 class FullSourceLoc : public SourceLocation {
374 FullSourceLoc() = default;
376 explicit FullSourceLoc(SourceLocation Loc, const SourceManager &SM)
390 FullSourceLoc getExpansionLoc() const;
391 FullSourceLoc getSpellingLoc() const;
392 FullSourceLoc getFileLoc() const;
394 bool isMacroArgExpansion(FullSourceLoc *StartLoc = nullptr) const;
395 FullSourceLoc getImmediateMacroCallerLoc() const;
396 std::pair<FullSourceLoc, StringRef> getModuleImportLoc() const;
439 bool isBeforeInTranslationUnitThan(FullSourceLoc Loc) const {
[all …]
H A DSourceManager.h649 using ModuleBuildStack = ArrayRef<std::pair<std::string, FullSourceLoc>>;
837 SmallVector<std::pair<std::string, FullSourceLoc>, 2> StoredModuleBuildStack;
879 void pushModuleBuildStack(StringRef moduleName, FullSourceLoc importLoc) { in pushModuleBuildStack()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DPathDiagnostic.cpp168 FullSourceLoc L = piece->getLocation().asLocation().getExpansionLoc(); in HandlePathDiagnostic()
232 FullSourceLoc XSL = X.getStartLocation().asLocation(); in compareControlFlow()
233 FullSourceLoc YSL = Y.getStartLocation().asLocation(); in compareControlFlow()
236 FullSourceLoc XEL = X.getEndLocation().asLocation(); in compareControlFlow()
237 FullSourceLoc YEL = Y.getEndLocation().asLocation(); in compareControlFlow()
250 FullSourceLoc X_CEL = X.callEnter.asLocation(); in compareCall()
251 FullSourceLoc Y_CEL = Y.callEnter.asLocation(); in compareCall()
254 FullSourceLoc X_CEWL = X.callEnterWithin.asLocation(); in compareCall()
255 FullSourceLoc Y_CEWL = Y.callEnterWithin.asLocation(); in compareCall()
258 FullSourceLoc X_CRL = X.callReturn.asLocation(); in compareCall()
[all …]
H A DIssueHash.cpp137 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/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.h63 std::vector<std::pair<llvm::hash_code, FullSourceLoc>>
119 const FullSourceLoc getBestLocationFromDebugLoc(
124 std::optional<FullSourceLoc> getFunctionSourceLocation(
H A DCodeGenAction.cpp402 static FullSourceLoc ConvertBackendLocation(const llvm::SMDiagnostic &D, in ConvertBackendLocation()
426 return FullSourceLoc(NewLoc, CSM); in ConvertBackendLocation()
490 FullSourceLoc Loc; in SrcMgrDiagHandler()
541 FullSourceLoc Loc; in InlineAsmDiagHandler()
579 const FullSourceLoc BackendConsumer::getBestLocationFromDebugLoc( in getBestLocationFromDebugLoc()
604 FullSourceLoc Loc(DILoc, SourceMgr); in getBestLocationFromDebugLoc()
621 std::optional<FullSourceLoc>
640 FullSourceLoc Loc; in UnsupportedDiagHandler()
677 FullSourceLoc Loc; in EmitOptimizationMessage()
788 FullSourceLoc Loc = in MisExpectDiagHandler()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DLiteralSupport.cpp81 FullSourceLoc TokLoc, in MakeCharSourceRange()
100 const LangOptions &Features, FullSourceLoc TokLoc, in Diag()
133 FullSourceLoc Loc, unsigned CharWidth, in ProcessCharEscape()
459 FullSourceLoc Loc, DiagnosticsEngine *Diags, in ProcessNumericUCNEscape()
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()
1826 FullSourceLoc(Loc, PP.getSourceManager()), in CharLiteralParser()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSarif.cpp117 static unsigned int adjustColumnPos(FullSourceLoc Loc, in adjustColumnPos()
152 FullSourceLoc BeginCharLoc{R.getBegin(), SM}; in createTextRegion()
153 FullSourceLoc EndCharLoc{R.getEnd(), SM}; in createTextRegion()
215 FullSourceLoc Start{R.getBegin(), SourceMgr}; in createPhysicalLocation()
H A DDiagnostic.cpp1163 Loc = FullSourceLoc(Info.getLocation(), Info.getSourceManager()); in StoredDiagnostic()
1172 StringRef Message, FullSourceLoc Loc, in StoredDiagnostic()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DHTMLDiagnostics.cpp255 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in getIssueHash()
299 FullSourceLoc L( in ReportDiag()
302 FullSourceLoc FunL(SMgr.getExpansionLoc(Body->getBeginLoc()), SMgr); in ReportDiag()
661 FullSourceLoc L(SMgr.getExpansionLoc(UPDLoc.isValid() in FinalizeHTML()
893 FullSourceLoc Pos = P.getLocation().asLocation(); in HandlePiece()
1036 FullSourceLoc L = MP->getLocation().asLocation().getExpansionLoc(); in HandlePiece()
H A DTextDiagnostics.cpp70 auto reportPiece = [&](unsigned ID, FullSourceLoc Loc, StringRef String, in FlushDiagnosticsImpl()
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/
H A DARCMT.cpp37 FullSourceLoc diagLoc = I->getLocation(); in clearDiagnostic()
66 FullSourceLoc diagLoc = I->getLocation(); in hasDiagnostic()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DRenamingAction.cpp213 FullSourceLoc FullLoc(Occurrence.getNameRanges()[0].getBegin(), in HandleOneRename()
/freebsd/contrib/llvm-project/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp198 const FullSourceLoc FullKeyPosition(KeyPosition, SM); in AtomicChange()

12