[Lldb-commits] [PATCH] D103483: [lldb] Convert the default constructor’s member initializers into default member initializers
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 2 15:33:02 PDT 2021
aprantl added inline comments.
================
Comment at: lldb/include/lldb/Host/FileSystem.h:35
FileSystem()
: m_fs(llvm::vfs::getRealFileSystem()), m_collector(nullptr),
+ m_home_directory() {}
----------------
why is m_collector not caught? Because it's also explicitly initialized below?
================
Comment at: lldb/include/lldb/Host/FileSystem.h:36
: m_fs(llvm::vfs::getRealFileSystem()), m_collector(nullptr),
- m_home_directory(), m_mapped(false) {}
+ m_home_directory() {}
FileSystem(std::shared_ptr<llvm::FileCollectorBase> collector)
----------------
but then — why isn't m_home_directory() removed?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103483/new/
https://reviews.llvm.org/D103483
More information about the lldb-commits
mailing list