[Lldb-commits] [lldb] dd064af - [lldb] Add missing member initialziation list

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 21 10:15:46 PDT 2020


Author: Jonas Devlieghere
Date: 2020-07-21T10:15:38-07:00
New Revision: dd064afe84b3fd01ef3407dec0aeb22720450048

URL: https://github.com/llvm/llvm-project/commit/dd064afe84b3fd01ef3407dec0aeb22720450048
DIFF: https://github.com/llvm/llvm-project/commit/dd064afe84b3fd01ef3407dec0aeb22720450048.diff

LOG: [lldb] Add missing member initialziation list

My previous commit added the default arguments but didn't use them in
the member initialization list...

Added: 
    

Modified: 
    lldb/include/lldb/Interpreter/CommandObject.h

Removed: 
    


################################################################################
diff  --git a/lldb/include/lldb/Interpreter/CommandObject.h b/lldb/include/lldb/Interpreter/CommandObject.h
index b927c7eaf262..d5ad969cda66 100644
--- a/lldb/include/lldb/Interpreter/CommandObject.h
+++ b/lldb/include/lldb/Interpreter/CommandObject.h
@@ -96,7 +96,9 @@ class CommandObject {
 
     CommandArgumentData(lldb::CommandArgumentType type = lldb::eArgTypeNone,
                         ArgumentRepetitionType repetition = eArgRepeatPlain,
-                        uint32_t opt_set = LLDB_OPT_SET_ALL) {}
+                        uint32_t opt_set = LLDB_OPT_SET_ALL)
+        : arg_type(type), arg_repetition(repetition),
+          arg_opt_set_association(opt_set) {}
   };
 
   typedef std::vector<CommandArgumentData>


        


More information about the lldb-commits mailing list