Skip to content

Commit

Permalink
Added support for arithmetic with different types
Browse files Browse the repository at this point in the history
Adds support for operations like int16_t + int64_t or
uint8_t + double(the operand with the smaller size is promoted to
the operand with the larger size) and tests for this new functionality.
Also adds a few helper functions including StaticCastOrConvertLiteral,
 CastOperandAndDoArithmetic, and CastOperandAndDoComparison. o
Also adds a GetAs<T> member to the AstLiteralExpression to get the
value of a literal as type T
  • Loading branch information
dghosef committed Aug 9, 2021
1 parent 591c506 commit 9aec85d
Show file tree
Hide file tree
Showing 5 changed files with 685 additions and 384 deletions.
Loading

0 comments on commit 9aec85d

Please sign in to comment.