Click here to Skip to main content
Licence CPOL
First Posted 7 Apr 2009
Views 11,921
Bookmarked 5 times

PC-Lint 101: What does "Location cited in prior message" mean?

If you are new to PC-Lint, you may have wondered what message 830 ("Location cited in prior message") means, and - given that such messages can add greatly to the overall issue count in your file or project - what (if any) use are they?Quite simply, message 830 identifies a location in the codebase

[Note: this article was automatically created from a blog feed. The original post can be found at http://www.riverblade.co.uk/blog.php?archive=2009_01_01_archive.xml#4365550481929190480].

If you are new to PC-Lint, you may have wondered what message 830 ("Location cited in prior message") means, and - given that such messages can add greatly to the overall issue count in your file or project - what (if any) use are they?

Quite simply, message 830 identifies a location in the codebase which relates to the preceding message (or issue, in Visual Lint terminology).

For example, if you analyse the code shown below (lines with lint issues are highlighted in yellow):


the analysis results you will see are likely to look something like this (note the four occurances of message 830, each following another message):


If you examine the contents of the lines referenced in the 830 messages, you will find that they are where the functions referred to in the "Ignoring return value of function" messages are defined:


The beauty of this within the development environment is of course that by double clicking on the "Location cited in prior message" issue, you will be taken directly to the definition of the function concerned, so you can easily view its definition and (in this context) see what it returns.

Incidentally, there is a similar message - 831 ("Reference cited in prior message") - which identifies other supporting information for a message. It works in exactly the same way as 830.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Anna-Jayne Metcalfe

Founder
Riverblade Limited
United Kingdom United Kingdom

Member

Follow on Twitter Follow on Twitter
I haven't always written software for a living. When I graduated from Surrey University in 1989, it was with an Electronic Engineering degree, but unfortunately that never really gave me the opportunity to do anything particularly interesting (with the possible exception of designing Darth Vader's Codpiece * for the UK Army in 1990 - but that's another story...).
    * Also known as the Standard Army Bootswitch
Since the opportunity arose to lead a software team developing C++ software for Avionic Test Systems in 1996, I've not looked back. More recently I've been involved in the development of subsea acoustic navigation systems (with Sonardyne International Ltd), and I'm now working as a freelance software consultant for Riverblade Limited.
 
One of my personal interests is add-in development. The Resource ID Organiser Add-In for Visual C++ was my first attempt at an add-in, and I'm currently working on Visual Lint, an add-in which closely integrates the PC-Lint code analysis tool with Visual Studio .NET. Cool | :cool:
 
I love lots of things, but particularly music, anything historical (especially if it gives me the opportunity to have a bit of sword practice!), reading, chatting and being with friends. I despise ignorant, intolerant and obstructive people - and it shows...I can be a bolshy cow if you wind me up the wrong way...:laugh
 
I'm currently based 15 minutes walk from the beach in Bournemouth on the south coast of England. Since I moved here I've grown to love the place - even if it is full of grockles in Summer!

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralSome stuff missing PinmvpHans Dietrich6:54 7 Apr '09  
GeneralRe: Some stuff missing PinmemberAnna-Jayne Metcalfe6:58 7 Apr '09  
GeneralRe: Some stuff missing PinmemberAnna-Jayne Metcalfe7:13 7 Apr '09  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120210.1 | Last Updated 8 Jun 2009
Article Copyright 2009 by Anna-Jayne Metcalfe
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid