[lldb-mi] size_t rather than MIuint for arg counts.
Details
Diff Detail
Event Timeline
I don't think other code within LLDB really uses const scalar parameters and they don't provide much protection against anything. (They don't do anything for the caller and they only provide a minor restriction for the callee.)
Some const were removed in the MIuint to size_t patch as well, but if we decide to keep this, I can sort through and add them back.
The value of these const annotations isn't clear though.
tools/lldb-mi/MICmdArgContext.cpp | ||
---|---|---|
146 | the same here: (R) means 'readonly' variable. i.e. you will not plan to return anything through that variable. |
Ok. I agree about const for scalar and any other types in arguments: we shouldn't use const for variables that are passed by value.
Fix one inline comment and go ahead.
nArgIndex is _const_ size_t