lazarus/components/codetools/examples
mattias ced548bb66 codetools: added example FindReferences
git-svn-id: trunk@63087 -
2020-04-27 21:11:52 +00:00
..
scanexamples codetools: added example FindReferences 2020-04-27 21:08:35 +00:00
addclass.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
addclass.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
addeventmethod.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
addeventmethod.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
addfpprofcalls.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
addfpprofcalls.lpr CodeTools example AddFpprofCalls: show help if no filename is given. Fix memory leak. 2017-11-03 21:37:35 +00:00
addmethod.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
addmethod.lpr codetools: examples: fixed fixfilenames 2017-11-03 23:04:28 +00:00
addmethodassign.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
addmethodassign.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
addwith.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
addwith.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
autoindent.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
autoindent.pas Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
codecompletion.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
codecompletion.lpr codetools: fixed example 2017-11-03 22:16:07 +00:00
completeabstractmethods.lpi codetools: fixed example 2017-11-03 22:17:02 +00:00
completeabstractmethods.lpr codetools: fixed example 2017-11-03 22:17:02 +00:00
completeblock.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
completeblock.pas codetools: examples: fixed completeblock 2017-11-03 22:28:27 +00:00
convert_glib3.sh
finddeclaration.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
finddeclaration.lpr codetools: examples: fixed finddeclaration 2017-11-03 22:38:40 +00:00
findreferences.lpi codetools: added example FindReferences 2020-04-27 21:08:35 +00:00
findreferences.lpr codetools: added example FindReferences 2020-04-27 21:11:52 +00:00
findunusedunits.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
findunusedunits.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
findusedunitreferences.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
findusedunitreferences.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
fixdefinitionorder.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
fixdefinitionorder.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
fixfilenames.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
fixfilenames.pas Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
fixh2pasdirectives.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
fixh2pasdirectives.lpr codetools: examples: comments 2017-11-04 14:43:37 +00:00
getcontext.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
getcontext.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
getexpandedoperand.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
getexpandedoperand.pas codetools: examples: fixed getexpandedoperand 2017-11-04 07:53:54 +00:00
h2pastest.lpi Codetools example h2pastest: Remove a non-existent file from project. 2017-11-03 23:54:47 +00:00
h2pastest.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
identifiercompletion.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
identifiercompletion.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
initvariable.lpr codetools: added InsertStatements 2015-02-16 21:52:05 +00:00
listinterfaceclasses.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
listinterfaceclasses.pas Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
methodjumping.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
methodjumping.pas codetools: examples fixed addmethod 2017-11-04 07:39:58 +00:00
parsefpcmsg.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
parsefpcmsg.pas general: Updated address of the Free Software Foundation in copyright messages 2017-01-29 21:04:32 +00:00
ppudependencies.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
ppudependencies.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
proctomethod.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
proctomethod.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
README.txt
reduceifdefs.lpi Codetools example ReduceIfdefs: Add a sample file to the project. 2017-11-03 23:54:52 +00:00
reduceifdefs.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
removeemptymethods.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
removeemptymethods.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
removewith.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
removewith.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
replaceresourcedirectives.lpi Codetools example ReplaceResourceDirectives: Add a sample file to the project. Fix comment. 2017-11-03 23:54:54 +00:00
replaceresourcedirectives.lpr Codetools example ReplaceResourceDirectives: Add a sample file to the project. Fix comment. 2017-11-03 23:54:54 +00:00
retypepublishedvars.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
retypepublishedvars.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
runcfgscript.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
runcfgscript.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
scanfpcerrormsgfiles.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
scanfpcerrormsgfiles.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
setincludepath.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
setincludepath.pas general: Updated address of the Free Software Foundation in copyright messages 2017-01-29 21:04:32 +00:00
sourcecloser.lpi codetools: fixed node start class sections 2019-05-03 08:54:34 +00:00
sourcecloser.lpr codetools: sourcecloser: fixed cleaning up unit begin block 2019-09-13 19:23:20 +00:00
testexpreval.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
testexpreval.pas general: Updated address of the Free Software Foundation in copyright messages 2017-01-29 21:04:32 +00:00
testfpcsrcunitrules.lpi codetools: scan fpc units: store fpm sources separate 2019-01-02 17:02:02 +00:00
testfpcsrcunitrules.lpr codetools: scan fpc units: store fpm sources separate 2019-01-02 17:02:02 +00:00
TestNewXMLCfg.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
TestNewXMLCfg.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
testunitdirectives.lpi Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
testunitdirectives.lpr Codetools: add deprecated notes to function wrappers. Fix compilation in example projects, packages, StartLazarus and LazBuild. 2015-07-07 15:35:28 +00:00
unitdicttest.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
unitdicttest.lpr codetools: renamed TFPCConfigFileStateList TPCConfigFileStateList, TFPCTargetConfigCache TPCTargetConfigCache 2017-12-18 17:03:02 +00:00
usedbyunits.lpi Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00:00
usedbyunits.lpr Fix compilation of Codetools examples and wiki test project. Clean uses sections. 2017-04-07 19:02:11 +00: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