[llvm-commits] [llvm] r86144 - /llvm/trunk/include/llvm/Support/CommandLine.h
Chris Lattner
sabre at nondot.org
Thu Nov 5 09:51:44 PST 2009
Author: lattner
Date: Thu Nov 5 11:51:44 2009
New Revision: 86144
URL: http://llvm.org/viewvc/llvm-project?rev=86144&view=rev
Log:
Declare classes with matched tags, pointed out by a clang++ warning.
Modified:
llvm/trunk/include/llvm/Support/CommandLine.h
Modified: llvm/trunk/include/llvm/Support/CommandLine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CommandLine.h?rev=86144&r1=86143&r2=86144&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CommandLine.h (original)
+++ llvm/trunk/include/llvm/Support/CommandLine.h Thu Nov 5 11:51:44 2009
@@ -495,7 +495,8 @@
//--------------------------------------------------
// 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 @@
// 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;
};
More information about the llvm-commits
mailing list