Please go through if anyone has knowledge about Vera++ Or Static Analyser.
How can I implement complex C++ rules verification machine as a static analyzer? I want to implement complex rules like virtual function in base classes, identification of user defined variables like classes, structures etc. Variables scope like global, local, static etc. I understood Vera++ very well, Acc to My understanding it's doing only token parsing, Context of language needs to be implemented via scripts (and implemented context can be too complicated if language is like C++); because differentiating between a *b; (which could be a pointer b of class type a) OR a *b;(could simply be a multiplication between two in variables);
I even feels that implementation of complex rules may need some compiler like State Machines so that scripts can understand the context of language.
My question is just to ask:
Is my understanding correct in terms of Static Analyzer Rules implementation.
Can you Please guide me little bit how can i proceed for this task accomplishment.
Can these task be simplified by REGEXP of tcl.
Is there any specific design approach you can suggest for good implementation of Solid C++ Code Analyzer.