public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Iain D Sandoe <iains@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/c++-coroutines] [Ada] Minor reformatting and typo fix Date: Wed, 8 Jul 2020 19:02:27 +0000 (GMT) [thread overview] Message-ID: <20200708190227.3896B386F82E@sourceware.org> (raw) https://gcc.gnu.org/g:98ceb79632938c5dfa74dbf4c84854c0bba5e75a commit 98ceb79632938c5dfa74dbf4c84854c0bba5e75a Author: Gary Dismukes <dismukes@adacore.com> Date: Wed May 20 13:44:34 2020 -0400 [Ada] Minor reformatting and typo fix gcc/ada/ * sem_attr.adb: Remove hyphens in comments, plus minor code reformatting. * sem_ch13.adb: Fix typo (that => than). * sem_util.adb: Add hyphen in comment ("class-wide"). Diff: --- gcc/ada/sem_attr.adb | 14 +++++++------- gcc/ada/sem_ch13.adb | 2 +- gcc/ada/sem_util.adb | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb index fbaaa656a2d..1d4ef0bfb7a 100644 --- a/gcc/ada/sem_attr.adb +++ b/gcc/ada/sem_attr.adb @@ -5513,15 +5513,15 @@ package body Sem_Attr is Pref_Id := Entity (P); -- Either both the prefix and the annotated spec must be - -- generic functions, or they both must be non-generic + -- generic functions, or they both must be nongeneric -- functions, or the prefix must be generic and the spec - -- must be non-generic (i.e. it must denote an instance). + -- must be nongeneric (i.e. it must denote an instance). if (Ekind_In (Pref_Id, E_Function, E_Generic_Function) - and then Ekind (Pref_Id) = Ekind (Spec_Id)) - or else - (Ekind (Pref_Id) = E_Generic_Function - and then Ekind (Spec_Id) = E_Function) + and then Ekind (Pref_Id) = Ekind (Spec_Id)) + or else + (Ekind (Pref_Id) = E_Generic_Function + and then Ekind (Spec_Id) = E_Function) then if Denote_Same_Function (Pref_Id, Spec_Id) then @@ -8079,7 +8079,7 @@ package body Sem_Attr is -- First foldable possibility is a scalar or array type (RM 4.9(7)) -- that is not generic (generic types are eliminated by RM 4.9(25)). - -- Note we allow non-static non-generic types at this stage as further + -- Note we allow nonstatic nongeneric types at this stage as further -- described below. if Is_Type (P_Entity) diff --git a/gcc/ada/sem_ch13.adb b/gcc/ada/sem_ch13.adb index 808c77af0e8..3fb9f61da9d 100644 --- a/gcc/ada/sem_ch13.adb +++ b/gcc/ada/sem_ch13.adb @@ -2296,7 +2296,7 @@ package body Sem_Ch13 is -- Only formals of the subprogram itself can appear -- in Relaxed_Initialization aspect expression, not -- formals of the enclosing generic unit. (This is - -- different that in Precondition or Depends aspects, + -- different than in Precondition or Depends aspects, -- where both kinds of formals are allowed.) Install_Formals (E); diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb index 7ec52b30c79..f7a7c1fb431 100644 --- a/gcc/ada/sem_util.adb +++ b/gcc/ada/sem_util.adb @@ -1517,7 +1517,7 @@ package body Sem_Util is -- corresponding class-wide condition was analyzed. -- The body of the original condition may contain references to - -- the formals of Spec_Id. In the body of the classwide clone, + -- the formals of Spec_Id. In the body of the class-wide clone, -- these must be replaced with the corresponding formals of -- the clone.
reply other threads:[~2020-07-08 19:02 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200708190227.3896B386F82E@sourceware.org \ --to=iains@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).