summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index aa5984b..0dad7cf 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1120,3 +1120,20 @@ void cmake::UpdateProgress(const char *msg, float prog)
return;
}
}
+
+void cmake::GetCommandDocumentation(std::vector<cmDocumentationEntry>& v) const
+{
+ for(RegisteredCommandsMap::const_iterator j = m_Commands.begin();
+ j != m_Commands.end(); ++j)
+ {
+ cmDocumentationEntry e =
+ {
+ (*j).second->GetName(),
+ (*j).second->GetTerseDocumentation(),
+ (*j).second->GetFullDocumentation()
+ };
+ v.push_back(e);
+ }
+ cmDocumentationEntry empty = {0,0,0};
+ v.push_back(empty);
+}