From 4d372b6dc174d54e6cb276af4737d8faca06df3e Mon Sep 17 00:00:00 2001 From: peter klausler Date: Thu, 21 Nov 2019 13:35:20 -0800 Subject: [PATCH] [flang] Reformat all C++ in lib/* Original-commit: flang-compiler/f18@232bcedb6647592e63dc0dec6c6bd83fd41082b4 Reviewed-on: https://github.com/flang-compiler/f18/pull/835 Tree-same-pre-rewrite: false --- flang/lib/evaluate/variable.cc | 3 +-- flang/lib/semantics/semantics.h | 2 +- flang/lib/semantics/tools.cc | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/flang/lib/evaluate/variable.cc b/flang/lib/evaluate/variable.cc index 0c68a02..5fcefd1 100644 --- a/flang/lib/evaluate/variable.cc +++ b/flang/lib/evaluate/variable.cc @@ -607,8 +607,7 @@ bool AreSameSymbol(const Symbol &x, const Symbol &y) { return true; } if (x.name() == y.name()) { - if (const auto *xObject{ - x.detailsIf()}) { + if (const auto *xObject{x.detailsIf()}) { if (const auto *yObject{y.detailsIf()}) { return xObject->isDummy() && yObject->isDummy(); } diff --git a/flang/lib/semantics/semantics.h b/flang/lib/semantics/semantics.h index b3f028c..406d537 100644 --- a/flang/lib/semantics/semantics.h +++ b/flang/lib/semantics/semantics.h @@ -16,8 +16,8 @@ #define FORTRAN_SEMANTICS_SEMANTICS_H_ #include "scope.h" -#include "../common/Fortran-features.h" #include "symbol.h" +#include "../common/Fortran-features.h" #include "../evaluate/common.h" #include "../evaluate/intrinsics.h" #include "../parser/message.h" diff --git a/flang/lib/semantics/tools.cc b/flang/lib/semantics/tools.cc index 0a93ca0..bc62f2535 100644 --- a/flang/lib/semantics/tools.cc +++ b/flang/lib/semantics/tools.cc @@ -74,7 +74,7 @@ const Scope *FindPureProcedureContaining(const Scope &start) { // N.B. We only need to examine the innermost containing program unit // because an internal subprogram of a PURE subprogram must also // be PURE (C1592). - if (const Scope *scope{FindProgramUnitContaining(start)}) { + if (const Scope * scope{FindProgramUnitContaining(start)}) { if (IsPureProcedure(*scope)) { return scope; } -- 2.7.4