[flang] Reformat all C++ in lib/*
authorpeter klausler <pklausler@nvidia.com>
Thu, 21 Nov 2019 21:35:20 +0000 (13:35 -0800)
committerpeter klausler <pklausler@nvidia.com>
Thu, 21 Nov 2019 21:35:20 +0000 (13:35 -0800)
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
flang/lib/semantics/semantics.h
flang/lib/semantics/tools.cc

index 0c68a02..5fcefd1 100644 (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();
       }
index b3f028c..406d537 100644 (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"
index 0a93ca0..bc62f25 100644 (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;
     }