This fixes an old issue whereby violations of the style check -gnatyc are
sometimes reported as violations of -gnatyt instead.
gcc/ada/
PR ada/121184
* styleg.adb (Check_Comment): Use consistent warning message.
if Is_Box_Comment
or else Style_Check_Comments_Spacing = 1
then
- Error_Space_Required (Scan_Ptr + 2);
+ Error_Msg -- CODEFIX
+ ("(style) space required?c?", Scan_Ptr + 2);
else
Error_Msg -- CODEFIX
("(style) two spaces required?c?", Scan_Ptr + 2);
-- box comment.
elsif not Is_Box_Comment then
- Error_Space_Required (Scan_Ptr + 3);
+ Error_Msg -- CODEFIX
+ ("(style) space required?c?", Scan_Ptr + 3);
end if;
end if;
end Check_Comment;