Skip to content

Commit

Permalink
cleaned up includes based on include-what-ypu-use
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Oct 10, 2023
1 parent 9085a53 commit 5799e9e
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 13 deletions.
1 change: 0 additions & 1 deletion lib/checkstl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
#include <set>
#include <sstream>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <vector>
Expand Down
2 changes: 0 additions & 2 deletions lib/keywords.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@

#include "utils.h"

#include <cassert>

// see https://en.cppreference.com/w/c/keyword

#define C90_KEYWORDS \
Expand Down
1 change: 0 additions & 1 deletion lib/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <algorithm>
#include <cctype>
#include <climits>
#include <cstddef>
#include <cstring>
#include <list>
#include <memory>
Expand Down
1 change: 0 additions & 1 deletion lib/pathanalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <algorithm>
#include <string>
#include <tuple>
#include <type_traits>

const Scope* PathAnalysis::findOuterScope(const Scope * scope)
{
Expand Down
1 change: 0 additions & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#include <stack>
#include <string>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
//---------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion lib/symboldatabase.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include <map>
#include <set>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include <sstream> // IWYU pragma: keep
#include <stack>
#include <stdexcept>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions lib/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <limits>
#include <stdexcept>
#include <string>
#include <type_traits>
#include <vector>

struct SelectMapKeys {
Expand Down
5 changes: 5 additions & 0 deletions test/testcmdlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "cmdlinelogger.h"
#include "cmdlineparser.h"
#include "config.h"
#include "cppcheckexecutor.h"
#include "errortypes.h"
#include "helpers.h"
#include "importproject.h"
#include "platform.h"
#include "redirect.h"
#include "settings.h"
Expand All @@ -33,8 +35,11 @@
#include <cstdint>
#include <cstdio>
#include <list>
#include <memory>
#include <set>
#include <stdexcept>
#include <string>
#include <unordered_set>
#include <vector>

class TestCmdlineParser : public TestFixture {
Expand Down
1 change: 0 additions & 1 deletion test/testprocessexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "library.h"

#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <list>
#include <map>
Expand Down
1 change: 0 additions & 1 deletion test/testsingleexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "timer.h"

#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <list>
#include <map>
Expand Down
2 changes: 0 additions & 2 deletions test/teststring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#include <string>
#include <vector>

#include <simplecpp.h>

class TestString : public TestFixture {
public:
TestString() : TestFixture("TestString") {}
Expand Down
1 change: 0 additions & 1 deletion test/testthreadexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "timer.h"

#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <list>
#include <map>
Expand Down

0 comments on commit 5799e9e

Please sign in to comment.