Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Static Analysis for C/C+ with cppcheck (+Makefile) | Embedded System Project Series #9

Автор: Artful Bytes

Загружено: 2022-10-02

Просмотров: 16864

Описание:

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.

Code: https://github.com/artfulbytes/nsumo_...

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
https://cppcheck.sourceforge.io/manua...

⌨️ My development environment
https://www.artfulbytes.com/devenv

🌍 Links
GitHub - https://github.com/artfulbytes
Website - https://www.artfulbytes.com

👨‍💻 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/C+ with cppcheck (+Makefile) | Embedded System Project Series #9

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Simple CI/CD with GitHub Actions and Docker (Compile+Analysis)  | Embedded System Project Series #10

Simple CI/CD with GitHub Actions and Docker (Compile+Analysis) | Embedded System Project Series #10

How Microcontroller Memory Works | Embedded System Project Series #16

How Microcontroller Memory Works | Embedded System Project Series #16

Makefiles and Go: Simplify and automate your workflow

Makefiles and Go: Simplify and automate your workflow

Два способа динамической отправки

Два способа динамической отправки

CMake Tutorial for Embedded C/C++ | Full Step-By-Step Build System Course (Beginners to Advanced)

CMake Tutorial for Embedded C/C++ | Full Step-By-Step Build System Course (Beginners to Advanced)

A New Era for C and C++? Goodbye, Rust?

A New Era for C and C++? Goodbye, Rust?

Microcontroller Programming without IDE (Makefile + Toolchain) | Embedded System Project Series #5

Microcontroller Programming without IDE (Makefile + Toolchain) | Embedded System Project Series #5

Embedded System Project Series

Embedded System Project Series

How to profile your C code using gprof and linux perf

How to profile your C code using gprof and linux perf

Законодательное ограничение C++

Законодательное ограничение C++

Производители ухудшают процессоры

Производители ухудшают процессоры

CMake против Make — сравнение в реальной жизни (с реальным кодом)

CMake против Make — сравнение в реальной жизни (с реальным кодом)

Почему работа в IT убивает интерес к программированию

Почему работа в IT убивает интерес к программированию

Modern CMake for C++

Modern CMake for C++

ИДЕИ ДЛЯ ПРОЕКТОВ ВСТРАИВАЕМЫХ СИСТЕМ — Проекты встраиваемого программного обеспечения от новичка...

ИДЕИ ДЛЯ ПРОЕКТОВ ВСТРАИВАЕМЫХ СИСТЕМ — Проекты встраиваемого программного обеспечения от новичка...

CppCheck - How To Set up Visual Studio Code (VS Code) on Windows to use CppCheck static analysis

CppCheck - How To Set up Visual Studio Code (VS Code) on Windows to use CppCheck static analysis

How to Create a Software Architecture | Embedded System Project Series #6

How to Create a Software Architecture | Embedded System Project Series #6

how Google writes gorgeous C++

how Google writes gorgeous C++

Ваша жизнь изменится! Новые законы с 1 января 2026 года

Ваша жизнь изменится! Новые законы с 1 января 2026 года

Создание простого динамического распределителя памяти (malloc)

Создание простого динамического распределителя памяти (malloc)

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]