else
Check_Arg_Count (1);
+ if Ignore_Style_Checks_Pragmas then
+ return;
+ end if;
+
if Nkind (A) = N_String_Literal then
S := Strval (A);
-- them in the parser.
if J = Slen then
- if not Ignore_Style_Checks_Pragmas then
- Set_Style_Check_Options (Options);
- end if;
+ Set_Style_Check_Options (Options);
exit;
end if;
elsif Nkind (A) = N_Identifier then
if Chars (A) = Name_All_Checks then
- if not Ignore_Style_Checks_Pragmas then
- if GNAT_Mode then
- Set_GNAT_Style_Check_Options;
- else
- Set_Default_Style_Check_Options;
- end if;
+ if GNAT_Mode then
+ Set_GNAT_Style_Check_Options;
+ else
+ Set_Default_Style_Check_Options;
end if;
elsif Chars (A) = Name_On then
- if not Ignore_Style_Checks_Pragmas then
- Style_Check := True;
- end if;
+ Style_Check := True;
elsif Chars (A) = Name_Off then
- if not Ignore_Style_Checks_Pragmas then
- Style_Check := False;
- end if;
+ Style_Check := False;
end if;
end if;
end if;