Skip to content

Do not duplicate what c_type_as_string takes care of #3178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 1 addition & 31 deletions src/cpp/expr2cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,37 +149,7 @@ std::string expr2cppt::convert_rec(
{
const irep_idt c_type=src.get(ID_C_c_type);

if(c_type==ID_signed_char)
return q+"signed char"+d;
else if(c_type==ID_unsigned_char)
return q+"unsigned char"+d;
else if(c_type==ID_char)
return q+"char"+d;
else if(c_type==ID_signed_short_int)
return q+"short"+d;
else if(c_type==ID_unsigned_short_int)
return q+"unsigned short"+d;
else if(c_type==ID_signed_int)
return q+"int"+d;
else if(c_type==ID_unsigned_int)
return q+"unsigned"+d;
else if(c_type==ID_signed_long_int)
return q+"long"+d;
else if(c_type==ID_unsigned_long_int)
return q+"unsigned long"+d;
else if(c_type==ID_signed_long_long_int)
return q+"long long"+d;
else if(c_type==ID_unsigned_long_long_int)
return q+"unsigned long long"+d;
else if(c_type==ID_wchar_t)
return q+"wchar_t"+d;
else if(c_type==ID_float)
return q+"float"+d;
else if(c_type==ID_double)
return q+"double"+d;
else if(c_type==ID_long_double)
return q+"long double"+d;
else if(c_type==ID_bool)
if(c_type == ID_bool)
return q+"bool"+d;
else
return expr2ct::convert_rec(src, qualifiers, declarator);
Expand Down