Oliver Stöneberg
Oliver Stöneberg
```cpp int f(int*p){return *p;} ```  If you add the newline at the end of the line it shows up in the `Problems` tab as expected.
We currently suppress `unmatchedSuppression` findings unconditionally but this is actually something interesting as it will indicate no longer applying (inline) suppressions.
### 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...
```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....
 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)...
`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...
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...
Currently the configured command-line options are global and affect all projects. In case you need to specify a special option this would affect all projects. We should probably move the...
### 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...