https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125684
Bug ID: 125684
Summary: cppcheck: 7 * tighten up internal interfaces
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Today's run of static analyser cppcheck produced:
gcc $ grep constParameterPointer cppcheck.20260609.out | grep /libstdc
trunk/libstdc++-v3/libsupc++/eh_personality.cc:322:41: style: Parameter 'info'
can be declared as pointer to const [constParameterPointer]
trunk/libstdc++-v3/libsupc++/eh_personality.cc:205:41: style: Parameter 'info'
can be declared as pointer to const [constParameterPointer]
trunk/libstdc++-v3/src/c++11/cow-stdexcept.cc:338:28: style: Parameter 'that'
can be declared as pointer to const [constParameterPointer]
trunk/libstdc++-v3/src/c++11/random.cc:256:10: style: Parameter 'file' can be
declared as pointer to const [constParameterPointer]
trunk/libstdc++-v3/src/c++11/random.cc:200:20: style: Parameter 'p' can be
declared as pointer to const [constParameterPointer]
trunk/libstdc++-v3/src/c++17/fs_path.cc:271:31: style: Parameter 'p' can be
declared as pointer to const [constParameterPointer]
trunk/libstdc++-v3/src/c++23/print.cc:325:29: style: Parameter 'term' can be
declared as pointer
gcc $
Might be worth fixing.