summaryrefslogtreecommitdiff
path: root/src/wasm-traversal.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2019-01-15 13:20:05 -0800
committerGitHub <noreply@github.com>2019-01-15 13:20:05 -0800
commitd24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead (patch)
tree37575895001e5dd9509c5c42fd539253516e21fd /src/wasm-traversal.h
parent45714b5fc6cf14c112bc4f188aca427464ab69d8 (diff)
downloadbinaryen-d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead.tar.gz
binaryen-d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead.tar.bz2
binaryen-d24427dcc8cd6e0dbcd8c302eb2e8a5d0d6fdead.zip
Code style improvements (#1868)
* Use modern T p = v; notation to initialize class fields * Use modern X() = default; notation for empty class constructors
Diffstat (limited to 'src/wasm-traversal.h')
-rw-r--r--src/wasm-traversal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-traversal.h b/src/wasm-traversal.h
index c79be1c10..fe3e3c5dd 100644
--- a/src/wasm-traversal.h
+++ b/src/wasm-traversal.h
@@ -671,7 +671,7 @@ struct PostWalker : public Walker<SubType, VisitorType> {
template<typename SubType, typename VisitorType = Visitor<SubType>>
struct ControlFlowWalker : public PostWalker<SubType, VisitorType> {
- ControlFlowWalker() {}
+ ControlFlowWalker() = default;
std::vector<Expression*> controlFlowStack; // contains blocks, loops, and ifs
@@ -734,7 +734,7 @@ struct ControlFlowWalker : public PostWalker<SubType, VisitorType> {
template<typename SubType, typename VisitorType = Visitor<SubType>>
struct ExpressionStackWalker : public PostWalker<SubType, VisitorType> {
- ExpressionStackWalker() {}
+ ExpressionStackWalker() = default;
std::vector<Expression*> expressionStack;
@@ -798,7 +798,7 @@ struct ExpressionStackWalker : public PostWalker<SubType, VisitorType> {
template<typename SubType, typename VisitorType = Visitor<SubType>>
struct LinearExecutionWalker : public PostWalker<SubType, VisitorType> {
- LinearExecutionWalker() {}
+ LinearExecutionWalker() = default;
// subclasses should implement this
void noteNonLinear(Expression* curr) { abort(); }