Cevelop / cevelop

The C++ IDE for professional developers
Eclipse Public License 2.0
5 stars 0 forks source link

Constificator: Add option to disable suggestions for top-level const on non-reference-type function parameters #8

Open fmorgner opened 6 years ago

fmorgner commented 6 years ago

Expected Behavior

Currently, constification of function parameters can either be deactivated completely, or Constificator suggest top-level const-qualification for non-reference-type parameters where applicable. This means that Constificator would suggest adding const to par in the following snippet:

void func(int par) { }

This qualification would have no meaning for callers of func, and is thus somewhat superfluous.

Actual Behavior

Provide an option to selectively deactivate constification for the top-level of non-reference-type parameters.

Cevelop Version, Operating System and Compiler

OS - All, Cevelop Version - All, Compiler - N/A, Constificator - 1.8.0.201708202237