You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixing false positives for MISRA C++ 2023 Rule 6.5.1 on googletest ma… (#8086)
When running cppcheck premium with MISRA C++2023 Rule 6.5.1 enabled on
unittests using googletests with `--library=googletest`, cppcheck is
flagging each `TEST(test_suite_name, test_name)` with violation of Rule
6.5.1.
The current definition of `TEST(A,B)` in `googletest.cfg` defines the
function without special care, which violates the MISRA rule.
Following the original MACRO definition from googletest, the PR
introduces encapsulation with a class.
Co-authored-by: Florian Mueller <[email protected]>
0 commit comments