summaryrefslogtreecommitdiff
path: root/src/support/archive.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-04-26 16:59:41 -0700
committerGitHub <noreply@github.com>2019-04-26 16:59:41 -0700
commitdb9124f1de0478dcac525009b6f1589b44a7edd8 (patch)
treefa26395a0f6cca53cf5cb6e10189f989c5bfa847 /src/support/archive.h
parent87636dccd404a340d75acb1d96301581343f29ca (diff)
downloadbinaryen-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/support/archive.h')
-rw-r--r--src/support/archive.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/support/archive.h b/src/support/archive.h
index 0ca066ff1..cba7c4fc1 100644
--- a/src/support/archive.h
+++ b/src/support/archive.h
@@ -38,7 +38,7 @@ class Archive {
// because most things in these buffers are not nul-terminated
using Buffer = std::vector<char>;
- public:
+public:
struct SubBuffer {
const uint8_t* data;
uint32_t len;
@@ -56,7 +56,7 @@ class Archive {
}
Child getNext(bool& error) const;
- public:
+ public:
Child(){};
Child(const Archive* parent, const uint8_t* data, bool* error);
// Size of actual member data (no header/padding)
@@ -69,8 +69,8 @@ class Archive {
class child_iterator {
friend class Archive;
Child child;
- bool error = false; // TODO: use std::error_code instead?
- public:
+ bool error = false; // TODO: use std::error_code instead?
+ public:
child_iterator() = default;
explicit child_iterator(bool error) : error(error) {}
child_iterator(const Child& c) : child(c) {}
@@ -94,7 +94,7 @@ class Archive {
child_iterator child_end() const;
void dump() const;
- private:
+private:
void setFirstRegular(const Child& c) { firstRegularData = c.data; }
Buffer& data;
SubBuffer symbolTable;
@@ -102,4 +102,4 @@ class Archive {
const uint8_t* firstRegularData;
};
-#endif // wasm_support_archive_h
+#endif // wasm_support_archive_h