summaryrefslogtreecommitdiff
path: root/src/pretty_printing.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/pretty_printing.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/pretty_printing.h')
-rw-r--r--src/pretty_printing.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/pretty_printing.h b/src/pretty_printing.h
index c5d755dcc..5e41a4d2d 100644
--- a/src/pretty_printing.h
+++ b/src/pretty_printing.h
@@ -25,36 +25,36 @@
#include "support/colors.h"
-inline std::ostream &doIndent(std::ostream &o, unsigned indent) {
+inline std::ostream& doIndent(std::ostream& o, unsigned indent) {
for (unsigned i = 0; i < indent; i++) {
o << " ";
}
return o;
}
-inline std::ostream &prepareMajorColor(std::ostream &o) {
+inline std::ostream& prepareMajorColor(std::ostream& o) {
Colors::red(o);
Colors::bold(o);
return o;
}
-inline std::ostream &prepareColor(std::ostream &o) {
+inline std::ostream& prepareColor(std::ostream& o) {
Colors::magenta(o);
Colors::bold(o);
return o;
}
-inline std::ostream &prepareMinorColor(std::ostream &o) {
+inline std::ostream& prepareMinorColor(std::ostream& o) {
Colors::orange(o);
return o;
}
-inline std::ostream &restoreNormalColor(std::ostream &o) {
+inline std::ostream& restoreNormalColor(std::ostream& o) {
Colors::normal(o);
return o;
}
-inline std::ostream& printText(std::ostream &o, const char *str) {
+inline std::ostream& printText(std::ostream& o, const char* str) {
o << '"';
Colors::green(o);
o << str;
@@ -62,21 +62,23 @@ inline std::ostream& printText(std::ostream &o, const char *str) {
return o << '"';
}
-inline std::ostream& printMajor(std::ostream &o, const char *str, bool major=false) {
+inline std::ostream&
+printMajor(std::ostream& o, const char* str, bool major = false) {
prepareMajorColor(o);
o << str;
restoreNormalColor(o);
return o;
}
-inline std::ostream& printMedium(std::ostream &o, const char *str, bool major=false) {
+inline std::ostream&
+printMedium(std::ostream& o, const char* str, bool major = false) {
prepareColor(o);
o << str;
restoreNormalColor(o);
return o;
}
-inline std::ostream& printMinor(std::ostream &o, const char *str) {
+inline std::ostream& printMinor(std::ostream& o, const char* str) {
prepareMinorColor(o);
o << str;
restoreNormalColor(o);