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
# default max configs is set to 12, warn if code contains more configurations than that
3963
3980
_, _, stderr=cppcheck(args)
3964
-
assertstderr.splitlines() == [
3965
-
'{}:0:0: information: Too many #ifdef configurations - cppcheck only checks 12 of 20 configurations. Use --force to check all configurations. [toomanyconfigs]'.format(test_file)
3966
-
]
3967
-
3968
-
# set explicit max configs => do not warn
3969
-
# configurations are likely skipped by intention
3970
-
_, _, stderr=cppcheck(['--max-configs=6'] +args)
3971
-
assertstderr.splitlines() == []
3972
-
3973
-
# when using --check-configs, warn if code contains more than max configs
'{}:0:0: information: Too many #ifdef configurations - cppcheck only checks 6 of 20 configurations. Use --force to check all configurations. [toomanyconfigs]'.format(test_file)
3977
-
]
3978
-
3979
-
# when using --check-configs, do not warn if code contains less than max configs
'{}:0:0: information: Too many #ifdef configurations - cppcheck only checks {} of {} configurations. Use --force to check all configurations. [toomanyconfigs]'
0 commit comments