1250 Commits

Author SHA1 Message Date
Guillaume Rivier
169bb538c2 Align menu, tooltips and simplify HTML report menu 2024-01-30 14:38:45 +09:00
Adrien Boulanger
64836b124a Merge branch 'topic/gs.104.gnatsas_html_browser' into 'master'
Open Analyzer report in browser after generating it

Closes #104

See merge request eng/ide/gnatstudio!271

(cherry picked from commit d966a569ee)

ef8431b7 Open Analyzer report in browser after generating it
2024-01-25 14:39:31 +00:00
Anthony Leonardo Gracio
13a0333fde Merge branch 'topic/gs#211' into 'master'
Fix GNATSAS 'Select baseline' dialog's title

See merge request eng/ide/gnatstudio!399

(cherry picked from commit cb631da737)

4163426a Fix GNATSAS 'Select baseline' dialog's title
2024-01-22 10:23:50 +00:00
Anthony Leonardo Gracio
b683323ce1 Merge branch 'topic/gs#209' into 'master'
Display GNATSAS report after 'Analyze File'

See merge request eng/ide/gnatstudio!401

(cherry picked from commit 4582a3cb63)

49f6933d Display GNATSAS report after 'Analyze File'
2024-01-22 09:17:04 +00:00
Guillaume Rivier
f20c1e768e Merge branch '87-gnatsas-integration-insert-pragma-annotate' into 'master'
Replace use of "CodePeer" in pragma Annotate and review dialog

Closes #87

See merge request eng/ide/gnatstudio!275

(cherry picked from commit 646e2c76a8)

e6f62c3a Replace use of "CodePeer" in pragma Annotate and review dialog
2023-11-13 11:18:01 +00:00
Adrien Boulanger
64ec2ffef5 Merge branch 'topic/gs.109.codepeer_objdir' into 'master'
Fix Codepeer object dir computation

See merge request eng/ide/gnatstudio!278

(cherry picked from commit 47bd686f37)

b94fe50d Fix Codepeer object dir computation
2023-10-31 14:28:31 +00:00
Boulanger
609a80a5af Mismatch between Actions and BuildTargets
Rename for more clarity

eng/ide/gnatstudio#92

(cherry picked from commit 5c21a99982)
2023-09-26 10:42:26 +00:00
Clément Fumex
5f811899d0 Apply 1 suggestion(s) to 1 file(s)
(cherry picked from commit 0a633ef009)
2023-09-26 10:42:26 +00:00
Boulanger
85613d8b5d Support for GNATSAS baseline commands
Add toplevel menus, BuildTargets and actions.

eng/ide/gnatstudio#92

(cherry picked from commit 429ce9f076)
2023-09-26 10:42:26 +00:00
Boulanger
ab6d967fe5 Remove Analysis interface from Build Targets
Also fix the wrong "show" switch and load/creation of gnatsas.csv
Fix Build Target execution directory

(cherry picked from commit 12992ca85b)
2023-09-26 10:42:26 +00:00
Boulanger
da6b8628b1 Support Analyzer package attributes
Quickfix for Analyzer'Switches attribute:
It's too different between Codepeer and Analyzer.

Fix Object_Dir, the Build Target was adding "codepeer" in the path.
We need to do it manually for gnatsas.

(cherry picked from commit 11c424b427)
2023-09-26 10:42:26 +00:00
Boulanger
0e409d4274 New actions and avoid having a GNATSAS build mode
- Don't use a special build mode for gnatsas (update Object_Dir
computation to reflect it)
- Add action to load and display SAM baseline
- Replace calls of cpm_bridge by gnatsas review

(cherry picked from commit ac195ba8d8)
2023-09-26 10:42:26 +00:00
Boulanger
2d69eed005 Fixes for previous patches
- Fix project attributes: they need to be computed on the fly.
- Load GNATSAS module earlier: to properly set Is_GNATSAS as soon
as possible.
- Fix contextual action "GNATSAS/Hide Messages"
- Remove SCIL action/menu for GNATSAS

(cherry picked from commit 50834b557a)
2023-09-26 10:42:26 +00:00
Boulanger
bba24c813c GNATSAS xml plugins enhancements
- Fix messages category name.
- Update CSV and HTML build target switches
- Update Build Target helps
- Remove "Messages" combo box
- Add checkboxes for "No GNAT/GNATcheck/Inspector"

(cherry picked from commit 08d1ad206d)
2023-09-26 10:42:26 +00:00
Boulanger
bd4493747f Handle secondaries actions
- Display => use a different executable
- HTML/CVS => replace by a run of gnatsas report
- Regenerate Report => it was using the old codepeer target
- Log => use gnatsas.log

(cherry picked from commit e28ea7548c)
2023-09-26 10:42:26 +00:00
Boulanger
d76b8aef1c Don't clean the Messages view when generating the report
(cherry picked from commit 804be6f3a6)
2023-09-26 10:42:26 +00:00
Boulanger
a413c89114 GNATSAS support
- Remove switches like compiler-mode
- Separate Run in 2 phases: analyze and then report
- CPL is no longer supported, reuse part of it for GNATSAS
- Handle path not yet transitioned to GNATSAS
- Create Actions and menu for GNATSAS
- Only show Codepeer when GNATSAS is not available

eng/ide/gnatstudio#54

(cherry picked from commit 36079ee283)
2023-09-26 10:42:26 +00:00
Boulanger
ae6519663c Fix style issue introduced by eng/ide/gnatstudio!181
eng/ide/gnatstudio#52
2023-09-14 11:21:09 +02:00
David Hauzar
08925d5b65 Keep only the part of BT library actually used by GS.
In Inspector, BT library is used by BE.Backtraces.Xml_Files to write
XML files with backtraces and Inspector values. In GNAT Studio, BT
library is used to read XML files with Inspector values.

There was one copy of the library in Inspector's repo and one in GS
repo and these two copies were supposed to be manually synchronized.
However, since there is only a little intersection between the part
of the library used in Inspector and in GS, we decided to split the
library into two parts - Inspector part and GS part and to stop
synchronizing these systematically.

This commit puts comments to the parts of the splitted library that
still needs to synchronized, but it is very unlikely that these
will need to be modified. Here is the list of sources with some
intersection between Inspector and GS part:

bt.ads
- small part of the file containing the definition of source code
  position; very unlikely need to be synchronized
bt-xml.{abs, adb}
- definitions of names of XML entities and attributes + the function
  Xml_Vals_File_Name

Then, this commit makes the following changes:

* bt-xml-reader.{adb, ads} - keep only the part necessary for
  reading XML files with Inspector values
* bt.adb - remove - not used in GS
* bt.ads - keep only types representing source positions and values
  of value numbers
* bt-xml.{adb, ads} - keep only string constants for names of XML
  entities and attributes necessary to read XML files with Inspector
  values, keep the function Xml_Vals_File_Name
* message_kinds.{adb, ads} - remove - not used by GS
2023-09-13 13:51:33 +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
Boris Yakobowski
e8b4e264e5 Fix displaying of annotations when they are enabled in GS
(cherry picked from commit 70494cd63e)
2023-08-07 14:10:14 +00:00
Clément Fumex
2f931722c9 update to sam
(cherry picked from commit 654d085169)
2023-08-07 14:10:14 +00:00
Clément Fumex
59bbe563e3 remove CWE attribute
Part of eng/codepeer/codepeer#287

(cherry picked from commit 44eec6fea6)
2023-08-07 14:10:14 +00:00
Clément Fumex
ad1ae8465c Temporary gnatsas support
This commit patches GS in order to support gnatsas at minima, through
the actual codepeer menu, before the new gnatsas menu.

(cherry picked from commit aa906c22d0)
2023-08-07 14:10:14 +00:00