[fpc-devel] fpdoc fails to get full declaration of constants
Michael Van Canneyt
michael at freepascal.org
Wed Aug 4 09:48:02 CEST 2010
On Wed, 4 Aug 2010, Graeme Geldenhuys wrote:
>
>
> Running fpdoc over fpGUI code, the Linear Output Writer (LaTeX and new IPF
> output) for constants do not contain the full declaration.
>
> The problem is detected inside the TLinearWriter.WriteConsts() method.
> Debugging the fpdoc code inside WriteConsts(), it retrieves the declaration
> as shown in the debug tooltip (screeenshot attached).
>
> fpdoc (linear writer descendant):
>
> clAliceBlue =
>
>
> The actual code (inside an include file) is:
>
> clAliceBlue = TfpgColor($f0f8ff);
>
>
> The problem seems to be localised to the Linear Output descendants. I
> double checked with the fpdoc HTML output, and the clAliceBlue declaration
> is full and correct.
>
>
> I'm using FPC 2.5.1 Trunk (updated yesterday). Is this down to a
> fcl-passrc parser bug, or a fpdoc processing bug. I believe the latter is
> true because otherwise the HTML Writer output would also have been wrong.
The bug is due to a fcl-passrc bug in pastree: each element should be able to output itself.
The HTML code does not use this feature, but the linear output engine does.
Michael.
More information about the fpc-devel
mailing list