Feature request to ignore compiler directove "$CREF "
Original Reporter info from Mantis: XDPascal
-
Reporter name: Paul Robinson xdpascal@xdpascal.com
Original Reporter info from Mantis: XDPascal
- Reporter name: Paul Robinson xdpascal@xdpascal.com
Description:
I am writing a cross-reference program that handles expanded Pascal (where UNITs are available) among other features of Object Pascal. Now, there have been cross reference programs for Pascal since the 1980s; even Nicklaus Wirth wrote one. But, they were all written for "monolithic" programs where one file was used or perhaps some include file, but the concept of the UNIT had not been thought of at the time. With programmers doing ever larger progams I think a cross-reference tool is something most programmers don't even know they need.
Remebering where variables. procedures and functions aredeclared, defined or used would be important. But more than that, one thing a cross-refernce tool can do is procedure (and unit) tracing, suh as
Procedure DF4
is defined on line 103
it is called by
procedurr ZagAT on line 201
function next on lines 714, 720
it calls
procedure Bee on line 116
function trill on lines 125, 128, 129
The same thing can be done for UNITs, listing a dependency tree; units it uses, units it is used by, etc. (At this point we cue in Annie Lennox "Sweet Dreams (Are Made Of This)": "Some of them want to use you, some of them want to get used by you.")
So to allow this to work seamlessly, I'd like someone submitting the source of their program to the cross-reference tool to be able to embed instruction to the cross-reference tool in the same manner as compiler directives/ Using a directive like {$CREF arguments} or ($cref Argumnts) they can pass parameters to the cross-reference tool. Now, I could use a separate configuration file except for simple uses one shouldn't have to write a separate file, since the cross-reference tool reads their program anyway, they should be able to just pass instructions in the source code. The only problem is Free Pascal throws a warning if it sees a compiler directive it doesn't recognize.
Therefore, I wold like to request that Free Pascal's compiler directives scanner be programmed to ignore a comment directive beginning with $cref (regardless of case, of course).
Thank you for your attention
Paul Robinson
Mantis conversion info:
- Mantis ID: 38304
- Build: n/a
- Monitored by: » @xhajt03 (Tomas Hajny)