clion-cppcheck icon indicating copy to clipboard operation
clion-cppcheck copied to clipboard

:ballot_box_with_check: cppcheck plugin for CLion

Results 40 clion-cppcheck issues
Sort by recently updated
recently updated
newest added

```cpp int f(int*p){return *p;} ``` ![image](https://user-images.githubusercontent.com/242857/180854845-ce6b5cf2-6c53-460b-be3b-3ae66939d25a.png) If you add the newline at the end of the line it shows up in the `Problems` tab as expected.

bug

We currently suppress `unmatchedSuppression` findings unconditionally but this is actually something interesting as it will indicate no longer applying (inline) suppressions.

enhancement

### Environment * Operating System (e.g. Ubuntu 16.04 x64): Windows 10 Version 1909 * IDE Version (e.g. CLion 2016.3.2): Clion 2020.1 * Cppcheck executable version (`cppcheck --version`): 1.90 * Cppcheck...

bug
upstream

```cpp #include static char* f() { return std::string().c_str(); } ``` Running Cppcheck on the command-line will show the following: ``` input.cpp:4:31: error: Returning object that will be invalid when returning....

enhancement
help wanted

![image](https://user-images.githubusercontent.com/242857/103000927-44cb8c00-452c-11eb-8aa9-d0f217def134.png) Workarounds for the messages in question will be outlined in an upcoming PR which fleshes out the `Known Issues` section in the documentation. These should probably be shown as...

``` java.lang.Throwable: Synchronous execution under ReadAction: C:\Apps\cppcheck\cppcheck.exe -IC:/clion/mqtt/src/nodes --enable=all --suppress=noExplicitConstructor --suppress=unusedFunction --inline-suppr --language=c++ \"C:\Users\Username\AppData\Local\Temp\___endpoint.cpp\" at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145) at com.intellij.execution.process.OSProcessHandler.checkEdtAndReadAction(OSProcessHandler.java:147) at com.intellij.execution.process.OSProcessHandler.waitFor(OSProcessHandler.java:85) at com.intellij.execution.process.CapturingProcessRunner.runProcess(CapturingProcessRunner.java:114) at com.intellij.execution.process.CapturingProcessRunner.runProcess(CapturingProcessRunner.java:73) at com.intellij.execution.process.CapturingProcessHandler.runProcessWithProgressIndicator(CapturingProcessHandler.java:83) at com.github.johnthagen.cppcheck.CppcheckInspection.executeCommandOnFile(CppcheckInspection.java:177) at com.github.johnthagen.cppcheck.CppcheckInspection.checkFile(CppcheckInspection.java:69)...

bug
upstream

`test.h` ```cpp enum Type { ERROR }; struct A { }; ``` `test.cpp` ```cpp #include "test.h" extern void f() { A a; // unusedVariable } ``` In Cppcheck 2.4 the...

Follow: https://plugins.jetbrains.com/docs/intellij/getting-started.html - [ ] Revert #67 and #68 - [ ] No `.jar`'s checked into the repo - [ ] No `.idea` folder files checked into the repo (these...

help wanted
CI
refactor

From https://youtrack.jetbrains.com/issue/CPP-22882#focus=Comments-27-5675064.0-0 `LocalInspectionTool` is not designed for running external executables, like `cppcheck`. For such task, `ExternalAnnotator` should be used. The flow is similar: inherit this class, override `collectInformation` to get...

enhancement
help wanted
v2

### Environment * Operating System (e.g. Ubuntu 16.04 x64): Darwin MAC-30223656 16.7.0 Darwin Kernel Version 16.7.0 * IDE Version (e.g. CLion 2016.3.2): CLion 2018.2.3 * Cppcheck executable version (`cppcheck --version`):...

enhancement