summaryrefslogtreecommitdiffstats
path: root/Source/cmOrderDirectories.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-04 16:03:01 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-09-04 16:03:01 (GMT)
commita1ddf2d0ba6268e29a9456948828f59d044791f1 (patch)
treeb7046d67c6667c945e3683cf890d725c7123e2bd /Source/cmOrderDirectories.cxx
parentee15bc7d7e7707fd8d7db92645c2c56a5df0f681 (diff)
downloadCMake-a1ddf2d0ba6268e29a9456948828f59d044791f1.zip
CMake-a1ddf2d0ba6268e29a9456948828f59d044791f1.tar.gz
CMake-a1ddf2d0ba6268e29a9456948828f59d044791f1.tar.bz2
clang-tidy: Replace typedef with using
Automate the conversion with perl -i -0pe 's/typedef ([^;]*) ([^ ]+);/using $2 = $1;/g' then manually fix a few places.
Diffstat (limited to 'Source/cmOrderDirectories.cxx')
-rw-r--r--Source/cmOrderDirectories.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmOrderDirectories.cxx b/Source/cmOrderDirectories.cxx
index 21a17e8..35ec33e 100644
--- a/Source/cmOrderDirectories.cxx
+++ b/Source/cmOrderDirectories.cxx
@@ -412,7 +412,7 @@ void cmOrderDirectories::AddOriginalDirectories(
struct cmOrderDirectoriesCompare
{
- typedef std::pair<int, int> ConflictPair;
+ using ConflictPair = std::pair<int, int>;
// The conflict pair is unique based on just the directory
// (first). The second element is only used for displaying
@@ -557,7 +557,7 @@ std::string const& cmOrderDirectories::GetRealPath(std::string const& dir)
this->RealPaths.lower_bound(dir);
if (i == this->RealPaths.end() ||
this->RealPaths.key_comp()(dir, i->first)) {
- typedef std::map<std::string, std::string>::value_type value_type;
+ using value_type = std::map<std::string, std::string>::value_type;
i = this->RealPaths.insert(
i, value_type(dir, cmSystemTools::GetRealPath(dir)));
}