johnthagen / johnthagen/clion-cppcheck

Highlighting in IDE is not updated on edit

Open
#35 4 comments 0 reactions 0 assignees View on GitHub
bug upstream
Dominant language
Java
Stars
35
Forks
6
PR merge metrics
No merged PRs in 30d

Description

### 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 plugin version: 1.4.2

### Expected behaviour

When editing the code the Cppcheck highlighting should update accordingly.

### Actual behaviour

The highlight is not correct until the file has been closed and opened again.

### Steps to reproduce the behaviour

```cpp
#include

template
void f(T t) {
(void)t;
}

class A
{
private:
std::string s_{"str"};
};

static void f2(A a)
{
(void)a;
}

int main()
{
A a;
//f(a); // un-comment for warning template function f()
f2(a);

return 0;
}
```

If you un-comment that line it should show a warning in the template function, but no error is shown. If you close the file and open it again the warning will be shown. Same when you comment it the warning doesn't go away.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.