summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-23 02:14:00 (GMT)
committerAlex Turbov <i.zaufi@gmail.com>2022-11-16 14:37:05 (GMT)
commit30bcdafaeff789b20cc8b6e97b8271c0105a93b1 (patch)
treea234708d2e65fce950b8daad6788019aa32a287a
parente2f12b6c8be2486bf37916c301015db4fd41e984 (diff)
downloadCMake-30bcdafaeff789b20cc8b6e97b8271c0105a93b1.zip
CMake-30bcdafaeff789b20cc8b6e97b8271c0105a93b1.tar.gz
CMake-30bcdafaeff789b20cc8b6e97b8271c0105a93b1.tar.bz2
cmDocumentation: Remove MSVC 6 workaround
-rw-r--r--Source/cmDocumentation.h28
-rw-r--r--Source/cmDocumentationFormatter.h34
2 files changed, 26 insertions, 36 deletions
diff --git a/Source/cmDocumentation.h b/Source/cmDocumentation.h
index 313be32..ab027d1 100644
--- a/Source/cmDocumentation.h
+++ b/Source/cmDocumentation.h
@@ -15,9 +15,33 @@
struct cmDocumentationEntry;
/** Class to generate documentation. */
-class cmDocumentation : public cmDocumentationEnums
+class cmDocumentation
{
public:
+ /** Types of help provided. */
+ enum Type
+ {
+ None,
+ Version,
+ Usage,
+ Help,
+ Full,
+ ListManuals,
+ ListCommands,
+ ListModules,
+ ListProperties,
+ ListVariables,
+ ListPolicies,
+ ListGenerators,
+ OneManual,
+ OneCommand,
+ OneModule,
+ OneProperty,
+ OneVariable,
+ OnePolicy,
+ OldCustomModules
+ };
+
cmDocumentation();
/**
@@ -114,7 +138,7 @@ private:
struct RequestedHelpItem
{
- cmDocumentationEnums::Type HelpType = None;
+ Type HelpType = None;
std::string Filename;
std::string Argument;
};
diff --git a/Source/cmDocumentationFormatter.h b/Source/cmDocumentationFormatter.h
index cb3038a..98cac9b 100644
--- a/Source/cmDocumentationFormatter.h
+++ b/Source/cmDocumentationFormatter.h
@@ -6,40 +6,6 @@
#include <iosfwd>
-/** This is just a helper class to make it build with MSVC 6.0.
-Actually the enums and internal classes could directly go into
-cmDocumentation, but then MSVC6 complains in RequestedHelpItem that
-cmDocumentation is an undefined type and so it doesn't know the enums.
-Moving the enums to a class which is then already completely parsed helps
-against this. */
-class cmDocumentationEnums
-{
-public:
- /** Types of help provided. */
- enum Type
- {
- None,
- Version,
- Usage,
- Help,
- Full,
- ListManuals,
- ListCommands,
- ListModules,
- ListProperties,
- ListVariables,
- ListPolicies,
- ListGenerators,
- OneManual,
- OneCommand,
- OneModule,
- OneProperty,
- OneVariable,
- OnePolicy,
- OldCustomModules
- };
-};
-
class cmDocumentationSection;
/** Print documentation in a simple text format. */