Skip to content

Conversation

@kroening
Copy link
Collaborator

An attempt is made to make the functions in c_types.h return the strongest possible C++ type

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use

if(is_signed)
  type=signed_char_type();
else
  type=unsigned_char_type();

to 1) avoid overly long lines and 2) the type casts.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signedbv_typet result(config.ansi_c.int_width); (and several more instances of the same)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RAII - merge the lines below.

@tautschnig tautschnig merged commit 7f8efa0 into master May 26, 2017
@tautschnig tautschnig deleted the c-types-typing branch June 19, 2017 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants