Cleanup CppCheck::dependencies()
This commit is contained in:
parent
05f2f0e419
commit
e6686dfb5b
|
@ -361,10 +361,6 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update the _dependencies..
|
|
||||||
if (_tokenizer.list.getFiles().size() >= 2)
|
|
||||||
_dependencies.insert(_tokenizer.list.getFiles().begin()+1, _tokenizer.list.getFiles().end());
|
|
||||||
|
|
||||||
// call all "runChecks" in all registered Check classes
|
// call all "runChecks" in all registered Check classes
|
||||||
for (std::list<Check *>::iterator it = Check::instances().begin(); it != Check::instances().end(); ++it) {
|
for (std::list<Check *>::iterator it = Check::instances().begin(); it != Check::instances().end(); ++it) {
|
||||||
if (_settings.terminated())
|
if (_settings.terminated())
|
||||||
|
|
|
@ -124,13 +124,6 @@ public:
|
||||||
*/
|
*/
|
||||||
void analyseFile(std::istream &f, const std::string &filename);
|
void analyseFile(std::istream &f, const std::string &filename);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get dependencies. Use this after calling 'check'.
|
|
||||||
*/
|
|
||||||
const std::set<std::string>& dependencies() const {
|
|
||||||
return _dependencies;
|
|
||||||
}
|
|
||||||
|
|
||||||
void tooManyConfigsError(const std::string &file, const std::size_t numberOfConfigurations);
|
void tooManyConfigsError(const std::string &file, const std::size_t numberOfConfigurations);
|
||||||
|
|
||||||
void dontSimplify() {
|
void dontSimplify() {
|
||||||
|
@ -187,7 +180,6 @@ private:
|
||||||
std::list<std::string> _errorList;
|
std::list<std::string> _errorList;
|
||||||
Settings _settings;
|
Settings _settings;
|
||||||
std::string _fileContent;
|
std::string _fileContent;
|
||||||
std::set<std::string> _dependencies;
|
|
||||||
|
|
||||||
void reportProgress(const std::string &filename, const char stage[], const std::size_t value);
|
void reportProgress(const std::string &filename, const char stage[], const std::size_t value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue