lazarus/components/codetools/examples
2024-04-17 13:29:00 +02:00
..
scanexamples codetools: added example FindReferences 2020-04-27 21:08:35 +00:00
.gitignore codetools: fixed compile 2023-07-26 09:12:53 +01:00
addclass.lpi
addclass.lpr
addeventmethod.lpi
addeventmethod.lpr
addfpprofcalls.lpi
addfpprofcalls.lpr Fix missing Raise before Exception.Create. Issue ##40860. Patch by n7800. 2024-04-17 13:29:00 +02:00
addmethod.lpi
addmethod.lpr
addmethodassign.lpi
addmethodassign.lpr Remove unit Laz_AVL_Tree, a copy of unit AVL_Tree. Not needed with FPC 3.2.x. 2023-07-07 17:39:03 +03:00
addwith.lpi
addwith.lpr
autoindent.lpi
autoindent.pas
codecompletion.lpi
codecompletion.lpr
completeabstractmethods.lpi
completeabstractmethods.lpr
completeblock.lpi
completeblock.pas
convert_glib3.sh
finddeclaration.lpi
finddeclaration.lpr
findreferences.lpi codetools: added example FindReferences 2020-04-27 21:08:35 +00:00
findreferences.lpr Remove unit Laz_AVL_Tree, a copy of unit AVL_Tree. Not needed with FPC 3.2.x. 2023-07-07 17:39:03 +03:00
findunusedunits.lpi
findunusedunits.lpr
findusedunitreferences.lpi
findusedunitreferences.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr
getcontext.lpi
getcontext.lpr
getexpandedoperand.lpi
getexpandedoperand.pas
h2pastest.lpi
h2pastest.lpr
identifiercompletion.lpi
identifiercompletion.lpr
initvariable.lpr
listinterfaceclasses.lpi
listinterfaceclasses.pas
methodjumping.lpi
methodjumping.pas
parsefpcmsg.lpi
parsefpcmsg.pas
ppudependencies.lpi
ppudependencies.lpr
proctomethod.lpi
proctomethod.lpr
README.txt
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi
removeemptymethods.lpr
removewith.lpi
removewith.lpr
replaceresourcedirectives.lpi
replaceresourcedirectives.lpr
retypepublishedvars.lpi
retypepublishedvars.lpr
runcfgscript.lpi
runcfgscript.lpr
scanfpcerrormsgfiles.lpi
scanfpcerrormsgfiles.lpr
setincludepath.lpi
setincludepath.pas
sourcecloser.lpi codetools: fixed node start class sections 2019-05-03 08:54:34 +00:00
sourcecloser.lpr Turn some LazLogger into LazLoggerBase. 2024-04-06 16:45:28 +03:00
testexpreval.lpi
testexpreval.pas
testfpcsrcunitrules.lpi codetools: scan fpc units: store fpm sources separate 2019-01-02 17:02:02 +00:00
testfpcsrcunitrules.lpr Turn some LazLogger into LazLoggerBase. 2024-04-06 16:45:28 +03:00
TestNewXMLCfg.lpi
TestNewXMLCfg.lpr
testunitdirectives.lpi
testunitdirectives.lpr
unitdicttest.lpi
unitdicttest.lpr Remove unit Laz_AVL_Tree, a copy of unit AVL_Tree. Not needed with FPC 3.2.x. 2023-07-07 17:39:03 +03:00
usedbyunits.lpi
usedbyunits.lpr Remove unit Laz_AVL_Tree, a copy of unit AVL_Tree. Not needed with FPC 3.2.x. 2023-07-07 17:39:03 +03:00

Examples for the CodeTools

Some basic examples run out of the box.
Some examples require the path of the FPC sources, which can be given via the
environment variable FPCDIR.
If you see an error message like this:

Scanning FPC sources may take a while ...
TDefinePool.CreateFPCSrcTemplate FPCSrcDir does not exist: ...

Then you must set the FPCDIR variable and start the example again. For example:
Under linux:
  export FPCDIR=/home/username/freepascal/fpc

For instance the FPC 2.4.2 source directory contains the following files:
  compiler
  ide
  installer
  Makefile
  Makefile.fpc
  packages
  rtl
  tests
  utils

See here for more information:
http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources

The examples will scan the directories and store the result in a file named
'codetools.config'. So the next time you start any of the examples it does
not need to scan.

List of environment variables:
FPCDIR       = path to FPC source directory
PP           = path of the Free Pascal compiler. For example /usr/bin/ppc386.
LAZARUSDIR   = path of the lazarus sources
FPCTARGET    = FPC target OS like linux, win32, darwin
FPCTARGETCPU = FPC target cpu like i386, x86_64, arm