codeql-coding-standards
codeql-coding-standards copied to clipboard
infinite loops that break on volatile-qualified objects
You should add a test for MO-1-2 for a infinite loop that breaks after testing a volatile-qualified object, even if that object is not modified within the loop. This loop should be considered compliant.
https://github.com/github/codeql-coding-standards/blob/bc70b044f71eed50f07a298b69949b7f6c98807b/cpp/autosar/test/rules/M0-1-2/test.cpp#L85