https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94433
Bug ID: 94433 Summary: enhancement: 12 * constify some parameters Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- >From today's run of cppcheck over the gcc trunk source code: $ fgrep /analyzer/ cppcheck.20200401.out | fgrep constParameter trunk.git/gcc/analyzer/diagnostic-manager.cc:289:49: style: Parameter 'v' can be declared with const [constParameter] trunk.git/gcc/analyzer/diagnostic-manager.cc:293:50: style: Parameter 'k1' can be declared with const [constParameter] trunk.git/gcc/analyzer/diagnostic-manager.cc:293:70: style: Parameter 'k2' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:414:49: style: Parameter 'k' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:420:50: style: Parameter 'k1' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:420:70: style: Parameter 'k2' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:484:49: style: Parameter 'k' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:490:50: style: Parameter 'k1' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:490:70: style: Parameter 'k2' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:551:49: style: Parameter 'k' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:557:50: style: Parameter 'k1' can be declared with const [constParameter] trunk.git/gcc/analyzer/exploded-graph.h:557:70: style: Parameter 'k2' can be declared with const [constParameter] Might be worth tidying up.