[COMMITED] ada: Tune comment of routine for detecting junk names
Commit Message
From: Piotr Trojanek <trojanek@adacore.com>
Reword comment to avoid repetition between spec and body.
gcc/ada/
* sem_warn.ads (Has_Junk_Name): Reword comment.
Tested on x86_64-pc-linux-gnu, committed on master.
---
gcc/ada/sem_warn.ads | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
@@ -257,12 +257,9 @@ package Sem_Warn is
----------------------
function Has_Junk_Name (E : Entity_Id) return Boolean;
- -- Return True if the entity name contains any of the following substrings:
- -- discard
- -- dummy
- -- ignore
- -- junk
- -- unused
+ -- Return True if the entity name contains substrings like "junk" or
+ -- "dummy" (see the body for the complete list).
+ --
-- Used to suppress warnings on names matching these patterns. The contents
-- of Name_Buffer and Name_Len are destroyed by this call.