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

`M0-1-9`: Add test for side effects in a different translation unit

Open rcseacord opened this issue 3 years ago • 0 comments

There should be a test where the side-effecting and no-side effecting functions are in a different translation unit:

https://github.com/github/codeql-coding-standards/blob/9a23abab13bbf3a075dd5f4c1372b93bfcb211e4/cpp/autosar/test/rules/M0-1-9/test.cpp#L1

What is the expected behavior in such as case?

rcseacord avatar Sep 12 '22 14:09 rcseacord