Check_Arg_Is_OK_Static_Expression (Arg2, Standard_String);
Analyze_And_Resolve (Arg1x, Standard_Boolean);
+ Mark_Ghost_Pragma (N, Current_Scope);
+
if CodePeer_Mode then
Rewrite (N, Make_Null_Statement (Loc));
return;
raise Pragma_Exit;
end if;
- -- Mark assertion pragmas as Ghost depending on their enclosing context
-
- if Assertion_Expression_Pragma (Prag_Id) then
- Mark_Ghost_Pragma (N, Current_Scope);
- end if;
-
-- Preset arguments
Arg_Count := List_Length (Pragma_Argument_Associations (N));
Check_At_Most_N_Arguments (2);
Gather_Associations (Names, Args);
Check_Arg_Order (Names);
+ Mark_Ghost_Pragma (N, Current_Scope);
-- Special processing for Loop_Invariant, Loop_Variant or for
-- other cases where a Loop_Entry attribute is present. If the
-- the mode now to ensure that any nodes generated during analysis
-- and expansion are marked as Ghost.
+ Mark_Ghost_Pragma (N, Current_Scope);
+
Set_Ghost_Mode (N);
GNAT_Pragma;
GNAT_Pragma;
Check_At_Least_N_Arguments (1);
Check_Loop_Pragma_Placement;
+ Mark_Ghost_Pragma (N, Current_Scope);
-- Process all increasing / decreasing expressions