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
-
Socket Connection 節錄自筆者的Network Programming其中的資料,一般在Windows底下如果要寫網路程式多半會想到Microsoft MFC提供的相關API,而Linux底下則多使用Unix Socket來實現,這裡筆者要簡短的介紹如何使用最基礎...
-
system("pause") for linux 在windows底下如果不想藉由開發工具做debug時,筆者我多數使用system("pause")這個指令,但是一到了linux之後,這個指令完全無效,因為linux的termainl底...
-
pthread-win32 Download: pthread_win32.zip pthread這麼好用的一個API要是能夠在Windows底下執行也能開發那該有多好,感謝有人去做這個API的平台移植,現在你可以到下面這個網頁去下載pthread-win32,讓你在Window...
No comments:
Post a Comment