/freebsd/contrib/llvm-project/lldb/source/Core/ |
H A D | SourceManager.cpp | 65 SourceManager::SourceManager(const TargetSP &target_sp) in SourceManager() function in SourceManager 70 SourceManager::SourceManager(const DebuggerSP &debugger_sp) in SourceManager() function in SourceManager 75 SourceManager::~SourceManager() = default; 77 SourceManager::FileSP SourceManager::GetFile(const FileSpec &file_spec) { in GetFile() 217 size_t SourceManager::DisplaySourceLinesWithLineNumbersUsingLastFile( in DisplaySourceLinesWithLineNumbersUsingLastFile() 307 size_t SourceManager::DisplaySourceLinesWithLineNumbers( in DisplaySourceLinesWithLineNumbers() 331 size_t SourceManager::DisplayMoreWithLineNumbers( in DisplayMoreWithLineNumbers() 376 bool SourceManager::SetDefaultFileAndLine(const FileSpec &file_spec, in SetDefaultFileAndLine() 390 bool SourceManager::GetDefaultFileAndLine(FileSpec &file_spec, uint32_t &line) { in GetDefaultFileAndLine() 434 void SourceManager::FindLinesMatchingRegex(FileSpec &file_spec, in FindLinesMatchingRegex() [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Core/ |
H A D | SourceManager.h | 33 class SourceManager { 36 friend bool operator==(const SourceManager::File &lhs, 37 const SourceManager::File &rhs); 136 SourceManager(const lldb::DebuggerSP &debugger_sp); 137 SourceManager(const lldb::TargetSP &target_sp); 140 ~SourceManager(); 183 SourceManager(const SourceManager &) = delete; 184 const SourceManager &operator=(const SourceManager &) = delete; 187 bool operator==(const SourceManager::File &lhs, const SourceManager::File &rhs);
|
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | SourceManager.cpp | 273 unsigned SourceManager::getLineTableFilenameID(StringRef Name) { in getLineTableFilenameID() 280 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, in AddLineNote() 308 LineTableInfo &SourceManager::getLineTable() { in getLineTable() 318 SourceManager::SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr, in SourceManager() function in SourceManager 325 SourceManager::~SourceManager() { in ~SourceManager() 343 void SourceManager::clearIDTables() { in clearIDTables() 362 bool SourceManager::isMainFile(const FileEntry &SourceFile) { in isMainFile() 369 void SourceManager::initializeForReplay(const SourceManager &Old) { in initializeForReplay() 397 ContentCache &SourceManager::getOrCreateContentCache(FileEntryRef FileEnt, in getOrCreateContentCache() 430 ContentCache &SourceManager::createMemBufferContentCache( in createMemBufferContentCache() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/ |
H A D | Tokens.h | 54 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 D | TokenBufferTokenManager.h | 23 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/AST/ |
H A D | RawCommentList.h | 26 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 D | PathDiagnostic.h | 49 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/include/clang/Basic/ |
H A D | SourceLocation.h | 34 class SourceManager; variable 61 friend class SourceManager; variable 91 friend class SourceManager; variable 184 void print(raw_ostream &OS, const SourceManager &SM) const; 185 std::string printToString(const SourceManager &SM) const; 186 void dump(const SourceManager &SM) const; 244 void print(raw_ostream &OS, const SourceManager &SM) const; 245 std::string printToString(const SourceManager &SM) const; 246 void dump(const SourceManager &SM) const; 370 const SourceManager *SrcMgr = nullptr; [all …]
|
H A D | SourceManager.h | 68 class SourceManager; variable 296 friend class clang::SourceManager; 663 class SourceManager : public RefCountedBase<SourceManager> { 840 SourceManager(DiagnosticsEngine &Diag, FileManager &FileMgr, 842 explicit SourceManager(const SourceManager &) = delete; 843 SourceManager &operator=(const SourceManager &) = delete; 844 ~SourceManager(); 850 void initializeForReplay(const SourceManager &Old); 1742 return const_cast<SourceManager *>(this)->getLocalSLocEntry(Index); in getLocalSLocEntry() 1757 return const_cast<SourceManager *>(this)->getLoadedSLocEntry(Index, [all …]
|
H A D | XRayLists.h | 27 class SourceManager; variable 33 SourceManager &SM; 38 ArrayRef<std::string> AttrListPaths, SourceManager &SM);
|
H A D | NoSanitizeList.h | 26 class SourceManager; variable 31 SourceManager &SM; 35 SourceManager &SM);
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | SourceCode.cpp | 54 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 D | Transformer.cpp | 42 auto ID = Result.SourceManager->getFileID(T.Range.getBegin()); in convertToAtomicChanges() 44 .emplace(ID, AtomicChange(*Result.SourceManager, in convertToAtomicChanges() 51 AC.replace(*Result.SourceManager, T.Range, T.Replacement)) { in convertToAtomicChanges()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CoverageMappingGen.h | 32 class SourceManager; variable 73 SourceManager &SourceMgr; 80 CoverageSourceInfo(SourceManager &SourceMgr) : SourceMgr(SourceMgr) {} in CoverageSourceInfo() 159 SourceManager &SM; 165 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingGen() 170 CoverageMappingGen(CoverageMappingModuleGen &CVM, SourceManager &SM, in CoverageMappingGen()
|
/freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
H A D | PPConditionalDirectiveRecord.h | 26 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 D | ScratchBuffer.h | 19 class SourceManager; variable 25 SourceManager &SourceMgr; 30 ScratchBuffer(SourceManager &SM);
|
/freebsd/contrib/llvm-project/clang/include/clang/Edit/ |
H A D | Commit.h | 23 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 D | EditedSource.h | 28 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 D | AtomicChange.h | 43 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,
|
H A D | RefactoringRuleContext.h | 35 RefactoringRuleContext(const SourceManager &SM) : SM(SM) {} in RefactoringRuleContext() 37 const SourceManager &getSources() const { return SM; } in getSources() 72 const SourceManager &SM;
|
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Core/ |
H A D | Replacement.h | 39 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 D | RefactoringCallbacks.cpp | 72 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() 229 tooling::Replacement(*Result.SourceManager, &NodeMap.at(FromId), ToText, in run()
|
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Core/ |
H A D | Rewriter.h | 27 class SourceManager; variable 33 SourceManager *SourceMgr = nullptr; 69 explicit Rewriter(SourceManager &SM, const LangOptions &LO) in Rewriter() 72 void setSourceMgr(SourceManager &SM, const LangOptions &LO) { in setSourceMgr() 77 SourceManager &getSourceMgr() const { return *SourceMgr; } in getSourceMgr()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | PathDiagnostic.cpp | 153 const SourceManager &SMgr = D->path.front()->getLocation().getManager(); in HandlePathDiagnostic() 281 const SourceManager &SM = XL.getManager(); in comparePiece() 333 const SourceManager &SM = XL.getManager(); in compareCrossTUSourceLocs() 378 const SourceManager &SM = XL.getManager(); in compare() 523 const SourceManager &SM) { in getLocationForCaller() 580 const SourceManager &SM) { in createBegin() 586 const SourceManager &SM, in createBegin() 595 const SourceManager &SM, in createEnd() 605 const SourceManager &SM) { in createOperatorLoc() 612 const SourceManager &SM) { in createConditionalColonLoc() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Index/ |
H A D | USRGeneration.h | 21 class SourceManager; variable 71 const SourceManager &SM, SmallVectorImpl<char> &Buf); 73 const SourceManager &SM, SmallVectorImpl<char> &Buf);
|