Rule 3.1 - Hyperlinks in comments? - Printable Version +- MISRA Discussion Forums (https://forum.misra.org.uk) +-- Forum: MISRA C (https://forum.misra.org.uk/forumdisplay.php?fid=4) +--- Forum: MISRA C:2012 and MISRA C:2023 guidelines (https://forum.misra.org.uk/forumdisplay.php?fid=21) +---- Forum: 8.3 Comments (https://forum.misra.org.uk/forumdisplay.php?fid=158) +---- Thread: Rule 3.1 - Hyperlinks in comments? (/showthread.php?tid=1271) |
Rule 3.1 - Hyperlinks in comments? - Andrew Banks - 02-09-2016 Cross-post from the MISRA C/C++ LinkedIn group Quote:Is there any chance MISRA could alter Rule 3.1 to allow common hyperlinks in C comments such that a Deviation isn't required: The (perfectly sound) Rationale for the Rule is to detect missing */ comment terminators. There is already an Exception to permit // within a */ comment... so a further Exception to permit hyperlinks of the form http://, https://, ftp:// or ftps:// (without requiring a Deviation) seems reasonable? Re: Rule 3.1 - Hyperlinks in comments? - misra-c - 23-09-2016 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.
RE: Rule 3.1 - Hyperlinks in comments? - misra-c - 01-07-2024 MISRA C:2012 Amendment 4 (published Mar 2023) adds an exception for URIs This has been consolidated into MISRA C:2023 |