codeql-coding-standards icon indicating copy to clipboard operation
codeql-coding-standards copied to clipboard

infinite loops that break on volatile-qualified objects

Open rcseacord opened this issue 2 years ago • 0 comments

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

rcseacord avatar Sep 07 '22 14:09 rcseacord