Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 19.2 + TC1
#2
There is an anomaly with this rule which was recognised when TC1 was being drafted. The aim of permitting the use of '\' in include file names without deviating Rule 19.2 was to acknowledge that some implementations provide no other means of separating directory and file names.

While you can use '\' without deviating Rule 19.2 you will, as you point out, strictly speaking violate Rule 1.2. For clarity and completeness you should document the decision to permit use of '\'. You could, if you wish, treat this as a violation of Rule 1.2.

This topic will be reviewed during drafting of the next version of the MISRA C Guidelines.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)