Commit Graph

262 Commits

Author SHA1 Message Date
mattias
a64605ceec codetools: fixed GetIdentStartEndAtPosition if pos behind source
git-svn-id: trunk@56197 -
2017-10-25 20:19:02 +00:00
mattias
dbf2c24c6e codetools: GetIdentStartEndAtPosition: check if within number
git-svn-id: trunk@56170 -
2017-10-23 11:48:46 +00:00
juha
e27232d4cc Fix uninitialized variables based on compiler warnings got with dfa (data flow analysis) enabled.
git-svn-id: trunk@55211 -
2017-06-04 15:14:29 +00:00
mattias
08bd7d6206 IDE: parse project default namespace
git-svn-id: trunk@54767 -
2017-04-28 22:27:06 +00:00
mattias
aa5717bb55 codetools: search units with namespaces
git-svn-id: trunk@54745 -
2017-04-26 18:36:04 +00:00
juha
e800a738ad Copy AVL_Tree from FPC trunk and replace classes in AvgLvlTree and in CodetoolsStructs with it.
The unit in FPC packages will be used directly later.

git-svn-id: trunk@54524 -
2017-04-05 08:34:48 +00:00
hnb
1903007760 CodeTools: create new callback FindIncFileInCfgCache in basiccodetools.pas filled by codetoolmanager.pas to omit compilicated unit dependencies introduced in linkscanner.pas by uses section (for modules: CodeToolManager and DefineTemplates) in implementation section (that was the reason of AV on IDE exit and memory leaks, fix for mantis #31575, #31580)
git-svn-id: trunk@54461 -
2017-03-21 23:06:36 +00:00
joost
1de2cbf586 general: Updated address of the Free Software Foundation in copyright messages
git-svn-id: trunk@54031 -
2017-01-29 21:04:32 +00:00
mattias
7ca0140e65 codetools: fixed StringToPascalConst, added tests, bug #30955
git-svn-id: trunk@53383 -
2016-11-18 17:44:17 +00:00
mattias
4eaf02c3a1 codetools: FindFileAtCursor: unit name, search in comment
git-svn-id: trunk@53311 -
2016-11-08 12:20:40 +00:00
mattias
37069d7601 codetools: FindFileAtCursor: test literal
git-svn-id: trunk@53299 -
2016-11-05 14:56:50 +00:00
mattias
81599322c4 codetools: started FindFileAtCursor
git-svn-id: trunk@53269 -
2016-10-30 23:42:40 +00:00
juha
9367da0ae5 Remove extra checks for empty strings together with IsValidIdent. It already handles an empty string.
git-svn-id: trunk@52812 -
2016-08-17 10:40:29 +00:00
mattias
c190ac187c codetools: CleanCodeFromComments: added parameter KeepVerbosityDirectives
git-svn-id: trunk@52138 -
2016-04-07 07:38:39 +00:00
juha
e5845a0818 Formatting
git-svn-id: trunk@52021 -
2016-03-22 21:57:06 +00:00
mattias
5698c6ed02 codetools: CleanCodeFromComments added parameter KeepDirectives
git-svn-id: trunk@51269 -
2016-01-13 17:25:10 +00:00
ondrej
1b7e95bd67 codetools: fixed GetIdentStart* for identifiers prefixed with &.
git-svn-id: trunk@50322 -
2015-11-12 15:50:59 +00:00
ondrej
ba310dcf48 IDE, CodeTools: improved character case recognition for units and namespaces.
git-svn-id: trunk@50268 -
2015-11-10 10:38:58 +00:00
ondrej
d49143fd83 IDE, CodeTools: support for unit names with dots. Issue #22235
git-svn-id: trunk@50266 -
2015-11-09 22:23:19 +00:00
juha
653b5dd43a Codetools, unit FileProcs: Disable conditionally wrapper functions. For testing define DisableWrapperFunctions and build Lazarus.
git-svn-id: trunk@49504 -
2015-07-07 11:43:38 +00:00
mattias
09320e4420 codetools: clean up
git-svn-id: trunk@48669 -
2015-04-06 18:07:35 +00:00
mattias
8cbb9b1f87 IDE: codebrowser: show only 5000 items
git-svn-id: trunk@46863 -
2014-11-15 14:45:14 +00:00
mattias
9ddf3d4196 codetools: FindAbstractMethods: search class interfaces
git-svn-id: trunk@45593 -
2014-06-21 15:35:46 +00:00
mattias
4b4c8ddb37 codetools: fixed parsing nested directives in plain sources
git-svn-id: trunk@45505 -
2014-06-13 22:14:39 +00:00
mattias
a7c4d5af38 IDE: fpc msg parser: fix position for message identifier not found
git-svn-id: trunk@45339 -
2014-06-04 19:11:48 +00:00
mattias
d683f4106d codetools: less hints
git-svn-id: trunk@44084 -
2014-02-15 23:41:42 +00:00
mattias
f66fa252fc IDE: renamed SetPathDelims to GetForcedPathDelims
git-svn-id: trunk@42698 -
2013-09-09 10:28:10 +00:00
mattias
ac4996ff62 replaced SetDirSeparators with SetPathDelims
git-svn-id: trunk@42685 -
2013-09-08 20:58:12 +00:00
juha
44737bf779 Codetools: Do not touch {$R *.lfm} during automatical code creation. Issue #22497, patch from Anton
git-svn-id: trunk@40910 -
2013-04-28 16:29:56 +00:00
mattias
57bb6ad932 codetools: added ReIndent
git-svn-id: trunk@40805 -
2013-04-14 18:45:07 +00:00
mattias
925530b425 tests: GuessIndentSize
git-svn-id: trunk@40793 -
2013-04-11 12:20:17 +00:00
mattias
09f8f9e4f4 codetools: started GuessIndentSize
git-svn-id: trunk@40792 -
2013-04-11 11:39:50 +00:00
mattias
501b3263a0 codetools: UseTabs
git-svn-id: trunk@40790 -
2013-04-11 10:58:56 +00:00
mattias
752ae4ef0b codetools: fixed FindCommentEnd
git-svn-id: trunk@38203 -
2012-08-08 12:07:17 +00:00
mattias
d21465be10 codetools: started skipping codetools skip comments
git-svn-id: trunk@38190 -
2012-08-06 22:37:08 +00:00
mattias
5a6462019e codetools: searching compiler: search first in dir of fpc.exe, then in PATH
git-svn-id: trunk@37262 -
2012-05-13 08:31:43 +00:00
mattias
4ea260ab19 codetools: fixed name conflict comparetext
git-svn-id: trunk@35899 -
2012-03-12 08:08:43 +00:00
mattias
93cb3d2b93 codetools: added CompareText
git-svn-id: trunk@35890 -
2012-03-11 15:56:49 +00:00
mattias
e3eb046488 codetools: clean up
git-svn-id: trunk@35734 -
2012-03-05 14:28:42 +00:00
mattias
5e854c0599 codetools: added HasTxtWord
git-svn-id: trunk@35677 -
2012-03-03 17:02:11 +00:00
mattias
4bf4fdc891 codetools: fixed substring
git-svn-id: trunk@35661 -
2012-03-03 10:35:58 +00:00
mattias
95659a5d58 codetools: added substring
git-svn-id: trunk@35657 -
2012-03-03 00:22:26 +00:00
mattias
2684641b15 codetools: added FindNextComment
git-svn-id: trunk@35571 -
2012-02-23 21:27:44 +00:00
mattias
acc755ecdd codetools: fixed getlineinsrc
git-svn-id: trunk@35317 -
2012-02-12 02:42:22 +00:00
mattias
bfa10e2f96 codetools: function TLinkScanner.GetHiddenUsedUnits
git-svn-id: trunk@34773 -
2012-01-18 12:39:59 +00:00
mattias
5d55835b0d codetools: started &keyword identifiers
git-svn-id: trunk@34428 -
2011-12-26 12:52:46 +00:00
mattias
5ab530a8e7 cody: insert call inherited: improved cursor
git-svn-id: trunk@34227 -
2011-12-16 19:38:24 +00:00
mattias
947ce90ff5 IDE: allow renaming units dotted
git-svn-id: trunk@34163 -
2011-12-13 21:55:50 +00:00
juha
72a709a931 Formatting
git-svn-id: trunk@34091 -
2011-12-10 18:49:02 +00:00
juha
6012289532 Codetools: formatting
git-svn-id: trunk@33954 -
2011-12-04 16:44:42 +00:00
mattias
9c53e8ce9d codetools: GetIdentStartEndAtPosition: identifier at end of line
git-svn-id: trunk@33789 -
2011-11-26 01:48:38 +00:00
mattias
d4e4fe6f3c codetools: fixed FindNextComment when MaxPos=0
git-svn-id: trunk@33066 -
2011-10-24 15:54:14 +00:00
mattias
f72478261a codetools: FindNextComment: fixed if MaxPos<1
git-svn-id: trunk@33016 -
2011-10-22 10:13:33 +00:00
mattias
95f93fb4a6 codetools: GetPasDocComment: fixed endless loop
git-svn-id: trunk@33014 -
2011-10-22 07:25:01 +00:00
mattias
1fb1d33e84 codetools: TStandardCodeTool.CommentUnitsInUsesSections: dotted names
git-svn-id: trunk@32119 -
2011-08-30 16:24:42 +00:00
mattias
116c4b1bbd codetools: AddUnitToUsesSection: dotted unit
git-svn-id: trunk@32103 -
2011-08-30 08:34:17 +00:00
mattias
cf818de9f4 codetools: FindLineEndOrCodeAfterPosition: fixed parsing (* comments
git-svn-id: trunk@31134 -
2011-06-08 08:17:39 +00:00
mattias
8c9b6e6548 codetools: unsing less AnsiCompareText
git-svn-id: trunk@30953 -
2011-05-28 10:46:55 +00:00
mattias
5013437c2f codetools: LineEndCount accelerated
git-svn-id: trunk@30946 -
2011-05-28 08:18:37 +00:00
mattias
5ac8c9c243 codetools: fixed evaluating boolean and boolean
git-svn-id: trunk@30734 -
2011-05-14 21:56:05 +00:00
mattias
19fd9eaf0d codetools: change param list: move
git-svn-id: trunk@30620 -
2011-05-08 15:50:50 +00:00
mattias
e39bb2d05b codetools: reading operand: old tp style character constants, bug #19260
git-svn-id: trunk@30600 -
2011-05-07 16:19:57 +00:00
mattias
005d8e828c codetools: parse param list
git-svn-id: trunk@30584 -
2011-05-06 12:06:35 +00:00
mattias
2dd6f59bd1 codetools: SplitStringConstant: added UTF8 support
git-svn-id: trunk@30442 -
2011-04-23 22:50:43 +00:00
mattias
dfb1e9eb0c codetools: fixed LineEndCount, bug #19001
git-svn-id: trunk@30049 -
2011-03-28 08:09:15 +00:00
mattias
2f376ed28d codetools: fixed crash in LineEndCount, bug #18959
git-svn-id: trunk@29960 -
2011-03-21 10:20:25 +00:00
juha
f38190794b Formatting: joined lines where only ');' was split to its own line, in procedure defs.
git-svn-id: trunk@29871 -
2011-03-16 16:52:28 +00:00
mattias
650767b247 codetools: c file merger: do not replace macro on define/undef name
git-svn-id: trunk@29562 -
2011-02-15 17:50:32 +00:00
mattias
d900d21d44 codetools: refactored
git-svn-id: trunk@29297 -
2011-02-01 19:32:51 +00:00
mattias
cf3bbda78a codetools: fixed endless loop in FindLineEndOrCodeInFrontOfPosition
git-svn-id: trunk@29220 -
2011-01-27 19:02:44 +00:00
mattias
f9121611a1 codetools: fixed FindLineEndOrCodeInFrontOfPosition for nested directives, bug #18616
git-svn-id: trunk@29218 -
2011-01-27 18:41:52 +00:00
paul
08d510cd25 codetools: use Windows instead of MSWindows define in case someone want to build codetools for wince
git-svn-id: trunk@29121 -
2011-01-19 12:42:09 +00:00
mattias
81af1a8a2c codetools: readnextatom: read utf8 characters
git-svn-id: trunk@28973 -
2011-01-12 12:51:01 +00:00
mattias
87922a9a0b fpdoc repair: close tags
git-svn-id: trunk@28522 -
2010-11-28 11:48:28 +00:00
mattias
94948dde5e codetools: RemoveUnitFromUsesSection: when removing the last unit remove empty lines in front too, bug #18055
git-svn-id: trunk@28498 -
2010-11-26 12:23:25 +00:00
mattias
c2bf7803f7 IDE: buid lazarus: only restart if target is default, bug #17912
git-svn-id: trunk@28214 -
2010-11-14 17:59:43 +00:00
mattias
ef525bda22 codetools: fixed FindStartOFindStartOfAtomfAtom if at start of string constant
git-svn-id: trunk@27688 -
2010-10-13 22:11:06 +00:00
mattias
6ebaacbba1 codetools: clean up and debugging
git-svn-id: trunk@27498 -
2010-09-28 10:51:08 +00:00
mattias
f684b879a0 codetools: added comment
git-svn-id: trunk@27482 -
2010-09-26 21:05:38 +00:00
mattias
6bcec286b1 codetools: config parser, more keywords
git-svn-id: trunk@26907 -
2010-07-29 22:12:35 +00:00
mattias
01e74e733f codetools: fixed parsing string constant without end
git-svn-id: trunk@26906 -
2010-07-29 15:34:26 +00:00
mattias
48fb897a73 codetools: fixed readrawatom
git-svn-id: trunk@26904 -
2010-07-29 13:59:54 +00:00
mattias
6785d127dd codetools: pchar read atom function
git-svn-id: trunk@26901 -
2010-07-29 12:53:27 +00:00
mattias
3416e11123 codetools: config parser stack
git-svn-id: trunk@26900 -
2010-07-29 12:16:45 +00:00
mattias
b4b5016f20 codetools: completeblock: complete if unindent and cursor at unindent or in empty line
git-svn-id: trunk@26594 -
2010-07-11 11:27:44 +00:00
mattias
7a771b74e5 codetools: auto indenter: check first for exact match, then for any match, improved case block handling
git-svn-id: trunk@26482 -
2010-07-06 12:24:30 +00:00
mattias
c2313cc163 codetools: added debugging
git-svn-id: trunk@26331 -
2010-06-29 17:53:04 +00:00
mattias
0e3f868fb4 codetools: fixed FindLineEndOrCodeInFrontOfPosition to return the start of the line end, bug #16519
git-svn-id: trunk@25526 -
2010-05-20 08:03:53 +00:00
mattias
eaa1ff2fba IDE: added quickfix for note local variable not used, remove
git-svn-id: trunk@25498 -
2010-05-18 14:45:02 +00:00
mattias
4809be32c6 codetools: fixed FindCOdeOrLineEndInFrontOf for bracket close, bug #16419
git-svn-id: trunk@25238 -
2010-05-07 11:04:50 +00:00
mattias
872f2090ec codetools: fixed FindLineEndOrCodeInFrontOfPosition
git-svn-id: trunk@25113 -
2010-05-01 18:49:16 +00:00
mattias
bce545c4f8 codetools: fixed FindLineEndOrCodeInFrontOfPosition stopping at empty lines
git-svn-id: trunk@24744 -
2010-04-20 16:24:36 +00:00
mattias
314c61457e codetools: FindStartOfAtom check if at start of string constant, bug #16203
git-svn-id: trunk@24446 -
2010-04-05 20:02:16 +00:00
mattias
86c263f657 codetools: FindLineEndOrCodeInFrontOfPosition added scanning for string constants, bug #16072
git-svn-id: trunk@24225 -
2010-03-26 15:06:54 +00:00
mattias
3e0e6a5370 codetools: undo parsing ^j
git-svn-id: trunk@23414 -
2010-01-09 21:53:31 +00:00
mattias
69a2b1adb2 codetools: parsing ^j character constant
git-svn-id: trunk@23413 -
2010-01-09 21:24:27 +00:00
mattias
461751ec27 codetools: fixed PositionInSameLine, auto indent: parsing statements
git-svn-id: trunk@22523 -
2009-11-10 13:35:08 +00:00
mattias
c12d17af61 codetools: FindStartOfTerm: fixed starting in an atom
git-svn-id: trunk@22340 -
2009-10-29 14:28:19 +00:00
mattias
0e80d8ba47 codetools: ReadRawNextPascalAtom: replaced string with PChar
git-svn-id: trunk@22337 -
2009-10-29 12:47:54 +00:00
mattias
192ee15737 codetools: renamed unitname identifiers
git-svn-id: trunk@22334 -
2009-10-29 11:23:40 +00:00