Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Lifecycle Solutions (steve huntington)
Decrease font size
Increase font size
Topic Title: Writing new rule in C++ rulecheck
Topic Summary:
Created On: 16-Dec-2005 06:21
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 16-Dec-2005 06:21
User is offline View Users Profile Print this message


Yoon Chang-Ki

Posts: 1
Joined: 23-Oct-2003

Is it possible to write a rule for layout such as indent or comment in C++ rule checker?
Report this to a Moderator Report this to a Moderator
 24-Mar-2006 16:47
User is offline View Users Profile Print this message


Ian Barnard

Posts: 91
Joined: 4-Jul-2002

Assuming you are using 6.1.x, yes. Read the information under Start->Programs->Telelogic->TAU Logiscope 6.1->Documentation->Scriptable Rules Metrics and Contexts. I suggest you start from one of the examples and get it working then extend it incrementally to do what you want.

However in my experience using rule checking to enforce code layout isn't very popular with developers unless you also give them access to automatic layout using a pretty-printer or code beautifier. It's also a lot cheaper to let a pretty-printer automatically do the tedious work compared to expecting your expensive developers to manually make sure every tab is in the right place.

I've not tried it, but there is another way of defining rules is described in the 'Studio' pdf help file, in Appendix B.

HTH
Ian

-------------------------
=============
Ian Barnard
Principal Consultant
Telelogic UK, an IBM company


Edited: 24-Mar-2006 at 16:56 by Ian Barnard
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Lifecycle Solutions forum.
There are currently 2 users logged in.
The most users ever online was 14 on 29-Jul-2008 at 13:55.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.