It seems (in principle) feasible for a utility to scan some function
or method and detect that in fact some non-const
parameters can't be modified. In that case it could suggest that that
parameter be made const. Similarly for const methods,
I guess.
Anybody written such a utility, or thought about it and decided not to
for some reason?
thanks for the nice words. i did it as plugin, because i was
learning what libclang can do. i'm gonna give another try next year...
with the new release... and maybe as a standalone tool with rewrite as
you suggested... but for that, i will need to learn more before.
thanks for the nice words. i did it as plugin, because i was
learning what libclang can do. i'm gonna give another try next year...
with the new release... and maybe as a standalone tool with rewrite as
you suggested... but for that, i will need to learn more before.
Looking forward to it I know a few people who would be very interested
in such a tool...