Static code analysis tools for C
Utilize static code analysis to find issues in C such as bugs, code smells & security vulnerabilities. Use the Sonar language analyzer with hundreds of rules to evaluate your code and ensure the security, reliability and maintainability of your software.

TRUSTED BY OVER 7M DEVELOPERS WORLDWIDE
Latest C standards
Dedicated static analysis rules to cover the latest language standards from C89 to C18
MISRA
MISRA C-2023, SEI CERT C and more rules implemented to protect your safety-critical code.
Code security
Rules to detect vulnerabilities in C stemming from known OWASP & CWE Top 25 guidelines.
Quick fixes
Allow you to effortlessly repair your C coding issues with just a click.
SonarQube code analysis finds issues while you focus on the work
It all comes from a powerful static analysis engine that we constantly refine. SonarQube Server and Cloud employ advanced rules along with smart, exclusive static code analysis techniques to find the trickiest, most elusive issues, code smells, and security vulnerabilities.
Precise static analysis
Deep static analysis of your code through symbolic execution, path sensitive analysis & cross-function/cross file taint analysis.
Fast issue resolution
Issue contextualization with secondary locations highlighted and clear remediation guidance helps you understand and construct a fix.
Minimal distractions
Automatic pull request analysis with results displayed in the comments of your favorite DevOps platform so you stay in the zone.

"We're not just keeping quality high; we're actually able to go faster … AI makes it easier to deliver velocity, but only if you provide the right context from tools like SonarQube."
Stephen ByrnesDistinguished Engineer

"We're not just keeping quality high; we're actually able to go faster … AI makes it easier to deliver velocity, but only if you provide the right context from tools like SonarQube."
Stephen ByrnesDistinguished Engineer
Produce secure, reliable and maintainable software
Sonar brings Code Quality to where your code lives. Sonar is tightly integrated with your CI/CD workflow to feed you the right info at the right time and place.
C lint analysis in your IDE
SonarQube for IDE in your IDE is your first line of defense for keeping the code you write today clean and secure. Issues are raised in-line with clear rule descriptions and guidance.
With SonarQube for IDE, the impact is immediate and no configuration is required. You learn from the real-time feedback provided and quickly resolve issue with contextual guidance and automatic Quick Fixes!
SonarQube for IDE is available from your IDE marketplace:
Visual Studio | VS Code | JetBrains | Eclipse

C in your workflow
Automatically analyze Pull Requests and feature branches with the results decorated in the DevOps platform of your choice.
Your team can share rule configurations and exclusions across projects and coalesce on a shared definition of excellence. The project Quality Gate is visible to everyone and the releasabity status is clear.
SonarQube Cloud tightly integrates with:
GitHub | Bitbucket | Azure DevOps | GitLab

We support your C development workflow
Supported Environments
We gather the information required for analysis by unobtrusively monitoring your build, so analysis is compatible with:
- Code compiled on Windows, Linux (x86_64 and AArch64), macOS (x86_64 and arm64)
- Any build system
- Incremental code analysis
- Parallel code analysis
Supported Compilers
We provide support for most popular compilers:
- Clang, GCC, MSVC, ARM, QNX compilers
- Intel compilers for Linux, macOS
- Wind River Diab and GCC
- IAR compilers for 8051, ARM, AVR32, AVR, Renesas RL78, Renesas RX, Renesas V850, Renesas H8, and Texas Instruments MSP430
- Texas Instruments compilers on Windows and macOS for ARM, C2000, C6000, C7000, MSP430, PRU
Language Versions & Standards
C89, C99, C11, C17, C23
GNU extensions
MISRA C:2004, MISRA C:2012, MISRA C:2023
SEI CERT C