Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 3.1 - Hyperlinks in comments?
#2
C90 and C99 strictly conforming compilers have well-defined behaviour for // within a /* comment. However many compilers are non strictly conforming and a variety of behaviour has been observed.

We suggest two methods for including hyperlinks within a comment.
  1. In C99, the use of // within a // comment is permitted in the Exception to this rule.
    Code:
    // See  https://somewhere.over.the.rainbow/way/up/high.htm

  2. Create a deviation/permit which permits the inclusion of // within a /* comment after checks have performed on the compiler that is used to confirm that such inclusion behaves as expected.
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)