aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/CommandLine.h
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 /include/llvm/Support/CommandLine.h
parent992a63729706355c2a6b8221709fc0aa100a1e79 (diff)
downloadexternal_llvm-0ff290615f7675e42111fd907f7b457f08f06747.tar.gz
external_llvm-0ff290615f7675e42111fd907f7b457f08f06747.tar.bz2
external_llvm-0ff290615f7675e42111fd907f7b457f08f06747.zip
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
Diffstat (limited to 'include/llvm/Support/CommandLine.h')
-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 ca32f75b28..60be345726 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;
};