public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/94433] New: enhancement: 12 * constify some parameters
@ 2020-04-01  8:51 dcb314 at hotmail dot com
  2020-09-28 20:21 ` [Bug analyzer/94433] " dmalcolm at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2020-04-01  8:51 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-09-29 14:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01  8:51 [Bug analyzer/94433] New: enhancement: 12 * constify some parameters dcb314 at hotmail dot com
2020-09-28 20:21 ` [Bug analyzer/94433] " dmalcolm at gcc dot gnu.org
2020-09-28 20:30 ` dcb314 at hotmail dot com
2020-09-28 20:42 ` dmalcolm at gcc dot gnu.org
2020-09-29  0:02 ` dmalcolm at gcc dot gnu.org
2020-09-29  6:47 ` dcb314 at hotmail dot com
2020-09-29 14:32 ` dmalcolm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).