Skip to content

Commit 947dc0c

Browse files
Add missing static
This ensures the function is only used within the cpp file where it is defined. This should be used for all functions which are not part of the interface in the header file.
1 parent 267cc19 commit 947dc0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/goto-symex/build_goto_trace.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Author: Daniel Kroening
2525

2626
#include "partial_order_concurrency.h"
2727

28-
exprt build_full_lhs_rec(
28+
static exprt build_full_lhs_rec(
2929
const prop_convt &prop_conv,
3030
const namespacet &ns,
3131
const exprt &src_original, // original identifiers
@@ -104,7 +104,7 @@ exprt build_full_lhs_rec(
104104

105105
/// set internal field for variable assignment related to dynamic_object[0-9]
106106
/// and dynamic_[0-9]_array.
107-
void set_internal_dynamic_object(
107+
static void set_internal_dynamic_object(
108108
const exprt &expr,
109109
goto_trace_stept &goto_trace_step,
110110
const namespacet &ns)
@@ -132,7 +132,7 @@ void set_internal_dynamic_object(
132132

133133
/// set internal for variables assignments related to dynamic_object and CPROVER
134134
/// internal functions (e.g., __CPROVER_initialize)
135-
void update_internal_field(
135+
static void update_internal_field(
136136
const symex_target_equationt::SSA_stept &SSA_step,
137137
goto_trace_stept &goto_trace_step,
138138
const namespacet &ns)

0 commit comments

Comments
 (0)