@@ -69,10 +69,11 @@ void DumpEvaluateExpr::Show(const evaluate::Component &x) {
6969
7070void DumpEvaluateExpr::Show (const evaluate::NamedEntity &x) {
7171 Indent (" named entity" );
72- if (const auto *component{x.UnwrapComponent ()})
72+ if (const auto *component{x.UnwrapComponent ()}) {
7373 Show (*component);
74- else
74+ } else {
7575 Show (x.GetFirstSymbol ());
76+ }
7677 Outdent ();
7778}
7879
@@ -130,8 +131,9 @@ void DumpEvaluateExpr::Show(
130131
131132void DumpEvaluateExpr::Show (const DerivedTypeSpec &x) {
132133 Indent (" derived type spec" );
133- for (auto &v : x.parameters ())
134+ for (auto &v : x.parameters ()) {
134135 Show (v);
136+ }
135137 Outdent ();
136138}
137139
@@ -143,8 +145,9 @@ void DumpEvaluateExpr::Show(
143145void DumpEvaluateExpr::Show (const evaluate::StructureConstructor &x) {
144146 Indent (" structure constructor" );
145147 Show (x.derivedTypeSpec ());
146- for (auto &v : x)
148+ for (auto &v : x) {
147149 Show (v);
150+ }
148151 Outdent ();
149152}
150153
@@ -162,21 +165,23 @@ void DumpEvaluateExpr::Show(const evaluate::ComplexPart &x) {
162165
163166void DumpEvaluateExpr::Show (const evaluate::ActualArgument &x) {
164167 Indent (" actual argument" );
165- if (const auto *symbol{x.GetAssumedTypeDummy ()})
168+ if (const auto *symbol{x.GetAssumedTypeDummy ()}) {
166169 Show (*symbol);
167- else
170+ } else {
168171 Show (x.UnwrapExpr ());
172+ }
169173 Outdent ();
170174}
171175
172176void DumpEvaluateExpr::Show (const evaluate::ProcedureDesignator &x) {
173177 Indent (" procedure designator" );
174- if (const auto *component{x.GetComponent ()})
178+ if (const auto *component{x.GetComponent ()}) {
175179 Show (*component);
176- else if (const auto *symbol{x.GetSymbol ()})
180+ } else if (const auto *symbol{x.GetSymbol ()}) {
177181 Show (*symbol);
178- else
182+ } else {
179183 Show (DEREF (x.GetSpecificIntrinsic ()));
184+ }
180185 Outdent ();
181186}
182187
@@ -200,8 +205,9 @@ void DumpEvaluateExpr::Indent(llvm::StringRef s) {
200205}
201206
202207void DumpEvaluateExpr::Outdent () {
203- if (level_)
208+ if (level_) {
204209 level_--;
210+ }
205211 Print (" }" );
206212}
207213
0 commit comments