Skip to content

Commit 74fbfba

Browse files
committed
Remove unnecessary config.h includes
These files do not use configt (or its instantiation as config).
1 parent 6e88f92 commit 74fbfba

File tree

16 files changed

+7
-19
lines changed

16 files changed

+7
-19
lines changed

jbmc/src/java_bytecode/java_bytecode_typecheck.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Author: Daniel Kroening, [email protected]
1313

1414
#include <util/std_types.h>
1515
#include <util/prefix.h>
16-
#include <util/config.h>
1716

1817
#include "expr2java.h"
1918

jbmc/unit/java_bytecode/java_bytecode_convert_class/convert_abstract_class.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Author: Diffblue Ltd.
1111
#include <istream>
1212
#include <memory>
1313

14-
#include <util/config.h>
1514
#include <util/message.h>
1615

1716
#include <java_bytecode/java_bytecode_language.h>

jbmc/unit/java_bytecode/java_bytecode_convert_method/convert_initalizers.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Author: Diffblue Limited.
1010

1111
#include <memory>
1212

13-
#include <util/config.h>
1413
#include <util/symbol_table.h>
1514

1615
#include <java_bytecode/java_bytecode_language.h>

jbmc/unit/java_bytecode/java_bytecode_parse_lambdas/java_bytecode_parse_lambda_method_table.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Author: Diffblue Ltd.
88

99
#include <algorithm>
1010
#include <functional>
11-
#include <util/config.h>
1211

1312
#include <java-testing-utils/require_parse_tree.h>
1413

jbmc/unit/java_bytecode/java_replace_nondet/replace_nondet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Author: Diffblue Ltd.
2020
#include <java_bytecode/remove_instanceof.h>
2121
#include <java_bytecode/replace_java_nondet.h>
2222

23-
#include <util/config.h>
2423
#include <util/options.h>
2524

2625
#include <goto-instrument/cover.h>

scripts/expected_doxygen_warnings.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ warning: Include graph for 'goto_instrument_parse_options.cpp' not generated, to
2222
warning: Included by graph for 'goto_functions.h' not generated, too many nodes (66), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2323
warning: Included by graph for 'goto_model.h' not generated, too many nodes (111), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2424
warning: Included by graph for 'arith_tools.h' not generated, too many nodes (183), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
25-
warning: Included by graph for 'c_types.h' not generated, too many nodes (142), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
26-
warning: Included by graph for 'config.h' not generated, too many nodes (88), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
25+
warning: Included by graph for 'c_types.h' not generated, too many nodes (143), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
26+
warning: Included by graph for 'config.h' not generated, too many nodes (78), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2727
warning: Included by graph for 'exception_utils.h' not generated, too many nodes (61), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2828
warning: Included by graph for 'expr.h' not generated, too many nodes (87), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.
2929
warning: Included by graph for 'expr_util.h' not generated, too many nodes (61), threshold is 60. Consider increasing DOT_GRAPH_MAX_NODES.

src/ansi-c/gcc_types.cpp

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

99
#include "gcc_types.h"
1010

11-
#include <util/config.h>
1211
#include <util/c_types.h>
12+
#include <util/ieee_float.h>
1313

1414
floatbv_typet gcc_float16_type()
1515
{

src/cbmc/cbmc_parse_options.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Author: Daniel Kroening, [email protected]
1515
#include <ansi-c/ansi_c_language.h>
1616
#include <ansi-c/c_object_factory_parameters.h>
1717

18-
#include <util/config.h>
1918
#include <util/parse_options.h>
2019
#include <util/timestamper.h>
2120
#include <util/ui_message.h>

src/goto-analyzer/goto_analyzer_parse_options.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ Author: Daniel Kroening, [email protected]
8989
#ifndef CPROVER_GOTO_ANALYZER_GOTO_ANALYZER_PARSE_OPTIONS_H
9090
#define CPROVER_GOTO_ANALYZER_GOTO_ANALYZER_PARSE_OPTIONS_H
9191

92-
#include <util/config.h>
9392
#include <util/parse_options.h>
9493
#include <util/timestamper.h>
9594
#include <util/ui_message.h>

src/goto-instrument/accelerate/util.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ Author: Matt Lewis
1414
#include <iostream>
1515
#include <algorithm>
1616

17+
#include <util/c_types.h>
1718
#include <util/std_types.h>
18-
#include <util/config.h>
1919

2020
signedbv_typet signed_poly_type()
2121
{
22-
return signedbv_typet(config.ansi_c.int_width);
22+
return signed_int_type();
2323
}
2424

2525
unsignedbv_typet unsigned_poly_type()
2626
{
27-
return unsignedbv_typet(config.ansi_c.int_width);
27+
return unsigned_int_type();
2828
}
2929

3030
/**

src/goto-instrument/cover.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Date: May 2016
1313

1414
#include "cover.h"
1515

16-
#include <util/config.h>
1716
#include <util/message.h>
1817
#include <util/make_unique.h>
1918
#include <util/cmdline.h>

src/goto-instrument/goto_program2code.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Author: Daniel Kroening, [email protected]
1515

1616
#include <util/arith_tools.h>
1717
#include <util/c_types.h>
18-
#include <util/config.h>
1918
#include <util/expr_util.h>
2019
#include <util/find_symbols.h>
20+
#include <util/ieee_float.h>
2121
#include <util/pointer_expr.h>
2222
#include <util/prefix.h>
2323
#include <util/simplify_expr.h>

src/goto-programs/json_goto_trace.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Author: Daniel Kroening
1515

1616
#include <langapi/language_util.h>
1717
#include <util/arith_tools.h>
18-
#include <util/config.h>
1918
#include <util/invariant.h>
2019
#include <util/simplify_expr.h>
2120

src/linking/static_lifetime_init.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Author: Daniel Kroening, [email protected]
1212

1313
#include <util/arith_tools.h>
1414
#include <util/c_types.h>
15-
#include <util/config.h>
1615
#include <util/expr_initializer.h>
1716
#include <util/namespace.h>
1817
#include <util/prefix.h>

src/memory-analyzer/analyze_symbol.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Author: Malte Mues <[email protected]>
1313

1414
#include <util/c_types.h>
1515
#include <util/c_types_util.h>
16-
#include <util/config.h>
1716
#include <util/expr_initializer.h>
1817
#include <util/pointer_expr.h>
1918
#include <util/pointer_offset_size.h>

unit/json_symbol_table.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <langapi/mode.h>
1919

2020
#include <util/cmdline.h>
21-
#include <util/config.h>
2221
#include <util/message.h>
2322
#include <util/options.h>
2423
#include <util/symbol_table.h>

0 commit comments

Comments
 (0)