Skip to content

Commit

Permalink
Suppress ODR violation Cppcheck check for tests
Browse files Browse the repository at this point in the history
Cppcheck treats the whole codebase as if it was to be compiled into a
single object and in tests we have some helper classes with the same
name in multiple executables.
  • Loading branch information
MiKom committed Jul 14, 2024
1 parent b2782cd commit 4fdd5d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
cppcheck --quiet --language=c++ --force --inline-suppr
--enable=warning,performance,portability,information
--disable=missingInclude --check-level=exhaustive
--suppress="ctuOneDefinitionRuleViolation:tests/*"
-i build --library=std.cfg --error-exitcode=42 .
if($LASTEXITCODE -eq 42) {
Expand Down

0 comments on commit 4fdd5d3

Please sign in to comment.