diff options
author | Alon Zakai <azakai@google.com> | 2019-04-26 16:59:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 16:59:41 -0700 |
commit | db9124f1de0478dcac525009b6f1589b44a7edd8 (patch) | |
tree | fa26395a0f6cca53cf5cb6e10189f989c5bfa847 /src/ir/find_all.h | |
parent | 87636dccd404a340d75acb1d96301581343f29ca (diff) | |
download | binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.tar.gz binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.tar.bz2 binaryen-db9124f1de0478dcac525009b6f1589b44a7edd8.zip |
Apply format changes from #2048 (#2059)
Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048
Diffstat (limited to 'src/ir/find_all.h')
-rw-r--r-- | src/ir/find_all.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ir/find_all.h b/src/ir/find_all.h index 44dc7a675..1abaab772 100644 --- a/src/ir/find_all.h +++ b/src/ir/find_all.h @@ -23,12 +23,12 @@ namespace wasm { // Find all instances of a certain node type -template<typename T> -struct FindAll { +template<typename T> struct FindAll { std::vector<T*> list; FindAll(Expression* ast) { - struct Finder : public PostWalker<Finder, UnifiedExpressionVisitor<Finder>> { + struct Finder + : public PostWalker<Finder, UnifiedExpressionVisitor<Finder>> { std::vector<T*>* list; void visitExpression(Expression* curr) { if (curr->is<T>()) { @@ -44,7 +44,8 @@ struct FindAll { // Find all pointers to instances of a certain node type -struct PointerFinder : public PostWalker<PointerFinder, UnifiedExpressionVisitor<PointerFinder>> { +struct PointerFinder + : public PostWalker<PointerFinder, UnifiedExpressionVisitor<PointerFinder>> { Expression::Id id; std::vector<Expression**>* list; void visitExpression(Expression* curr) { @@ -54,8 +55,7 @@ struct PointerFinder : public PostWalker<PointerFinder, UnifiedExpressionVisitor } }; -template<typename T> -struct FindAllPointers { +template<typename T> struct FindAllPointers { std::vector<Expression**> list; FindAllPointers(Expression* ast) { @@ -69,4 +69,3 @@ struct FindAllPointers { } // namespace wasm #endif // wasm_ir_find_all_h - |