Skip to content

Commit

Permalink
Fix include order in util
Browse files Browse the repository at this point in the history
  • Loading branch information
reuk committed May 22, 2017
1 parent 07ee2fb commit 242d224
Show file tree
Hide file tree
Showing 80 changed files with 152 additions and 103 deletions.
4 changes: 2 additions & 2 deletions src/util/arith_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "arith_tools.h"

#include <cassert>

#include "fixedbv.h"
#include "ieee_float.h"
#include "std_types.h"
#include "std_expr.h"

#include "arith_tools.h"

/*******************************************************************\
Function: to_integer
Expand Down
1 change: 1 addition & 0 deletions src/util/array_name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "array_name.h"

#include "expr.h"
#include "namespace.h"
#include "symbol.h"
Expand Down
3 changes: 2 additions & 1 deletion src/util/base_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "base_type.h"

#include <cassert>
#include <set>

#include "std_types.h"
#include "base_type.h"
#include "namespace.h"
#include "symbol.h"

Expand Down
3 changes: 2 additions & 1 deletion src/util/bv_arithmetic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "bv_arithmetic.h"

#include <cassert>
#include <ostream>

#include "string2int.h"
#include "arith_tools.h"
#include "std_types.h"
#include "std_expr.h"
#include "bv_arithmetic.h"

/*******************************************************************\
Expand Down
3 changes: 2 additions & 1 deletion src/util/byte_operators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "byte_operators.h"

#include <cassert>

#include "byte_operators.h"
#include "config.h"

/*******************************************************************\
Expand Down
4 changes: 2 additions & 2 deletions src/util/cmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "cmdline.h"

#include <cassert>
#include <cstdlib>
#include <iostream>

#include "cmdline.h"

/*******************************************************************\
Function: cmdlinet::cmdlinet
Expand Down
3 changes: 2 additions & 1 deletion src/util/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "config.h"

#include <cstdlib>

#include "namespace.h"
#include "config.h"
#include "symbol_table.h"
#include "arith_tools.h"
#include "cmdline.h"
Expand Down
3 changes: 2 additions & 1 deletion src/util/cout_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "cout_message.h"

#include <iostream>

#ifdef _WIN32
Expand All @@ -16,7 +18,6 @@ Author: Daniel Kroening, [email protected]
#endif

#include "unicode.h"
#include "cout_message.h"

/*******************************************************************\
Expand Down
4 changes: 2 additions & 2 deletions src/util/decision_procedure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include <cassert>

#include "decision_procedure.h"

#include <cassert>

/*******************************************************************\
Function: decision_proceduret::in_core
Expand Down
3 changes: 2 additions & 1 deletion src/util/endianness_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "endianness_map.h"

#include <ostream>
#include <cassert>

#include "std_types.h"
#include "pointer_offset_size.h"
#include "arith_tools.h"
#include "endianness_map.h"
#include "namespace.h"

/*******************************************************************\
Expand Down
3 changes: 2 additions & 1 deletion src/util/expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "expr.h"

#include <cassert>

#include <stack>
Expand All @@ -14,7 +16,6 @@ Author: Daniel Kroening, [email protected]
#include "mp_arith.h"
#include "fixedbv.h"
#include "ieee_float.h"
#include "expr.h"
#include "rational.h"
#include "rational_tools.h"
#include "arith_tools.h"
Expand Down
1 change: 1 addition & 0 deletions src/util/expr_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "expr_util.h"

#include "expr.h"
#include "fixedbv.h"
#include "ieee_float.h"
Expand Down
4 changes: 2 additions & 2 deletions src/util/file_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ Date: January 2012
\*******************************************************************/

#include "file_util.h"

#include <cerrno>

#if defined(__linux__) || \
Expand Down Expand Up @@ -35,8 +37,6 @@ Date: January 2012
#include <cstring>
#endif

#include "file_util.h"

/*******************************************************************\
Function: get_current_working_directory
Expand Down
3 changes: 2 additions & 1 deletion src/util/find_macros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "find_macros.h"

#include <stack>

#include "find_macros.h"
#include "expr.h"
#include "namespace.h"
#include "symbol.h"
Expand Down
4 changes: 2 additions & 2 deletions src/util/find_symbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "find_symbols.h"

#include "std_types.h"
#include "std_expr.h"

#include "find_symbols.h"

enum class kindt { F_TYPE, F_TYPE_NON_PTR, F_EXPR, F_BOTH };

/*******************************************************************\
Expand Down
3 changes: 2 additions & 1 deletion src/util/fixedbv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "fixedbv.h"

#include "std_types.h"
#include "std_expr.h"
#include "fixedbv.h"
#include "arith_tools.h"

/*******************************************************************\
Expand Down
1 change: 1 addition & 0 deletions src/util/format_constant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "format_constant.h"

#include "arith_tools.h"
#include "fixedbv.h"
#include "ieee_float.h"
Expand Down
3 changes: 2 additions & 1 deletion src/util/get_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "get_module.h"

#include <list>
#include <set>

#include "get_module.h"
#include "message.h"
#include "symbol_table.h"

Expand Down
3 changes: 2 additions & 1 deletion src/util/guard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "guard.h"

#include <ostream>

#include "std_expr.h"
#include "simplify_utils.h"
#include "guard.h"

/*******************************************************************\
Expand Down
4 changes: 2 additions & 2 deletions src/util/identifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include <cstring>

#include "identifier.h"

#include <cstring>

/*******************************************************************\
Function: identifiert::as_string
Expand Down
3 changes: 2 additions & 1 deletion src/util/ieee_float.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "ieee_float.h"

// <cstdint> is yet to come
#include <stdint.h>

Expand All @@ -17,7 +19,6 @@ Author: Daniel Kroening, [email protected]
#include "arith_tools.h"
#include "std_types.h"
#include "std_expr.h"
#include "ieee_float.h"

/*******************************************************************\
Expand Down
3 changes: 2 additions & 1 deletion src/util/irep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "irep.h"

#include <cassert>
#include <ostream>

#include "string2int.h"
#include "irep.h"
#include "string_hash.h"
#include "irep_hash.h"

Expand Down
1 change: 1 addition & 0 deletions src/util/irep_hash_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "irep_hash_container.h"

#include "irep.h"
#include "irep_hash.h"

Expand Down
3 changes: 2 additions & 1 deletion src/util/irep_ids.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "irep_ids.h"

#include <cassert>

#include "irep_ids.h"
#include "string_container.h"

const char *irep_ids_table[]=
Expand Down
3 changes: 2 additions & 1 deletion src/util/irep_serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ Date: May 2007
\*******************************************************************/

#include "irep_serialization.h"

#include <sstream>
#include <iostream>

#include "irep_serialization.h"
#include "string_hash.h"

/*******************************************************************\
Expand Down
4 changes: 2 additions & 2 deletions src/util/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include <ostream>

#include "json.h"

#include <ostream>

const jsont jsont::null_json_object(jsont::kindt::J_NULL);

/*******************************************************************\
Expand Down
4 changes: 2 additions & 2 deletions src/util/json_expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Author: Peter Schrammel
\*******************************************************************/

#include "json_expr.h"

#include "namespace.h"
#include "expr.h"
#include "json.h"
Expand All @@ -15,8 +17,6 @@ Author: Peter Schrammel
#include "std_expr.h"
#include "config.h"

#include "json_expr.h"

/*******************************************************************\
Function: json
Expand Down
3 changes: 2 additions & 1 deletion src/util/json_irep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Author: Thomas Kiley, [email protected]
\*******************************************************************/

#include "json_irep.h"

#include "irep.h"
#include "json.h"
#include "json_irep.h"

#include <algorithm>

Expand Down
1 change: 1 addition & 0 deletions src/util/language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "language.h"

#include "expr.h"

/*******************************************************************\
Expand Down
3 changes: 2 additions & 1 deletion src/util/language_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Author: Daniel Kroening, [email protected]
\*******************************************************************/

#include "language_file.h"

#include <fstream>

#include "language.h"
#include "language_file.h"

/*******************************************************************\
Expand Down
Loading

0 comments on commit 242d224

Please sign in to comment.