filmov
tv
Static Analysis for C/C+ with cppcheck (+Makefile) | Embedded System Project Series #9
Показать описание
As a programmer, I make mistakes, the compiler catches some, but far from all, and to catch more I use a static analyser. In this video, I demonstrate cppcheck, which is a static analyser for C/C++. I show how to enable and suppress errors, and create a Makefile-rule that lets me run "make cppcheck" from the command-line to check my entire project.
Example 1:
cppcheck --quiet --enable=all --error-exitcode=1 main.c file1.c src/ -I include/
Example 2 (suppress specific error):
cppcheck --quiet --enable=all --error-exitcode=1 --suppress=unusedFunction:main.c:1
0:00 cppcheck
0:36 Install and Run
1:06 Enable more errors
1:50 Suppress errors
2:43 Multiple files
3:03 Makefile
4:24 Git commit and last words
🌍 Links
⌨️ My development environment
🌍 Links
👨💻 About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware.
Example 1:
cppcheck --quiet --enable=all --error-exitcode=1 main.c file1.c src/ -I include/
Example 2 (suppress specific error):
cppcheck --quiet --enable=all --error-exitcode=1 --suppress=unusedFunction:main.c:1
0:00 cppcheck
0:36 Install and Run
1:06 Enable more errors
1:50 Suppress errors
2:43 Multiple files
3:03 Makefile
4:24 Git commit and last words
🌍 Links
⌨️ My development environment
🌍 Links
👨💻 About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware.
Static Analysis for C and C++ | Parasoft C/C++test
Static Analysis for C/C+ with cppcheck (+Makefile) | Embedded System Project Series #9
PC-lint Plus | Static Code Analysis for C and C++
Static Analysis in C++
Using cppcheck for C & C++ Static Analysis
Parasoft C C++test Static Analysis
What is Static Code Analysis? || Various Examples
Demo With Q&A: How to Create a Static Analysis Workflow with Parasoft C/C++test and GitHub
Program Security - Memory Corruption Tips
QA MISRA, Static Analysis Tool, in 90 seconds
cppcheck || How to use the tool CPPCHECK for doing static analysis of C/C++ codes..
How Can I Enforce the SEI CERT C Coding Standard Using Static Analysis?
Everything I learned about static analysis and program safety in C++
What is Static Code Analysis?
Static Analysis and Program Safety in C++: Making it Real - Sunny Chatterjee - CppCon 2021
Introducing C C++test Static Analysis Extension for the Visual Studio Code Editor | Parasoft
Getting Started with Static Analysis | Parasoft
Using PC-Lint for MISRA and static code analysis
CppCon 2015: Neil MacIntosh “Static Analysis and C++: More Than Lint'
CppCon 2015: Jason Turner “The Current State of (free) Static Analysis'
Finding Bugs Using Path-Sensitive Static Analysis - Gabor Horvath - CppCon 2021
Static Analysis for C# & dotNET | Parasoft dotTEST
What Are Static Analysis Tools?
Mentorship Session: Static Analysis & Tools
Комментарии