diff options
Diffstat (limited to 'Source/cmFileAPICMakeFiles.cxx')
-rw-r--r-- | Source/cmFileAPICMakeFiles.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmFileAPICMakeFiles.cxx b/Source/cmFileAPICMakeFiles.cxx index 5590bc2..44ba96c 100644 --- a/Source/cmFileAPICMakeFiles.cxx +++ b/Source/cmFileAPICMakeFiles.cxx @@ -2,6 +2,12 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmFileAPICMakeFiles.h" +#include <memory> +#include <string> +#include <vector> + +#include "cm_jsoncpp_value.h" + #include "cmFileAPI.h" #include "cmGlobalGenerator.h" #include "cmLocalGenerator.h" @@ -9,11 +15,6 @@ #include "cmSystemTools.h" #include "cmake.h" -#include "cm_jsoncpp_value.h" - -#include <string> -#include <vector> - namespace { class CMakeFiles @@ -67,7 +68,7 @@ Json::Value CMakeFiles::DumpInputs() cmGlobalGenerator* gg = this->FileAPI.GetCMakeInstance()->GetGlobalGenerator(); - for (cmLocalGenerator const* lg : gg->GetLocalGenerators()) { + for (const auto& lg : gg->GetLocalGenerators()) { cmMakefile const* mf = lg->GetMakefile(); for (std::string const& file : mf->GetListFiles()) { inputs.append(this->DumpInput(file)); |