Merge branch 'master' of https://github.com/danmar/cppcheck
This commit is contained in:
commit
cd98471398
|
@ -196,8 +196,9 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const char Fi
|
|||
|
||||
if (funcname) {
|
||||
FunctionUsage &func = _functions[ funcname->str()];
|
||||
const std::string called_from_file = tokenizer.list.getSourceFilePath();
|
||||
|
||||
if (func.filename.empty() || func.filename == "+")
|
||||
if (func.filename.empty() || func.filename == "+" || func.filename != called_from_file)
|
||||
func.usedOtherFile = true;
|
||||
else
|
||||
func.usedSameFile = true;
|
||||
|
|
Loading…
Reference in New Issue