cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

static analysis of C/C++ code

Results 369 cppcheck issues
Sort by recently updated
recently updated
newest added

This shows that there's only two calls which actually require the `const_cast` so there's no need to do it arbitrary all over the code (there was even at least one...

A ticket about this has been filed upstream: https://github.com/llvm/llvm-project/issues/56996.

Solves [#5994](https://trac.cppcheck.net/ticket/5994). A few notes: - I don't know where is the correct place to put this check (I don't think it is where I put it, but moving is...

With these we now have target parity between make and CMake. There's still some compiler/platform-specific code which needs to be added to CMake for full parity.

1. Added `IterateTokens` class which can be used to iterate tokens as C++11 range-based loops. ```cpp for (const auto &tok : IterateTokens(scope)) { // ... } ``` 2. Added macro...

Related issues: ~https://trac.cppcheck.net/ticket/10105~ ~https://trac.cppcheck.net/ticket/11182~ ~https://trac.cppcheck.net/ticket/11183~ ~https://trac.cppcheck.net/ticket/11523~ ~https://trac.cppcheck.net/ticket/11543~ https://trac.cppcheck.net/ticket/11555 ~https://trac.cppcheck.net/ticket/10946~ https://trac.cppcheck.net/ticket/11313 ~https://trac.cppcheck.net/ticket/13105~ ~https://trac.cppcheck.net/ticket/13125~