File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
6060 if (!symbol.IsValid ())
6161 continue ;
6262
63- Symbol dap_symbol = {} ;
63+ Symbol dap_symbol;
6464 dap_symbol.id = symbol.GetID ();
6565 dap_symbol.type = symbol.GetType ();
6666 dap_symbol.isDebug = symbol.IsDebug ();
Original file line number Diff line number Diff line change @@ -50,29 +50,29 @@ llvm::json::Value toJSON(const SourceLLDBData &);
5050
5151struct Symbol {
5252 // / The symbol id, usually the original symbol table index.
53- uint32_t id;
53+ uint32_t id = 0 ;
5454
5555 // / True if this symbol is debug information in a symbol.
56- bool isDebug;
56+ bool isDebug = false ;
5757
5858 // / True if this symbol is not actually in the symbol table, but synthesized
5959 // / from other info in the object file.
60- bool isSynthetic;
60+ bool isSynthetic = false ;
6161
6262 // / True if this symbol is globally visible.
63- bool isExternal;
63+ bool isExternal = false ;
6464
6565 // / The symbol type.
66- lldb::SymbolType type;
66+ lldb::SymbolType type = lldb::eSymbolTypeInvalid ;
6767
6868 // / The symbol file address.
69- lldb::addr_t fileAddress;
69+ lldb::addr_t fileAddress = 0 ;
7070
7171 // / The symbol load address.
72- std::optional<lldb::addr_t > loadAddress;
72+ std::optional<lldb::addr_t > loadAddress = std:: nullopt ;
7373
7474 // / The symbol size.
75- lldb::addr_t size;
75+ lldb::addr_t size = 0 ;
7676
7777 // / The symbol name.
7878 std::string name;
You can’t perform that action at this time.
0 commit comments