cppcheck用法

#!/bin/sh

mkdir gexinghuar47236

cppcheck --enable=all -j 5 -I CustomizedTrafficServer_pb/include/ CustomizedTrafficServer_pb/* 1>gexinghuar47236/cppcheck_stdout_r47430.log 2>gexinghuar47236/cppcheck_stder

r_r47430.log

cat gexinghuar47236/cppcheck_stderr_r47430.log|grep '(error)'>gexinghuar47236/error.log

cat gexinghuar47236/cppcheck_stderr_r47430.log|grep '(warning)'>gexinghuar47236/warning.log

cat gexinghuar47236/cppcheck_stderr_r47430.log|grep '(information)'>gexinghuar47236/info.log


你可能感兴趣的:(cppcheck用法)