Searched refs:SourceMgr (Results 1 - 25 of 187) sorted by relevance

12345678

/freebsd-current/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DParser.h18 class SourceMgr;
21 /// SourceMgr. On success, populates the provided RecordKeeper with the parsed
26 bool TableGenParseFile(SourceMgr &InputSrcMgr, RecordKeeper &Records);
/freebsd-current/contrib/llvm-project/llvm/lib/TableGen/
H A DParser.cpp16 bool llvm::TableGenParseFile(SourceMgr &InputSrcMgr, RecordKeeper &Records) {
21 SrcMgr = SourceMgr();
39 SrcMgr = SourceMgr();
H A DError.cpp24 SourceMgr SrcMgr;
27 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind,
31 if (Kind == SourceMgr::DK_Error)
39 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note,
50 PrintMessage(NoteLoc, SourceMgr::DK_Note, Msg);
92 PrintMessage(WarningLoc, SourceMgr::DK_Warning, Msg);
96 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg);
104 PrintMessage(ErrorLoc, SourceMgr::DK_Error, Msg);
108 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
114 PrintMessage(Rec->getLoc(), SourceMgr
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Format/
H A DAffectedRangeManager.h27 AffectedRangeManager(const SourceManager &SourceMgr, argument
29 : SourceMgr(SourceMgr), Ranges(Ranges.begin(), Ranges.end()) {}
58 const SourceManager &SourceMgr; member in class:clang::format::AffectedRangeManager
H A DObjCPropertyAttributeOrderFixer.h28 void analyzeObjCPropertyDecl(const SourceManager &SourceMgr,
33 void sortPropertyAttributes(const SourceManager &SourceMgr,
H A DUnwrappedLineFormatter.h34 const SourceManager &SourceMgr,
37 Keywords(Keywords), SourceMgr(SourceMgr), Status(Status) {}
70 const SourceManager &SourceMgr; member in class:clang::format::UnwrappedLineFormatter
30 UnwrappedLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, const AdditionalKeywords &Keywords, const SourceManager &SourceMgr, FormattingAttemptStatus *Status) argument
H A DUsingDeclarationsSorter.cpp139 const SourceManager &SourceMgr, tooling::Replacements *Fixes,
173 auto Err = Fixes->add(tooling::Replacement(SourceMgr, Range, ""));
187 StringRef Text(SourceMgr.getCharacterData(SortedBegin),
188 SourceMgr.getCharacterData(SortedEnd) -
189 SourceMgr.getCharacterData(SortedBegin));
191 StringRef OldText(SourceMgr.getCharacterData(Begin),
192 SourceMgr.getCharacterData(End) -
193 SourceMgr.getCharacterData(Begin));
197 auto Err = Fixes->add(tooling::Replacement(SourceMgr, Range, Text));
215 const SourceManager &SourceMgr local
137 endUsingDeclarationBlock( SmallVectorImpl<UsingDeclaration> *UsingDeclarations, const SourceManager &SourceMgr, tooling::Replacements *Fixes, FormatStyle::SortUsingDeclarationsOptions SortUsingDeclarations) argument
[all...]
H A DObjCPropertyAttributeOrderFixer.cpp38 const SourceManager &SourceMgr, tooling::Replacements &Fixes,
150 auto Replacement = tooling::Replacement(SourceMgr, Range, NewText);
159 const SourceManager &SourceMgr, const AdditionalKeywords &Keywords,
178 sortPropertyAttributes(SourceMgr, Fixes, LParenTok->Next, RParenTok);
188 const SourceManager &SourceMgr = Env.getSourceManager(); local
209 analyzeObjCPropertyDecl(SourceMgr, Keywords, Fixes, Tok);
37 sortPropertyAttributes( const SourceManager &SourceMgr, tooling::Replacements &Fixes, const FormatToken *BeginTok, const FormatToken *EndTok) argument
158 analyzeObjCPropertyDecl( const SourceManager &SourceMgr, const AdditionalKeywords &Keywords, tooling::Replacements &Fixes, const FormatToken *Tok) argument
H A DQualifierAlignmentFixer.cpp57 static void replaceToken(const SourceManager &SourceMgr, argument
60 auto Replacement = tooling::Replacement(SourceMgr, Range, NewText);
69 static void removeToken(const SourceManager &SourceMgr, argument
74 replaceToken(SourceMgr, Fixes, Range, "");
77 static void insertQualifierAfter(const SourceManager &SourceMgr, argument
87 replaceToken(SourceMgr, Fixes, Range, NewText);
90 static void insertQualifierBefore(const SourceManager &SourceMgr, argument
100 replaceToken(SourceMgr, Fixes, Range, NewText);
115 static void rotateTokens(const SourceManager &SourceMgr, argument
152 replaceToken(SourceMgr, Fixe
179 analyzeRight( const SourceManager &SourceMgr, const AdditionalKeywords &Keywords, tooling::Replacements &Fixes, const FormatToken *const Tok, const std::string &Qualifier, tok::TokenKind QualifierType) argument
368 analyzeLeft( const SourceManager &SourceMgr, const AdditionalKeywords &Keywords, tooling::Replacements &Fixes, const FormatToken *const Tok, const std::string &Qualifier, tok::TokenKind QualifierType) argument
547 const SourceManager &SourceMgr = Env.getSourceManager(); local
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceMgrAdapter.h1 //=== SourceMgrAdapter.h - SourceMgr to SourceManager Adapter ---*- C++ -*-===//
9 // This file provides an adapter that maps diagnostics from llvm::SourceMgr
19 #include "llvm/Support/SourceMgr.h"
29 /// llvm::SourceMgr instances to a ,
45 llvm::DenseMap<std::pair<const llvm::SourceMgr *, unsigned>, FileID>
52 /// Create a new \c SourceMgr adaptor that maps to the given source
63 SourceLocation mapLocation(const llvm::SourceMgr &LLVMSrcMgr,
68 SourceRange mapRange(const llvm::SourceMgr &LLVMSrcMgr, llvm::SMRange Range);
73 /// Retrieve the diagnostic handler to use with the underlying SourceMgr.
74 llvm::SourceMgr
[all...]
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-mca/
H A DCodeRegion.cpp34 AnalysisRegions::AnalysisRegions(llvm::SourceMgr &S) : CodeRegions(S) {
54 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error,
56 SM.PrintMessage(R.startLoc(), llvm::SourceMgr::DK_Note,
62 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error,
64 SM.PrintMessage(R.startLoc(), llvm::SourceMgr::DK_Note,
104 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Error,
107 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Note,
110 SM.PrintMessage(Loc, llvm::SourceMgr::DK_Note,
115 InstrumentRegions::InstrumentRegions(llvm::SourceMgr &S) : CodeRegions(S) {}
120 SM.PrintMessage(Loc, llvm::SourceMgr
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Lex/
H A DScratchBuffer.cpp24 : SourceMgr(SM), CurBuffer(nullptr) {
40 SourceMgr.getSLocEntry(SourceMgr.getFileID(BufferStartLoc))
80 FileID FID = SourceMgr.createFileID(std::move(OwnBuf));
81 BufferStartLoc = SourceMgr.getLocForStartOfFile(FID);
H A DPPConditionalDirectiveRecord.cpp19 : SourceMgr(SM) {
29 CondDirectiveLocs, Range.getBegin(), CondDirectiveLoc::Comp(SourceMgr));
33 if (SourceMgr.isBeforeInTranslationUnit(Range.getEnd(), low->getLoc()))
38 Range.getEnd(), CondDirectiveLoc::Comp(SourceMgr));
53 if (SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(),
58 CondDirectiveLocs, Loc, CondDirectiveLoc::Comp(SourceMgr));
66 if (SourceMgr.isInSystemHeader(DirLoc.getLoc()))
70 SourceMgr.isBeforeInTranslationUnit(CondDirectiveLocs.back().getLoc(),
/freebsd-current/contrib/llvm-project/llvm/include/llvm/Support/
H A DSourceMgr.h1 //===- SourceMgr.h - Manager for Source Buffers & Diagnostics ---*- C++ -*-===//
9 // This file declares the SMDiagnostic and SourceMgr classes. This
31 class SourceMgr { class in namespace:llvm
96 SourceMgr() = default;
97 SourceMgr(const SourceMgr &) = delete;
98 SourceMgr &operator=(const SourceMgr &) = delete;
99 SourceMgr(SourceMgr
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/AST/
H A DRawCommentList.h47 RawComment(const SourceManager &SourceMgr, SourceRange SR,
98 StringRef getRawText(const SourceManager &SourceMgr) const {
102 RawText = getRawTextSlow(SourceMgr);
118 bool hasUnsupportedSplice(const SourceManager &SourceMgr) const {
121 StringRef Text = getRawText(SourceMgr);
150 std::string getFormattedText(const SourceManager &SourceMgr,
165 std::vector<CommentLine> getFormattedLines(const SourceManager &SourceMgr,
198 StringRef getRawTextSlow(const SourceManager &SourceMgr) const;
209 RawCommentList(SourceManager &SourceMgr) : SourceMgr(SourceMg argument
225 SourceManager &SourceMgr; member in class:clang::RawCommentList
[all...]
/freebsd-current/contrib/llvm-project/llvm/tools/llvm-mc/
H A DDisassembler.h24 class SourceMgr;
34 MemoryBuffer &Buffer, SourceMgr &SM, MCContext &Ctx,
H A DDisassembler.cpp25 #include "llvm/Support/SourceMgr.h"
35 SourceMgr &SM, MCStreamer &Streamer, bool InAtomicBlock,
51 SourceMgr::DK_Warning,
64 SourceMgr::DK_Warning,
100 SourceMgr &SM) {
114 SM.PrintMessage(SMLoc::getFromPointer(Value.data()), SourceMgr::DK_Error,
132 MemoryBuffer &Buffer, SourceMgr &SM,
172 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
181 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr::DK_Error,
199 SM.PrintMessage(SMLoc::getFromPointer(Str.data()), SourceMgr
[all...]
/freebsd-current/contrib/llvm-project/clang/include/clang/Lex/
H A DScratchBuffer.h25 SourceManager &SourceMgr; member in class:clang::ScratchBuffer
/freebsd-current/contrib/llvm-project/clang/lib/AST/
H A DRawCommentList.cpp110 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, argument
116 if (SR.getBegin() == SR.getEnd() || getRawText(SourceMgr).empty()) {
130 SourceMgr.getDecomposedLoc(Range.getBegin());
134 SourceMgr.getBufferData(BeginFileID, &Invalid).data();
153 StringRef RawComment::getRawTextSlow(const SourceManager &SourceMgr) const {
160 SourceMgr.getDecomposedLoc(Range.getBegin());
161 std::tie(EndFileID, EndOffset) = SourceMgr.getDecomposedLoc(Range.getEnd());
171 const char *BufferStart = SourceMgr.getBufferData(BeginFileID,
285 SourceMgr.getDecomposedLoc(RC.getBeginLoc());
317 commentsStartOnSameColumn(SourceMgr, C
360 getFormattedText(const SourceManager &SourceMgr, DiagnosticsEngine &Diags) const argument
378 getFormattedLines(const SourceManager &SourceMgr, DiagnosticsEngine &Diags) const argument
[all...]
/freebsd-current/contrib/llvm-project/llvm/include/llvm/MCA/Stages/
H A DEntryStage.h20 #include "llvm/MCA/SourceMgr.h"
29 SourceMgr &SM;
39 EntryStage(SourceMgr &SM) : SM(SM), NumRetired(0) {}
/freebsd-current/contrib/llvm-project/clang/include/clang/APINotes/
H A DAPINotesYAMLCompiler.h13 #include "llvm/Support/SourceMgr.h"
30 llvm::SourceMgr::DiagHandlerTy DiagHandler = nullptr,
/freebsd-current/contrib/llvm-project/llvm/include/llvm/MCA/
H A DSourceMgr.h1 //===--------------------- SourceMgr.h --------------------------*- C++ -*-===//
9 /// This file contains abstract class SourceMgr and the default implementation,
29 struct SourceMgr { struct in namespace:llvm::mca
53 virtual ~SourceMgr() {}
56 /// The default implementation of \a SourceMgr. It always takes a fixed number
59 class CircularSourceMgr : public SourceMgr {
/freebsd-current/contrib/llvm-project/llvm/lib/FileCheck/
H A DFileCheckImpl.h23 #include "llvm/Support/SourceMgr.h"
100 APInt valueFromStringRepr(StringRef StrVal, const SourceMgr &SM) const;
146 getImplicitFormat(const SourceMgr &SM) const {
293 getImplicitFormat(const SourceMgr &SM) const override {
333 getImplicitFormat(const SourceMgr &SM) const override;
457 SourceMgr &SM);
508 static Error get(const SourceMgr &SM, SMLoc Loc, const Twine &ErrMsg,
511 SM.GetMessage(Loc, SourceMgr::DK_Error, ErrMsg), Range);
514 static Error get(const SourceMgr &SM, StringRef Buffer, const Twine &ErrMsg) {
661 const SourceMgr
[all...]
/freebsd-current/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp1 //===- SourceMgr.cpp - Manager for Simple Source Buffers & Diagnostics ----===//
9 // This file implements the SourceMgr class. This class is used as a simple
15 #include "llvm/Support/SourceMgr.h"
41 unsigned SourceMgr::AddIncludeFile(const std::string &Filename,
53 SourceMgr::OpenIncludeFile(const std::string &Filename,
73 unsigned SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
104 unsigned SourceMgr::SrcBuffer::getLineNumberSpecialized(const char *Ptr) const {
122 unsigned SourceMgr::SrcBuffer::getLineNumber(const char *Ptr) const {
135 const char *SourceMgr::SrcBuffer::getPointerForLineNumberSpecialized(
158 SourceMgr
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Basic/
H A DSourceMgrAdapter.cpp1 //=== SourceMgrAdapter.cpp - SourceMgr to SourceManager Adapter -----------===//
9 // This file implements the adapter that maps diagnostics from llvm::SourceMgr
35 SourceLocation SourceMgrAdapter::mapLocation(const llvm::SourceMgr &LLVMSrcMgr,
81 SourceRange SourceMgrAdapter::mapRange(const llvm::SourceMgr &LLVMSrcMgr,
103 case llvm::SourceMgr::DK_Error:
107 case llvm::SourceMgr::DK_Warning:
111 case llvm::SourceMgr::DK_Remark:
114 case llvm::SourceMgr::DK_Note:

Completed in 333 milliseconds

12345678