Menu ▾ ▴

#161 Code formatter does not indent multiline function directives

Closed
closed-fixed
formatter (32)
5
2025-05-03
2019-11-24
No
function RegisterClipboardFormatW(lpszFormat: PWideChar): UINT; stdcall;
  external user32 Name 'RegisterClipboardFormatW';

gets incorrectly formatted as

function RegisterClipboardFormatW(lpszFormat: PWideChar): UINT; stdcall;
external user32 Name 'RegisterClipboardFormatW';

The second line should be indented.

And test

function RegisterClipboardFormatW(lpszFormat: PWideChar): UINT;
  stdcall;
  external user32
  Name 'RegisterClipboardFormatW';

too.

Discussion

  • Thomas Mueller

    Thomas Mueller - 2025-04-06
     
  • Thomas Mueller

    Thomas Mueller - 2025-04-06

    Partial fix for the special case of the 'forward' directive in revision #4505

     
  • Thomas Mueller

    Thomas Mueller - 2025-05-03
    • status: open --> closed-fixed
    • assigned_to: Thomas Mueller
    • Group: New --> Closed
     
  • Thomas Mueller

    Thomas Mueller - 2025-05-03

    fixed in revision #4536 by pushing 'external' on the stack until the following semicolon.

     

Log in to post a comment.