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:
parent
f7caf7dc93
commit
4bf5dcd29f
|
@ -40,6 +40,7 @@
|
|||
#include <iostream>
|
||||
#include <list>
|
||||
#include <set>
|
||||
#include <utility>
|
||||
|
||||
#ifdef HAVE_RULES
|
||||
// xml is used for rules
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
#include "preprocessor.h"
|
||||
#include "settings.h"
|
||||
#include "suppressions.h"
|
||||
#include "threadexecutor.h"
|
||||
#include "utils.h"
|
||||
#include "checkunusedfunctions.h"
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "config.h"
|
||||
#include "importproject.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <fstream>
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include "path.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <iterator> // back_inserter
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
//---------------------------------------------------------------------------
|
||||
|
||||
#include "config.h"
|
||||
#include "errortypes.h"
|
||||
#include "library.h"
|
||||
#include "mathlib.h"
|
||||
#include "sourcelocation.h"
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <exception>
|
||||
#include <memory>
|
||||
#include <set>
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <stack>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class Settings;
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "config.h"
|
||||
#include "token.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
#include <unordered_set>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#include "tokenize.h"
|
||||
|
||||
#include <iosfwd>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include "platform.h"
|
||||
#include "preprocessor.h"
|
||||
#include "settings.h"
|
||||
#include "suppressions.h"
|
||||
#include "testsuite.h"
|
||||
#include "testutils.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue