[Lldb-commits] [PATCH] D126435: NFC delay tilde expansion on source path remappings until we are opening a source file
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed May 25 18:31:13 PDT 2022
JDevlieghere added a comment.
Very nice
================
Comment at: lldb/source/Core/SourceManager.cpp:69-73
+ FileSpec resolved_fspec = file_spec;
+ if (!FileSystem::Instance().Exists(file_spec) &&
+ file_spec.GetDirectory().GetCString()[0] == '~') {
+ FileSystem::Instance().Resolve(resolved_fspec);
+ }
----------------
I would create a little helper function (`resolve_tilde(FileSpec& s)` or something) to avoid duplicating this code on line 541?
================
Comment at: lldb/source/Core/SourceManager.cpp:403
: DebuggerSP()) {
+// m_mod_time = FileSystem::Instance().GetModificationTime(m_file_spec);
CommonInitializer(file_spec, target);
----------------
I guess this shouldn't be here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126435/new/
https://reviews.llvm.org/D126435
More information about the lldb-commits
mailing list