about summary refs log tree commit diff homepage
path: root/utils
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2016-02-22 19:31:08 +0000
committerDan Liew <daniel.liew@imperial.ac.uk>2016-02-22 19:31:08 +0000
commitc75ee65f632d7ee0e810a612ea100aa1b0e3f418 (patch)
treece78855f26e62686b8fa25ea80253a7e42e97279 /utils
parent4d57a5a829124106a4ef81e5131a50d1e7caed7f (diff)
downloadklee-c75ee65f632d7ee0e810a612ea100aa1b0e3f418.tar.gz
Make the declaration of ``ConstantExpr`` the last declared ``Expr``
sub-class rather than the first. Whilst I'm here clang-format the
moved code.

The motivation for this is that ``ConstantExpr`` may need to refer to a
type that cannot be forward declared (e.g. some kind of enum) in the
other ``Expr`` sub-classes.

For example if an Expr sub-class is ever introduced that has contains an
enum that is used for its constructor then the previous ordering would prevent
a Constant evaluation method (e.g. ``ConstantExpr::MyNewExprType(const
ref<ConstantExpr> &RHS, MyNewType::SpecialEnum p)``) from being
implemented because the ``MyNewType::SpecialEnum`` type has not yet been
declared.
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions