Skip to content

Commit d0ec242

Browse files
author
Daniel Kroening
authored
Merge pull request #975 from thk123/feature/access-methods-on-code-type
Adding accessors for the access properties
2 parents 927e48c + b6e193e commit d0ec242

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/util/std_types.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,16 @@ class code_typet:public typet
866866
set(ID_C_inlined, value);
867867
}
868868

869+
const irep_idt &get_access() const
870+
{
871+
return get(ID_access);
872+
}
873+
874+
void set_access(const irep_idt &access)
875+
{
876+
return set(ID_access, access);
877+
}
878+
869879
// this produces the list of parameter identifiers
870880
std::vector<irep_idt> parameter_identifiers() const
871881
{

0 commit comments

Comments
 (0)