Commit Graph

388 Commits

Author SHA1 Message Date
mattias
684ea95b51 codetools: deprecated GetUnitNameForUsesSection
git-svn-id: trunk@32108 -
2011-08-30 09:28:53 +00:00
mattias
9673a4f818 codetools: TStandardCodeTool.RemoveUnitFromUsesSection: dotted name
git-svn-id: trunk@32107 -
2011-08-30 09:12:00 +00:00
mattias
421f9a390f codetools: TStandardCodeTool.UnitExistsInUsesSection: dotted name
git-svn-id: trunk@32106 -
2011-08-30 09:08:20 +00:00
mattias
78d488844a codetools: TStandardCodeTool.UnitExistsInUsesSection: dotted name
git-svn-id: trunk@32104 -
2011-08-30 08:56:14 +00:00
mattias
116c4b1bbd codetools: AddUnitToUsesSection: dotted unit
git-svn-id: trunk@32103 -
2011-08-30 08:34:17 +00:00
juha
f9a84e9f2f Codetools: Add a new uses-section right after interface/implementation keyword. Issue #19901, patch from Anton.
git-svn-id: trunk@31878 -
2011-08-05 16:36:29 +00:00
mattias
8c39496157 codetools: fixed use of keywordlists
git-svn-id: trunk@30954 -
2011-05-29 08:34:20 +00:00
mattias
3db7df3317 codetools: parser: fixed starting class section on first space, completeblock: complete class at end of source
git-svn-id: trunk@30180 -
2011-04-04 12:45:50 +00:00
mattias
2af49962ac codetools: parse programs without program keyword
git-svn-id: trunk@30035 -
2011-03-27 14:19:18 +00:00
mattias
e317ac3780 clean up
git-svn-id: trunk@30024 -
2011-03-26 21:09:07 +00:00
mattias
f8f705163a codetools: fixed case compare for formerly uppercase compares, fixed TSourceChangeCache.Clear to not clear updatelock
git-svn-id: trunk@30022 -
2011-03-26 21:06:24 +00:00
mattias
af321cf45c codetools: added debugging
git-svn-id: trunk@29983 -
2011-03-22 15:14:12 +00:00
mattias
c2a58808d3 codetools: changed some uppercase parameters to mixed case
git-svn-id: trunk@29982 -
2011-03-22 13:41:30 +00:00
mattias
304a45372e codetools: fixed TLinkScanner.LinkSize for last link
git-svn-id: trunk@29796 -
2011-03-11 11:09:16 +00:00
mattias
77566ccf65 codetools: implemented scanning units in smaller chunks and successive scanning without deleting nodes
git-svn-id: trunk@29769 -
2011-03-09 20:52:44 +00:00
mattias
b88c6577a4 synedit: fixed synregexpr 64bit
git-svn-id: trunk@29717 -
2011-03-03 12:46:22 +00:00
mattias
2c76183be2 codetools: fixed TStandardCodeTool.RemoveUnitFromAllUsesSections
git-svn-id: trunk@29640 -
2011-02-21 21:43:11 +00:00
mattias
d97d756067 codetools: fixed mem leak in FindDanglingComponentEvents, bug #18691
git-svn-id: trunk@29391 -
2011-02-05 10:26:36 +00:00
mattias
3943d23f9b codetools: started nested classes, replaced ctnClassType with ctnTypeSection, ctnClassConst with ctnConstSection, class type,const,var sections are now childs of visibility sections
git-svn-id: trunk@29390 -
2011-02-05 10:09:22 +00:00
mattias
19c0b3a5a2 codetools: always parse class nodes
git-svn-id: trunk@29336 -
2011-02-02 19:33:04 +00:00
mattias
92a693d145 codetools: removed TCodeTreeNodeExtMemManager, not needed anymore
git-svn-id: trunk@29334 -
2011-02-02 18:56:59 +00:00
mattias
599efccf86 codetools: FindMissingUnit: FixCase fixed
git-svn-id: trunk@28901 -
2011-01-08 11:43:32 +00:00
mattias
7c572b1d3c codetools: fixed FindUsedUnitNames
git-svn-id: trunk@28610 -
2010-12-03 15:15:09 +00:00
mattias
ba3dc6e1f5 codetools: CompleteBlock implementation begin end., bug #17293
git-svn-id: trunk@28566 -
2010-11-30 09:39:18 +00:00
mattias
9eb142f295 codetools: clean up
git-svn-id: trunk@28499 -
2010-11-26 12:25:50 +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
496151f6f8 codetools: AddUnitToSpecificUsesSection for implementation, patch #18028
git-svn-id: trunk@28435 -
2010-11-23 11:39:42 +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
5dd01ce874 codetools: CheckLFM: added boolean RootMustBeClassInUnit parameter
git-svn-id: trunk@27481 -
2010-09-26 20:30:24 +00:00
mattias
82369989ce IDE: converter: search classes in implementation too
git-svn-id: trunk@27480 -
2010-09-26 20:04:31 +00:00
mattias
6d02cc37ff codetools: extended RetypeClassVariables
git-svn-id: trunk@27479 -
2010-09-26 20:02:50 +00:00
mattias
d66103ac53 codetools: debugging
git-svn-id: trunk@26856 -
2010-07-27 14:51:53 +00:00
mattias
0d135358b4 codetools: block completion: consider comments in front of insert pos
git-svn-id: trunk@26737 -
2010-07-19 12:37:02 +00:00
mattias
bc14bcf0a2 codetools: completeblock: complete if parent and child same indented
git-svn-id: trunk@26619 -
2010-07-13 13:01:13 +00:00
mattias
b23492619f codetools: completeblock: check if unindented line starts new block
git-svn-id: trunk@26617 -
2010-07-13 10:06:40 +00:00
mattias
7e74198f7d codetools: completeblock: improved for class
git-svn-id: trunk@26604 -
2010-07-11 20:46:35 +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
29839a9707 codetools: findreferences: search declaration comment, bug #13497
git-svn-id: trunk@26542 -
2010-07-08 21:41:56 +00:00
mattias
c0682eae27 codetools: completeblock when typing begin
git-svn-id: trunk@26515 -
2010-07-07 22:40:38 +00:00
mattias
0b3a7661b0 codetools: completeblock: add newline, bug
git-svn-id: trunk@26512 -
2010-07-07 20:07:49 +00:00
mattias
14c0ca0b26 codetools: FindDanglingComponentEvents: check sub persistents in properties, bug #16831
git-svn-id: trunk@26455 -
2010-07-04 09:10:59 +00:00
mattias
1751469cc8 codetools: completeblock: ignore open brackets on semicolon
git-svn-id: trunk@26453 -
2010-07-04 07:29:19 +00:00
mattias
e454ee7c16 codetools: completeblock: begin ;, bug #16836
git-svn-id: trunk@26452 -
2010-07-04 07:23:42 +00:00
mattias
e03811d82e codetools: clean up
git-svn-id: trunk@26423 -
2010-07-02 19:43:27 +00:00
mattias
2a0aad5e01 codetools: GetStringConstAsFormatString treat " as normal character
git-svn-id: trunk@26036 -
2010-06-11 07:16:41 +00:00
mattias
a15b25d274 codetools: CheckLFM: check types even if parent types was not found
git-svn-id: trunk@25847 -
2010-06-02 19:20:22 +00:00
mattias
e2538d01bc codetools: removed cafBegin
git-svn-id: trunk@25737 -
2010-05-28 18:47:50 +00:00
mattias
331b05a147 IDE: started block completion on char
git-svn-id: trunk@25556 -
2010-05-20 21:44:03 +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
0b64f42042 codetools: identifier completion: do not eat unit not found error when searching ancestors
git-svn-id: trunk@25035 -
2010-04-28 17:15:24 +00:00
mattias
d3f232387d codetools: changed RetypeClassVariables parameter to tree
git-svn-id: trunk@24219 -
2010-03-26 12:24:47 +00:00
mattias
a74bc652d2 codetools: added RetypeClassVariables
git-svn-id: trunk@24215 -
2010-03-25 21:16:32 +00:00
mattias
34bcf2c445 codetools: fixed ConvertDelphiToLazarusSource reparse after adding mode delphi
git-svn-id: trunk@23767 -
2010-02-23 12:01:42 +00:00
paul
9e02d5824f codetools: distinct dispinterface and other interfaces
git-svn-id: trunk@23500 -
2010-01-20 13:18:11 +00:00
mattias
3e0e6a5370 codetools: undo parsing ^j
git-svn-id: trunk@23414 -
2010-01-09 21:53:31 +00:00
mattias
dfc20b664d codetools: completeblock: skip if target line is not empty or code behind is more indented
git-svn-id: trunk@22828 -
2009-11-27 16:50:24 +00:00
mattias
b64abcbd7a codetools: parsing objccategory
git-svn-id: trunk@22611 -
2009-11-16 00:39:35 +00:00
mattias
cf8c233871 codetools: parsing cppclass
git-svn-id: trunk@22601 -
2009-11-15 15:43:53 +00:00
mattias
ce415836a7 codetools: TStandardCodeTool.GetPasDocComments stop at directives
git-svn-id: trunk@22575 -
2009-11-13 20:42:15 +00:00
mattias
555090ae4f codetools: TStandardCodeTool.ExtractOperand ignore positions in space
git-svn-id: trunk@22558 -
2009-11-13 06:03:49 +00:00
mattias
95af4fb208 codetools: fixed adding uses section
git-svn-id: trunk@22475 -
2009-11-07 13:48:47 +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
192ee15737 codetools: renamed unitname identifiers
git-svn-id: trunk@22334 -
2009-10-29 11:23:40 +00:00
mattias
ceaa5de063 codetools: when adding units to uses section check for special units: cmem, sharedmem, lineinfo, heaptrc, cthreads
git-svn-id: trunk@22307 -
2009-10-27 12:38:10 +00:00
paul
81f665d3c4 codetools: better support 'sealed' and 'abstract' classes
git-svn-id: trunk@22290 -
2009-10-26 15:01:26 +00:00
mattias
2360f0fed7 codetools: reduced debugging
git-svn-id: trunk@21986 -
2009-10-02 18:57:58 +00:00
mattias
1ffd720917 IDE+codetools: ExtractOperand: added WithoutTrailingPoints
git-svn-id: trunk@21985 -
2009-10-02 18:49:58 +00:00
mattias
1803fc05ff codetools: ExtractOperand: do not return if cursor in front of expression
git-svn-id: trunk@21984 -
2009-10-02 18:39:23 +00:00
mattias
19a53151f7 codetools: fixed TStandardCodeTool.ExtractOperand for endpos
git-svn-id: trunk@21982 -
2009-10-02 09:30:11 +00:00
mattias
8442f27d8c IDE: debugger: tool tip for symbol under cursor
git-svn-id: trunk@21980 -
2009-10-02 08:48:32 +00:00
mattias
406489f03e codetools: added ExtractOperand
git-svn-id: trunk@21937 -
2009-10-01 10:41:33 +00:00
mattias
c66ecbfe45 codetools: objcprotocol
git-svn-id: trunk@21694 -
2009-09-13 23:00:19 +00:00
mattias
ddad9c8091 codetools: implemented objcclass
git-svn-id: trunk@21689 -
2009-09-13 21:31:32 +00:00
mattias
b52f66dabc codetools: renamepublishedvariable: skip .identifier, bug #13823
git-svn-id: trunk@21476 -
2009-08-28 11:08:30 +00:00
mattias
85faf25c1f codetools: GetPasDocComments: check if comment belongs to prior code, bug #12447
git-svn-id: trunk@21135 -
2009-08-07 12:46:20 +00:00
mattias
d25179de98 codetools: complete block: do not add semicolon in front of an else, bug #14021
git-svn-id: trunk@20689 -
2009-06-21 11:16:35 +00:00
mattias
56629b80c6 codetools: indentation for comments
git-svn-id: trunk@20485 -
2009-06-06 17:30:16 +00:00
mattias
a1c288222b codetools: moved indenter to TCodeToolManager
git-svn-id: trunk@20480 -
2009-06-06 16:16:51 +00:00
mattias
8209691967 codetools: complete block: begin begin begin end end
git-svn-id: trunk@20457 -
2009-06-05 18:13:48 +00:00
mattias
a20af130ed reduced output
git-svn-id: trunk@20445 -
2009-06-05 16:18:56 +00:00
mattias
58acb9da65 codetools: completeblock: fixed closing nested if else
git-svn-id: trunk@20433 -
2009-06-05 11:38:03 +00:00
mattias
0ac9217af3 codetools: complete block: fixed closing program begin end.
git-svn-id: trunk@20432 -
2009-06-05 11:17:57 +00:00
mattias
8f78d9aa6a codetools: complete block: checking for end., bug #13895
git-svn-id: trunk@20383 -
2009-06-03 21:34:04 +00:00
mattias
552a63960f codetools: local var assignment completion: address operator
git-svn-id: trunk@20377 -
2009-06-03 17:10:17 +00:00
mattias
807dd50588 codetools: adding units: when no related found and uipBehindRelated: add as last, bug #13899
git-svn-id: trunk@20376 -
2009-06-03 16:27:32 +00:00
mattias
65968ad5bf codetools: complete block: insert needed spaces in front of first line
git-svn-id: trunk@20291 -
2009-05-29 07:59:13 +00:00
mattias
178f494111 codetools: complete block: use first atom for inner indent
git-svn-id: trunk@20280 -
2009-05-28 11:43:48 +00:00
mattias
20fca2cad7 codetools: complete blocks for inner blocks
git-svn-id: trunk@20210 -
2009-05-25 14:13:39 +00:00
mattias
5c4cc7cb58 codetools: complete block: fixed parsing try..finally, if..else
git-svn-id: trunk@20196 -
2009-05-25 09:41:06 +00:00
mattias
f2e68dee8c codetools: complete block: use existing semicolon
git-svn-id: trunk@20149 -
2009-05-23 23:52:09 +00:00
mattias
ec7adf6c05 codetools: complete record block
git-svn-id: trunk@20132 -
2009-05-22 17:50:39 +00:00
mattias
e97ed3191c codetools: complete class interface block
git-svn-id: trunk@20131 -
2009-05-22 17:45:56 +00:00
mattias
06da713f1e codetools: complete class block
git-svn-id: trunk@20130 -
2009-05-22 17:40:23 +00:00
mattias
da88c7b562 codetools: completeblock: complete case colon semicolons
git-svn-id: trunk@20122 -
2009-05-22 09:10:52 +00:00
mattias
ffb32090a1 codetools: completeblock: do not complete if cursor on start of first block, bug #13784
git-svn-id: trunk@20121 -
2009-05-22 08:59:13 +00:00
mattias
9bd290d86e IDE+codetools: implemented complete blocks in statements
git-svn-id: trunk@20108 -
2009-05-21 16:49:01 +00:00
mattias
f8012d194e IDE: fixed result of SaveSourceEditorChangesToCodeCache, codetools: started complete block
git-svn-id: trunk@20107 -
2009-05-21 13:24:15 +00:00
martin
068b9fb3ef Codetools: RangeCheck Exception, Strings start at 1
git-svn-id: trunk@19945 -
2009-05-12 14:32:49 +00:00
mattias
e3c48b9278 codetools: mem stat categories
git-svn-id: trunk@19864 -
2009-05-09 09:44:56 +00:00
mattias
6e52d7829c codetools: added memory stats
git-svn-id: trunk@19862 -
2009-05-09 08:34:50 +00:00
mattias
9544e1cffa codetools: option to add units as last ignoring user settings
git-svn-id: trunk@19839 -
2009-05-07 09:44:15 +00:00
mattias
8f19b73c43 codetools: removed TCustomCodeTool.UpperSrc
git-svn-id: trunk@19832 -
2009-05-07 08:16:34 +00:00
mattias
3e5a744e2d codetools: find declaratuion: added flag to skip forward class
git-svn-id: trunk@19814 -
2009-05-05 18:02:20 +00:00
mattias
0c66bbff3b codetools: adding units to uses sections: fixed adding first indentation
git-svn-id: trunk@19812 -
2009-05-05 09:52:39 +00:00
mattias
620900273e codetools: identifier completion used unit
git-svn-id: trunk@19810 -
2009-05-05 09:14:08 +00:00
mattias
3d95973a6c codetools: implemented adding to uses sections with options
git-svn-id: trunk@19802 -
2009-05-04 16:12:03 +00:00
mattias
c774737bb2 codetools: remove unit from uses section: removing space around first unit
git-svn-id: trunk@19367 -
2009-04-12 04:57:27 +00:00
mattias
36c8c8f079 IDE+codetools: started finding unit references
git-svn-id: trunk@19310 -
2009-04-10 14:52:57 +00:00
mattias
54597c0fcb codetools: finding unused units: used global properties
git-svn-id: trunk@19289 -
2009-04-09 13:23:26 +00:00
mattias
8b2cde0cb6 codetools: finding unused units: procedures
git-svn-id: trunk@19288 -
2009-04-09 13:17:59 +00:00
mattias
fe3b0c86d2 codetools: finding unused units
git-svn-id: trunk@19287 -
2009-04-09 13:14:05 +00:00
mattias
9a76510f83 codetools: added example for unused units
git-svn-id: trunk@19286 -
2009-04-09 12:57:21 +00:00
mattias
f7b1dd2b77 codetools: reading all references
git-svn-id: trunk@19285 -
2009-04-09 09:56:00 +00:00
mattias
26ef5cd496 IDE+codetools: started heuristic to find unused units
git-svn-id: trunk@19281 -
2009-04-08 23:45:15 +00:00
mattias
5d21138707 codetools: fixed finding prior statement when start on source start
git-svn-id: trunk@18316 -
2009-01-16 20:39:59 +00:00
mattias
2d39d8d910 IDE: fixed updating, renaming project resources
git-svn-id: trunk@17021 -
2008-10-16 11:35:48 +00:00
mattias
e5de689ab4 clean up
git-svn-id: trunk@16953 -
2008-10-11 07:31:03 +00:00
mattias
0775a9258a codetools: adding include directives into code
git-svn-id: trunk@16942 -
2008-10-09 10:18:22 +00:00
mattias
7f2d78f450 IDE: project: adding/removing include directive for project resources
git-svn-id: trunk@16932 -
2008-10-08 16:43:14 +00:00
mattias
992d5f74ab codetools: fixed TCodeTreeNode.ConsistencyCheck
git-svn-id: trunk@16859 -
2008-10-03 09:34:52 +00:00
mattias
626815db77 codetools: scanning for comments in type nodes end
git-svn-id: trunk@16843 -
2008-10-02 09:19:47 +00:00
mattias
e0a5b9322b codetools: scanning for comments in type nodes too
git-svn-id: trunk@16842 -
2008-10-02 09:17:38 +00:00
mattias
69cfe88898 using UTF-8 for file operations and environment variables
git-svn-id: trunk@16236 -
2008-08-25 22:32:23 +00:00
mattias
d306cba6ac codetools: improved debugging
git-svn-id: trunk@16191 -
2008-08-23 06:45:17 +00:00
mattias
e374b51dd5 IDEIntf: moved IDE key grabbing to propedits, added button to TShortCutPropertyEditor
git-svn-id: trunk@16136 -
2008-08-19 02:57:17 +00:00
mattias
c81aab571f fixed uninitialized function results
git-svn-id: trunk@16088 -
2008-08-16 20:51:45 +00:00
mattias
6f64b8639c IDE: not beautifying uses section of package main source, bug #11660
git-svn-id: trunk@15876 -
2008-07-26 16:49:14 +00:00
mattias
9b4a380f50 codetools: returning false on error searching ancestors, bug #11665
git-svn-id: trunk@15828 -
2008-07-21 11:39:11 +00:00
mattias
ec306d185d codetools: added debugging info or dangling events
git-svn-id: trunk@15811 -
2008-07-18 08:00:07 +00:00
mattias
7f8fab8d64 IDE+codetools: added verbosity via -dVerboseDanglingComponentEvents
git-svn-id: trunk@15798 -
2008-07-17 06:47:25 +00:00
mattias
5399b1c322 codetools: removing empty methods: auto removing class completion comment
git-svn-id: trunk@14971 -
2008-04-25 13:31:19 +00:00
mattias
fdde79363f codetools: lfmtrees are now only updated if source changed
git-svn-id: trunk@14827 -
2008-04-15 12:51:14 +00:00
mattias
92e555f7da codetools: lfmtrees are now kept
git-svn-id: trunk@14826 -
2008-04-15 12:08:36 +00:00
mattias
a7dbaa80d2 codetools: fixed wrong tool context in FindClassNodeForLFMObject
git-svn-id: trunk@13598 -
2008-01-02 23:35:25 +00:00
mattias
a6358840d5 codetools: TStandardCodeTool.RenamePublishedVariable fixed renaming type
git-svn-id: trunk@13510 -
2007-12-28 21:01:50 +00:00
mattias
b883a482c5 codetools: fixed crash on finalization
git-svn-id: trunk@13503 -
2007-12-28 12:28:58 +00:00
mattias
9306d7d9e9 codetools: fixed mem leak on guess unclosed blocks
git-svn-id: trunk@13500 -
2007-12-28 10:54:49 +00:00
mattias
6ff1df4f1f codetools: fixed some uninitialzed out params
git-svn-id: trunk@13371 -
2007-12-18 09:44:50 +00:00
mattias
108a310615 codetools: replaced some var parmas with out params
git-svn-id: trunk@13248 -
2007-12-09 11:07:51 +00:00
mattias
3492130ddf codetools: replaced some var with out
git-svn-id: trunk@13222 -
2007-12-08 14:17:46 +00:00
mattias
a0a537e1f9 codetools: AddResourceDirective can now add custom directives
git-svn-id: trunk@13034 -
2007-11-26 12:09:22 +00:00
mattias
e2a6763357 IDE: lazdoc: fixed showing hints for procedures
git-svn-id: trunk@13023 -
2007-11-25 15:01:26 +00:00
mattias
688c0a4db0 IDE: lazdoc: now reads comments and shows them in hints
git-svn-id: trunk@13021 -
2007-11-25 13:23:37 +00:00
mattias
e81fcb8abc codetools: fixed mem leak when searching for overloaded procs with default values, IDE: improved searching for event types declaration for TMethodPropertyEditor
git-svn-id: trunk@12076 -
2007-09-19 09:30:53 +00:00
mattias
897336de38 codetools: added function to find all functions of a h2pas output
git-svn-id: trunk@11762 -
2007-08-09 11:07:28 +00:00
mattias
3b69506329 gtk2 intf: added focus events for combobox, ideintf: textconverter now supports codetool buffers, h2pas wiz: added tool to remove redfinitions, reduced warnings
git-svn-id: trunk@11733 -
2007-08-03 22:38:11 +00:00
mattias
efaec13a02 codetools, TSynPasSyn: aded bitpacked keyword
git-svn-id: trunk@11173 -
2007-05-21 10:09:46 +00:00
mattias
a6d2e13791 replaced calls to MethodName with hooks
git-svn-id: trunk@11036 -
2007-04-29 22:18:42 +00:00