Analysis tools logo

80 C Static Analysis Tools

Type:
Any

What is C?

C is an imperative procedural language. It was designed to be compiled to provide low-level access to memory and language constructs that map efficiently to machine instructions, all with minimal runtime support. Despite its low-level capabilities, the language was designed to encourage cross-platform programming. A standards-compliant C program written with portability in mind can be compiled for a wide variety of computer platforms and operating systems with few changes to its source code.

(More info)

What are the best C analysis tools?

75

Teamscale

  • Type: service
  • Type: ide-plugin

Static and dynamic analysis tool supporting more than 25 languages and direct IDE integration. Free hosting for Open Source projects available on request. Free academic licenses available.

24

clang-tidy

  • Type: cli

clang static analyser.

21

Semgrep

  • Type: cli
2047

Free, open-source lightweight static analysis for many languages. Find and block bug variants with patterns that look like source code.

12

Astrée

  • Type: cli

Sound static analyzer based on abstract interpretation for C/C++, detecting memory, type and concurrency defects, and MISRA violations.

12

Coverity

  • Type: cli

Synopsys Coverity supports 20 languages and over 70 frameworks including Ruby on rails, Scala, PHP, Python, JavaScript, TypeScript, Java, Fortran, C, C++, C#, VB.NET.

11

CodeScene

  • Type: service

CodeScene is a quality visualization tool for software. Prioritize technical debt, detect delivery risks, and measure organizational aspects. Fully automated.

10

Frama-C

  • Type: cli

A sound and extensible static analyzer for C code.

10

PVS-Studio

  • Type: service

A ([conditionally free](https://www.viva64.com/en/b/0614/) for FOSS and individual developers) static analysis of C, C++, C# and Java code. For advertising purposes [you can propose a large FOSS project for analysis by PVS employees](https://github.com/viva64/pvs-studio-check-list). Supports CWE mapping, MISRA and CERT coding standards.

10

scan-build

  • Type: cli

Analyzes C/C++ code using LLVM at compile-time.

9

DeepCode

  • Type: service

DeepCode finds bugs, security vulnerabilities, performance and API issues based on AI. DeepCode's speed of analysis allow us to analyse your code in real time and deliver results when you hit the save button in your IDE. Supported languages are Java, C/C++, JavaScript, Python, and TypeScript. Integrations with GitHub, BitBucket and Gitlab.

8

Phasar

  • Type: cli
451

A LLVM-based static analysis framework which comes with a taint and type state analysis.

7

Infer

  • Type: cli
11678

A static analyzer for Java, C and Objective-C

6

CodeSonar from GrammaTech

  • Type: cli

Advanced, whole program, deep path, static analysis of C and C++ with easy-to-understand explanations and code and path visualization.

4

Helix QAC

  • Type: cli

Enterprise-grade static analysis for embedded software. Supports MISRA, CERT, and AUTOSAR coding standards.

4

Klocwork

  • Type: service

Quality and Security Static analysis for C/C++, Java and C#.

3

CBMC

  • Type: cli
269

Bounded model-checker for C programs, user-defined assertions, standard assertions, several coverage metric analyses.

3

PC-lint

  • Type: cli

Static analysis for C/C++. Runs natively under Windows/Linux/MacOS. Analyzes code for virtually any platform, supporting C11/C18 and C++17.

2

Atom-Beautify

  • Type: ide-plugin
1462

Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom editor.

2

flint++

  • Type: cli
240

Cross-platform, zero-dependency port of flint, a lint program for C++ developed and used at Facebook.

2

Polyspace Bug Finder

  • Type: cli

Identifies run-time errors, concurrency issues, security vulnerabilities, and other defects in C and C++ embedded software.

2

Semmle QL and LGTM

  • Type: cli

Find security vulnerabilities, variants, and critical code quality issues using queries over source code. Automatic PR code review; free for public GitHub/Bitbucket repo: [LGTM.com](https://LGTM.com).

2

Unibeautify

  • Type: cli
  • Type: service
455

Universal code beautifier with a GitHub app. Supports HTML, CSS, JavaScript, TypeScript, JSX, Vue, C++, Go, Objective-C, Java, Python, PHP, GraphQL, Markdown, and more.

1

Axivion Bauhaus Suite

  • Type: cli

Tracks down error-prone code locations, style violations, cloned or dead code, cyclic dependencies and more for C/C++, C#/.NET, Java and Ada 83/Ada 95.

1

cpplint

  • Type: cli

Automated C++ checker that follows Google's style guide.

1

flawfinder

  • Type: cli
98

Finds possible security weaknesses.

1

IKOS

  • Type: cli
1317

A sound static analyzer for C/C++ code based on LLVM.

1

LDRA

  • Type: cli

A tool suite including static analysis (TBVISION) to various standards including MISRA C & C++, JSF++ AV, CWE, CERT C, CERT C++ & Custom Rules.

1

Polyspace Code Prover

  • Type: cli

Provide code verification that proves the absence of overflow, divide-by-zero, out-of-bounds array access, and certain other run-time errors in C and C++ source code.

1

pre-commit

  • Type: cli
5017

A framework for managing and maintaining multi-language pre-commit hooks.

1

splint

  • Type: cli
163

Annotation-assisted static program checker.

1

todocheck

  • Type: cli
296

Linter for integrating annotated TODOs with your issue trackers

0

AppChecker

  • Type: cli

Static analysis for C/C++/C#, PHP and Java.

0

Application Inspector

  • Type: service

Commercial Static Code Analysis which generates exploits to verify vulnerabilities.

0

ApplicationInspector

  • Type: cli
3706

Creates reports of over 400 rule patterns for feature detection (e.g. the use of cryptography or version control in apps).

0

clazy

  • Type: cli
392

Qt-oriented static code analyzer based on the Clang framework. clazy is a compiler plugin which allows clang to understand Qt semantics. You get more than 50 Qt related compiler warnings, ranging from unneeded memory allocations to misusage of API, including fix-its for automatic refactoring.

0

CMetrics

  • Type: cli
49

Measures size and complexity for C files.

0

coala

  • Type: cli
3066

Language independent framework for creating code analysis - supports [over 60 languages](https://coala.io/languages) by default.

0

Cobra

  • Type: cli

Structural source code analyzer by NASA's Jet Propulsion Laboratory.

0

Code Inspector

  • Type: service

Code quality and technical debt management platform that supports 10+ languages.

0

codeburner

  • Type: cli
84

Provides a unified interface to sort and act on the issues it finds.

0

codechecker

  • Type: cli
1084

A defect database and viewer extension for the Clang Static Analyzer with web GUI.

0

Code Intelligence

  • Type: service

CI/CD-agnostic DevSecOps platform which combines industry-leading fuzzing engines for finding bugs and visualizing code coverage

0

codeql

  • Type: service
  • Type: ide-plugin

Deep code analysis - semantic queries and dataflow for several languages with VSCode plugin support.

0

cqmetrics

  • Type: cli
39

Quality metrics for C code.

0

Depends

  • Type: cli
91

Analyses the comprehensive dependencies of code elements for Java, C/C++, Ruby.

0

DevSkim

  • Type: ide-plugin
496

Regex-based static analysis tool for Visual Studio, VS Code, and Sublime Text - C/C++, C#, PHP, ASP, Python, Ruby, Java, and others.

0

ESBMC

  • Type: cli
79

ESBMC is an open source, permissively licensed, context-bounded model checker based on satisfiability modulo theories for the verification of single- and multi-threaded C/C++ programs.

0

Fortify

  • Type: ide-plugin

A commercial static analysis platform that supports the scanning of C/C++, C#, VB.NET, VB6, ABAP/BSP, ActionScript, Apex, ASP.NET, Classic ASP, VB Script, Cobol, ColdFusion, HTML, Java, JS, JSP, MXML/Flex, Objective-C, PHP, PL/SQL, T-SQL, Python (2.6, 2.7), Ruby (1.9.3), Swift, Scala, VB, and XML.

0

Goodcheck

  • Type: cli
109

Regexp based customizable linter.

0

graudit

  • Type: cli
674

Grep rough audit - source code auditing tool.

0

include-gardener

  • Type: cli
51

A multi-language static analyzer for C/C++/Obj-C/Python/Ruby to create a graph (in dot or graphml format) which shows all `#include` relations of a given set of files.

0

Joern

  • Type: cli
280

Open-source code analysis platform for C/C++ based on code property graphs

0

Kiuwan

  • Type: service

Identify and remediate cyber threats in a blazingly fast, collaborative environment, with seamless integration in your SDLC. Python, C\C++, Java, C#, PHP and more.

0

LGTM.com

  • Type: service

Deep code analysis for GitHub and Bitbucket to find security vulnerabilities and critical code quality issues (using Semmle QL). Automatic code review for pull requests; free for public repositories.

0

Lumnify

  • Type: cli

Benchmark against thousands of projects, and analyse code for structural quality with focus on maintainability.

0

oclint

  • Type: cli
3194

A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C.

0

Pronto

  • Type: cli
2324

Quick automated code review of your changes. Supports more than 40 runners for various languages, including Clang, Elixir, JavaScript, PHP, Ruby and more.

0

relint

  • Type: cli
23

A static file linter that allows you to write custom rules using regular expressions (RegEx).

0

Security Code Scan

  • Type: ide-plugin
491

Security code analyzer for C# and VB.NET. Detects various security vulnerability patterns: SQLi, XSS, CSRF, XXE, Open Redirect, etc. Integrates into Visual Studio 2015 and newer. Detects various security vulnerability patterns: SQLi, XSS, CSRF, XXE, Open Redirect, etc.

0

CScout

  • Type: cli
132

Complexity and quality metrics for for C and C preprocessor code.

0

SmartDec Scanner

  • Type: cli

SAST tool which is capable of identifying vulnerabilities and undocumented features. The analyzer scans the source code and executables without debug info (i.e. binaries). Supports: Java/Scala/Kotlin, PHP, C#, JavaScript, TypeScript, VBScript, HTML5, Python, Perl, C/C++, Objective-C/Swift, PL/SQL, T-SQL, ABAP, 1C, Apex, Go, Ruby, Groovy, Delphi, VBA, Visual Basic 6, Solidity, Vyper, COBOL.

0

SonarLint for Visual Studio

  • Type: cli
223

SonarLint is an extension for Visual Studio 2015 and 2017 that provides on-the-fly feedback to developers on new bugs and quality issues injected into .NET code.

0

SVF

  • Type: cli
474

A static tool that enables scalable and precise interprocedural dependence analysis for C and C++ programs.

0

TscanCode

  • Type: cli
1045

A fast and accurate static analysis solution for C/C++, C#, Lua codes provided by Tencent. Using GPLv3 license.

0

Undebt

  • Type: cli
1635

Language-independent tool for massive, automatic, programmable refactoring based on simple pattern definitions.

0

vera++

  • Type: cli

Vera++ is a programmable tool for verification, analysis and transformation of C++ source code.

0

Veracode

  • Type: cli

Find flaws in binaries and bytecode without requiring source. Support all major programming languages: Java, .NET, JavaScript, Swift, Objective-C, C, C++ and more.

-1

APPscreener

  • Type: cli

Static code analysis for binary and source code - Java/Scala, PHP, Javascript, C#, PL/SQL, Python, T-SQL, C/C++, ObjectiveC/Swift, Visual Basic 6.0, Ruby, Delphi, ABAP, HTML5 and Solidity.

-1

CAST Highlight

  • Type: cli

Commercial Static Code Analysis which runs locally, but uploads the results to its cloud for presentation.

-1

Synopsys

  • Type: cli

A commercial static analysis platform that allows for scanning of multiple languages (C/C++, Android, C#, Java, JS, PHP, Python, Node.JS, Ruby, Fortran, and Swift).

-1

XCode

  • Type: cli

XCode provides a pretty decent UI for [Clang's](http://clang-analyzer.llvm.org/xcode.html) static code analyzer (C/C++, Obj-C).

-2

Embold

  • Type: service

Intelligent software analytics platform that identifies design issues, code issues, duplication and metrics. Supports Java, C, C++, C#, JavaScript, TypeScript, Python, Go, Kotlin and more.

Deprecated/unmaintained tools

0

Corrode

  • Type: cli
2033

Semi-automatic translation from C to Rust. Could reveal bugs in the original implementation by showing Rust compiler warnings and errors. Superseded by C2Rust.

0

CppDepend

  • Type: cli

Measure, query and visualize your code and avoid unexpected issues, technical debt and complexity.

0

pfff

  • Type: cli
64

Facebook's tools for code analysis, visualizations, or style-preserving source transformation for many languages.

0

shipshape

  • Type: cli
247

Static program analysis platform that allows custom analyzers to plug in through a common interface.

❤️ Sponsor this project

We are currently looking for partners who want to sponsor hosting and development of the project.

Check out our Github Sponsors page here

Missing an entry? Please let us know.