summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-11-10 16:32:37 (GMT)
committerBrad King <brad.king@kitware.com>2021-11-10 18:56:05 (GMT)
commitde6e362a88bc67d8376ad261f21b9b9ecefd1282 (patch)
treede2274c44f066ba4daf892ebf4a8c8d0bfa57493 /Source/cmLocalGenerator.cxx
parent3017b3e7d4da702c8b1e2dbfb9657b7517e108b8 (diff)
downloadCMake-de6e362a88bc67d8376ad261f21b9b9ecefd1282.zip
CMake-de6e362a88bc67d8376ad261f21b9b9ecefd1282.tar.gz
CMake-de6e362a88bc67d8376ad261f21b9b9ecefd1282.tar.bz2
cmLocalGenerator: Clarify name of method to write unity source include lines
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 2b5b711..8658281 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2819,15 +2819,17 @@ std::string cmLocalGenerator::WriteUnitySource(
file << "/* generated by CMake */\n\n";
for (cmSourceFile* sf : sources) {
RegisterUnitySources(target, sf, filename);
- IncludeFileInUnitySources(file, sf->ResolveFullPath(), beforeInclude,
- afterInclude, uniqueIdName);
+ WriteUnitySourceInclude(file, sf->ResolveFullPath(), beforeInclude,
+ afterInclude, uniqueIdName);
}
return filename;
}
-void cmLocalGenerator::IncludeFileInUnitySources(
- cmGeneratedFileStream& unity_file, std::string const& sf_full_path,
- cmValue beforeInclude, cmValue afterInclude, cmValue uniqueIdName) const
+void cmLocalGenerator::WriteUnitySourceInclude(std::ostream& unity_file,
+ std::string const& sf_full_path,
+ cmValue beforeInclude,
+ cmValue afterInclude,
+ cmValue uniqueIdName) const
{
if (cmNonempty(uniqueIdName)) {
std::string pathToHash;