Commit Graph

248 Commits

Author SHA1 Message Date
Martin
75b9afdc92 Codetools: Prevent another range check error. Issue #40922 2024-09-23 13:28:08 +02:00
Martin
03bf02974e Codetools: Prevent another range check error. Issue #40922 2024-09-23 11:58:02 +02:00
Juha
65f647e25b Codetools: Prevent another range check error. Issue #40922, patch by WooBean007. 2024-09-15 07:26:21 +03:00
Juha
d58d978a0d Codetools: Prevent a range check error. Issue #40922, patch by WooBean007. 2024-09-09 23:38:17 +03:00
Juha
4bb14e680b Codetools: Support CTRL-SHIFT-C in front of &-identifier. Issue #40922, patch by WooBean007. 2024-09-07 10:24:41 +03:00
mattias
19ed17a7bc codetools: IsDottedIdent: added option to allow ampersands 2024-08-14 11:17:53 +02:00
mattias
75483dbcd5 codetools: CompareIdentifiersCaseSensitive: check ampersands 2024-08-05 17:46:29 +02:00
mattias
d1740179af codetools: CompareDottedIdentifiersCase: check ampersands 2024-08-05 17:21:05 +02:00
mattias
0004dffe30 codetools: CompareDottedIdentifiers: check ampersands 2024-08-05 17:03:15 +02:00
mattias
00f3d3b397 codetools: added tree of PCodeToolPos 2024-07-27 09:21:04 +02:00
Juha
35cea99f01 Codetools: Fix CompareDottedIdentifiersCaseSens. Patch by n7800. 2024-06-27 05:12:49 +03:00
Juha
5c616a0715 Fix hint etc. for "&" + identifier. Issue #40922, patch from WooBean007. 2024-06-17 18:39:44 +03:00
Juha
79a6aff5c9 Codetools: Prevent an eternal loop in procedure ImproveStringConstantEnd. 2024-03-07 04:46:10 +02:00
mattias
2770584c3a codetools: fixed IsDottedIdentifier 2024-02-20 18:19:37 +01:00
Juha
34342f269f Revert the Codetools support of dotted names commit (issue #40596). It broke unit tests. 2024-02-03 07:34:44 +02:00
Juha
593bf2d541 IDE,Codetools: Improve support of dotted unit names. Issue #40596, patch by WooBean007. 2024-01-31 11:27:54 +02:00
mattias
dacecb3f91 codetools: started test for namespaced units in fpc sources 2023-12-18 10:12:02 +01:00
mattias
0ac09485c6 codetools: ReadNextPascalAtom: delphi multi line string literal 2023-11-10 15:01:03 +01:00
Juha
e65a102527 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
mattias
d939016d4e codetools: TLinkScanner: search inc file in fpc cfg of current set 2023-06-09 16:51:10 +02:00
Juha
0991e39f7d Codetools: Fix renaming dotted unit names + many functions dealing with dotted indentifiers. Issue #40195, patch by CCRDude. 2023-05-16 20:11:54 +03:00
Juha
2a16d0338e Codetools: Improve renaming dotted unit names. Issue #40195. 2023-05-16 02:47:07 +03:00
Martin
042ddcfe20 Fix UnicodeSpacesToASCII, After "Replace()" p is already replaced. Old code could skip codepoints or iterate past end of string. Don't replace regular space #20 with itself (nop). 2022-12-02 00:58:42 +01:00
mattias
34b3b9a49a IDE: paste text in pascal source: convert unicode spaces to ascii spaces 2022-04-20 23:49:41 +02:00
mattias
e2ad6b3d8d codetools: parse multiline string constant 2022-03-14 16:38:07 +01:00
Juha
2fbce3f5e6 Codetools: Feed UpperKeyword param in PascalReaderTool.PropertyHasSpecifier with uppercase strings. 2022-01-12 17:08:40 +02:00
juha
9046b533af LazUtils: New LazStartsStr and similar functions. StartsStr etc. in StrUtils return False for empty sub-string, thus Delphi incompatible.
git-svn-id: trunk@64743 -
2021-03-04 08:58:54 +00:00
juha
77e6853ca6 Components: Reduce calls to LowerCase().
git-svn-id: trunk@64515 -
2021-02-10 13:43:15 +00:00
juha
83b5ba73f2 Codetools: Comment out functions in BasicCodetools dealing with CreateForm. Methods in StdCodetools are used.
git-svn-id: trunk@63006 -
2020-04-17 09:32:13 +00:00
ondrej
b21a3831c1 CodeTools: ofall() code macro: keep & prefixes. Issue #35801
git-svn-id: trunk@62244 -
2019-11-15 21:38:13 +00:00
juha
2599738437 Codetools: Fix function FindNextIncludeDirective when an include file name is quoted.
git-svn-id: trunk@60675 -
2019-03-15 11:23:21 +00:00
mattias
967bf6dfd1 IDE: fix invalid localized package names
git-svn-id: trunk@57961 -
2018-05-18 21:34:39 +00:00
mattias
e1dcfde200 codetools: identifier completion: list pas2js default units
git-svn-id: trunk@57952 -
2018-05-18 07:31:39 +00:00
mattias
cab4029da6 codetools: fixed rangechecking
git-svn-id: trunk@57114 -
2018-01-18 21:23:38 +00:00
mattias
b8a4422c7f codetools: identifier completion fixed empy Prefix
git-svn-id: trunk@57038 -
2018-01-10 08:30:25 +00:00
juha
6810c626df LazUtils: Change "Character" to "Codepoint" in LazUTF8 function names to be more accurate and to avoid confusion.
git-svn-id: trunk@56692 -
2017-12-11 19:44:22 +00:00
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