Skip to content

Commit 7ba2bd4

Browse files
committed
Remove unnecessary includes
Manual removal of includes based on include-what-you-use's output, filtered for includes that should be removed. The goal is to avoid unnecessary build dependencies, reducing the amount of code that needs to be rebuilt during incremental builds. This is a second iteration of this cleanup; the first round took place in 450845d.
1 parent a2e3dd4 commit 7ba2bd4

File tree

388 files changed

+696
-808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+696
-808
lines changed

jbmc/src/java_bytecode/character_refine_preprocess.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Date: March 2017
1919
#include <util/bitvector_expr.h>
2020
#include <util/std_expr.h>
2121

22+
#include <goto-programs/goto_instruction_code.h>
23+
2224
/// converts based on a function on expressions
2325
/// \param expr_function: A reference to a function on expressions
2426
/// \param target: A position in a goto program

jbmc/src/java_bytecode/character_refine_preprocess.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ Date: March 2017
2020
#ifndef CPROVER_JAVA_BYTECODE_CHARACTER_REFINE_PREPROCESS_H
2121
#define CPROVER_JAVA_BYTECODE_CHARACTER_REFINE_PREPROCESS_H
2222

23-
#include <goto-programs/goto_instruction_code.h>
24-
2523
#include <util/mp_arith.h>
26-
#include <util/std_code.h>
24+
#include <util/std_code_base.h>
2725

2826
#include <unordered_map>
2927

28+
class code_function_callt;
29+
3030
class character_refine_preprocesst
3131
{
3232
public:

jbmc/src/java_bytecode/ci_lazy_methods.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ Author: Diffblue Ltd.
77
\*******************************************************************/
88

99
#include "ci_lazy_methods.h"
10-
#include "java_bytecode_language.h"
11-
#include "java_class_loader.h"
12-
#include "java_entry_point.h"
13-
#include "remove_exceptions.h"
1410

1511
#include <util/expr_iterator.h>
1612
#include <util/namespace.h>
1713
#include <util/suffix.h>
14+
#include <util/symbol_table.h>
1815

1916
#include <goto-programs/resolve_inherited_component.h>
2017

18+
#include "java_bytecode_language.h"
19+
#include "java_class_loader.h"
20+
#include "java_entry_point.h"
21+
#include "remove_exceptions.h"
22+
2123
/// Constructor for lazy-method loading
2224
/// \param symbol_table: the symbol table to use
2325
/// \param main_class: identifier of the entry point / main class

jbmc/src/java_bytecode/ci_lazy_methods_needed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Author: Chris Smowton, [email protected]
1313

1414
#include <util/namespace.h>
1515
#include <util/std_types.h>
16-
#include <util/symbol_table.h>
16+
#include <util/symbol_table_base.h>
1717

1818
#include <goto-programs/resolve_inherited_component.h>
1919

jbmc/src/java_bytecode/code_with_references.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Author: Romain Brenguier, [email protected]
99
#include "code_with_references.h"
1010
#include "java_types.h"
1111

12-
#include <goto-programs/goto_instruction_code.h>
13-
1412
#include <util/arith_tools.h>
1513

1614
codet allocate_array(

jbmc/src/java_bytecode/create_array_with_type_intrinsic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Author: Diffblue Ltd.
1212
#ifndef CPROVER_JAVA_BYTECODE_CREATE_ARRAY_WITH_TYPE_INTRINSIC_H
1313
#define CPROVER_JAVA_BYTECODE_CREATE_ARRAY_WITH_TYPE_INTRINSIC_H
1414

15-
#include <util/std_code.h>
15+
#include <util/std_code_base.h>
1616

1717
class message_handlert;
1818
class symbol_table_baset;

jbmc/src/java_bytecode/java_bytecode_convert_class.cpp

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,20 @@ Author: Daniel Kroening, [email protected]
1515
#include <iostream>
1616
#endif
1717

18-
#include "ci_lazy_methods.h"
19-
#include "java_bytecode_convert_method.h"
2018
#include "java_root_class.h"
21-
#include "java_types.h"
22-
#include "java_utils.h"
2319

2420
#include <util/arith_tools.h>
2521
#include <util/expr_initializer.h>
2622
#include <util/namespace.h>
2723
#include <util/prefix.h>
2824
#include <util/std_expr.h>
25+
#include <util/symbol_table_base.h>
26+
27+
#include "ci_lazy_methods.h"
28+
#include "java_bytecode_convert_method.h"
29+
#include "java_string_library_preprocess.h"
30+
#include "java_types.h"
31+
#include "java_utils.h"
2932

3033
class java_bytecode_convert_classt
3134
{

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Author: Daniel Kroening, [email protected]
2626
#include <util/prefix.h>
2727
#include <util/prefix_filter.h> // IWYU pragma: keep
2828
#include <util/std_expr.h>
29+
#include <util/symbol_table_base.h>
2930
#include <util/threeval.h>
3031

3132
#include <goto-programs/resolve_inherited_component.h>

jbmc/src/java_bytecode/java_bytecode_convert_method.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@ Author: Daniel Kroening, [email protected]
1212
#ifndef CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_H
1313
#define CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_CONVERT_METHOD_H
1414

15-
#include "ci_lazy_methods_needed.h"
1615
#include "java_bytecode_convert_method_class.h"
1716
#include "java_bytecode_parse_tree.h"
18-
#include "java_string_library_preprocess.h"
19-
20-
#include <util/message.h>
21-
#include <util/symbol_table.h>
2217

2318
class class_hierarchyt;
2419
class prefix_filtert;

jbmc/src/java_bytecode/java_bytecode_convert_method_class.h

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

15-
#include "ci_lazy_methods_needed.h"
16-
#include "java_bytecode_parse_tree.h"
1715
#include "java_bytecode_convert_class.h"
1816

1917
#include <util/expanding_vector.h>
2018
#include <util/message.h>
19+
#include <util/namespace.h>
2120
#include <util/std_code.h>
2221
#include <util/std_expr.h>
2322

2423
#include <analyses/cfg_dominators.h>
2524

26-
#include <vector>
25+
#include "ci_lazy_methods_needed.h"
26+
#include "java_bytecode_parse_tree.h"
27+
2728
#include <list>
29+
#include <vector>
2830

2931
class class_hierarchyt;
3032
class prefix_filtert;
31-
class symbol_tablet;
3233
class symbolt;
3334

3435
class java_bytecode_convert_methodt

0 commit comments

Comments
 (0)