[Ada] snames.ads-tmpl: add comment

2020-06-02  Bob Duff  <duff@adacore.com>

gcc/ada/

	* snames.ads-tmpl: Add comments explaining that enumeration
	types have to be kept in synch with subtypes of Name_Id.
This commit is contained in:
Bob Duff 2019-12-16 12:27:17 -05:00 committed by Pierre-Marie de Rodat
parent 056ea2ec8e
commit 978ca2f545

View File

@ -33,10 +33,15 @@ with Namet; use Namet;
package Snames is package Snames is
-- This package contains definitions of standard names (i.e. entries in the -- This package contains definitions of standard names (i.e. entries in
-- Names table) that are used throughout the GNAT compiler. It also contains -- the Names table) that are used throughout the GNAT compiler. It also
-- the definitions of some enumeration types whose definitions are tied to the -- contains the definitions of some enumeration types whose definitions
-- order of these preset names. -- are tied to the order of these preset names.
-- NOTE WELL: If you add names of attributes, the enumeration type
-- Attribute_Id must be kept in synch (same names in same order, with
-- some exceptions). See the body of Get_Attribute_Id for details. The
-- same is true of other enumeration types declared in this package.
------------------ ------------------
-- Preset Names -- -- Preset Names --