summaryrefslogtreecommitdiffstats
path: root/idlc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-16 10:15:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-16 12:42:04 +0200
commita6a46aad5118fca8b27205e9c0a9772af322235a (patch)
tree90af16b208899eaa593f6ea43b00608b5de21bfb /idlc/inc
parentconvert ErrorCode to scoped enum (diff)
downloadcore-a6a46aad5118fca8b27205e9c0a9772af322235a.tar.gz
core-a6a46aad5118fca8b27205e9c0a9772af322235a.zip
convert ExprComb to scoped enum
and drop unused EC_bit_neg enumerator Change-Id: I8a93310cd849cee56fcf628424d96005f89ba799
Diffstat (limited to 'idlc/inc')
-rw-r--r--idlc/inc/astexpression.hxx31
1 files changed, 15 insertions, 16 deletions
diff --git a/idlc/inc/astexpression.hxx b/idlc/inc/astexpression.hxx
index e092ffd99fd0..788d7a2afc6c 100644
--- a/idlc/inc/astexpression.hxx
+++ b/idlc/inc/astexpression.hxx
@@ -26,23 +26,22 @@
#include <idlc.hxx>
// Enum to define all the different operators to combine expressions
-enum ExprComb
+enum class ExprComb
{
- EC_add, // '+'
- EC_minus, // '-'
- EC_mul, // '*'
- EC_div, // '/'
- EC_mod, // '%'
- EC_or, // '|'
- EC_xor, // '^'
- EC_and, // '&'
- EC_left, // '<<'
- EC_right, // '>>'
- EC_u_plus, // unary '+'
- EC_u_minus, // unary '-'
- EC_bit_neg, // '~'
- EC_none, // No operator (missing)
- EC_symbol // a symbol (function or constant name)
+ Add, // '+'
+ Minus, // '-'
+ Mul, // '*'
+ Div, // '/'
+ Mod, // '%'
+ Or, // '|'
+ Xor, // '^'
+ And, // '&'
+ Left, // '<<'
+ Right, // '>>'
+ UPlus, // unary '+'
+ UMinus, // unary '-'
+ NONE, // No operator (missing)
+ Symbol // a symbol (function or constant name)
};
// Enum to define expression type