Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Antw: Codan - Adding a simple checker to codan, how to use markers

Hello Claudio,
the default text of the error description in the problems view is defined in the plugin.xml.
                 messagePatter="MyDescription &apos;&apos;{1}&apos;&apos;"
In Additon you can use place holders like  ''{n}''   to display the arguments passed by the method  reportProblem().
n is the index of the argument you'd like to display, starting with 1.
For Example:
messagePattern = "One, Two,  &apos;&apos;{1}&apos;&apos;"
method call = reportProblem(ID, ProblemLocation, "Three");
You will see the following text in the problems view description:     One, Two, Three
Hope this will help you.
>>> bianco_ <livingmox@xxxxxxxxx> 10/13/2011 1:46 >>>

I'm trying to add some checkers to codan, to understand how it works i
started trying to modify the that i found in the example
plugin at the end of this page
But I don't understand really well how the function reportProblem() works,
and how to change the message that appears on the marker corresponding to
the "gets" function calls. I've checked the codan source code but I'm really
having some difficulties...Someone knows where can I find some
exaplanations?Or maybe could you give me a few hints/suggestions? It would
be really appreciated, I really need some help

Thanks a lot for reading,

View this message in context:
Sent from the Eclipse CDT - Development mailing list archive at

cdt-dev mailing list


This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.

Diese Nachricht (einschliesslich aller Anlagen) enthaelt vertrauliche Informationen, die für einen bestimmten Empfaenger und Zweck beabsichtigt und gesetzlich geschuetzt sind. Bitte loeschen Sie diese Nachricht, falls Sie nicht der beabsichtigte Empfaenger sein sollten. Die Veroeffentlichung, Vervielfaeltigung oder Verteilung dieser Nachricht sowie die Vornahme von Handlungen aufgrund dieser Nachricht ist strengstens untersagt

Back to the top