mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
remove '#include <iostream>' from headers and from unneeded places
It's harmful to have iostream everywhere as it injects functions in the compiled files
This commit is contained in:
parent
70bcf0b51d
commit
73a24ca0a9
90 changed files with 99 additions and 95 deletions
|
@ -19,7 +19,7 @@ Notes:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include<climits>
|
||||
|
||||
class approx_nat {
|
||||
|
|
|
@ -17,7 +17,7 @@ Revision History:
|
|||
|
||||
--*/
|
||||
#pragma once
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include "util/debug.h"
|
||||
|
||||
template<typename T> class approx_set_traits;
|
||||
|
|
|
@ -14,7 +14,6 @@ Author:
|
|||
Notes:
|
||||
|
||||
--*/
|
||||
#include<iostream>
|
||||
#include "util/cmd_context_types.h"
|
||||
|
||||
std::ostream & operator<<(std::ostream & out, cmd_arg_kind k) {
|
||||
|
|
|
@ -18,6 +18,7 @@ Notes:
|
|||
|
||||
#include "util/symbol.h"
|
||||
#include "util/z3_exception.h"
|
||||
#include <ostream>
|
||||
#include<sstream>
|
||||
class rational;
|
||||
class expr;
|
||||
|
|
|
@ -19,7 +19,7 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include "util/debug.h"
|
||||
|
||||
enum ext_numeral_kind { EN_MINUS_INFINITY, EN_NUMERAL, EN_PLUS_INFINITY };
|
||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include "util/vector.h"
|
||||
|
||||
class permutation {
|
||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
#include<cstdlib>
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
|
||||
#ifdef Z3DEBUG
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ Revision History:
|
|||
|
||||
--*/
|
||||
#include<signal.h>
|
||||
#include<iostream>
|
||||
#include "util/scoped_ctrl_c.h"
|
||||
|
||||
static scoped_ctrl_c * g_obj = nullptr;
|
||||
|
|
|
@ -18,7 +18,7 @@ Notes:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include "util/vector.h"
|
||||
#include "util/rlimit.h"
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ Revision History:
|
|||
|
||||
#include "util/debug.h"
|
||||
#include <chrono>
|
||||
#include <iostream>
|
||||
#include <ostream>
|
||||
#include<iomanip>
|
||||
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<iostream>
|
||||
#include<istream>
|
||||
|
||||
class stream_buffer {
|
||||
std::istream & m_stream;
|
||||
|
@ -40,5 +40,3 @@ public:
|
|||
m_val = m_stream.get();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -16,11 +16,11 @@ Author:
|
|||
Revision History:
|
||||
|
||||
--*/
|
||||
#include<iostream>
|
||||
#include "util/timeit.h"
|
||||
#include "util/memory_manager.h"
|
||||
#include "util/stopwatch.h"
|
||||
#include<iomanip>
|
||||
#include<iostream>
|
||||
|
||||
struct timeit::imp {
|
||||
stopwatch m_watch;
|
||||
|
@ -45,9 +45,9 @@ struct timeit::imp {
|
|||
}
|
||||
};
|
||||
|
||||
timeit::timeit(bool enable, char const * msg, std::ostream & out) {
|
||||
timeit::timeit(bool enable, char const * msg, std::ostream * out) {
|
||||
if (enable)
|
||||
m_imp = alloc(imp, msg, out);
|
||||
m_imp = alloc(imp, msg, out ? *out : std::cerr);
|
||||
else
|
||||
m_imp = nullptr;
|
||||
}
|
||||
|
|
|
@ -21,11 +21,14 @@ Revision History:
|
|||
--*/
|
||||
#pragma once
|
||||
|
||||
#include<ostream>
|
||||
|
||||
class timeit {
|
||||
struct imp;
|
||||
imp * m_imp;
|
||||
public:
|
||||
timeit(bool enable, char const * msg, std::ostream & out = std::cerr);
|
||||
timeit(bool enable, char const * msg, std::ostream * out = nullptr);
|
||||
timeit(bool enable, char const * msg, std::ostream & out) : timeit(enable, msg, &out) {}
|
||||
~timeit();
|
||||
};
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ Revision History:
|
|||
--*/
|
||||
|
||||
#include "util/util.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
static unsigned g_verbosity_level = 0;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ Revision History:
|
|||
|
||||
#include "util/debug.h"
|
||||
#include "util/memory_manager.h"
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include<climits>
|
||||
#include<limits>
|
||||
#include<stdint.h>
|
||||
|
|
|
@ -17,7 +17,7 @@ Revision History:
|
|||
|
||||
--*/
|
||||
#pragma once
|
||||
#include<iostream>
|
||||
#include<ostream>
|
||||
#include<stdarg.h>
|
||||
|
||||
void send_warnings_to_stdout(bool flag);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue