[flang] Rename to Fortran.h, update style guide, run clang-format
authorpeter klausler <pklausler@nvidia.com>
Thu, 28 Feb 2019 18:48:41 +0000 (10:48 -0800)
committerpeter klausler <pklausler@nvidia.com>
Thu, 28 Feb 2019 19:48:15 +0000 (11:48 -0800)
Original-commit: flang-compiler/f18@aa2907d2260c34085360917e7fab43d8ee79b6e4
Reviewed-on: https://github.com/flang-compiler/f18/pull/308
Tree-same-pre-rewrite: false

32 files changed:
flang/documentation/C++style.md
flang/lib/FIR/afforestation.cc
flang/lib/FIR/basicblock.cc
flang/lib/FIR/basicblock.h
flang/lib/FIR/builder.cc
flang/lib/FIR/builder.h
flang/lib/FIR/graph-writer.cc
flang/lib/FIR/graph-writer.h
flang/lib/FIR/mixin.h
flang/lib/FIR/procedure.cc
flang/lib/FIR/procedure.h
flang/lib/FIR/program.cc
flang/lib/FIR/program.h
flang/lib/FIR/region.cc
flang/lib/FIR/region.h
flang/lib/FIR/statements.cc
flang/lib/FIR/statements.h
flang/lib/FIR/stmt.h
flang/lib/common/Fortran.h [moved from flang/lib/common/fortran.h with 100% similarity]
flang/lib/common/default-kinds.h
flang/lib/evaluate/characteristics.h
flang/lib/evaluate/common.h
flang/lib/evaluate/expression.h
flang/lib/evaluate/intrinsics.cc
flang/lib/evaluate/type.h
flang/lib/parser/parse-tree.h
flang/lib/parser/unparse.cc
flang/lib/semantics/expression.h
flang/lib/semantics/resolve-names.cc
flang/lib/semantics/scope.h
flang/lib/semantics/symbol.h
flang/lib/semantics/type.h

index c3d0a85..a95c8a5 100644 (file)
@@ -1,5 +1,5 @@
 <!--
-Copyright (c) 2018, NVIDIA CORPORATION.  All rights reserved.
+Copyright (c) 2018-2019, NVIDIA CORPORATION.  All rights reserved.
 -->
 
 ## In brief:
@@ -37,9 +37,10 @@ headers, also alphabetically; then C and system headers.
 1. Don't use `#include <iostream>`.  If you need it for temporary debugging,
 remove the inclusion before committing.
 ### Naming
-1. C++ names that correspond to STL names should look like those STL names
-(e.g., `clear()` and `size()` member functions in a class that implements
-a container).
+1. C++ names that correspond to well-known interfaces from the STL and LLVM
+can and should look like their models when the reader can safely assume that
+they mean the same thing -- e.g., `clear()` and `size()` member functions
+in a class that implements an STL-ish container.
 1. Non-public data members should be named with leading miniscule (lower-case)
 letters, internal camelCase capitalization, and a trailing underscore,
 e.g. `DoubleEntryBookkeepingSystem myLedger_;`.  POD structures with
index a47dedd..1934673 100644 (file)
@@ -498,14 +498,15 @@ template<typename STMTTYPE, typename CT>
 Evaluation GetSwitchSelector(const CT *selectConstruct) {
   const auto &selector{std::get<parser::Selector>(
       std::get<parser::Statement<STMTTYPE>>(selectConstruct->t).statement.t)};
-  return std::visit(common::visitors{
-                        [](const parser::Expr &expression) {
-                          return Evaluation{expression.typedExpr.get()};
-                        },
-                        [](const parser::Variable &variable) {
-                          return Evaluation{&variable};
-                        },
-                    },
+  return std::visit(
+      common::visitors{
+          [](const parser::Expr &expression) {
+            return Evaluation{expression.typedExpr.get()};
+          },
+          [](const parser::Variable &variable) {
+            return Evaluation{&variable};
+          },
+      },
       selector.u);
 }
 Evaluation GetSwitchRankSelector(
@@ -914,18 +915,19 @@ static std::vector<SwitchRankStmt::ValueType> populateSwitchValues(
     auto &rank{std::get<parser::SelectRankCaseStmt::Rank>(
         std::get<parser::Statement<parser::SelectRankCaseStmt>>(v.t)
             .statement.t)};
-    std::visit(common::visitors{
-                   [&](const parser::ScalarIntConstantExpr &expression) {
-                     result.emplace_back(SwitchRankStmt::Exactly{
-                         expression.thing.thing.thing->typedExpr.get()});
-                   },
-                   [&](const parser::Star &) {
-                     result.emplace_back(SwitchRankStmt::AssumedSize{});
-                   },
-                   [&](const parser::Default &) {
-                     result.emplace_back(SwitchRankStmt::Default{});
-                   },
-               },
+    std::visit(
+        common::visitors{
+            [&](const parser::ScalarIntConstantExpr &expression) {
+              result.emplace_back(SwitchRankStmt::Exactly{
+                  expression.thing.thing.thing->typedExpr.get()});
+            },
+            [&](const parser::Star &) {
+              result.emplace_back(SwitchRankStmt::AssumedSize{});
+            },
+            [&](const parser::Default &) {
+              result.emplace_back(SwitchRankStmt::Default{});
+            },
+        },
         rank.u);
   }
   return result;
@@ -936,19 +938,20 @@ static std::vector<SwitchTypeStmt::ValueType> populateSwitchValues(
   for (auto &v : list) {
     auto &guard{std::get<parser::TypeGuardStmt::Guard>(
         std::get<parser::Statement<parser::TypeGuardStmt>>(v.t).statement.t)};
-    std::visit(common::visitors{
-                   [&](const parser::TypeSpec &typeSpec) {
-                     result.emplace_back(
-                         SwitchTypeStmt::TypeSpec{typeSpec.declTypeSpec});
-                   },
-                   [&](const parser::DerivedTypeSpec &derivedTypeSpec) {
-                     result.emplace_back(
-                         SwitchTypeStmt::DerivedTypeSpec{nullptr /*FIXME*/});
-                   },
-                   [&](const parser::Default &) {
-                     result.emplace_back(SwitchTypeStmt::Default{});
-                   },
-               },
+    std::visit(
+        common::visitors{
+            [&](const parser::TypeSpec &typeSpec) {
+              result.emplace_back(
+                  SwitchTypeStmt::TypeSpec{typeSpec.declTypeSpec});
+            },
+            [&](const parser::DerivedTypeSpec &derivedTypeSpec) {
+              result.emplace_back(
+                  SwitchTypeStmt::DerivedTypeSpec{nullptr /*FIXME*/});
+            },
+            [&](const parser::Default &) {
+              result.emplace_back(SwitchTypeStmt::Default{});
+            },
+        },
         guard.u);
   }
   return result;
@@ -1003,21 +1006,22 @@ static void buildMultiwayDefaultNext(SwitchArguments &result) {
 }
 static SwitchArguments ComposeSwitchArgs(const LinearSwitch &op) {
   SwitchArguments result{nullptr, unspecifiedLabel, {}, op.refs};
-  std::visit(common::visitors{
-                 [](const auto *) { WRONG_PATH(); },
-                 [&](const parser::ComputedGotoStmt *c) {
-                   result.exp = std::get<parser::ScalarIntExpr>(c->t)
-                                    .thing.thing->typedExpr.get();
-                   buildMultiwayDefaultNext(result);
-                 },
-                 [&](const parser::ArithmeticIfStmt *c) {
-                   result.exp = std::get<parser::Expr>(c->t).typedExpr.get();
-                 },
-                 [&](const parser::CallStmt *c) {
-                   result.exp = nullptr;  // fixme - result of call
-                   buildMultiwayDefaultNext(result);
-                 },
-             },
+  std::visit(
+      common::visitors{
+          [](const auto *) { WRONG_PATH(); },
+          [&](const parser::ComputedGotoStmt *c) {
+            result.exp = std::get<parser::ScalarIntExpr>(c->t)
+                             .thing.thing->typedExpr.get();
+            buildMultiwayDefaultNext(result);
+          },
+          [&](const parser::ArithmeticIfStmt *c) {
+            result.exp = std::get<parser::Expr>(c->t).typedExpr.get();
+          },
+          [&](const parser::CallStmt *c) {
+            result.exp = nullptr;  // fixme - result of call
+            buildMultiwayDefaultNext(result);
+          },
+      },
       op.u);
   return result;
 }
@@ -1108,9 +1112,8 @@ static Expression *BuildLoopLatchExpression(
   return AlwaysTrueExpression();
 }
 
-static void CreateSwitchHelper(FIRBuilder *builder,
-    const Evaluation &condition, BasicBlock *defaultCase,
-    const SwitchStmt::ValueSuccPairListType &rest) {
+static void CreateSwitchHelper(FIRBuilder *builder, const Evaluation &condition,
+    BasicBlock *defaultCase, const SwitchStmt::ValueSuccPairListType &rest) {
   builder->CreateSwitch(condition, defaultCase, rest);
 }
 static void CreateSwitchCaseHelper(FIRBuilder *builder,
@@ -1169,8 +1172,7 @@ struct FortranIRLowering {
   void ProcessRoutine(const T &here, const std::string &name) {
     CHECK(!fir_->containsProcedure(name));
     auto *subp{fir_->getOrInsertProcedure(name, nullptr, {})};
-    builder_ = new FIRBuilder(
-        *CreateBlock(subp->getLastRegion()));
+    builder_ = new FIRBuilder(*CreateBlock(subp->getLastRegion()));
     AnalysisData ad;
     ControlFlowAnalyzer linearize{linearOperations_, ad};
     Walk(here, linearize);
@@ -1565,27 +1567,27 @@ struct FortranIRLowering {
               },
               [&](const LinearReturn &linearReturn) {
                 CheckInsertionPoint();
-                std::visit(common::visitors{
-                               [&](const parser::FailImageStmt *s) {
-                                 builder_->CreateRuntimeCall(
-                                     RuntimeCallFailImage,
-                                     CreateFailImageArguments(*s));
-                                 builder_->CreateUnreachable();
-                               },
-                               [&](const parser::ReturnStmt *s) {
-                                 if (s->v) {
-                                   builder_->CreateReturn(
-                                       s->v->thing.thing->typedExpr.get());
-                                 } else {
-                                   builder_->CreateRetVoid();
-                                 }
-                               },
-                               [&](const parser::StopStmt *s) {
-                                 builder_->CreateRuntimeCall(
-                                     RuntimeCallStop, CreateStopArguments(*s));
-                                 builder_->CreateUnreachable();
-                               },
-                           },
+                std::visit(
+                    common::visitors{
+                        [&](const parser::FailImageStmt *s) {
+                          builder_->CreateRuntimeCall(RuntimeCallFailImage,
+                              CreateFailImageArguments(*s));
+                          builder_->CreateUnreachable();
+                        },
+                        [&](const parser::ReturnStmt *s) {
+                          if (s->v) {
+                            builder_->CreateReturn(
+                                s->v->thing.thing->typedExpr.get());
+                          } else {
+                            builder_->CreateRetVoid();
+                          }
+                        },
+                        [&](const parser::StopStmt *s) {
+                          builder_->CreateRuntimeCall(
+                              RuntimeCallStop, CreateStopArguments(*s));
+                          builder_->CreateUnreachable();
+                        },
+                    },
                     linearReturn.u);
                 builder_->ClearInsertionPoint();
               },
@@ -1647,37 +1649,37 @@ struct FortranIRLowering {
               },
               [&](const LinearSwitch &linearSwitch) {
                 CheckInsertionPoint();
-                std::visit(common::visitors{
-                               [&](auto) {
-                                 auto args{ComposeSwitchArgs(linearSwitch)};
-                                 AddOrQueueSwitch<SwitchStmt>(args.exp,
-                                     args.defLab, args.values, args.labels,
-                                     CreateSwitchHelper);
-                               },
-                               [&](const parser::CaseConstruct *caseConstruct) {
-                                 auto args{ComposeSwitchCaseArguments(
-                                     caseConstruct, linearSwitch.refs)};
-                                 AddOrQueueSwitch<SwitchCaseStmt>(args.exp,
-                                     args.defLab, args.ranges, args.labels,
-                                     CreateSwitchCaseHelper);
-                               },
-                               [&](const parser::SelectRankConstruct
-                                       *selectRankConstruct) {
-                                 auto args{ComposeSwitchRankArguments(
-                                     selectRankConstruct, linearSwitch.refs)};
-                                 AddOrQueueSwitch<SwitchRankStmt>(args.exp,
-                                     args.defLab, args.ranks, args.labels,
-                                     CreateSwitchRankHelper);
-                               },
-                               [&](const parser::SelectTypeConstruct
-                                       *selectTypeConstruct) {
-                                 auto args{ComposeSwitchTypeArguments(
-                                     selectTypeConstruct, linearSwitch.refs)};
-                                 AddOrQueueSwitch<SwitchTypeStmt>(args.exp,
-                                     args.defLab, args.types, args.labels,
-                                     CreateSwitchTypeHelper);
-                               },
-                           },
+                std::visit(
+                    common::visitors{
+                        [&](auto) {
+                          auto args{ComposeSwitchArgs(linearSwitch)};
+                          AddOrQueueSwitch<SwitchStmt>(args.exp, args.defLab,
+                              args.values, args.labels, CreateSwitchHelper);
+                        },
+                        [&](const parser::CaseConstruct *caseConstruct) {
+                          auto args{ComposeSwitchCaseArguments(
+                              caseConstruct, linearSwitch.refs)};
+                          AddOrQueueSwitch<SwitchCaseStmt>(args.exp,
+                              args.defLab, args.ranges, args.labels,
+                              CreateSwitchCaseHelper);
+                        },
+                        [&](const parser::SelectRankConstruct
+                                *selectRankConstruct) {
+                          auto args{ComposeSwitchRankArguments(
+                              selectRankConstruct, linearSwitch.refs)};
+                          AddOrQueueSwitch<SwitchRankStmt>(args.exp,
+                              args.defLab, args.ranks, args.labels,
+                              CreateSwitchRankHelper);
+                        },
+                        [&](const parser::SelectTypeConstruct
+                                *selectTypeConstruct) {
+                          auto args{ComposeSwitchTypeArguments(
+                              selectTypeConstruct, linearSwitch.refs)};
+                          AddOrQueueSwitch<SwitchTypeStmt>(args.exp,
+                              args.defLab, args.types, args.labels,
+                              CreateSwitchTypeHelper);
+                        },
+                    },
                     linearSwitch.u);
                 builder_->ClearInsertionPoint();
               },
@@ -1762,14 +1764,15 @@ struct FortranIRLowering {
                     linearConstruct.u);
                 auto next{iter};
                 const auto &nextOp{*(++next)};
-                std::visit(common::visitors{
-                               [](const auto &) {},
-                               [&](const LinearLabel &linearLabel) {
-                                 blockMap_.insert({linearLabel.get(),
-                                     builder_->GetInsertionPoint()});
-                                 ++iter;
-                               },
-                           },
+                std::visit(
+                    common::visitors{
+                        [](const auto &) {},
+                        [&](const LinearLabel &linearLabel) {
+                          blockMap_.insert({linearLabel.get(),
+                              builder_->GetInsertionPoint()});
+                          ++iter;
+                        },
+                    },
                     nextOp.u);
               },
               [&](const LinearEndConstruct &linearConstruct) {
@@ -1818,8 +1821,8 @@ struct FortranIRLowering {
     } else {
       using namespace std::placeholders;
       controlFlowEdgesToAdd_.emplace_back(std::bind(
-          [](FIRBuilder *builder, BasicBlock *block,
-              LinearLabelRef dest, const LabelMapType &map) {
+          [](FIRBuilder *builder, BasicBlock *block, LinearLabelRef dest,
+              const LabelMapType &map) {
             builder->SetInsertionPoint(block);
             CHECK(map.find(dest) != map.end());
             builder->CreateBranch(map.find(dest)->second);
@@ -1837,9 +1840,9 @@ struct FortranIRLowering {
     } else {
       using namespace std::placeholders;
       controlFlowEdgesToAdd_.emplace_back(std::bind(
-          [](FIRBuilder *builder, BasicBlock *block,
-              Expression *expr, LinearLabelRef trueDest,
-              LinearLabelRef falseDest, const LabelMapType &map) {
+          [](FIRBuilder *builder, BasicBlock *block, Expression *expr,
+              LinearLabelRef trueDest, LinearLabelRef falseDest,
+              const LabelMapType &map) {
             builder->SetInsertionPoint(block);
             CHECK(map.find(trueDest) != map.end());
             CHECK(map.find(falseDest) != map.end());
@@ -1876,8 +1879,8 @@ struct FortranIRLowering {
     if (defer) {
       using namespace std::placeholders;
       controlFlowEdgesToAdd_.emplace_back(std::bind(
-          [](FIRBuilder *builder, BasicBlock *block,
-              const Evaluation &expr, LinearLabelRef defaultDest,
+          [](FIRBuilder *builder, BasicBlock *block, const Evaluation &expr,
+              LinearLabelRef defaultDest,
               const std::vector<typename SWITCHTYPE::ValueType> &values,
               const std::vector<LinearLabelRef> &labels, F function,
               const LabelMapType &map) {
@@ -1916,8 +1919,8 @@ struct FortranIRLowering {
     if (defer) {
       using namespace std::placeholders;
       controlFlowEdgesToAdd_.emplace_back(std::bind(
-          [](FIRBuilder *builder, BasicBlock *block,
-              Variable *variable, const std::vector<LinearLabelRef> &fixme,
+          [](FIRBuilder *builder, BasicBlock *block, Variable *variable,
+              const std::vector<LinearLabelRef> &fixme,
               const LabelMapType &map) {
             builder->SetInsertionPoint(block);
             builder->CreateIndirectBr(variable, {});  // FIXME
index 3ea2126..3c8989a 100644 (file)
@@ -53,5 +53,4 @@ const Statement *BasicBlock::getTerminator() const {
       },
       lastStmt.u);
 }
-
 }
index 4175bf9..72335ed 100644 (file)
@@ -65,10 +65,8 @@ private:
 };
 
 inline std::list<BasicBlock *> pred_list(BasicBlock &block) {
-  return std::list<BasicBlock *>{
-      block.preds().begin(), block.preds().end()};
+  return std::list<BasicBlock *>{block.preds().begin(), block.preds().end()};
 }
-
 }
 
 #endif
index e802540..036ad87 100644 (file)
@@ -17,8 +17,5 @@
 
 namespace Fortran::FIR {
 
-void FIRBuilder::dump() const {
-  std::cerr << "builder state:\n";
-}
-
+void FIRBuilder::dump() const { std::cerr << "builder state:\n"; }
 }
index 990a613..fc653df 100644 (file)
@@ -133,7 +133,6 @@ private:
   BasicBlock *cursorBlock_;
   std::vector<BasicBlock *> blockStack_;
 };
-
 }
 
 #endif
index 4c1be22..013eb58 100644 (file)
@@ -118,5 +118,4 @@ void GraphWriter::dumpInternalEdges(BasicBlock &block,
     }
   }
 }
-
 }
index 9607a4b..bf380f9 100644 (file)
@@ -87,7 +87,6 @@ private:
   std::map<BasicBlock *, unsigned> blockIds_;
   static std::optional<llvm::raw_ostream *> defaultOutput_;
 };
-
 }
 
 #endif
index ce6044a..763bd33 100644 (file)
@@ -108,7 +108,6 @@ template<typename A, typename B> B &Unzip(B &out, A first, A last) {
       [](auto &&a) -> decltype(a.second) { return a.second; });
   return out;
 }
-
 }
 
 #endif  // FORTRAN_FIR_COMMON_H_
index 44bd44a..84ebdb0 100644 (file)
@@ -65,14 +65,13 @@ void Procedure::FlattenRegions() {
     if (!region->IsOutermost()) {
       for (auto *succ : succ_list(block)) {
         auto *succRegion{succ->GetRegion()};
-        if (succRegion != region &&
-            DistinctScopes(succRegion, region)) {
+        if (succRegion != region && DistinctScopes(succRegion, region)) {
           if (IsAncestor(region, succRegion)) {
-            AddEnterScopes(RegionDepth(region, succRegion),
-                succ->SplitEdge(&block));
+            AddEnterScopes(
+                RegionDepth(region, succRegion), succ->SplitEdge(&block));
           } else if (IsAncestor(succRegion, region)) {
-            AddExitScopes(RegionDepth(succRegion, region),
-                block.SplitEdge(succ));
+            AddExitScopes(
+                RegionDepth(succRegion, region), block.SplitEdge(succ));
           } else {
             // TODO: edge to a cousin region
             CHECK(false);
@@ -82,5 +81,4 @@ void Procedure::FlattenRegions() {
     }
   }
 }
-
 }
index 37a1da1..750573c 100644 (file)
@@ -75,7 +75,6 @@ private:
       unsigned addrSpace, const llvm::Twine &n, Procedure *before);
   Region *insertBefore(Region *region, Region *before = nullptr);
 };
-
 }
 
 #endif
index 87fc7c8..abe7237 100644 (file)
@@ -43,5 +43,4 @@ Procedure *Program::getOrInsertProcedure(
   }
   return subp;
 }
-
 }
index cf2be11..b9022f3 100644 (file)
@@ -49,7 +49,6 @@ private:
   ProcedureMapType procedureMap_;
   const std::string name_;
 };
-
 }
 
 #endif
index 495862b..0a3e497 100644 (file)
@@ -47,5 +47,4 @@ std::vector<BasicBlock *> Region::getBlocks() {
   }
   return result;
 }
-
 }
index 6b506a4..73e77d0 100644 (file)
@@ -86,7 +86,6 @@ inline unsigned RegionDepth(const Region *fromRegion, const Region *toRegion) {
   }
   return result;
 }
-
 }
 
 #endif
index 4868493..afc3816 100644 (file)
@@ -238,5 +238,4 @@ std::string Statement::dump() const {
       },
       u);
 }
-
 }
index 157b737..01f6f19 100644 (file)
@@ -464,7 +464,6 @@ private:
 
   std::vector<PHIPair> inputs_;
 };
-
 }
 
 #endif
index 8f29180..7ba99fa 100644 (file)
@@ -44,7 +44,6 @@ inline std::list<BasicBlock *> succ_list(BasicBlock &block) {
   // CHECK(false && "block does not have terminator");
   return {};
 }
-
 }
 
 #endif
index 96aa7bd..7d757d0 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef FORTRAN_COMMON_DEFAULT_KINDS_H_
 #define FORTRAN_COMMON_DEFAULT_KINDS_H_
 
-#include "../common/fortran.h"
+#include "../common/Fortran.h"
 
 // Represent the default values of the kind parameters of the
 // various intrinsic types.  These can be configured by means of
index 0f309d8..846617a 100644 (file)
@@ -21,8 +21,8 @@
 
 #include "expression.h"
 #include "type.h"
+#include "../common/Fortran.h"
 #include "../common/enum-set.h"
-#include "../common/fortran.h"
 #include "../common/idioms.h"
 #include "../common/indirection.h"
 #include <memory>
index bd42d17..3587869 100644 (file)
@@ -15,8 +15,8 @@
 #ifndef FORTRAN_EVALUATE_COMMON_H_
 #define FORTRAN_EVALUATE_COMMON_H_
 
+#include "../common/Fortran.h"
 #include "../common/enum-set.h"
-#include "../common/fortran.h"
 #include "../common/idioms.h"
 #include "../common/indirection.h"
 #include "../common/restorer.h"
index 26316ef..235fde2 100644 (file)
@@ -26,7 +26,7 @@
 #include "constant.h"
 #include "type.h"
 #include "variable.h"
-#include "../lib/common/fortran.h"
+#include "../lib/common/Fortran.h"
 #include "../lib/common/idioms.h"
 #include "../lib/common/template.h"
 #include "../lib/parser/char-block.h"
index 7d7351e..14de420 100644 (file)
@@ -17,8 +17,8 @@
 #include "fold.h"
 #include "tools.h"
 #include "type.h"
+#include "../common/Fortran.h"
 #include "../common/enum-set.h"
-#include "../common/fortran.h"
 #include "../common/idioms.h"
 #include <algorithm>
 #include <map>
index f9dbb5b..fa83538 100644 (file)
@@ -27,7 +27,7 @@
 #include "integer.h"
 #include "logical.h"
 #include "real.h"
-#include "../common/fortran.h"
+#include "../common/Fortran.h"
 #include "../common/idioms.h"
 #include "../common/template.h"
 #include <cinttypes>
index eabc7bb..2c25c82 100644 (file)
@@ -28,7 +28,7 @@
 #include "format-specification.h"
 #include "message.h"
 #include "provenance.h"
-#include "../common/fortran.h"
+#include "../common/Fortran.h"
 #include "../common/idioms.h"
 #include "../common/indirection.h"
 #include <cinttypes>
index d9785e4..805cf48 100644 (file)
@@ -19,7 +19,7 @@
 #include "characters.h"
 #include "parse-tree-visitor.h"
 #include "parse-tree.h"
-#include "../common/fortran.h"
+#include "../common/Fortran.h"
 #include "../common/idioms.h"
 #include "../common/indirection.h"
 #include <algorithm>
index bc95071..ad61948 100644 (file)
@@ -16,7 +16,7 @@
 #define FORTRAN_SEMANTICS_EXPRESSION_H_
 
 #include "semantics.h"
-#include "../common/fortran.h"
+#include "../common/Fortran.h"
 #include "../common/indirection.h"
 #include "../evaluate/expression.h"
 #include "../evaluate/tools.h"
index 15b5ca3..27a5f16 100644 (file)
@@ -21,8 +21,8 @@
 #include "semantics.h"
 #include "symbol.h"
 #include "type.h"
+#include "../common/Fortran.h"
 #include "../common/default-kinds.h"
-#include "../common/fortran.h"
 #include "../common/indirection.h"
 #include "../common/restorer.h"
 #include "../evaluate/common.h"
index c1fd911..a04c9b2 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "attr.h"
 #include "symbol.h"
-#include "../common/fortran.h"
+#include "../common/Fortran.h"
 #include "../common/idioms.h"
 #include "../parser/message.h"
 #include <list>
index e88deef..079ec6d 100644 (file)
@@ -16,8 +16,8 @@
 #define FORTRAN_SEMANTICS_SYMBOL_H_
 
 #include "type.h"
+#include "../common/Fortran.h"
 #include "../common/enum-set.h"
-#include "../common/fortran.h"
 #include <functional>
 #include <list>
 #include <optional>
index c7f4fcc..2ded0c4 100644 (file)
@@ -16,7 +16,7 @@
 #define FORTRAN_SEMANTICS_TYPE_H_
 
 #include "attr.h"
-#include "../common/fortran.h"
+#include "../common/Fortran.h"
 #include "../common/idioms.h"
 #include "../common/indirection.h"
 #include "../evaluate/expression.h"