Par_Spec_Name : Unit_Name_Type;
Spec_Id : Entity_Id;
Unum : Unit_Number_Type;
+ Options : Style_Check_Options;
-- Start of processing for Analyze_Compilation_Unit
Set_Context_Pending (N);
end if;
+ -- Store the style check options before analyzing context pragmas that
+ -- might change them for this compilation unit.
+
+ Save_Style_Check_Options (Options);
+
Analyze_Context (N);
Set_Context_Pending (N, False);
Pop_Scope;
end if;
+ -- Finally restore all the original style check options
+
+ Set_Style_Check_Options (Options);
+
-- If No_Elaboration_Code_All was encountered, this is where we do the
-- transitive test of with'ed units to make sure they have the aspect.
-- This is delayed till the end of analyzing the compilation unit to