diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-09-07 19:11:06 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-26 11:02:29 +0200 |
commit | fb95fb2125230fb594d88a7d73b524853c6604c5 (patch) | |
tree | 6b3ce626ba33711d3b127da4bccc7af64ffa8071 /gcc | |
parent | 6c37375640f429f68d397be67321c41b8e03fa41 (diff) | |
download | gcc-fb95fb2125230fb594d88a7d73b524853c6604c5.zip gcc-fb95fb2125230fb594d88a7d73b524853c6604c5.tar.gz gcc-fb95fb2125230fb594d88a7d73b524853c6604c5.tar.bz2 |
ada: Tune comment of routine for detecting junk names
Reword comment to avoid repetition between spec and body.
gcc/ada/
* sem_warn.ads (Has_Junk_Name): Reword comment.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/sem_warn.ads | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/ada/sem_warn.ads b/gcc/ada/sem_warn.ads index 1894f36..6681e54 100644 --- a/gcc/ada/sem_warn.ads +++ b/gcc/ada/sem_warn.ads @@ -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. |