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
- 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
(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
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