diff options
author | Alon Zakai <azakai@google.com> | 2019-05-01 14:48:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-01 14:48:41 -0700 |
commit | 2bd3758a22131cfd6925b3fd995657b211095c90 (patch) | |
tree | 2a38a48ab68c00ed1b55e885f86014bbdda92ff2 /src/ir/function-utils.h | |
parent | 73709b4da08d285c2237c8c23a54ba53274c0c7f (diff) | |
download | binaryen-2bd3758a22131cfd6925b3fd995657b211095c90.tar.gz binaryen-2bd3758a22131cfd6925b3fd995657b211095c90.tar.bz2 binaryen-2bd3758a22131cfd6925b3fd995657b211095c90.zip |
clang-tidy braces changes (#2075)
Applies the changes in #2065, and temprarily disables the hook since it's too slow to run on a change this large. We should re-enable it in a later commit.
Diffstat (limited to 'src/ir/function-utils.h')
-rw-r--r-- | src/ir/function-utils.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ir/function-utils.h b/src/ir/function-utils.h index 446bcc8bb..61af153a0 100644 --- a/src/ir/function-utils.h +++ b/src/ir/function-utils.h @@ -28,18 +28,23 @@ namespace FunctionUtils { // everything but their name (which can't be the same, in the same // module!) - same params, vars, body, result, etc. inline bool equal(Function* left, Function* right) { - if (left->getNumParams() != right->getNumParams()) + if (left->getNumParams() != right->getNumParams()) { return false; - if (left->getNumVars() != right->getNumVars()) + } + if (left->getNumVars() != right->getNumVars()) { return false; + } for (Index i = 0; i < left->getNumLocals(); i++) { - if (left->getLocalType(i) != right->getLocalType(i)) + if (left->getLocalType(i) != right->getLocalType(i)) { return false; + } } - if (left->result != right->result) + if (left->result != right->result) { return false; - if (left->type != right->type) + } + if (left->type != right->type) { return false; + } if (!left->imported() && !right->imported()) { return ExpressionAnalyzer::equal(left->body, right->body); } |