1111
1212#include " lldb/Utility/Checksum.h"
1313#include " lldb/Utility/FileSpec.h"
14+ #include " lldb/Utility/SupportFile.h"
1415#include " lldb/lldb-defines.h"
1516#include " lldb/lldb-forward.h"
1617
@@ -38,8 +39,8 @@ class SourceManager {
3839 const SourceManager::File &rhs);
3940
4041 public:
41- File (lldb::SupportFileSP support_file_sp , lldb::TargetSP target_sp);
42- File (lldb::SupportFileSP support_file_sp , lldb::DebuggerSP debugger_sp);
42+ File (SupportFileNSP support_file_nsp , lldb::TargetSP target_sp);
43+ File (SupportFileNSP support_file_nsp , lldb::DebuggerSP debugger_sp);
4344
4445 bool ModificationTimeIsStale () const ;
4546 bool PathRemappingIsStale () const ;
@@ -57,9 +58,9 @@ class SourceManager {
5758
5859 bool LineIsValid (uint32_t line);
5960
60- lldb::SupportFileSP GetSupportFile () const {
61- assert (m_support_file_sp && " SupportFileSP must always be valid" );
62- return m_support_file_sp ;
61+ SupportFileNSP GetSupportFile () const {
62+ assert (m_support_file_nsp && " SupportFileNSP must always be valid" );
63+ return m_support_file_nsp ;
6364 }
6465
6566 uint32_t GetSourceMapModificationID () const { return m_source_map_mod_id; }
@@ -80,13 +81,13 @@ class SourceManager {
8081
8182 protected:
8283 // / Set file and update modification time.
83- void SetSupportFile (lldb::SupportFileSP support_file_sp );
84+ void SetSupportFile (SupportFileNSP support_file_nsp );
8485
8586 bool CalculateLineOffsets (uint32_t line = UINT32_MAX);
8687
8788 // / The support file. If the target has source mappings, this might be
8889 // / different from the original support file passed to the constructor.
89- lldb::SupportFileSP m_support_file_sp ;
90+ SupportFileNSP m_support_file_nsp ;
9091
9192 // / Keep track of the on-disk checksum.
9293 Checksum m_checksum;
@@ -107,9 +108,9 @@ class SourceManager {
107108 lldb::TargetWP m_target_wp;
108109
109110 private:
110- void CommonInitializer (lldb::SupportFileSP support_file_sp ,
111+ void CommonInitializer (SupportFileNSP support_file_nsp ,
111112 lldb::TargetSP target_sp);
112- void CommonInitializerImpl (lldb::SupportFileSP support_file_sp ,
113+ void CommonInitializerImpl (SupportFileNSP support_file_nsp ,
113114 lldb::TargetSP target_sp);
114115 };
115116
@@ -156,13 +157,13 @@ class SourceManager {
156157
157158 ~SourceManager ();
158159
159- FileSP GetLastFile () { return GetFile (m_last_support_file_sp ); }
160+ FileSP GetLastFile () { return GetFile (m_last_support_file_nsp ); }
160161 bool AtLastLine (bool reverse) {
161162 return m_last_line == UINT32_MAX || (reverse && m_last_line == 1 );
162163 }
163164
164165 size_t DisplaySourceLinesWithLineNumbers (
165- lldb::SupportFileSP support_file_sp , uint32_t line, uint32_t column,
166+ SupportFileNSP support_file_nsp , uint32_t line, uint32_t column,
166167 uint32_t context_before, uint32_t context_after,
167168 const char *current_line_cstr, Stream *s,
168169 const SymbolContextList *bp_locs = nullptr );
@@ -176,31 +177,30 @@ class SourceManager {
176177 size_t DisplayMoreWithLineNumbers (Stream *s, uint32_t count, bool reverse,
177178 const SymbolContextList *bp_locs = nullptr );
178179
179- bool SetDefaultFileAndLine (lldb::SupportFileSP support_file_sp,
180- uint32_t line);
180+ bool SetDefaultFileAndLine (SupportFileNSP support_file_nsp, uint32_t line);
181181
182182 struct SupportFileAndLine {
183- lldb::SupportFileSP support_file_sp ;
183+ SupportFileNSP support_file_nsp ;
184184 uint32_t line;
185- SupportFileAndLine (lldb::SupportFileSP support_file_sp , uint32_t line)
186- : support_file_sp(support_file_sp ), line(line) {}
185+ SupportFileAndLine (SupportFileNSP support_file_nsp , uint32_t line)
186+ : support_file_nsp(support_file_nsp ), line(line) {}
187187 };
188188
189189 std::optional<SupportFileAndLine> GetDefaultFileAndLine ();
190190
191191 bool DefaultFileAndLineSet () {
192- return (GetFile (m_last_support_file_sp ).get () != nullptr );
192+ return (GetFile (m_last_support_file_nsp ).get () != nullptr );
193193 }
194194
195- void FindLinesMatchingRegex (lldb::SupportFileSP support_file_sp ,
195+ void FindLinesMatchingRegex (SupportFileNSP support_file_nsp ,
196196 RegularExpression ®ex, uint32_t start_line,
197197 uint32_t end_line,
198198 std::vector<uint32_t > &match_lines);
199199
200- FileSP GetFile (lldb::SupportFileSP support_file_sp );
200+ FileSP GetFile (SupportFileNSP support_file_nsp );
201201
202202protected:
203- lldb::SupportFileSP m_last_support_file_sp ;
203+ SupportFileNSP m_last_support_file_nsp ;
204204 uint32_t m_last_line;
205205 uint32_t m_last_count;
206206 bool m_default_set;
0 commit comments