@@ -68,7 +68,7 @@ class OptionValueProperties
68
68
// Get the index of a property given its exact name in this property
69
69
// collection, "name" can't be a path to a property path that refers to a
70
70
// property within a property
71
- virtual uint32_t GetPropertyIndex (ConstString name) const ;
71
+ virtual size_t GetPropertyIndex (ConstString name) const ;
72
72
73
73
// Get a property by exact name exists in this property collection, name can
74
74
// not be a path to a property path that refers to a property within a
@@ -78,7 +78,7 @@ class OptionValueProperties
78
78
const ExecutionContext *exe_ctx = nullptr ) const ;
79
79
80
80
virtual const Property *
81
- GetPropertyAtIndex (uint32_t idx,
81
+ GetPropertyAtIndex (size_t idx,
82
82
const ExecutionContext *exe_ctx = nullptr ) const {
83
83
return ProtectedGetPropertyAtIndex (idx);
84
84
}
@@ -91,7 +91,7 @@ class OptionValueProperties
91
91
llvm::StringRef property_path) const ;
92
92
93
93
virtual lldb::OptionValueSP
94
- GetPropertyValueAtIndex (uint32_t idx, const ExecutionContext *exe_ctx) const ;
94
+ GetPropertyValueAtIndex (size_t idx, const ExecutionContext *exe_ctx) const ;
95
95
96
96
virtual lldb::OptionValueSP GetValueForKey (const ExecutionContext *exe_ctx,
97
97
ConstString key) const ;
@@ -104,44 +104,44 @@ class OptionValueProperties
104
104
llvm::StringRef path, llvm::StringRef value) override ;
105
105
106
106
bool
107
- GetPropertyAtIndexAsArgs (uint32_t idx, Args &args,
107
+ GetPropertyAtIndexAsArgs (size_t idx, Args &args,
108
108
const ExecutionContext *exe_ctx = nullptr ) const ;
109
109
110
- bool SetPropertyAtIndexFromArgs (uint32_t idx, const Args &args,
110
+ bool SetPropertyAtIndexFromArgs (size_t idx, const Args &args,
111
111
const ExecutionContext *exe_ctx = nullptr );
112
112
113
113
OptionValueDictionary *GetPropertyAtIndexAsOptionValueDictionary (
114
- uint32_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
114
+ size_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
115
115
116
116
OptionValueSInt64 *GetPropertyAtIndexAsOptionValueSInt64 (
117
- uint32_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
117
+ size_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
118
118
119
119
OptionValueUInt64 *GetPropertyAtIndexAsOptionValueUInt64 (
120
- uint32_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
120
+ size_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
121
121
122
122
OptionValueString *GetPropertyAtIndexAsOptionValueString (
123
- uint32_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
123
+ size_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
124
124
125
125
OptionValueFileSpec *GetPropertyAtIndexAsOptionValueFileSpec (
126
- uint32_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
126
+ size_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
127
127
128
128
OptionValuePathMappings *GetPropertyAtIndexAsOptionValuePathMappings (
129
- uint32_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
129
+ size_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
130
130
131
131
OptionValueFileSpecList *GetPropertyAtIndexAsOptionValueFileSpecList (
132
- uint32_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
132
+ size_t idx, const ExecutionContext *exe_ctx = nullptr ) const ;
133
133
134
134
void AppendProperty (ConstString name, llvm::StringRef desc, bool is_global,
135
135
const lldb::OptionValueSP &value_sp);
136
136
137
137
lldb::OptionValuePropertiesSP GetSubProperty (const ExecutionContext *exe_ctx,
138
138
ConstString name);
139
139
140
- void SetValueChangedCallback (uint32_t property_idx,
140
+ void SetValueChangedCallback (size_t property_idx,
141
141
std::function<void ()> callback);
142
142
143
143
template <typename T>
144
- auto GetPropertyAtIndexAs (uint32_t idx,
144
+ auto GetPropertyAtIndexAs (size_t idx,
145
145
const ExecutionContext *exe_ctx = nullptr ) const {
146
146
if (const Property *property = GetPropertyAtIndex (idx, exe_ctx)) {
147
147
if (OptionValue *value = property->GetValue ().get ())
@@ -154,7 +154,7 @@ class OptionValueProperties
154
154
}
155
155
156
156
template <typename T>
157
- bool SetPropertyAtIndex (uint32_t idx, T t,
157
+ bool SetPropertyAtIndex (size_t idx, T t,
158
158
const ExecutionContext *exe_ctx = nullptr ) const {
159
159
if (const Property *property = GetPropertyAtIndex (idx, exe_ctx)) {
160
160
if (OptionValue *value = property->GetValue ().get ()) {
@@ -166,12 +166,12 @@ class OptionValueProperties
166
166
}
167
167
168
168
protected:
169
- Property *ProtectedGetPropertyAtIndex (uint32_t idx) {
169
+ Property *ProtectedGetPropertyAtIndex (size_t idx) {
170
170
assert (idx < m_properties.size () && " invalid property index" );
171
171
return ((idx < m_properties.size ()) ? &m_properties[idx] : nullptr );
172
172
}
173
173
174
- const Property *ProtectedGetPropertyAtIndex (uint32_t idx) const {
174
+ const Property *ProtectedGetPropertyAtIndex (size_t idx) const {
175
175
assert (idx < m_properties.size () && " invalid property index" );
176
176
return ((idx < m_properties.size ()) ? &m_properties[idx] : nullptr );
177
177
}
0 commit comments