1220 Commits

Author SHA1 Message Date
Anthony Leonardo Gracio
11672bc929 Update copyright year for GS sources
(no-issue-check)
2026-01-05 12:41:13 +00:00
Vadim Godunko
a22776ea98 Fix build after bump. 2025-12-22 18:39:46 +04:00
Vadim Godunko
aae46c2f00 Use Editable_Line_Type in New_Location_At_Line 2025-10-23 16:17:26 +00:00
Anthony Leonardo Gracio
18cc3617f1 Fix codefixes for GNATcheck
For eng/shared/integration-testsuite#65
2025-04-18 10:11:12 +00:00
Vadim Godunko
ddc5afbd28 Rename Get_Chars into Get_Chars_S 2025-02-11 06:10:31 +00:00
Vadim Godunko
d4206d2e19 Use Virtual_String for category name of the messages. 2024-11-13 12:59:34 +00:00
Boulanger
ea4c9d139a Filter pretty print preferences depending on the engine
Rename Ident_Casing into Identifier_Casing because it was
to close to Indent_Casing.

Include a test.

Closes eng/ide/gnatstudio#140
2024-07-17 13:07:24 +00:00
Vadim Godunko
cd1498431e Fix string format of regular expression. 2024-06-10 09:15:10 +00:00
Vadim Godunko
70b4e6f3d1 Reformat code with black. 2024-06-06 12:20:22 +00:00
Anthony Leonardo Gracio
7c1ba23818 Revert "Merge branch 'topic/gs_56_bookmark_leaking_buffer' into 'master'"
This reverts merge request !195
2023-09-08 10:59:06 +00:00
Boulanger
64ac98f85a Remove Open_Buffer from Editor_Buffer_Factory
Opening a buffer without a view leaves the responsibility to the
caller to close the buffer manually.
=> this is unsafe: either we are closing a buffer shared
somewhere else or forgetting to close it (= leaking it)

The solution is to always use Buffer_Holder.
2023-09-07 11:37:05 +02:00
Nicolas Setton
f7c11441e6 W322-018 Introduce a cache for 'finding file in project'
The operation to find a file in the project from a base
name is very costly. Add a local cache in the Project_Registry
to alleviate the issue.

Make GPS.Kernel.Create take advantage of this cache in the
default lookup cases.

Use the call that leverage this cache when processing
the compiler output, and when applying codefix messages.

This reduces the import of 10000 messages on the same file
from 18s to 3s on my machine.

Add a test to check this scenario.
2023-03-30 12:47:33 +00:00
Adrien Boulanger
4d9d58a0e1 W228-019: Remove redundant parentheses
Found by -gnatyz
2023-02-28 16:36:38 +01:00
Adrien Boulanger
43bd0d7289 Improve suppress warning codefix
- Properly surround the statement (previously it was surrounding
the message line and was making the code non-compilable).
- Change the "pragma Warning" format to only silence the current
warning.
2023-01-13 11:08:07 +00:00
Anthony Leonardo Gracio
41c30ab309 Update copyright year (no-tn-check)
Change-Id: Ie2cf22f9729f30d2228572a7296c23889be4c563
2023-01-03 11:39:28 +01:00
Anthony Leonardo Gracio
ce5e2348ca Revert "Revert "V819-017 Fixing warnings supressions""
This reverts commit c0340bb123.

Reason for revert: GB fix is here: https://git.adacore-it.com/c/gnatbench/+/120612

Change-Id: Icdc5d4d45d4573fb0a0ce8861a4421892bc679dd
2022-08-24 15:42:38 +00:00
Anthony Leonardo Gracio
c0340bb123 Revert "V819-017 Fixing warnings supressions"
This reverts commit 2de9f506da.

Reason for revert: <GNATbench build failure>

Change-Id: Id01dabbba938227f327e4475c621d9bac285bc8f
2022-08-24 15:33:35 +00:00
Andry Ogorodnik
2de9f506da V819-017 Fixing warnings supressions
- limit action for ada code files only

Change-Id: Idf0f645291ec16c7c332ee1ce7845fee368c956e
2022-08-23 18:06:21 +00:00
Andry Ogorodnik
dec0cdcdba U430-034 Fixing line terminator used for source buffers
Change-Id: I7a6f6ad4ef40a5b24d5948aa73d1627f0143a7fa
2022-08-10 18:27:39 +03:00
Andry Ogorodnik
4ddda13c2e V429-045 Fixing warning supressions
Change-Id: Iba6a17c90774e5f479dd45385cbeb0f21128dacf
2022-08-08 16:35:43 +03:00
Andry Ogorodnik
c2bca4c363 U430-034 Handling string literals and comments
Shift-Enter split string literals/comments in two lines or add new
           chunk as the new line

Shift-Space split string literals in two parts

Ctrl-Shift-V split string literals in two parts and insert
             clipboard content between these two parts

Change-Id: I0c3fe21888ec4765f614ff8fa72cb7b63ccf81d7
2022-08-05 14:17:31 +00:00
Andry Ogorodnik
6d935db0f0 V429-045 New code-fix action
- supress warnings

Change-Id: Ib1419e454f9063a8cd4cc5a30182f92f3e43c709
2022-07-26 13:39:18 +00:00
Andry Ogorodnik
0fc4233c3f V413-006 Fixing tabulations handling in code-fix
Change-Id: I91d1c3720154bac50428f4a690cdfcd00979b475
Depends-On: I87bbdb69504ec92127c517e611346d057ecfa735
Depends-On: I6ffe8f79e75993c4a3e68a9ceb6de0df0715952d
2022-05-11 12:25:42 +00:00
Andry Ogorodnik
550fe50656 UC17-062 Added two cases for code-fix
- operator for private type "*" is not directly visible
 - no legal interpretation for operator "*"

Change-Id: I4cbda12ad6d62f2e0f9f8e16d5854767f7ffaaaf
2022-04-13 08:43:21 +00:00
Adrien Boulanger
8d588bfb0c S712-022: Python leaks related to FileLocation
Each FileLocation was leaking a File: they were keeping a pointer
to File without using any proxy to release them.
Break the dependency and only create the File from the FileLocation
when needed.

Add a test.

Change-Id: I1df713a7c0e6cc54f7c4912b803247b3189dcd92
2022-04-11 15:54:11 +00:00