25 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
Boulanger
9acb839117 Revamp the source editor formatting provider
Create one for the construct engine and put it as the same level
as the LSP one. Both providers are supporting two requests:
OnTypeFormatting and OnRangeFormatting. There is no more concept
of indent vs format: these are internal settings/preferences
inside the providers.

Create preferences to choose the provider for each requests.
Create a preference to not move the cursor during formatting.

For eng/ide/gnatstudio#522
2025-05-14 11:30:03 +02:00
Anthony Leonardo Gracio
41c30ab309 Update copyright year (no-tn-check)
Change-Id: Ie2cf22f9729f30d2228572a7296c23889be4c563
2023-01-03 11:39:28 +01:00
Nicolas Setton
8dfb192a3b T730-041 Add support for '//' for C comments
Add a preference to control this.
Add a test.

Change-Id: I8ce18806cc7c4f0c9c663af3353cf8d787582950
2022-01-05 11:18:48 +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
e2e60670f3 U609-029 Indent selection.
- autoindent* actions renamed to format* to follow actual
  functionality that they do, corresponding changes in menu,
  key shortcuts etc.

- added 'indent selection' action that only indent
  current line/selection

- added 'Action on new line' preference for C/CPP to control
  whether we do formatting or indenting when a new line has
  been added.

- corresponding changes in tests

no-precommit-check

Change-Id: I245f1fa7dc6190c7e39bdced6fdba83d5f0356c1
2021-06-24 18:21:43 +02:00
Andry Ogorodnik
ad835ae6c6 TC09-020 Create .clang-format for clangd.
Change-Id: I3aa3056eca18b4576553725bba9e1305a1e628b8
2021-01-13 14:55:14 +01: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
Andry Ogorodnik
d9993c6c21 S903-025 Rename GPS to GNAT Studio in comments, strings
Depends-On: If8db363de9c59b395772b715a838e3a785b568d7
Change-Id: I509eebd12037a49e0ff751220c7f6911b7480694
2020-10-28 12:03:44 +01:00
Adrien Boulanger
4f4904c818 Update Copyright 2019 => 2020.
(no-tn-check)

Change-Id: I7b854142151c6fc934c80c14dbe085e8bc7f6bb7
2020-01-07 10:45:26 +01:00
Nicolas Setton
d39a93eff9 S904-002 replace GPS by GNAT Studio in file headers
Change-Id: Icee628af75e0f1bd471a627c987b8024d999eb4b
2019-09-09 12:39:04 +02:00
Anthony Leonardo Gracio
22cf269538 Update copyright year
(no-tn-check)

Change-Id: I27c5f49b41225d056dbc326411dd77b9516a766b
2019-01-03 16:37:00 +01:00
Vadim Godunko
5238335796 R117-025 Update copyright year in headers.
Change-Id: Id2d390da2faf2bc23a6abc32a909740a67bc10de
2018-01-17 19:49:29 +03:00
Emmanuel Briot
70e70fc34e Update copyright notices
Q102-020

Change-Id: I109a4f46a86edf29fbc097f739aa61ed95130ab2
2017-01-03 11:03:03 +01:00
Emmanuel Briot
d38ec04cc0 Update copyright year
Change-Id: I27dc643fbd3773b3a73d0399d83edae0af633c2e
2016-01-04 10:49:40 +01:00
Emmanuel Briot
fa7748c367 Update copyright notices to 2015
Change-Id: Ida4e6137317bd53ef0a556edffaafe4022c74e2a
2015-01-05 15:45:56 +01:00
Emmanuel Briot
ec8702349c Update copyright notices to 2014
N103-019

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@221487 936e1b1b-40f2-da11-902a-00137254ae57
2014-01-06 10:29:22 +00:00
Emmanuel Briot
dc4a13fa2b Update copyright notice to 2013
M103-015

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@200402 936e1b1b-40f2-da11-902a-00137254ae57
2013-01-08 10:50:34 +00:00
Emmanuel Briot
8685316093 Remove references to the old LI engine, except in xref.ad? and
gps-kernel-xref.ad?
LA03-034

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@196541 936e1b1b-40f2-da11-902a-00137254ae57
2012-10-15 15:38:23 +00:00
Emmanuel Briot
8afbc32596 Update license to GPL version 3
Update copyright notice to 2012
KC20-002

git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@182685 936e1b1b-40f2-da11-902a-00137254ae57
2011-12-20 09:35:10 +00:00
Javier Miranda
f92b2ac05c * cpp_module/src/cpp_module.ads
(Create_CPP_Handler): Adding new parameter for the languages handler.

* cpp_module/src/cpp_module.adb
(Create_CPP_Handler): Store the languages handler in the CPP handler.
(Register_Module): Add new actual when invoking Create_CPP_Handler.

* ada_module/ui/src/ada_module.adb
(Register_Module): Add new actual when invoking Create_ALI_Handler.

* kernel/src_info/ali_parser.ads
(Create_ALI_Handler): Adding new parameter for the languages handler.
(ALI_Handler_Record): Adding new field to store the languages handler.

* kernel/src_info/ali_parser.adb
(Update_ALI): Minor reformating.
(Process_Entity_Ref): Add support for entities imported from C.
(Create_ALI_Handler): Store the languages handler in the ALI handler.

* kernel/src_info/entities.ads
(E_Reference): Adding new component (Is_Imported)
(Add_Reference): Adding new formal (Is_Imported).
(No_E_Reference): Add default value of Is_Imported.

* kernel/src_info/entities.adb
(Set_End_Of_Scope): Initialize new component in aggregates (Is_Imported).
(Add_Reference): Use new formal to initialize the new field (Is_Imported).

* kernel/src_info/entities-queries.adb
(Find_Next_Body): Handle references of imported entities.

Subsidiary updates:

* ada_module/ui/src/ada_semantic_tree-crash_test.adb
* kernel/src_info/tests/test_parse.adb
In both cases the new parameter Lang_Handler must be passed
in calls to Create_CPP_Handler and Create_ALI_Handler.

For I401-027

[GPS] Adding support to navigate across language boundary

This patch adds the minimum functionality needed to navigate
in Ada sources through entities imported from C.


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@177794 936e1b1b-40f2-da11-902a-00137254ae57
2011-08-29 12:14:06 +00:00
Arnaud Charlet
1c5d28cb81 Remove handling of source navigator.
Enable GCC gli file handling by default.
Part of H721-006


git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/trunk/gps@164414 936e1b1b-40f2-da11-902a-00137254ae57
2010-09-08 09:19:08 +00:00
Arnaud Charlet
74edc2530f Remove bad executable flag/property.
git-svn-id: svn+ssh://svn.eu/Dev/trunk/gps@107938 936e1b1b-40f2-da11-902a-00137254ae57
2007-06-11 15:03:18 +00:00
Arnaud Charlet
6686d57918 Rename Glide_Window -> GPS_Window
Rename Glide_Kernel -> GPS.Kernel


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@90835 936e1b1b-40f2-da11-902a-00137254ae57
2005-02-25 16:12:38 +00:00
Emmanuel Briot
4a8abb1f79 Initial revision. Files moved from various other modules (kernel and
prj_editor)


git-svn-id: svn+ssh://svn.eu/Dev/importfromcvs/trunk@80815 936e1b1b-40f2-da11-902a-00137254ae57
2003-01-16 10:57:40 +00:00