Request for better syntax checking in lang.opt
Martin Liška
mliska@suse.cz
Fri Feb 21 09:43:00 GMT 2020
On 2/20/20 7:08 PM, Thomas Koenig wrote:
> Hi Martin,
>
>> Sure, I can improve sanity checking.
>
> Thanks!
>
>> What exactly have you screwed up?
> I had, in lang.opt
>
> EnumValue
> Enum (gfc_fcoarray) String (native) Value (GFC_FCOARRAY_NATIVE)
>
> It was a bit non-obvious to me that this led to the whole sub-option
> being ignored due to
>
> *drum roll*
>
> the space between the keywords and the opening parenthesis. I have
> internalized the GNU style guides to such an extent that I hardly
> ever see the space there :-)
Hello.
I was able to write a sanity check for these kind of issues, but it does
not resolve all similar issues for other keywords. It's not easy to do it.
Martin
>
> Regards
>
> Â Â Â Â Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-more-sanity-checks-for-enums.patch
Type: text/x-patch
Size: 1985 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20200221/885d4368/attachment.bin>
More information about the Gcc
mailing list