Skip to content

Commit a6da811

Browse files
author
Daniel Kroening
authored
Merge pull request #2834 from diffblue/protect-exprt-methods
add protection to internal methods of exprt
2 parents 3bc445e + 68f95d2 commit a6da811

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/util/expr.h

+2
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ class exprt:public irept
139139
return static_cast<source_locationt &>(add(ID_C_source_location));
140140
}
141141

142+
protected:
142143
exprt &add_expr(const irep_idt &name)
143144
{
144145
return static_cast<exprt &>(add(name));
@@ -149,6 +150,7 @@ class exprt:public irept
149150
return static_cast<const exprt &>(find(name));
150151
}
151152

153+
public:
152154
void visit(class expr_visitort &visitor);
153155
void visit(class const_expr_visitort &visitor) const;
154156

0 commit comments

Comments
 (0)