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 <iostream>
#include <list> #include <list>
#include <set> #include <set>
#include <utility>
#ifdef HAVE_RULES #ifdef HAVE_RULES
// xml is used for rules // xml is used for rules

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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