From: MacWilliam, Ian Sent: Wednesday, September 25, 2002 12:33 PM To: McIntosh, Paul Cc: tech-rosert-all Subject: [Solution #136,736,601]: WINDOWS: How to find unused inclusions in Rose RealTime generated source code Hi Paul, Not approved :-( See my last comment marked with IAM. (Nothing really serious, I'd just like to give it another read before it gets published :-) Cheers, Ian M. [Solution #136,736,601]: WINDOWS: How to find unused inclusions in Rose RealTime generated source code IAM - Does this not also apply to UNIX? IAM - The title is not a sentence :-( Defect ID: # Host: Intel x86 Windows IAM - I usually set "Client OS Versions" to "all supported versions". For Rose-RT IAM - Please add some "Product Versions" entries :-) Keywords: lint,header file IAM - You might want to add "include" and "inclusion", or not. Solution: QUESTION: Is there any tool with the ability to find unused inclusions in the Rational Rose RealTime generated C++ source code? IAM - Does this not also apply to generated C code? I suggest you just leave out the "C++" part. ANSWER: "Lint" can be used, which reports, among a lot of other information, unused types and header files etc. IAM - an alternate wording... '"Lint" can be used to detect unused types and header files, as well as many other types of information.' Flexelint is the commercial version that has been used by customers http://www.gimpel.com/html/lintchks.htm) but it should be possible to find a free version that is able to do this as well. IAM - Should Rational Software be "endorsing" a particular product? You could simply state that there are commercial and open source versions available. With a bit of creativity you can set up a Target Configuration using this, that either uses lint instead of a compiler, or uses lint _and_ a compiler. IAM - :-) I hear the phone ringing now :-) It would add to the utility of this solution if you gave some guidance on this topic, i.e. lint flags to filter out all but the desired information and how to configure an example TargetRTS to use lint only and lint and a compiler. IAM - Question: Once the user identifies that unused inclusions, what do they then do? Do search their class diagrams for the extraneous dependencies and remove them. So I guess what I am asking is where does the information in this solution fit in the bigger picture? Rational Customer Service Policies and Information: http://www.rational.com/support/info.jsp