[lldb-mi] size_t rather than MIuint for arg counts.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
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 ↗ | (On Diff #29304) | the same here: (R) means 'readonly' variable. i.e. you will not plan to return anything through that variable. |
Comment Actions
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.