Cevelop/cevelop

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

Opened this issue · 0 comments

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