PPI and Perl::Critic allow programmers to detect certain things in the syntax of their Perl programs.
Is there anything like it that will tokenize/parse C and give you a chance to write a script to do something with that information?
PPI and Perl::Critic allow programmers to detect certain things in the syntax of their Perl programs.
Is there anything like it that will tokenize/parse C and give you a chance to write a script to do something with that information?
There is an open source program called Splint:
Splint is a tool for statically checking C programs for security vulnerabilities and coding mistakes. With minimal effort, Splint can be used as a better lint. If additional effort is invested adding annotations to programs, Splint can perform stronger checking than can be done by any standard lint.
C related programs:
Clang — A compiler that includes a static analyzer.
Frama-C — A static analysis framework for C.
Sparse — A tool designed to find faults in the Linux kernel.
Splint — An open source evolved version of Lint (C language).
List of tools for Static Code Analysis for C (more than the list above)