public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1890] [Ada] Fix style in Get_Fullest_View
@ 2021-06-29 14:25 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-06-29 14:25 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:bd881d83c11fa1d8779e076708ef72be6fc2dbe7

commit r12-1890-gbd881d83c11fa1d8779e076708ef72be6fc2dbe7
Author: Piotr Trojanek <trojanek@adacore.com>
Date:   Tue Apr 6 13:11:09 2021 +0200

    [Ada] Fix style in Get_Fullest_View
    
    gcc/ada/
    
            * sem_util.ads (Get_Fullest_View): Refill comment; remove extra
            extra after period.
            * sem_util.adb (Get_Fullest_View): Fix style.

Diff:
---
 gcc/ada/sem_util.adb | 12 ++++++++----
 gcc/ada/sem_util.ads |  6 +++---
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index f723781fd78..0d509526314 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -10772,22 +10772,26 @@ package body Sem_Util is
          when E_Class_Wide_Type =>
             return Get_Fullest_View (Root_Type (E), Include_PAT);
 
-         when  E_Class_Wide_Subtype =>
+         when E_Class_Wide_Subtype =>
             if Present (Equivalent_Type (E)) then
                return Get_Fullest_View (Equivalent_Type (E), Include_PAT);
             elsif Present (Cloned_Subtype (E)) then
                return Get_Fullest_View (Cloned_Subtype (E), Include_PAT);
             end if;
 
-         when E_Protected_Type | E_Protected_Subtype
-            | E_Task_Type |  E_Task_Subtype =>
+         when E_Protected_Subtype
+            | E_Protected_Type
+            | E_Task_Subtype
+            | E_Task_Type
+         =>
             if Present (Corresponding_Record_Type (E)) then
                return Get_Fullest_View (Corresponding_Record_Type (E),
                                         Include_PAT);
             end if;
 
          when E_Access_Protected_Subprogram_Type
-            | E_Anonymous_Access_Protected_Subprogram_Type =>
+            | E_Anonymous_Access_Protected_Subprogram_Type
+         =>
             if Present (Equivalent_Type (E)) then
                return Get_Fullest_View (Equivalent_Type (E), Include_PAT);
             end if;
diff --git a/gcc/ada/sem_util.ads b/gcc/ada/sem_util.ads
index f9db80ea496..10375ff9563 100644
--- a/gcc/ada/sem_util.ads
+++ b/gcc/ada/sem_util.ads
@@ -1328,9 +1328,9 @@ package Sem_Util is
 
    function Get_Fullest_View
      (E : Entity_Id; Include_PAT : Boolean := True) return Entity_Id;
-   --  Get the fullest possible view of E, looking through private,
-   --  limited, packed array and other implementation types.  If Include_PAT
-   --  is False, don't look inside packed array types.
+   --  Get the fullest possible view of E, looking through private, limited,
+   --  packed array and other implementation types. If Include_PAT is False,
+   --  don't look inside packed array types.
 
    function Has_Access_Values (T : Entity_Id) return Boolean;
    --  Returns true if the underlying type of T is an access type, or has a


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-29 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 14:25 [gcc r12-1890] [Ada] Fix style in Get_Fullest_View Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).