Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Codan develoepement, new checker

This is very abstract question. Are you asking how to write checker or how to program on Java?
For checker to know what to do you need exact description. In your example its pretty trivial, you can hook ast visitor on the constant/literal node (you have to know what AST is)
check if this is this is hex one then do some string manipulations to to determine if lowcases is used.

On Fri, Oct 11, 2019 at 8:30 AM Viktor Csoma <gusztav1906@xxxxxxxxx> wrote:
Thank you all for your  help. I managed to add a checker and a problem to org.eclipse.cdt.codan.checkers and launch an Eclipse where I could set whether I wanted to check for a certain syntax error or not. To do that I only copied the Naming Convention Function Checker to my own checker Java function (it threw two errors if both of them were enabled). My next step would be to implement some simple syntax checkers  e.g. if a hexadecimal is used in a given format (i.e lower case x, uppercase letters). Unfortunately I have never implemented such a thing in Java, therefore I would like to ask for a guide or any material that would help me understand the code or the methodology (even some keywords would do).
Thank you very much.
Best regards,

cdt-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top