Oliver Stöneberg

Results 331 issues of Oliver Stöneberg

```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...

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

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...

enhancement
help wanted
v2

### 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