Skip to content

Commit

Permalink
For some reason, cppcheck fails on tutorial.cpp...
Browse files Browse the repository at this point in the history
  • Loading branch information
mraggi committed Jul 25, 2018
1 parent 58af187 commit 16267ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmarks/parallel/parallel_benchmarks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main(int argc, char* argv[])
{
try
{
std::string np = argv[1];
std::string np = argv[1]; //NOLINT: I know argv has at least size 2
num_processors = std::stoi(np);
}
catch (...)
Expand Down
6 changes: 3 additions & 3 deletions cppcheck-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ rm -rf build-cppcheck
mkdir build-cppcheck
cd build-cppcheck

cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DBUILD_BENCHMARKS=ON ..
echo -e "---------------\n"

cppcheck --project=compile_commands.json --enable=all > cppcheckoutput.txt
sed -i 's/tutorial\.cpp/tutorial_parallel\.cpp/g' compile_commands.json
cppcheck --project=compile_commands.json --enable=all -i /home/mraggi/Dropbox/sources/Mathematics/discreture/examples/tutorial.cpp
cd ..

0 comments on commit 16267ff

Please sign in to comment.