15 const typet &dest_type)
23 for(
const auto &tc_error : c_typecast.
errors)
27 <<
"conversion from '" <<
to_string(src_type) <<
"' to '"
31 if(!c_typecast.
errors.empty())
34 for(
const auto &tc_warning : c_typecast.
warnings)
49 for(
const auto &tc_error : c_typecast.
errors)
57 if(!c_typecast.
errors.empty())
60 for(
const auto &tc_warning : c_typecast.
warnings)
73 for(
const auto &tc_error : c_typecast.
errors)
79 if(!c_typecast.
errors.empty())
82 for(
const auto &tc_warning : c_typecast.
warnings)
ANSI-C Language Type Checking.
virtual void implicit_typecast(exprt &expr, const typet &type)
virtual void implicit_typecast_arithmetic(exprt &expr)
std::list< std::string > warnings
std::list< std::string > errors
virtual void implicit_typecast(exprt &expr, const typet &type)
virtual void implicit_typecast_arithmetic(exprt &expr)
virtual std::string to_string(const exprt &expr)
Base class for all expressions.
const source_locationt & find_source_location() const
Get a source_locationt from the expression or from its operands (non-recursively).
typet & type()
Return the type of the expression.
source_locationt source_location
mstreamt & warning() const
The type of an expression, extends irept.