Software Alternatives, Accelerators & Startups

Cppcheck

Cppcheck is an analysis tool for C/C++ code. It detects the types of bugs that the compilers normally fail to detect. The goal is no false positives. CppCheckDownload cppcheck for free.

Cppcheck

Cppcheck Reviews and Details

This page is designed to help you find out whether Cppcheck is good and if it is the right choice for you.

Screenshots and images

  • Cppcheck Landing page
    Landing page //
    2021-10-13

Features & Specs

  1. Open Source

    Cppcheck is open-source software, which means it is free to use and its source code is available for modification and distribution under the terms of the GNU General Public License.

  2. Static Analysis

    Cppcheck excels at performing static code analysis, detecting bugs, memory leaks, and potential issues in C and C++ code without executing the program.

  3. Wide Platform Support

    Cppcheck supports a wide range of platforms, including Windows, Linux, and macOS, making it versatile and accessible to developers on different operating systems.

  4. Integrated with IDEs

    Cppcheck can be integrated with popular Integrated Development Environments (IDEs) like Visual Studio, Eclipse, and Code::Blocks, providing seamless code analysis during development.

  5. Customizable

    Cppcheck allows customization of its analysis through command-line options and configurations, enabling users to tailor the tool to their specific needs and project requirements.

  6. Extensive Reporting

    Cppcheck provides detailed reports that highlight various types of issues, making it easier for developers to identify and resolve problems efficiently.

  7. Regular Updates

    Cppcheck is actively maintained, with regular updates and improvements that enhance its capabilities and address any newly discovered issues.

Badges

Promote Cppcheck. You can add any of these badges on your website.

SaaSHub badge
Show embed code

Videos

Cppcheck

Daniel Marjamäki: Cppcheck, static code analysis

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about Cppcheck and what they use it for.
  • Configuring Cppcheck, Cpplint, and JSON Lint
    I dedicated Sunday morning to going over the documentation of the linters we use in the project. The goal was to understand all options and use them in the best way for our project. Seeing their manuals side by side was nice because even very similar things are solved differently. Cppcheck is the most configurable and best documented; JSON Lint lies at the other end. - Source: dev.to / about 1 year ago
  • Enforcing Memory Safety?
    Using infer, someone else exploited null-dereference checks to introduce simple affine types in C++. Cppcheck also checks for null-dereferences. Unfortunately, that approach means that borrow-counting references have a larger sizeof than non-borrow counting references, so optimizing the count away potentially changes the semantics of a program which introduces a whole new way of writing subtly wrong code. Source: almost 2 years ago
  • Static Code analysis
    For my own projects, I used cppcheck. You can check out that tool to get a feel. Depending on what industry your in, you might need to follow a standard like Misra. Source: about 2 years ago
  • How do you not shoot yourself in the foot ?
    Https://cppcheck.sourceforge.io/ (there are many other static analysis tools, I just haven't used them or didn't care for them). Source: about 2 years ago
  • Linting tool for prohibiting the use of specific std types
    Sounds like something that could simply be communicated with the team that writes the tests. Unless you have dozens of such classes. In that case, you could just use e.g. Cppcheck and add a rule (regular expression) that searches for usages of the forbidden classes. Source: over 2 years ago
  • What are the must-have tools for any C++ developer?
    If I had to pick one, I'd go with cppcheck. It's OSS, we have it embedded in our CI, it gives pretty clear feedback and helps keep our team in check. Source: over 2 years ago
  • Can't modern c++ be as safe as rust?
    No. Even if you use 100% modern C++ constructs, and sanitizers/static analyzers, you will not, AFAIK, get the same static memory safety guarantees that Rust provides. Source: almost 3 years ago
  • Why can't compilers detect simple uninitialized variables?
    There are tools called lints (static analyzers) that detect such faults. Cppcheck or clang-analyzer are two of these. Cppcheck found it for me:. Source: over 3 years ago
  • Caught signal 11 (SIGSEGV) and signal 6 (SIGABRT)
    Start by feeding your codebase to a static analysis tool like cppcheck, to rule out obvious bound-checking mistakes in it. Source: almost 4 years ago
  • Why static analysis on C projects is not widespread already?
    Cppcheck is free. I've previously used it with a C++ project. Source: about 4 years ago

External sources with reviews and comparisons of Cppcheck

Top 9 C++ Static Code Analysis Tools
Cppcheck is a popular, open-source, free, cross-platform static code analysis tool dedicated to C and C++. It is known for being easy to use and its simplicity is one of its pros. To get started with it you don’t have to do any adjustments or modifications, which is why it’s often recommended for beginners. It also has a reputation of reporting a relatively small number of false positives, or at least that’s the...

Do you know an article comparing Cppcheck to other products?
Suggest a link to a post with product alternatives.

Suggest an article

Cppcheck discussion

Log in or Post with

Is Cppcheck good? This is an informative page that will help you find out. Moreover, you can review and discuss Cppcheck here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.