forked from OSchip/llvm-project
[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:
parent
11ce9b0823
commit
4d372b6dc1
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue