Skip to content

Commit 9d628cc

Browse files
author
Daniel Kroening
committed
do restrict qualifier
1 parent 261edb6 commit 9d628cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cpp/cpp_convert_type.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class cpp_convert_typet
2222
{
2323
public:
2424
unsigned unsigned_cnt, signed_cnt, char_cnt, int_cnt, short_cnt,
25-
long_cnt, const_cnt, constexpr_cnt, volatile_cnt,
25+
long_cnt, const_cnt, restrict_cnt, constexpr_cnt, volatile_cnt,
2626
double_cnt, float_cnt, complex_cnt, cpp_bool_cnt, proper_bool_cnt,
2727
extern_cnt, wchar_t_cnt, char16_t_cnt, char32_t_cnt,
2828
int8_cnt, int16_cnt, int32_cnt, int64_cnt, ptr32_cnt, ptr64_cnt,
@@ -57,7 +57,7 @@ Function: cpp_convert_typet::read
5757
void cpp_convert_typet::read(const typet &type)
5858
{
5959
unsigned_cnt=signed_cnt=char_cnt=int_cnt=short_cnt=
60-
long_cnt=const_cnt=constexpr_cnt=volatile_cnt=
60+
long_cnt=const_cnt=restrict_cnt=constexpr_cnt=volatile_cnt=
6161
double_cnt=float_cnt=complex_cnt=cpp_bool_cnt=proper_bool_cnt=
6262
extern_cnt=wchar_t_cnt=char16_t_cnt=char32_t_cnt=
6363
int8_cnt=int16_cnt=int32_cnt=int64_cnt=
@@ -144,6 +144,8 @@ void cpp_convert_typet::read_rec(const typet &type)
144144
ptr64_cnt++;
145145
else if(type.id()==ID_const)
146146
const_cnt++;
147+
else if(type.id()==ID_restrict)
148+
restrict_cnt++;
147149
else if(type.id()==ID_constexpr)
148150
constexpr_cnt++;
149151
else if(type.id()==ID_extern)

0 commit comments

Comments
 (0)