diff options
author | Brad King <brad.king@kitware.com> | 2019-08-22 14:23:24 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-22 14:23:34 (GMT) |
commit | 337be1507d0850c1d83de0f9ad87a780c9cb61af (patch) | |
tree | 8f6e685341766cc429b5120a1a120bbfaf9bbaea /Source/cmake.cxx | |
parent | 6e1ff50efbc49628e7f9575b57128c0829bf607c (diff) | |
parent | d331021255ba9092fa34e8e479d724b1092c704d (diff) | |
download | CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.zip CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.tar.gz CMake-337be1507d0850c1d83de0f9ad87a780c9cb61af.tar.bz2 |
Merge topic 'isolate-declarations'
d331021255 clang-tidy: isolate declarations for readability
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3704
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index d036467..794119a 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -296,7 +296,8 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args) return false; } } - std::string var, value; + std::string var; + std::string value; cmStateEnums::CacheEntryType type = cmStateEnums::UNINITIALIZED; if (cmState::ParseCacheEntry(entry, var, value, type)) { // The value is transformed if it is a filepath for example, so @@ -2092,7 +2093,8 @@ void cmake::UpdateConversionPathTable() ". CMake can not open file."); cmSystemTools::ReportLastSystemError("CMake can not open file."); } else { - std::string a, b; + std::string a; + std::string b; while (!table.eof()) { // two entries per line table >> a; |