Declare classes with matched tags, pointed out by a clang++ warning.
authorChris Lattner <sabre@nondot.org>
Thu, 5 Nov 2009 17:51:44 +0000 (17:51 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 5 Nov 2009 17:51:44 +0000 (17:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86144 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index ca32f75b2888de44b90ab561d6d3ec1bffddbc7a..60be345726a209adac93a905dcda0041d4a91cf3 100644 (file)
@@ -495,7 +495,8 @@ public:
 //--------------------------------------------------
 // basic_parser - Super class of parsers to provide boilerplate code
 //
-struct basic_parser_impl {  // non-template implementation of basic_parser<t>
+class basic_parser_impl {  // non-template implementation of basic_parser<t>
+public:
   virtual ~basic_parser_impl() {}
 
   enum ValueExpected getValueExpectedFlagDefault() const {
@@ -525,7 +526,8 @@ struct basic_parser_impl {  // non-template implementation of basic_parser<t>
 // a typedef for the provided data type.
 //
 template<class DataType>
-struct basic_parser : public basic_parser_impl {
+class basic_parser : public basic_parser_impl {
+public:
   typedef DataType parser_data_type;
 };