summaryrefslogtreecommitdiff
path: root/src/context
diff options
context:
space:
mode:
authorGereon Kremer <gereon.kremer@cs.rwth-aachen.de>2021-03-02 01:58:20 +0100
committerGitHub <noreply@github.com>2021-03-02 00:58:20 +0000
commitb5073e16ea49ce9214fcc5318ce080724719c809 (patch)
tree1073858c57a3590b67ae7fd8e6fa2d46872f9114 /src/context
parent822ae21e0b26e9a98b3a5585dbcd2694bbbce685 (diff)
Clean up includes to reduce compile times (#6031)
This PR cleans up a ton of includes, based on the suggestions of iwyu. Mostly, it removes includes from header files in favor of forward declarations and adds includes to source files.
Diffstat (limited to 'src/context')
-rw-r--r--src/context/cdlist.h1
-rw-r--r--src/context/context.cpp1
-rw-r--r--src/context/context.h2
3 files changed, 2 insertions, 2 deletions
diff --git a/src/context/cdlist.h b/src/context/cdlist.h
index cb5e552ac..0515d7126 100644
--- a/src/context/cdlist.h
+++ b/src/context/cdlist.h
@@ -20,6 +20,7 @@
#ifndef CVC4__CONTEXT__CDLIST_H
#define CVC4__CONTEXT__CDLIST_H
+#include <cstring>
#include <iterator>
#include <memory>
#include <string>
diff --git a/src/context/context.cpp b/src/context/context.cpp
index 19be126f8..1313daa9a 100644
--- a/src/context/context.cpp
+++ b/src/context/context.cpp
@@ -16,6 +16,7 @@
#include <iostream>
+#include <string>
#include <vector>
#include "base/check.h"
diff --git a/src/context/context.h b/src/context/context.h
index 15b4307b9..afec59747 100644
--- a/src/context/context.h
+++ b/src/context/context.h
@@ -20,10 +20,8 @@
#define CVC4__CONTEXT__CONTEXT_H
#include <cstdlib>
-#include <cstring>
#include <iostream>
#include <memory>
-#include <new>
#include <typeinfo>
#include <vector>
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback