forked from universal-ctags/ctags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ada: skip overriding indicator introduced in Ada 2005
Partially close universal-ctags#2382. https://www.adaic.org/resources/add_content/standards/05rm/html/RM-8-3-1.html#S0178 Signed-off-by: Masatake YAMATO <yamato@redhat.com>
- Loading branch information
Showing
5 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
-- Taken from #2382 submitted by @JulienPivard | ||
with Ada.Text_IO; | ||
|
||
package body Carte_P.Tasche_P | ||
with Spark_Mode => Off | ||
is | ||
|
||
--------------------------------------------------------------------------- | ||
task body Tasche_T is | ||
-- Les déclarations qui vont bien. | ||
begin | ||
accept Coucou do | ||
null; | ||
end Coucou; | ||
|
||
Ada.Text_IO.Put_Line (Item => "Wesh gros je suis une tâche"); | ||
|
||
-- accept Inutile do | ||
-- null; | ||
-- end Inutile; | ||
abort Tasche_T; | ||
end Tasche_T; | ||
--------------------------------------------------------------------------- | ||
|
||
--------------------------------------------------------------------------- | ||
overriding | ||
procedure Inutile | ||
(This : in out Tasche_T) | ||
is | ||
begin | ||
null; | ||
end Inutile; | ||
--------------------------------------------------------------------------- | ||
|
||
end Carte_P.Tasche_P; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-- Taken from #2382 submitted by @JulienPivard | ||
-- @summary | ||
-- Implémentation par une tâche. | ||
-- @description | ||
-- Implémentation par une tache de la classe synchronisé. | ||
-- @group Version tâche | ||
package Carte_P.Tasche_P | ||
with | ||
Pure => False, | ||
Preelaborate => False, | ||
Elaborate_Body => True, | ||
Spark_Mode => Off | ||
is | ||
|
||
--------------------------------------------------------------------------- | ||
task type Tasche_T is new Carte_T with | ||
-- Implémentation par une tâche de l'interface Carte_T. | ||
|
||
----------------------------------- | ||
overriding | ||
entry Coucou; | ||
-- Implémentation par un accept. | ||
|
||
----------------------------------- | ||
-- overriding | ||
-- entry Inutile; | ||
-- Implémentation par un accept. | ||
-- @param This | ||
-- La carte. | ||
end Tasche_T; | ||
--------------------------------------------------------------------------- | ||
|
||
overriding | ||
procedure Inutile | ||
(This : in out Tasche_T); | ||
-- Implémentation par une procédure. | ||
-- @param This | ||
-- La carte. | ||
|
||
end Carte_P.Tasche_P; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters