Anthony Leonardo Gracio
11672bc929
Update copyright year for GS sources
...
(no-issue-check)
2026-01-05 12:41:13 +00:00
Anthony Leonardo Gracio
18cc3617f1
Fix codefixes for GNATcheck
...
For eng/shared/integration-testsuite#65
2025-04-18 10:11:12 +00: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
Philippe Gil
826ef325ea
new msg for used formal parameter with pragma Unreferenced support
...
support new msg (aspect Unreferenced specified for) changed on 20220111
TN: V119-021
Change-Id: Idaf7bc5e8a478430562ee03d38490692d5de4ee0
2022-01-21 12:18:24 +00:00
Anthony Leonardo Gracio
363fbebff5
V103-022: Fix warnings on edge
...
Change-Id: I235bde9067e4f28e22d987faea7746063c3151fb
2022-01-10 15:09:38 +00:00
Anthony Leonardo Gracio
af4c8f2d41
Update copyright year
...
(no-tn-check)
(no-precommit-check)
Change-Id: Id71d3f84cd6ab219a37821da1460038f4eea525c
2022-01-03 15:09:31 +01:00
Andry Ogorodnik
cf2c25ad2d
U518-006 Checking code is not changed before applying codefixes.
...
Change-Id: I9ac440da6ec046c32e634c4e394f5375c5689422
2021-05-26 13:12:26 +02:00
Philippe Gil
fbc5971cc9
allow "use clause would make operation legal" error for codefix
...
recent compiler reports "use clause would make operation legal" errors
older reported them as warnings.
TN: U423-011
Change-Id: I125e99b326ab28b2504f40f61ca86410da965b03
Depends-On: I10b9bc919d82c5a5751e1183ca993198298f3ac6
2021-05-04 09:46:21 +02:00
Anthony Leonardo Gracio
63c2e9d9c9
Update copyright year
...
(no-tn-check)
(no-precommit-check)
Change-Id: I50abdaba131d76d914f1df9a53f013ec8f48ca68
2021-01-11 17:22:37 +01:00
Anthony Leonardo Gracio
94aa11fdc5
TB17-002: Fix conditional jump
...
Change-Id: Icc7917136ae033621979357cd96ffb033233d3f9
2020-12-14 17:03:07 +01:00
Andry Ogorodnik
848d7c9f5c
TA19-036 Tab corrections in codefix.
...
Change-Id: If46a7270ee50a3c2b3802b28ad3fec8011df1784
2020-11-23 12:47:04 +01:00
Anthony Leonardo Gracio
e14aa3d383
TA23-021: Don't always search for package instantations
...
We should search for package instantiations only we are removing
unneeded with clauses.
If we are removing unneeded use clauses, we should try to find a
local use clause instead.
Change-Id: I3897958cd53ba9f8c6d7fe4ecf21f6723f203601
2020-11-16 17:28:34 +01:00
Anthony Leonardo Gracio
ac331567cc
Revert "TA23-021: Don't always search for package instantiations"
...
This reverts commit 8c56b022a4 .
Change-Id: I1c7a98ee746cd82049cd9d832f2d3105d3530da0
2020-11-13 14:40:36 +01:00