- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
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.
Code: https://github.com/artfulbytes/nsumo_video
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/manual.pdf
⌨️ 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 канала Artful Bytes
Code: https://github.com/artfulbytes/nsumo_video
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/manual.pdf
⌨️ 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 канала Artful Bytes
Комментарии отсутствуют
Информация о видео
2 октября 2022 г. 13:28:57
00:04:47
Другие видео канала





















