Debian Codegraph @

gcc/ada/diagnostics-constructors.ads

raw
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- D I A G N O S T I C S . C O N S T R U C T O R S --
6 -- --
7 -- S p e c --
8 -- --
9 -- Copyright (C) 1992-2025, Free Software Foundation, Inc. --
10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under --
12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
17 -- for more details. You should have received a copy of the GNU General --
18 -- Public License distributed with GNAT; see file COPYING3. If not, go to --
19 -- http://www.gnu.org/licenses for a complete copy of the license. --
20 -- --
21 -- GNAT was originally developed by the GNAT team at New York University. --
22 -- Extensive contributions were provided by Ada Core Technologies Inc. --
23 -- --
24 ------------------------------------------------------------------------------
25 with Namet; use Namet;
26
27 package Diagnostics.Constructors is
28
29 function Make_Default_Iterator_Not_Primitive_Error
30 (Expr : Node_Id;
31 Subp : Entity_Id) return Diagnostic_Type;
32
33 procedure Record_Default_Iterator_Not_Primitive_Error
34 (Expr : Node_Id;
35 Subp : Entity_Id);
36
37 function Make_Invalid_Operand_Types_For_Operator_Error
38 (Op : Node_Id;
39 L : Node_Id;
40 L_Type : Node_Id;
41 R : Node_Id;
42 R_Type : Node_Id) return Diagnostic_Type;
43
44 procedure Record_Invalid_Operand_Types_For_Operator_Error
45 (Op : Node_Id;
46 L : Node_Id;
47 L_Type : Node_Id;
48 R : Node_Id;
49 R_Type : Node_Id);
50
51 function Make_Invalid_Operand_Types_For_Operator_L_Int_Error
52 (Op : Node_Id;
53 L : Node_Id;
54 L_Type : Node_Id;
55 R : Node_Id;
56 R_Type : Node_Id) return Diagnostic_Type;
57
58 procedure Record_Invalid_Operand_Types_For_Operator_L_Int_Error
59 (Op : Node_Id;
60 L : Node_Id;
61 L_Type : Node_Id;
62 R : Node_Id;
63 R_Type : Node_Id);
64
65 function Make_Invalid_Operand_Types_For_Operator_R_Int_Error
66 (Op : Node_Id;
67 L : Node_Id;
68 L_Type : Node_Id;
69 R : Node_Id;
70 R_Type : Node_Id) return Diagnostic_Type;
71
72 procedure Record_Invalid_Operand_Types_For_Operator_R_Int_Error
73 (Op : Node_Id;
74 L : Node_Id;
75 L_Type : Node_Id;
76 R : Node_Id;
77 R_Type : Node_Id);
78
79 function Make_Invalid_Operand_Types_For_Operator_L_Acc_Error
80 (Op : Node_Id;
81 L : Node_Id) return Diagnostic_Type;
82
83 procedure Record_Invalid_Operand_Types_For_Operator_L_Acc_Error
84 (Op : Node_Id;
85 L : Node_Id);
86
87 function Make_Invalid_Operand_Types_For_Operator_R_Acc_Error
88 (Op : Node_Id;
89 R : Node_Id) return Diagnostic_Type;
90
91 procedure Record_Invalid_Operand_Types_For_Operator_R_Acc_Error
92 (Op : Node_Id;
93 R : Node_Id);
94
95 function Make_Invalid_Operand_Types_For_Operator_General_Error
96 (Op : Node_Id) return Diagnostic_Type;
97
98 procedure Record_Invalid_Operand_Types_For_Operator_General_Error
99 (Op : Node_Id);
100
101 function Make_Pragma_No_Effect_With_Lock_Free_Warning
102 (Pragma_Node : Node_Id;
103 Pragma_Name : Name_Id;
104 Lock_Free_Node : Node_Id;
105 Lock_Free_Range : Node_Id)
106 return Diagnostic_Type;
107
108 procedure Record_Pragma_No_Effect_With_Lock_Free_Warning
109 (Pragma_Node : Node_Id;
110 Pragma_Name : Name_Id;
111 Lock_Free_Node : Node_Id;
112 Lock_Free_Range : Node_Id);
113
114 function Make_End_Loop_Expected_Error
115 (End_Loc : Source_Span;
116 Start_Loc : Source_Ptr) return Diagnostic_Type;
117
118 procedure Record_End_Loop_Expected_Error
119 (End_Loc : Source_Span;
120 Start_Loc : Source_Ptr);
121
122 function Make_Representation_Too_Late_Error
123 (Rep : Node_Id;
124 Freeze : Node_Id;
125 Def : Node_Id)
126 return Diagnostic_Type;
127
128 procedure Record_Representation_Too_Late_Error
129 (Rep : Node_Id;
130 Freeze : Node_Id;
131 Def : Node_Id);
132
133 function Make_Mixed_Container_Aggregate_Error
134 (Aggr : Node_Id;
135 Pos_Elem : Node_Id;
136 Named_Elem : Node_Id) return Diagnostic_Type;
137
138 procedure Record_Mixed_Container_Aggregate_Error
139 (Aggr : Node_Id;
140 Pos_Elem : Node_Id;
141 Named_Elem : Node_Id);
142
143 end Diagnostics.Constructors;