diff options
author | Artur Ryt <artur.ryt@gmail.com> | 2018-11-30 18:43:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-18 17:57:34 (GMT) |
commit | dfd5ae7da71ed9330eca7e352b8f9b42babdf3dd (patch) | |
tree | cc08e60849d92faed7790abf994ebd5196d80a0e /Source/cmDocumentationFormatter.cxx | |
parent | 6023fe7ff22848bc29ee67395eeb10f066758c06 (diff) | |
download | CMake-dfd5ae7da71ed9330eca7e352b8f9b42babdf3dd.zip CMake-dfd5ae7da71ed9330eca7e352b8f9b42babdf3dd.tar.gz CMake-dfd5ae7da71ed9330eca7e352b8f9b42babdf3dd.tar.bz2 |
Help: Mark default CMake generator with asterisk
Required extracting default generator evaluation
to explicit function, as Visual Studio generators
get validated during their construction.
Fixes: #18544
Diffstat (limited to 'Source/cmDocumentationFormatter.cxx')
-rw-r--r-- | Source/cmDocumentationFormatter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmDocumentationFormatter.cxx b/Source/cmDocumentationFormatter.cxx index 678e408..e573c04 100644 --- a/Source/cmDocumentationFormatter.cxx +++ b/Source/cmDocumentationFormatter.cxx @@ -5,6 +5,7 @@ #include "cmDocumentationEntry.h" #include "cmDocumentationSection.h" +#include <iomanip> #include <ostream> #include <string.h> #include <string> @@ -168,7 +169,7 @@ void cmDocumentationFormatter::PrintSection( const std::vector<cmDocumentationEntry>& entries = section.GetEntries(); for (cmDocumentationEntry const& entry : entries) { if (!entry.Name.empty()) { - os << " " << entry.Name; + os << std::setw(2) << std::left << entry.CustomNamePrefix << entry.Name; this->TextIndent = " "; int align = static_cast<int>(strlen(this->TextIndent)) - 4; for (int i = static_cast<int>(entry.Name.size()); i < align; ++i) { |