cleaned up includes based on include-what-you-use (#4358)

* cleaned up includes based on include-what-you-use

* testlibrary.cpp: no need for `empyString` optimization
This commit is contained in:
Oliver Stöneberg 2022-08-14 12:44:19 +02:00 committed by GitHub
parent f7caf7dc93
commit 4bf5dcd29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 15 additions and 11 deletions

View File

@ -40,6 +40,7 @@
#include <iostream>
#include <list>
#include <set>
#include <utility>
#ifdef HAVE_RULES
// xml is used for rules

View File

@ -32,7 +32,6 @@
#include "preprocessor.h"
#include "settings.h"
#include "suppressions.h"
#include "threadexecutor.h"
#include "utils.h"
#include "checkunusedfunctions.h"

View File

@ -24,6 +24,7 @@
#include "config.h"
#include "importproject.h"
#include <cstddef>
#include <fstream>
#include <list>
#include <string>

View File

@ -26,13 +26,15 @@
#include <set>
#include <stack>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>
#include "config.h"
#include "errortypes.h"
#include "library.h"
#include "symboldatabase.h"
class Library;
class Settings;
class Token;

View File

@ -29,6 +29,7 @@
#include <algorithm>
#include <unordered_set>
#include <utility>
#include <vector>
//---------------------------------------------------------------------------

View File

@ -22,6 +22,7 @@
#include "utils.h"
#include <cstddef>
#include <utility>
PathMatch::PathMatch(std::vector<std::string> excludedPaths, bool caseSensitive)
: mExcludedPaths(std::move(excludedPaths)), mCaseSensitive(caseSensitive)

View File

@ -20,7 +20,6 @@
#include "path.h"
#include <cstdlib>
#include <cstring>
#include <limits>
#include <vector>

View File

@ -29,8 +29,6 @@
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <iterator> // back_inserter
#include <memory>
#include <utility>

View File

@ -24,7 +24,7 @@
#include "config.h"
#include <atomic>
#include <simplecpp.h>
#include <cstddef>
#include <istream>
#include <list>
#include <map>
@ -32,6 +32,8 @@
#include <string>
#include <vector>
#include <simplecpp.h>
class ErrorLogger;
class Settings;

View File

@ -22,6 +22,7 @@
//---------------------------------------------------------------------------
#include "config.h"
#include "errortypes.h"
#include "library.h"
#include "mathlib.h"
#include "sourcelocation.h"

View File

@ -41,7 +41,6 @@
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <iterator>
#include <exception>
#include <memory>
#include <set>

View File

@ -29,8 +29,6 @@
#include <list>
#include <map>
#include <string>
#include <stack>
#include <utility>
#include <vector>
class Settings;

View File

@ -23,6 +23,7 @@
#include "errorlogger.h"
#include "errortypes.h"
#include "library.h"
#include "mathlib.h"
#include "path.h"
#include "settings.h"
#include "standards.h"

View File

@ -24,6 +24,7 @@
#include "config.h"
#include "token.h"
#include <cstddef>
#include <iosfwd>
#include <string>
#include <unordered_set>

View File

@ -521,7 +521,7 @@ private:
const Library::ArgumentChecks::MinSize &m = minsizes->front();
ASSERT(Library::ArgumentChecks::MinSize::Type::VALUE == m.type);
ASSERT_EQUALS(500, m.value);
ASSERT_EQUALS(emptyString, m.baseType);
ASSERT_EQUALS("", m.baseType);
}
// arg5: type=value

View File

@ -27,7 +27,6 @@
#include "tokenize.h"
#include <iosfwd>
#include <list>
#include <map>
#include <string>
#include <unordered_map>

View File

@ -24,6 +24,7 @@
#include "platform.h"
#include "preprocessor.h"
#include "settings.h"
#include "suppressions.h"
#include "testsuite.h"
#include "testutils.h"