Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » C/C++ staic analysis
C/C++ staic analysis [message #121392] Fri, 25 January 2008 07:24
Eclipse UserFriend
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: Thu Jun 21 04:48:34 GMT 2018

Powered by FUDForum. Page generated in 0.01660 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top