Jump to content
Registration disabled at the moment Read more... ×
Sign in to follow this  
uligerhardt

UsesCleaner: Retain comments in uses clause?

Recommended Posts

Hi all,

 

I recently started using UsesCleaner and mostly love it. One mildly annoying aspect is that it removes comments after units in the uses clause. I often have clauses like

uses
  Unit1, // PALOFF - to suppress false positives from Pascal Analyzer 
  Unit2, // used because of some obscure reason
  Unit3; // TODO remove when ...

and have to reinstate all the comments after using UsesCleaner. Is there a way to make UsesCleaner leave the comments in place?

Share this post


Link to post

Unfortunately that is by design as comments in uses clauses are considered not clean.

 

Background: It is pretty hard to connect the comment to one of the used units - there is too much convention involved with this. Also, line end comments don't play well with grouping and line wrapping.

 

There are non plans to change this any time soon.

Share this post


Link to post
28 minutes ago, Uwe Raabe said:

Unfortunately that is by design as comments in uses clauses are considered not clean.

 

Background: It is pretty hard to connect the comment to one of the used units - there is too much convention involved with this. Also, line end comments don't play well with grouping and line wrapping.

 

There are non plans to change this any time soon.

Thanks for the info, Uwe - I already suspected this. Fortunately, it's not a big problem. 

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
×