summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortran.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-12 13:15:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-12 13:15:38 (GMT)
commit1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa (patch)
tree0d43865e3fc9e04870c6d7e1360ee81d1da1a68c /Source/cmDependsFortran.cxx
parentd83bff86409c0e414046d2aeb75946037e0d2de3 (diff)
parentd25a5a7ec91bfa072d3cf1a302830a54506c88c0 (diff)
downloadCMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.zip
CMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.tar.gz
CMake-1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa.tar.bz2
Merge topic 'modernize-use-auto'
d25a5a7ec9 clang-tidy: modernize-use-auto Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3783
Diffstat (limited to 'Source/cmDependsFortran.cxx')
-rw-r--r--Source/cmDependsFortran.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx
index c30e0bf..b657ff7 100644
--- a/Source/cmDependsFortran.cxx
+++ b/Source/cmDependsFortran.cxx
@@ -56,8 +56,7 @@ public:
cmFortranSourceInfo& CreateObjectInfo(const std::string& obj,
const std::string& src)
{
- std::map<std::string, cmFortranSourceInfo>::iterator i =
- this->ObjectInfo.find(obj);
+ auto i = this->ObjectInfo.find(obj);
if (i == this->ObjectInfo.end()) {
std::map<std::string, cmFortranSourceInfo>::value_type entry(
obj, cmFortranSourceInfo());
@@ -303,9 +302,7 @@ void cmDependsFortran::ConsiderModule(const std::string& name,
const std::string& stampDir)
{
// Locate each required module.
- using TargetRequiresMap = cmDependsFortranInternals::TargetRequiresMap;
- TargetRequiresMap::iterator required =
- this->Internal->TargetRequires.find(name);
+ auto required = this->Internal->TargetRequires.find(name);
if (required != this->Internal->TargetRequires.end() &&
required->second.empty()) {
// The module is provided by a CMake target. It will have a stamp file.
@@ -321,8 +318,6 @@ bool cmDependsFortran::WriteDependenciesReal(std::string const& obj,
std::ostream& makeDepends,
std::ostream& internalDepends)
{
- using TargetRequiresMap = cmDependsFortranInternals::TargetRequiresMap;
-
// Get the source file for this object.
std::string const& src = info.Source;
@@ -350,8 +345,7 @@ bool cmDependsFortran::WriteDependenciesReal(std::string const& obj,
// The object file should depend on timestamped files for the
// modules it uses.
- TargetRequiresMap::const_iterator required =
- this->Internal->TargetRequires.find(i);
+ auto required = this->Internal->TargetRequires.find(i);
if (required == this->Internal->TargetRequires.end()) {
abort();
}