sparse

Static C code analysis tool for finding potential bugs and style violations

brewmacoslinux
Try with needOr install directly
Source

About

Static C code analysis tool

Commands

sparse

Examples

Analyze a single C source file for issues$ sparse file.c
Analyze multiple files with warnings enabled$ sparse -Wall file1.c file2.c
Check for endianness issues in code$ sparse -Dendian=little file.c