Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » C/C++ staic analysis
C/C++ staic analysis [message #121392] Fri, 25 January 2008 02:24
Eclipse User
Originally posted by:

Hi All,

I am extending TPTP C/C++ static analysis to add my own rules for C. But
TPTP C/C++ static analysis work fine with C++, but don't work with C. The
problem was asked on the mailing list, refer html
and there it is told that CDT don't handle C++ and C in the same way. So I
tried a workaround for this. I am using rule filters in my rules like
ASTNodeTypeRuleFilter for the ASTNodeTypes - ICASTFunctionDefinition,
ICASTSimpleDeclaration, ICASTFunctionCallExpression. I found that these
filters do not work. I replaced the values of ICASTFunctionDefinition,
ICASTSimpleDeclaration, ICASTFunctionCallExpression with the values of
ICPPASTFunctionDefinition,ICPPASTSimpleDeclaration,ICPPASTFu nctionCallExpression.
After that the filters worked fine. I don't know the significance of the
values of these variables. Is it the right way to make the rules work for
Please guide.

Previous Topic:TPTP monitoring project API
Next Topic:Cant bring BIRT reports to work with TPTP profiler.
Goto Forum:

Current Time: Tue Jul 29 13:16:33 EDT 2014

Powered by FUDForum. Page generated in 0.02444 seconds