Home
last modified time | relevance | path

Searched refs:SourceManager (Results 1 – 25 of 262) sorted by relevance

1234567891011

/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h39 class SourceManager; variable
181 const SourceManager &SM, const LangOptions &LangOpts,
339 const SourceManager &SourceMgr,
349 const SourceManager &SourceMgr,
363 const SourceManager &SM,
372 const SourceManager &SM,
378 const SourceManager &SM,
386 const SourceManager &SM,
393 const SourceManager &SM,
401 const SourceManager &SM, in AdvanceToTokenCharacter()
[all …]
H A DPPConditionalDirectiveRecord.h26 SourceManager &SourceMgr;
42 SourceManager &SM;
44 explicit Comp(SourceManager &SM) : SM(SM) {} in Comp()
66 explicit PPConditionalDirectiveRecord(SourceManager &SM);
70 SourceManager &getSourceManager() const { return SourceMgr; } in getSourceManager()
H A DScratchBuffer.h19 class SourceManager; variable
25 SourceManager &SourceMgr;
30 ScratchBuffer(SourceManager &SM);
/freebsd/contrib/llvm-project/lldb/source/Core/
H A DSourceManager.cpp71 SourceManager::SourceManager(const TargetSP &target_sp) in SourceManager() function in SourceManager
76 SourceManager::SourceManager(const DebuggerSP &debugger_sp) in SourceManager() function in SourceManager
82 SourceManager::~SourceManager() = default;
84 SourceManager::FileSP SourceManager::GetFile(SupportFileSP support_file_sp) { in GetFile()
228 size_t SourceManager::DisplaySourceLinesWithLineNumbersUsingLastFile( in DisplaySourceLinesWithLineNumbersUsingLastFile()
327 size_t SourceManager::DisplaySourceLinesWithLineNumbers( in DisplaySourceLinesWithLineNumbers()
353 size_t SourceManager::DisplayMoreWithLineNumbers( in DisplayMoreWithLineNumbers()
392 bool SourceManager::SetDefaultFileAndLine(lldb::SupportFileSP support_file_sp, in SetDefaultFileAndLine()
407 std::optional<SourceManager::SupportFileAndLine>
408 SourceManager::GetDefaultFileAndLine() { in GetDefaultFileAndLine()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DSourceManager.cpp259 unsigned SourceManager::getLineTableFilenameID(StringRef Name) { in getLineTableFilenameID()
266 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote()
294 LineTableInfo &SourceManager::getLineTable() { in getLineTable()
304 SourceManager::SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr, in SourceManager() function in SourceManager
311 SourceManager::~SourceManager() { in ~SourceManager()
329 void SourceManager::clearIDTables() { in clearIDTables()
354 bool SourceManager::isMainFile(const FileEntry &SourceFile) { in isMainFile()
361 void SourceManager::initializeForReplay(const SourceManager &Old) { in initializeForReplay()
389 ContentCache &SourceManager::getOrCreateContentCache(FileEntryRef FileEnt, in getOrCreateContentCache()
422 ContentCache &SourceManager::createMemBufferContentCache( in createMemBufferContentCache()
[all …]
H A DSourceLocation.cpp60 void SourceLocation::print(raw_ostream &OS, const SourceManager &SM)const{ in print()
87 SourceLocation::printToString(const SourceManager &SM) const { in printToString()
94 LLVM_DUMP_METHOD void SourceLocation::dump(const SourceManager &SM) const { in dump()
99 LLVM_DUMP_METHOD void SourceRange::dump(const SourceManager &SM) const { in dump()
104 static PresumedLoc PrintDifference(raw_ostream &OS, const SourceManager &SM, in PrintDifference()
134 void SourceRange::print(raw_ostream &OS, const SourceManager &SM) const { in print()
146 SourceRange::printToString(const SourceManager &SM) const { in printToString()
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/
H A DSourceManager.h34 class SourceManager {
37 friend bool operator==(const SourceManager::File &lhs,
38 const SourceManager::File &rhs);
151 SourceManager(const lldb::DebuggerSP &debugger_sp);
152 SourceManager(const lldb::TargetSP &target_sp);
155 ~SourceManager();
209 SourceManager(const SourceManager &) = delete;
210 const SourceManager &operator=(const SourceManager &) = delete;
213 bool operator==(const SourceManager::File &lhs, const SourceManager::File &rhs);
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DTokens.h54 FileRange(const SourceManager &SM, SourceLocation BeginLoc, unsigned Length);
57 FileRange(const SourceManager &SM, SourceLocation BeginLoc,
78 llvm::StringRef text(const SourceManager &SM) const;
82 CharSourceRange toCharRange(const SourceManager &SM) const;
123 llvm::StringRef text(const SourceManager &SM) const;
127 FileRange range(const SourceManager &SM) const;
133 static FileRange range(const SourceManager &SM, const syntax::Token &First,
136 std::string dumpForTests(const SourceManager &SM) const;
176 TokenBuffer(const SourceManager &SourceMgr) : SourceMgr(&SourceMgr) {} in TokenBuffer()
309 const SourceManager &sourceManager() const { return *SourceMgr; } in sourceManager()
[all …]
H A DTokenBufferTokenManager.h23 const LangOptions &LangOpts, SourceManager &SourceMgr) in TokenBufferTokenManager()
43 SourceManager &sourceManager() { return SM; } in sourceManager()
44 const SourceManager &sourceManager() const { return SM; } in sourceManager()
62 SourceManager &SM;
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/Support/
H A DFixitUtil.h27 getPointeeTypeText(const DeclaratorDecl *VD, const SourceManager &SM,
33 getPointee2TypeText(const DeclaratorDecl *VD, const SourceManager &SM,
40 std::optional<StringRef> getRangeText(SourceRange SR, const SourceManager &SM,
45 const SourceManager &SM,
49 std::optional<StringRef> getExprText(const Expr *E, const SourceManager &SM,
55 const SourceManager &SM, in getPastLoc()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DRawCommentList.h26 class SourceManager; variable
47 RawComment(const SourceManager &SourceMgr, SourceRange SR,
98 StringRef getRawText(const SourceManager &SourceMgr) const { in getRawText()
118 bool hasUnsupportedSplice(const SourceManager &SourceMgr) const { in hasUnsupportedSplice()
150 std::string getFormattedText(const SourceManager &SourceMgr,
165 std::vector<CommentLine> getFormattedLines(const SourceManager &SourceMgr,
203 StringRef getRawTextSlow(const SourceManager &SourceMgr) const;
214 RawCommentList(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {} in RawCommentList()
230 SourceManager &SourceMgr;
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DPathDiagnostic.h49 class SourceManager; variable
201 const SourceManager *SM = nullptr;
205 PathDiagnosticLocation(SourceLocation L, const SourceManager &sm, Kind kind) in PathDiagnosticLocation()
220 PathDiagnosticLocation(const Stmt *s, const SourceManager &sm, in PathDiagnosticLocation()
231 PathDiagnosticLocation(const Decl *d, const SourceManager &sm) in PathDiagnosticLocation()
241 PathDiagnosticLocation(SourceLocation loc, const SourceManager &sm) in PathDiagnosticLocation()
249 const SourceManager &SM) { in create()
255 const SourceManager &SM);
261 createBegin(const Decl *D, const SourceManager &SM, in createBegin()
268 const SourceManager &SM,
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp54 const SourceManager &SM, in validateRange()
85 const SourceManager &SM) { in validateEditRange()
90 const SourceManager &SM) { in spelledInMacroDefinition()
108 getExpansionForSplitToken(SourceLocation Loc, const SourceManager &SM, in getExpansionForSplitToken()
129 const SourceManager &SM, in getRangeForSplitTokens()
153 const SourceManager &SM, in getRange()
175 const CharSourceRange &EditRange, const SourceManager &SM, in getFileRangeForEdit()
186 const CharSourceRange &EditRange, const SourceManager &SM, in getFileRange()
197 static bool startsWithNewline(const SourceManager &SM, const Token &Tok) { in startsWithNewline()
215 getEntityEndLoc(const SourceManager &SM, SourceLocation EntityLast, in getEntityEndLoc()
[all …]
H A DRangeSelector.cpp64 const SourceManager &SM, in findPreviousTokenStart()
79 const SourceManager &SM, in findPreviousTokenKind()
122 *Result.SourceManager, Result.Context->getLangOpts()); in after()
168 if (Result.SourceManager->isBeforeInTranslationUnit(E, B)) { in enclose()
284 const SourceManager &SM, in findArgStartDelimiter()
293 const SourceManager &SM, in findLastArgEnd()
309 findArgStartDelimiter(CE, RLoc, *Result.SourceManager, in getCallArgumentsRange()
321 Lexer::getLocForEndOfToken(R.getBegin(), 0, *Result.SourceManager, in getConstructArgumentsRange()
329 findLastArgEnd(CE, *Result.SourceManager, in getConstructArgumentsRange()
379 return Result.SourceManager->getExpansionRange(*SRange); in expansion()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h34 class SourceManager; variable
61 friend class SourceManager; variable
93 friend class SourceManager; variable
186 void print(raw_ostream &OS, const SourceManager &SM) const;
187 std::string printToString(const SourceManager &SM) const;
188 void dump(const SourceManager &SM) const;
246 void print(raw_ostream &OS, const SourceManager &SM) const;
247 std::string printToString(const SourceManager &SM) const;
248 void dump(const SourceManager &SM) const;
372 const SourceManager *SrcMgr = nullptr;
[all …]
H A DPlistSupport.h36 const SourceManager &SM, SourceLocation L) { in AddFID()
47 inline unsigned GetFID(const FIDMap &FIDs, const SourceManager &SM, in GetFID()
103 inline void EmitLocation(raw_ostream &o, const SourceManager &SM, in EmitLocation()
107 FullSourceLoc Loc(SM.getExpansionLoc(L), const_cast<SourceManager &>(SM)); in EmitLocation()
119 inline void EmitRange(raw_ostream &o, const SourceManager &SM, in EmitRange()
H A DXRayLists.h27 class SourceManager; variable
33 SourceManager &SM;
38 ArrayRef<std::string> AttrListPaths, SourceManager &SM);
H A DSourceManager.h68 class SourceManager; variable
296 friend class clang::SourceManager;
663 class SourceManager : public RefCountedBase<SourceManager> {
844 SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr,
846 explicit SourceManager(const SourceManager &) = delete;
847 SourceManager &operator=(const SourceManager &) = delete;
848 ~SourceManager();
854 void initializeForReplay(const SourceManager &Old);
1752 return const_cast<SourceManager *>(this)->getLocalSLocEntry(Index); in getLocalSLocEntry()
1767 return const_cast<SourceManager *>(this)->getLoadedSLocEntry(Index,
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCoverageMappingGen.h32 class SourceManager; variable
73 SourceManager &SourceMgr;
80 CoverageSourceInfo(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {} in CoverageSourceInfo()
160 SourceManager &SM;
166 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingGen()
171 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingGen()
/freebsd/contrib/llvm-project/clang/include/clang/Edit/
H A DCommit.h23 class SourceManager; variable
46 SourceLocation getFileLocation(SourceManager &SM) const;
47 CharSourceRange getFileRange(SourceManager &SM) const;
48 CharSourceRange getInsertFromRange(SourceManager &SM) const;
52 const SourceManager &SourceMgr;
64 Commit(const SourceManager &SM, const LangOptions &LangOpts,
H A DEditedSource.h28 class SourceManager; variable
36 const SourceManager &SourceMgr;
73 EditedSource(const SourceManager &SM, const LangOptions &LangOpts,
77 const SourceManager &getSourceManager() const { return SourceMgr; } in getSourceManager()
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DAtomicChange.h43 AtomicChange(const SourceManager &SM, SourceLocation KeyPosition);
45 AtomicChange(const SourceManager &SM, SourceLocation KeyPosition,
88 llvm::Error replace(const SourceManager &SM, const CharSourceRange &Range,
94 llvm::Error replace(const SourceManager &SM, SourceLocation Loc,
105 llvm::Error insert(const SourceManager &SM, SourceLocation Loc,
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Core/
H A DReplacement.h39 class SourceManager; variable
99 Replacement(const SourceManager &Sources, SourceLocation Start,
103 Replacement(const SourceManager &Sources, const CharSourceRange &Range,
109 Replacement(const SourceManager &Sources, const Node &NodeToReplace,
133 void setFromSourceLocation(const SourceManager &Sources, SourceLocation Start,
135 void setFromSourceRange(const SourceManager &Sources,
362 Replacement::Replacement(const SourceManager &Sources, in Replacement()
/freebsd/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp72 static Replacement replaceStmtWithText(SourceManager &Sources, const Stmt &From, in replaceStmtWithText()
77 static Replacement replaceStmtWithStmt(SourceManager &Sources, const Stmt &From, in replaceStmtWithStmt()
92 *Result.SourceManager, in run()
112 replaceStmtWithStmt(*Result.SourceManager, *FromMatch, *ToMatch)); in run()
132 Replace.add(replaceStmtWithStmt(*Result.SourceManager, *Node, *Body)); in run()
143 Replace.add(replaceStmtWithText(*Result.SourceManager, *Node, "")); in run()
217 ToText += Lexer::getSourceText(Source, *Result.SourceManager, in run()
230 tooling::Replacement(*Result.SourceManager, &It->second, ToText, in run()
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/
H A DRewriter.h27 class SourceManager; variable
33 SourceManager *SourceMgr = nullptr;
70 explicit Rewriter(SourceManager &SM, const LangOptions &LO) in Rewriter()
73 void setSourceMgr(SourceManager &SM, const LangOptions &LO) { in setSourceMgr()
78 SourceManager &getSourceMgr() const { return *SourceMgr; } in getSourceMgr()

1234567891011