Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Hi Noel,

I see you work with clang plugins nowadays. I've got an idea for a
next plugin. I think it would be a good idea to constify things in the
source code, which could improve its readability.
For example member functions which use data members read-only / calls
only const methods / change only mutable data members should have the
const qualifier. I guess it's implementation is something similar to
loplugin::staticmethods.
Similar check can be implemented for parameters, which are not changed
in the function and also for local objects used on read-only way in
the scope.

What do you think?

Thanks,
Tamás

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.