[flang] Reformat all C++ in lib/*

Original-commit: flang-compiler/f18@232bcedb66
Reviewed-on: https://github.com/flang-compiler/f18/pull/835
Tree-same-pre-rewrite: false
This commit is contained in:
peter klausler 2019-11-21 13:35:20 -08:00
parent 11ce9b0823
commit 4d372b6dc1
3 changed files with 3 additions and 4 deletions

View File

@ -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<semantics::ObjectEntityDetails>()}) {
if (const auto *xObject{x.detailsIf<semantics::ObjectEntityDetails>()}) {
if (const auto *yObject{y.detailsIf<semantics::ObjectEntityDetails>()}) {
return xObject->isDummy() && yObject->isDummy();
}

View File

@ -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"

View File

@ -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;
}