Skip to content

I20201114-0740

@jjohnstn jjohnstn tagged this 13 Nov 19:01
- add setVarTypeDeclaration() method to CastExpression to
  indicate when CastExpression is the initialization of a var type
- add logic in CastExpression to disable unnecessary cast checks
  if we are initializing a var type variable and the type of the cast
  and expression are not equal
- add logic in LocalDeclaration to call
  CastExpression.setVarTypeDeclaration() when appropriate
- add new test to CastTest

Change-Id: I43ac031a69796a14be3a00fc2656becec5b38b81
Signed-off-by: Jeff Johnston <jjohnstn@redhat.com>
Assets 2
Loading