Static code analysis - cppcheck
Great static code analysis tool for C/C++ programming language
Install
sudo apt install cppcheck
Run cppcheck and redirect result to output file
cppcheck --enable=all --force -j4 . 2> output
run cppcheck with html report
cppcheck --enable=all --inconclusive --xml-version=2 --force --library=windows,posix,gnu [PATH_TO_SOURCE] 2> result.xml && cppcheck-htmlreport --title="Your Project Name" --source-dir=[PATH_TO_SOURCE] --report-dir=[OUTPUT_DIR] --file=result.xml && rm result.xml
Would like to try latest version of cppcheck? just clone the source from github
https://github.com/danmar/cppcheck.git
for more detailed information, please visit the home page
https://github.com/danmar/cppcheck
Reference
https://sites.google.com/site/opensourceconstriubtions/ettl-martin-1/tutorials/how-to-generate-an-html-report-with-doxygen-using-the-linux-command-line-interface
Subscribe to:
Post Comments (Atom)
Orange - data analysis tool
Installation pip install orange3 Run orange python -m Orange.canvas
-
Calling Gnuplot in C Download: callGnuPlot.c 懶惰是程式設計師的天性,所以才會創造出許多方便的程式,最近一直需要作圖分析,厭倦了Origin重複且繁複的設定,所以決定將要分析的資料使用c做分析後再由gnuplot畫出。 熟悉gnuplo...
-
Qt 4.5 QGroupBox with QGTkStyle 經 jensbw 前輩指導之後得知以下的效果原來是因為Qt 4.5為了要保留原生的Gnome的特效採用了QGtkStyle而造成的,並不是程式上得錯誤。而QGtkStyle則是Qt 4.5所強調的新功能之一,看來我真...
-
Installation pip install orange3 Run orange python -m Orange.canvas
No comments:
Post a Comment