diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-23 17:39:53 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-11-17 12:37:11 (GMT) |
commit | 74b735dea8e2255c53f12afea5706ad443d64785 (patch) | |
tree | 03933961bcaf525b00f2a27a3bc018fed503c40b /Source/cmDocumentation.h | |
parent | 807aa8e35382ab55120ccb1e6ae88523ad7ee5a3 (diff) | |
download | CMake-74b735dea8e2255c53f12afea5706ad443d64785.zip CMake-74b735dea8e2255c53f12afea5706ad443d64785.tar.gz CMake-74b735dea8e2255c53f12afea5706ad443d64785.tar.bz2 |
cmDocumentation: `char*[][2]` → `cmDocumentationEntry[N]`
Use fixed size arrays of `cmDocumentationEntry` items instead of
open arrays of two `char` pointers when describe program options
help screens.
Also, drop `const char*[][2]` overloads of methods of
`cmDocumentation` and `cmDocumentationSection` classes in the sake
of generic (template) appenders introduced earlier.
Diffstat (limited to 'Source/cmDocumentation.h')
-rw-r--r-- | Source/cmDocumentation.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Source/cmDocumentation.h b/Source/cmDocumentation.h index de5449a..f878acb 100644 --- a/Source/cmDocumentation.h +++ b/Source/cmDocumentation.h @@ -82,18 +82,15 @@ public: sec.Append(docs); this->SetSection(sectionName, std::move(sec)); } - void SetSection(const char* sectionName, const char* docs[][2]); void SetSections(std::map<std::string, cmDocumentationSection> sections); /** Add the documentation to the beginning/end of the section */ - void PrependSection(const char* sectionName, const char* docs[][2]); template <typename Iterable> void PrependSection(const char* sectionName, const Iterable& docs) { this->SectionAtName(sectionName).Prepend(docs); } void PrependSection(const char* sectionName, cmDocumentationEntry& docs); - void AppendSection(const char* sectionName, const char* docs[][2]); template <typename Iterable> void AppendSection(const char* sectionName, const Iterable& docs) { |