I suggest you ...

enhancement for error 1762 "Member function could be made const"

The message:
Pages.cpp(206): error 1762: (Info -- Member function 'xxx:yyy(void)' could be made const)

could be enhanced to make it easier to type in "const" in both the source and header files:
1. The line number reference should the first line the function and not the function's closing brace
2. add a "error 830: (Info -- Location cited in prior message)" line that references the function's declaration in the header file

7 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    bryanbryan shared this idea  ·   ·  Admin →
    completed  ·  Robert GambleAdminRobert Gamble (Software Engineer, Gimpel Software) responded  · 

    The first part of this request (more useful location for the diagnostic) has been implemented for the upcoming PC-lint Plus. We are declining to implement the second part of the request (adding a supplemental message containing the location of the declaration) but may reconsider if the this is made into a separate suggestion.

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base