lazarus/components/codetools/examples
mattias 8c47e403f7 codetools: example to parse fpc msg files
git-svn-id: trunk@35142 -
2012-02-05 08:58:57 +00:00
..
scanexamples codetools: do not parse public after class member variable, bug #20713 2011-11-23 23:18:35 +00:00
testscompleteblock Codetools: remove obsolete FABBlockTypeNames, use WriteStr 2011-11-02 23:17:24 +00:00
addclass.lpi
addclass.lpr
addeventmethod.lpi codetools: added TCustomCodeTool.CodePosToCleanPos 2010-07-28 16:54:57 +00:00
addeventmethod.lpr codetools: CompleteLocalVariableAsParameter: trim space of type 2011-03-19 13:51:37 +00:00
addmethod.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
addmethod.lpr
addmethodassign.lpi codetools: started FindAssignMethod 2011-04-27 17:51:15 +00:00
addmethodassign.lpr cody: added dialog to add a Assign method 2011-05-01 19:24:09 +00:00
addwith.lpi codetools: started add with block 2011-09-07 21:03:52 +00:00
addwith.lpr codetools: AddWithBlock 2011-09-09 22:32:47 +00:00
autoindent.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
autoindent.pas
changeparamlist.lpi codetools: added cache to FindReferences 2011-05-04 13:40:35 +00:00
changeparamlist.lpr codetools: added cache to FindReferences 2011-05-04 13:40:35 +00:00
codecompletion.lpi
codecompletion.lpr
completeabstractmethods.lpi
completeabstractmethods.lpr
completeblock.lpi code tools examples: fixed compilation after r26515 #c0682eae27. 2010-10-22 12:44:54 +00:00
completeblock.pas code tools examples: fixed compilation after r26515 #c0682eae27. 2010-10-22 12:44:54 +00:00
convert_glib3.sh codetools: replace macro functions with simple values 2011-03-14 12:54:58 +00:00
finddeclaration.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
finddeclaration.lpr codetools: identifier completion: fixed search in type of var/const 2011-02-07 22:55:37 +00:00
findunusedunits.lpi
findunusedunits.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr
fpcunitlinks.lpi
fpcunitlinks.pas
getcontext.lpi
getcontext.lpr
getexpandedoperand.lpi codetools: started GetExpandedOperand 2011-09-10 18:21:13 +00:00
getexpandedoperand.pas codetools: GetExpandedOperand: typecast 2011-09-11 20:57:31 +00:00
h2pastest.lpi lcl: TUTF8Parser.HandleNewLine: fill buffer 2011-06-26 21:05:15 +00:00
h2pastest.lpr codetools: replace macro functions with simple values 2011-03-14 12:54:58 +00:00
identifiercompletion.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
identifiercompletion.lpr codetools: identifier completion: fixed search in type of var/const 2011-02-07 22:55:37 +00:00
listinterfaceclasses.lpi
listinterfaceclasses.pas
methodjumping.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
methodjumping.pas codetools: fixed TCodeToolsOptions.LoadFromFile to not expand empty settings, bug #18364 2011-01-27 18:59:48 +00:00
parsefpcmsg.lpi codetools: example to parse fpc msg files 2012-02-05 08:58:57 +00:00
parsefpcmsg.pas codetools: example to parse fpc msg files 2012-02-05 08:58:57 +00:00
ppudependencies.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
ppudependencies.lpr
proctomethod.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
proctomethod.lpr codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
README.txt codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi codetools: RemoveUnitFromUsesSection: when removing the last unit remove empty lines in front too, bug #18055 2010-11-26 12:23:25 +00:00
removeemptymethods.lpr
removewith.lpi codetools: added cache to FindReferences 2011-05-04 13:40:35 +00:00
removewith.lpr codetools: RemoveWithBlock: unindent 2011-05-07 23:10:20 +00:00
replaceresourcedirectives.lpi
replaceresourcedirectives.lpr
retypepublishedvars.lpi
retypepublishedvars.lpr
runcfgscript.lpi codetools: configscript: comparing string and number 2010-11-25 16:20:01 +00:00
runcfgscript.lpr codetools: configscript: comparing string and number 2010-11-25 16:20:01 +00:00
setincludepath.lpi
setincludepath.pas
testexpreval.lpi
testexpreval.pas
testfpcsrcunitrules.lpi codetools: fpc src rules: check case insensitive, when no target compiler use defaults 2010-07-26 13:13:10 +00:00
testfpcsrcunitrules.lpr codetools: check if ppu path exists 2010-07-29 10:03:17 +00:00
TestNewXMLCfg.lpi laz_xmlcfg: test old and new version 2011-07-09 08:23:14 +00:00
TestNewXMLCfg.lpr IDE: added file type for instantfc programs, run instantfpc if file has shebang 2011-07-09 19:57:15 +00:00
unitdicttest.lpi codetools: example unit dictionary 2011-11-21 07:48:49 +00:00
unitdicttest.lpr codetools: example unit dictionary 2011-11-21 07:48:49 +00:00
usedbyunits.lpi codetools: added cache to FindReferences 2011-05-04 13:40:35 +00:00
usedbyunits.lpr codetools: added cache to FindReferences 2011-05-04 13:40:35 +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