johnthagen / johnthagen/clion-cppcheck

cppcheck warns about unused functions (which are used!)

Open
#22 8 comments 0 reactions 1 assignee Claimed by @firewave View on GitHub
enhancement
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): 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`): Cppcheck 1.86
* Cppcheck plugin version: 1.2.0
* Exact strings used in cppcheck plugin options: --enable=all --force --inconclusive --language=c++ --std=c++14 --suppress=missingIncludeSystem
* **cppcheck path**: /Users/pisan/xxx/bin/cppcheck
* **cppcheck options**: ?

### Expected behaviour

Do not warn about functions that are called

On command line
`cppcheck --enable=all --force --inconclusive --language=c++ --std=c++14 --suppress=missingIncludeSystem *.cpp` does not give any warnings

### Actual behaviour

`cppcheck: (style) The function funcFoo is never used` warning in CLion right gutter as well as "Code Inspection"

### Steps to reproduce the behaviour

main.cpp
```
#include

void funcFoo();

int main() {
funcFoo();
return 0;
}
```

foo.cpp
```
void funcFoo() {

}
```

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.