Skip to content

Commit 4fc0edd

Browse files
peterschrammelDaniel Kroening
authored and
Daniel Kroening
committed
Comment on uninitialized class members
1 parent e545f98 commit 4fc0edd

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

src/ansi-c/ansi_c_convert_type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class ansi_c_convert_typet:public messaget
5353

5454
explicit ansi_c_convert_typet(message_handlert &_message_handler):
5555
messaget(_message_handler)
56+
// class members are initialized by calling read()
5657
{
5758
}
5859

src/goto-analyzer/taint_parser.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ class taint_parse_treet
5151

5252
void output(std::ostream &) const;
5353

54-
rulet():parameter_number(0)
54+
rulet():
55+
parameter_number(0)
56+
// The other class members are initialized by taint_parser().
5557
{
5658
}
5759
};

src/java_bytecode/jar_file.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ Author: Daniel Kroening, [email protected]
2626
class jar_filet:public messaget
2727
{
2828
public:
29-
jar_filet():mz_ok(false) { }
29+
jar_filet():
30+
mz_ok(false)
31+
// `zip` will be initialized by open()
32+
{
33+
}
3034

3135
~jar_filet();
3236

src/pointer-analysis/value_set_fi.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ Author: Daniel Kroening, [email protected]
2626
class value_set_fit
2727
{
2828
public:
29-
value_set_fit()
29+
value_set_fit():
30+
changed(false)
31+
// to_function, to_target_index are set by set_to()
32+
// from_function, from_target_index are set by set_from()
3033
{
3134
}
3235

0 commit comments

Comments
 (0)