From 2a68453d7bc1e7ed9b7e46d2cedbb970dec2d2f0 Mon Sep 17 00:00:00 2001 From: peter klausler Date: Thu, 3 May 2018 16:30:37 -0700 Subject: [PATCH] [flang] reformat Original-commit: flang-compiler/f18@d809458bb3e9ad729b10399f68f8b66e85a0f636 Reviewed-on: https://github.com/flang-compiler/f18/pull/80 Tree-same-pre-rewrite: false --- flang/lib/semantics/dump-parse-tree.h | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/flang/lib/semantics/dump-parse-tree.h b/flang/lib/semantics/dump-parse-tree.h index 880912e7c943..03b52a89dec5 100644 --- a/flang/lib/semantics/dump-parse-tree.h +++ b/flang/lib/semantics/dump-parse-tree.h @@ -34,7 +34,8 @@ public: explicit ParseTreeDumper(std::ostream &out) : out_(out) {} constexpr const char *GetNodeName(const char *const &) { return "char *"; } -#define NODE_NAME(T,N) constexpr const char *GetNodeName(const T &) { return N; } +#define NODE_NAME(T, N) \ + constexpr const char *GetNodeName(const T &) { return N; } #define NODE(NS, T) NODE_NAME(NS::T, #T) #define NESTED_NODE(T1, T2) NODE_NAME(T1::T2, #T2) NODE_NAME(bool, "bool") @@ -610,27 +611,19 @@ public: // A few types we want to ignore - template bool Pre(const parser::Statement &) { - return true; - } + template bool Pre(const parser::Statement &) { return true; } template void Post(const parser::Statement &) {} - template bool Pre(const parser::Indirection &) { - return true; - } + template bool Pre(const parser::Indirection &) { return true; } template void Post(const parser::Indirection &) {} - template bool Pre(const parser::Integer &) { - return true; - } + template bool Pre(const parser::Integer &) { return true; } template void Post(const parser::Integer &) {} - template bool Pre(const parser::Scalar &) { - return true; - } + template bool Pre(const parser::Scalar &) { return true; } template void Post(const parser::Scalar &) {} @@ -644,7 +637,7 @@ public: protected: void IndentEmptyLine() { - if (emptyline_&& indent_ > 0) { + if (emptyline_ && indent_ > 0) { for (int i{0}; i < indent_; ++i) { out_ << "| "; }