Repository navigation
1.0.6.6 — inline-var / multi-decl / exponent / reference-to-function fixes + --d10 downgrade completed
Robustness release. Four real formatting defects were found by dogfooding YADF on two large production codebases (a ~530-unit VCL client and a ~450-unit Win64 service) and fixed; both projects format and compile cleanly afterward. The --d10 (Delphi 10.2.3 compatibility) downgrade is also completed so its output actually compiles on 10.2.3. Regression net grown to 73 golden files; all green and idempotent.
Fixed
- Inline
varstatements with multiple names keep theirvar. Avar A, B: T;statement (Delphi inline variables) was split into two lines and the second lost itsvarkeyword, producing uncompilable code. Such statements are now left intact. - A one-line declaration with a second clause no longer duplicates it. A line packing two declarations —
Cols, SelList: string; Q: TQuery;— ran the type to the final;, so splitting the name list duplicatedQ: TQueryonto every line (a redeclared-identifier error). Such lines are now left intact. - Scientific-notation real literals are no longer corrupted.
0.10000E-2,5E-16,1E+300were getting spaces inserted around the exponent sign (0.10000E - 2), an invalid real number (E2053). The exponent sign now stays attached. Hex subtraction ($5E - 16) is correctly left spaced. reference to function/reference to proceduretypes no longer dedent the declarations that follow them. An anonymous-method-reference type (optionally with astdcall/cdecldirective) was mistaken for a procedure declaration and pushed the rest of thetypeblock to column 0.--d10now emits code that actually compiles on Delphi 10.2.3. Untypedfor var i := ...loops are downgraded and inlineconstdeclarations are hoisted to aconstsection; cases that cannot be safely downgraded (non-inferablefor..in, consts inside anonymous methods) are flagged with a// TODO -oYADFmarker instead of being silently emitted as 10.3+-only code.
Internal
- Bare
#13/#10character literals routed through namedCR/LFconstants (output byte-identical).
Download: YADF-1.0.6.6.zip contains YADF.exe (formatter CLI, Win64), YADFSetup.exe (settings editor), YADFOT.bpl (IDE wizard), plus CHANGELOG.md, LICENSE, and README.md.