Open
Description
Affected rules
A2-5-2
Description
The checker for "Rule A2-5-2 (required, implementation, automated) Digraphs shall not be used." was not implemented. Presumably, the expectation was that compiler flags would be sufficient. However, this is not the case.
Clang has the following flag:
-fno-digraphs
Disables alternative token representations <:
, :>
, <%
, %>
, %:
, %:%:
(default)
I haven't tested this, but presumably disable means that it stops converting them into the corresponding characters. However, to be compliant with the rule we need to diagnose these sequences of characters, even if they are not translated.
GCC is much worse, as they have no checker at all so there is no way to enforce this rule if you are using this compiler.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Triaged