summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorArtur Ryt <artur.ryt@gmail.com>2018-11-30 18:00:57 (GMT)
committerBrad King <brad.king@kitware.com>2019-01-18 17:57:32 (GMT)
commit7408cd39298dfce442d7aa539a90a227433865d5 (patch)
tree1910148c8048133dc1ff4c557d070c17940cbe9b /Source/cmake.h
parenta61c061b6143cb6d8920b1b5796a867c0f104556 (diff)
downloadCMake-7408cd39298dfce442d7aa539a90a227433865d5.zip
CMake-7408cd39298dfce442d7aa539a90a227433865d5.tar.gz
CMake-7408cd39298dfce442d7aa539a90a227433865d5.tar.bz2
cmake: Return generator docs directly
The GetGeneratorDocumentation() function was not accurately named and required the vector to populate to be passed as a function argument. This commit makes the slightly renamed function return by value, making it a true getter as implied by its name. Some minor refactoring of the implementation also makes the steps of populating the vector clearer.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index cd8c622..1586845 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -292,7 +292,7 @@ public:
cmVariableWatch* GetVariableWatch() { return this->VariableWatch; }
#endif
- void GetGeneratorDocumentation(std::vector<cmDocumentationEntry>&);
+ std::vector<cmDocumentationEntry> GetGeneratorsDocumentation();
///! Set/Get a property of this target file
void SetProperty(const std::string& prop, const char* value);
@@ -533,6 +533,9 @@ private:
void CreateDefaultGlobalGenerator();
+ void AppendGlobalGeneratorsDocumentation(std::vector<cmDocumentationEntry>&);
+ void AppendExtraGeneratorsDocumentation(std::vector<cmDocumentationEntry>&);
+
/**
* Convert a message type between a warning and an error, based on the state
* of the error output CMake variables, in the cache.