From: Piotr Trojanek Date: Wed, 7 Sep 2022 17:11:06 +0000 (+0200) Subject: ada: Tune comment of routine for detecting junk names X-Git-Tag: basepoints/gcc-14~4358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb95fb2125230fb594d88a7d73b524853c6604c5;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/ada/sem_warn.ads b/gcc/ada/sem_warn.ads index 1894f36f4b0c..6681e545a359 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.