Skip to content

Commit

Permalink
Merge "fix(cppcheck): cppcheck ignore external repos" into integration
Browse files Browse the repository at this point in the history
  • Loading branch information
soby-mathew authored and TrustedFirmware Code Review committed Dec 15, 2022
2 parents 6ef4ab3 + 204e7d2 commit e2eea7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 8 additions & 2 deletions tools/cppcheck/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,14 @@ if(RMM_STATIC_ANALYSIS_CPPCHECK)
list(APPEND cppcheck-flags "-DCHAR_BIT=8")

#
# Suppress files or directories we don't want to receive warnings about. If
# you want to suppress specific files without using an inline suppression,
# Exclude files or directories we don't want to receive warnings about.
#

list(APPEND cppcheck-flags "-i${CMAKE_SOURCE_DIR}/ext/")
list(APPEND cppcheck-flags "-i${CMAKE_SOURCE_DIR}/lib/libc")

#
# If you want to suppress specific files without using an inline suppression,
# do it in `suppressions.txt`.
#

Expand Down
4 changes: 0 additions & 4 deletions tools/cppcheck/suppressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,3 @@ unusedFunction
// the `missingIncludeSystem` suppression was useless. It's right, but it's
// also not particularly helpful.
unmatchedSuppression

// We don't want to receive warnings about code we don't control, which includes
// any external libraries we vendor.
*:ext/*

0 comments on commit e2eea7c

Please sign in to comment.