aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-05 17:51:44 +0000
committerChris Lattner <sabre@nondot.org>2009-11-05 17:51:44 +0000
commit0ff290615f7675e42111fd907f7b457f08f06747 (patch)
treed046b4a94516b3705eb20819a4d15b128da3e1b6
parent992a63729706355c2a6b8221709fc0aa100a1e79 (diff)
downloadexternal_llvm-0ff290615f7675e42111fd907f7b457f08f06747.zip
external_llvm-0ff290615f7675e42111fd907f7b457f08f06747.tar.gz
external_llvm-0ff290615f7675e42111fd907f7b457f08f06747.tar.bz2
Declare classes with matched tags, pointed out by a clang++ warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86144 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/CommandLine.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index ca32f75..60be345 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -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;
};