Jump to content

Uwe Raabe

Members
  • Content Count

    2556
  • Joined

  • Last visited

  • Days Won

    149

Posts posted by Uwe Raabe


  1. 11 minutes ago, Attila Kovacs said:

    Each unit name belongs to a new line, with groups separated by an empty line.

    As that is a very personal preference, a similar feature is implemented on personal request in UsesCleaner branch FlixEngineering. It is available in the public repository for all those having individual formatting requests.

     

    Note that MMX will most likely not contain these for the near future.


  2. Better remove the trailing dots in Frame and Form. Plain group names get that automatically appended when looking for a match.

     

    F.i. a simple entry like Form matches unit names Form, Form.Tools and Form.Test, but not FormTest.

     

    Assuming that the x stands for the obfuscated parts in your screenshot, I get the following results with this Groups: 

    Winapi
    System.Win
    System
    Vcl
    Data
    FireDAC
    cx
    DM
    x
    x.Tools
    Frame
    Form
    uses
      System.Classes, System.SysUtils, System.Variants, System.Generics.Collections, System.Generics.Defaults, System.DateUtils,
      System.Math, System.StrUtils,
      Vcl.Imaging.pngimage,
      Data.DB,
      FireDAC.Stan.Param, FireDAC.Stan.Option, FireDAC.Comp.Client, FireDAC.Comp.Script,
      x.Classes.Common, x.Classes.Base, x.Classes.Data, x.Constants, x.Types, x.Database.Common, x.Preferences,
      x.Tools.Mapping, x.Tools.DateTime, x.Tools.TryFinally, x.Tools.Json, x.Tools.Regex, x.Tools.IO, x.Tools.BitMask,
      DataModuleTextConstants;

     


  3. Brackets denote a list of unit names forming a group. I use it f.i. for keeping the ToolsApi units together: (ToolsApi,DesignIntf,DCCStrs,DockForm,TabDock)

     

    The example shows a glitch in the TMS unit naming: Adv* followed by (BaseGrid) keeps the TMS Grids unit together.

     

    The other example (ZipForge) is used when a group consists of a single unit name only. Omitting the brackets would take it as a unit scope name instead.

     

     

    • Thanks 1

  4. 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.


  5. With Delphi 12 the Index type of TList as well as Count has changed from Integer to NativeInt. While this has no effect in 32 bit, with 64 bit it definitely has.

     

    Check all descendants of TList if there are any declarations of properties (f.i. Items) or methods with Index type Integer which act as overloads for the base declarations. Then change these Integer types to NativeInt.

    • Thanks 1
×