Menu

constParameter id is not listed in the --errorlist output

2022-02-10
2022-02-13
  • david ingamells

    david ingamells - 2022-02-10

    Hi,
    While using CPPCheck v 2.6 I have discovered that the error type constParameter
    that is generated during a run:

            <error cwe="398" 
                file0="..." 
                id="constParameter" 
                msg="Parameter '_a' can be declared with const"
                severity="style" 
                verbose="Parameter '_a' can be declared with const">
                <location 
                    column="77" 
                    file="..." 
                    info="Parameter '_a' can be declared with const" 
                    line="94"/>
            </error>
    

    Is not listed in cppcheck's errorlist, i.e.

    $>  cppcheck --errorlist | grep constParam
    $>
    

    I use the errorlist to categorise all the types into our own severity levels, so it is inconvenient that it is not complete.
    Could this be rectified please?

     

    Last edit: david ingamells 2022-02-10

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.