diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:38:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:45 (GMT) |
commit | cdfc4e31953274be9b745614b4b7620d365a7b5e (patch) | |
tree | d730ed1a5258286efbd83ac84e4a24f075bfa2aa /Source/cmLocalGenerator.cxx | |
parent | 808b17b1206dd70c7fbd676e8c24181cde537954 (diff) | |
download | CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.zip CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.gz CMake-cdfc4e31953274be9b745614b4b7620d365a7b5e.tar.bz2 |
clang-tidy: fix `readability-qualified-auto` warnings
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 9248cbb..bd38446 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -2553,7 +2553,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target) cmProp ReuseFrom = target->GetProperty("PRECOMPILE_HEADERS_REUSE_FROM"); - auto pch_sf = this->Makefile->GetOrCreateSource( + auto* pch_sf = this->Makefile->GetOrCreateSource( pchSource, false, cmSourceFileLocationKind::Known); if (!this->GetGlobalGenerator()->IsXcode()) { @@ -2570,7 +2570,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target) "OBJECT_OUTPUTS", cmStrCat("$<$<CONFIG:", config, ">:", pchFile, ">")); } else { - auto reuseTarget = + auto* reuseTarget = this->GlobalGenerator->FindGeneratorTarget(*ReuseFrom); if (this->Makefile->IsOn("CMAKE_PCH_COPY_COMPILE_PDB")) { @@ -2633,7 +2633,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target) // Add pchHeader to source files, which will // be grouped as "Precompile Header File" - auto pchHeader_sf = this->Makefile->GetOrCreateSource( + auto* pchHeader_sf = this->Makefile->GetOrCreateSource( pchHeader, false, cmSourceFileLocationKind::Known); std::string err; pchHeader_sf->ResolveFullPath(&err); @@ -2961,7 +2961,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target) } for (auto const& file : unity_files) { - auto unity = this->GetMakefile()->GetOrCreateSource(file); + auto* unity = this->GetMakefile()->GetOrCreateSource(file); target->AddSource(file, true); unity->SetProperty("SKIP_UNITY_BUILD_INCLUSION", "ON"); unity->SetProperty("UNITY_SOURCE_FILE", file.c_str()); |