Skip to content

Commit 35720db

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 74075ec commit 35720db

21 files changed

+52
-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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Author: Daniel Kroening
2020
#include <util/prefix.h>
2121
#include <util/ssa_expr.h>
2222
#include <util/string_constant.h>
23+
#include <util/string_container.h>
2324
#include <util/symbol.h>
2425

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

0 commit comments

Comments
 (0)