Software Alternatives & Reviews

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 Reviews and details

Screenshots and images

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

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 month 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: 10 months 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 1 year 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 1 year 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: about 1 year 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 1 year 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: over 1 year 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 2 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: over 2 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 3 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

Generic Cppcheck discussion

Log in or Post with

This is an informative page about Cppcheck. You can review and discuss the product 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.