FPDOC Code Analyzer fails on PLATFORM and EXPERIMENTAL hint directives
Original Reporter info from Mantis: dsiders @dsiders
-
Reporter name: Don Siders
Original Reporter info from Mantis: dsiders @dsiders
- Reporter name: Don Siders
Description:
The FPDOC code analyzer skips a unit when it encounters the PLATFORM or EXPERIMENTAL hint directive. The offending unit in this example is components/lazcontrols/extendedtsabcontrols.pas in the Lazarus project.
$ fpdoc.exe --project=lazcontrols-chm-project.xml --dry-run --verbose
FPDoc - Free Pascal Documentation Tool
Version 3.2.0 [2020/07/07]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, sg@freepascal.org
(c) 2005 - 2012 various FPC contributors
Info: Opening source file "../checkboxthemed.pas".
Info: Opening source file "../dividerbevel.pas".
Info: Opening source file "../extendednotebook.pas".
Info: Opening source file "../extendedtabcontrols.pas".
Error: ../extendedtabcontrols.pas(244,114): Expected "," or ":" at token ";" in file ../extendedtabcontrols.pas at line 244 column 114
Ignoring error, continuing with next unit (if any).
Info: Opening source file "../listfilteredit.pas".
Info: Opening source file "../listviewfilteredit.pas".
Info: Opening source file "../lvlgraphctrl.pas".
Info: Opening source file "../shortpathedit.pas".
Info: Opening source file "../spinex.pp".
Info: Opening source file "../treefilteredit.pas".
Done.
The offending line(s) in the unit contain:
property ActivePage: TExtendedTabSheet read GetActiveTabSheet write SetActiveTabSheet; experimental; platform;
property Pages[Index: Integer]: TExtendedTabSheet read GetTabSheet; experimental; platform;
While this seems to be a problem in fcl-passrc, it is being reported in the context in which it was discovered.
Additional information:
This was tested with FPDoc from both FPC 3.0.4 (Lazarus 2.08) and FPC 3.2.0 (Lazarus 2.0.10). I do not have a trunk compiler installed to test a newer revision of the tool.
Mantis conversion info:
- Mantis ID: 37629
- OS: Windows
- OS Build: 8.1
- Platform: Windows x86-64
- Version: 3.0.4