lib: fix for my previous commit. If there are no dependencies then don't insert dependencies
This commit is contained in:
parent
8f3d511871
commit
04e4b5d14d
|
@ -339,6 +339,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the _dependencies..
|
// Update the _dependencies..
|
||||||
|
if (_tokenizer.getFiles()->size() >= 2)
|
||||||
_dependencies.insert(_tokenizer.getFiles()->begin()+1, _tokenizer.getFiles()->end());
|
_dependencies.insert(_tokenizer.getFiles()->begin()+1, _tokenizer.getFiles()->end());
|
||||||
|
|
||||||
// call all "runChecks" in all registered Check classes
|
// call all "runChecks" in all registered Check classes
|
||||||
|
|
Loading…
Reference in New Issue