Skip to content

Commit fa3e473

Browse files
committed
Add missing includes for USE_STD_STRING
These headers are only brought in by dstring.h, which we don't use when building with `USE_STD_STRING` set.
1 parent 2e0fcc8 commit fa3e473

21 files changed

+54
-30
lines changed

jbmc/src/java_bytecode/character_refine_preprocess.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Date: March 2017
2323
#include <util/mp_arith.h>
2424
#include <util/std_code_base.h>
2525

26+
#include <list>
2627
#include <unordered_map>
2728

2829
class code_function_callt;

jbmc/src/java_bytecode/java_bytecode_parse_tree.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,16 @@ Author: Daniel Kroening, [email protected]
1010
#ifndef CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_PARSE_TREE_H
1111
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_PARSE_TREE_H
1212

13-
#include <set>
14-
#include <map>
15-
1613
#include <util/optional.h>
1714
#include <util/std_types.h>
1815

1916
#include "bytecode_info.h"
2017
#include "java_types.h"
2118

19+
#include <list>
20+
#include <map>
21+
#include <set>
22+
2223
struct java_bytecode_parse_treet
2324
{
2425
// Disallow copy construction and copy assignment, but allow move construction

jbmc/src/java_bytecode/java_class_loader_base.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Author: Daniel Kroening, [email protected]
1414

1515
#include "jar_pool.h"
1616

17+
#include <list>
18+
1719
class message_handlert;
1820
struct java_bytecode_parse_treet;
1921

src/crangler/c_wrangler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Author: Daniel Kroening, [email protected]
2323

2424
#include <fstream> // IWYU pragma: keep
2525
#include <iostream>
26+
#include <list>
2627
#include <map>
2728
#include <regex>
2829
#include <sstream>

src/goto-cc/compile.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Date: June 2006
1818
#include <util/std_types.h>
1919
#include <util/symbol.h>
2020

21+
#include <list>
2122
#include <map>
2223

2324
class cmdlinet;

src/goto-cc/ld_mode.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Date: June 2006
1717
#include "gcc_message_handler.h"
1818
#include "goto_cc_mode.h"
1919

20+
#include <list>
21+
2022
class ld_modet : public goto_cc_modet
2123
{
2224
public:

src/goto-cc/linker_script_merge.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
#ifndef CPROVER_GOTO_CC_LINKER_SCRIPT_MERGE_H
66
#define CPROVER_GOTO_CC_LINKER_SCRIPT_MERGE_H
77

8+
#include <util/message.h>
9+
810
#include <functional>
11+
#include <list>
912
#include <map>
1013

11-
#include <util/message.h>
12-
1314
class cmdlinet;
1415
class exprt; // IWYU pragma: keep
1516
class goto_modelt;

src/goto-harness/recursive_initialization.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ Author: Diffblue Ltd.
99
#ifndef CPROVER_GOTO_HARNESS_RECURSIVE_INITIALIZATION_H
1010
#define CPROVER_GOTO_HARNESS_RECURSIVE_INITIALIZATION_H
1111

12-
#include <map>
13-
#include <set>
14-
#include <unordered_set>
15-
1612
#include <util/cprover_prefix.h>
1713
#include <util/optional.h>
1814
#include <util/prefix.h>
1915
#include <util/std_expr.h>
2016
#include <util/symbol.h>
2117

18+
#include <list>
19+
#include <map>
20+
#include <set>
21+
#include <unordered_set>
22+
2223
class code_blockt;
2324
class goto_modelt;
2425

src/goto-programs/goto_program.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ Author: Daniel Kroening, [email protected]
1212
#ifndef CPROVER_GOTO_PROGRAMS_GOTO_PROGRAM_H
1313
#define CPROVER_GOTO_PROGRAMS_GOTO_PROGRAM_H
1414

15+
#include <util/invariant.h>
16+
#include <util/source_location.h>
17+
1518
#include "goto_instruction_code.h"
1619

1720
#include <iosfwd>
18-
#include <set>
1921
#include <limits>
22+
#include <list>
23+
#include <set>
2024
#include <string>
2125

22-
#include <util/invariant.h>
23-
#include <util/source_location.h>
24-
2526
class code_gotot;
2627
class namespacet;
2728
enum class validation_modet;

src/goto-programs/graphml_witness.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Author: Daniel Kroening
2020
#include <util/prefix.h>
2121
#include <util/ssa_expr.h>
2222
#include <util/string_constant.h>
23+
#ifndef USE_DSTRING
24+
# include <util/string_container.h>
25+
#endif
2326
#include <util/symbol.h>
2427

2528
#include <ansi-c/expr2c.h>

src/goto-symex/symex_main.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ Author: Daniel Kroening, [email protected]
99
/// \file
1010
/// Symbolic Execution
1111

12-
#include "goto_symex.h"
13-
14-
#include <memory>
15-
16-
#include <pointer-analysis/value_set_dereference.h>
17-
1812
#include <util/exception_utils.h>
1913
#include <util/expr_iterator.h>
2014
#include <util/expr_util.h>
2115
#include <util/format.h>
2216
#include <util/format_expr.h>
2317
#include <util/invariant.h>
18+
#include <util/magic.h>
2419
#include <util/mathematical_expr.h>
2520
#include <util/replace_symbol.h>
2621
#include <util/std_expr.h>
2722

23+
#include <pointer-analysis/value_set_dereference.h>
24+
25+
#include "goto_symex.h"
2826
#include "path_storage.h"
2927

28+
#include <memory>
29+
3030
symex_configt::symex_configt(const optionst &options)
3131
: max_depth(options.get_unsigned_int_option("depth")),
3232
doing_path_exploration(options.is_set("paths")),

src/goto-synthesizer/expr_enumerator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Author: Qinheping Hu
1111

1212
#include <util/expr.h>
1313

14+
#include <list>
1415
#include <map>
1516
#include <set>
1617

src/solvers/flattening/bv_utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Author: Daniel Kroening, [email protected]
88

99
#include "bv_utils.h"
1010

11+
#include <list>
1112
#include <utility>
1213

1314
bvt bv_utilst::build_constant(const mp_integer &n, std::size_t width)

src/solvers/strings/string_constraint_instantiation.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,17 @@ Author: Jesse Sigal, [email protected]
1010
/// Defines related function for string constraints.
1111

1212
#include "string_constraint_instantiation.h"
13-
#include <algorithm>
14-
#include <unordered_set>
1513

1614
#include <util/arith_tools.h>
1715
#include <util/expr_iterator.h>
1816
#include <util/format_expr.h>
1917

2018
#include "string_constraint.h"
2119

20+
#include <algorithm>
21+
#include <list>
22+
#include <unordered_set>
23+
2224
/// Look for symbol \p qvar in the expression \p index and return true if found
2325
/// \return True, iff \p qvar appears in \p index.
2426
static bool contains(const exprt &index, const symbol_exprt &qvar)

src/statement-list/statement_list_parse_tree.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Author: Matthias Weiss, [email protected]
1515
#include <util/std_code_base.h>
1616
#include <util/std_expr.h>
1717

18+
#include <list>
19+
1820
/// Intermediate representation of a parsed Statement List file before
1921
/// converting it into a goto program. Contains all data structures that are
2022
/// necessary for describing Statement List functions and function blocks.

src/util/symbol_table_base.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#include "symbol.h" // IWYU pragma: keep
1010

11+
#include <list>
1112
#include <map>
1213
#include <unordered_map>
1314

unit/compound_block_locations.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <util/irep.h>
99

10+
#include <list>
1011
#include <string>
1112

1213
class exprt;

unit/goto-symex/apply_condition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ Author: Owen Mansel-Chan, [email protected]
66
77
\*******************************************************************/
88

9-
#include <testing-utils/use_catch.h>
10-
9+
#include <util/magic.h>
1110
#include <util/namespace.h>
1211
#include <util/symbol_table.h>
1312

1413
#include <goto-symex/goto_symex_state.h>
14+
#include <testing-utils/use_catch.h>
1515

1616
static void add_to_symbol_table(
1717
symbol_tablet &symbol_table,

unit/goto-symex/goto_symex_state.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ Author: Diffblue Ltd.
66
77
\*******************************************************************/
88

9-
#include <testing-utils/use_catch.h>
10-
11-
#include <analyses/dirty.h>
12-
#include <goto-symex/goto_symex_state.h>
139
#include <util/arith_tools.h>
1410
#include <util/c_types.h>
11+
#include <util/magic.h>
1512
#include <util/namespace.h>
1613
#include <util/symbol_table.h>
1714

15+
#include <analyses/dirty.h>
16+
#include <goto-symex/goto_symex_state.h>
17+
#include <testing-utils/use_catch.h>
18+
1819
static void add_to_symbol_table(
1920
symbol_tablet &symbol_table,
2021
const symbol_exprt &symbol_expr)

unit/goto-symex/symex_assign.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Author: Romain Brenguier, [email protected]
88

99
#include <util/arith_tools.h>
1010
#include <util/bitvector_types.h>
11+
#include <util/magic.h>
1112
#include <util/namespace.h>
1213
#include <util/options.h>
1314
#include <util/symbol_table.h>

unit/goto-symex/try_evaluate_pointer_comparisons.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ Author: Romain Brenguier, [email protected]
66
77
\*******************************************************************/
88

9-
#include <testing-utils/use_catch.h>
9+
#include <util/c_types.h>
10+
#include <util/magic.h>
1011

1112
#include <goto-symex/goto_symex.h>
12-
13-
#include <util/c_types.h>
13+
#include <testing-utils/use_catch.h>
1414

1515
static void add_to_symbol_table(
1616
symbol_tablet &symbol_table,

0 commit comments

Comments
 (0)