3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-29 01:18:45 +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:
Nuno Lopes 2022-06-17 14:10:19 +01:00
parent 70bcf0b51d
commit 73a24ca0a9
90 changed files with 99 additions and 95 deletions

View file

@ -18,6 +18,7 @@ Revision History:
--*/
#include "ast/ast_printer.h"
#include "ast/pp.h"
#include <iostream>
class simple_ast_printer_context : public ast_printer_context {
ast_manager & m_manager;
@ -51,3 +52,6 @@ public:
ast_printer_context * mk_simple_ast_printer_context(ast_manager & m) {
return alloc(simple_ast_printer_context, m);
}
std::ostream & ast_printer_context::regular_stream() { return std::cout; }
std::ostream & ast_printer_context::diagnostic_stream() { return std::cerr; }