Skip to content

Commit

Permalink
Add vendor folder to include paths for static analysis tools
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpalmisc committed Aug 12, 2024
1 parent e87e92e commit 1098b83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tool/static-analysis-cppcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ cd "$(git rev-parse --show-toplevel)"
# the llvm files in `Target` are ingnored, since they are
# copied directly from llvm.
cxx_files=$(find . -maxdepth 2 -iname "*.cpp" | xargs echo)
includes="-Iinclude -Isrc"
includes="-Iinclude -Ivendor -Isrc"

cppcheck --enable=all --suppress=*:include/tl/expected.hpp --suppress=*:src/Target/* --inline-suppr --error-exitcode=1 --language=c++ --suppress=missingIncludeSystem $cxx_files $cxx_ffi_files $includes
1 change: 1 addition & 0 deletions tool/static-analysis-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ cd "$(git rev-parse --show-toplevel)"
cxx_files=$(find . -maxdepth 2 -iname "*.cpp" | xargs echo)
# Include directories so that headers can be found.
includes="-Iinclude"
includes="-Ivendor"

# Set standard to c++17.
cxx_flags="-std=c++17"
Expand Down

0 comments on commit 1098b83

Please sign in to comment.