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: Swapna.Pawar.kpitcummins.com

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
http://dev.eclipse.org/newslists/news.eclipse.tptp/msg03699. 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
C?
Please guide.

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


Current Time: Fri Apr 26 13:34:25 GMT 2024

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

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

Back to the top