[gcc r13-2849] ada: Tune comment of routine for detecting junk names
Marc Poulhiès
dkm@gcc.gnu.org
Mon Sep 26 09:10:48 GMT 2022
https://gcc.gnu.org/g:fb95fb2125230fb594d88a7d73b524853c6604c5
commit r13-2849-gfb95fb2125230fb594d88a7d73b524853c6604c5
Author: Piotr Trojanek <trojanek@adacore.com>
Date: Wed Sep 7 19:11:06 2022 +0200
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:
---
gcc/ada/sem_warn.ads | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/gcc/ada/sem_warn.ads b/gcc/ada/sem_warn.ads
index 1894f36f4b0..6681e545a35 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.
More information about the Gcc-cvs
mailing list