diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-11-05 17:51:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-11-05 17:51:44 +0000 |
| commit | a117dd23e9eb9ac77eca31de963dc8ba51aef204 (patch) | |
| tree | 50cbda64ba304fde17ec8f5a354a5e215b4909bf /llvm | |
| parent | 13a2c03801423254f434127ee8a624e5be1ab4d4 (diff) | |
| download | bcm5719-llvm-a117dd23e9eb9ac77eca31de963dc8ba51aef204.tar.gz bcm5719-llvm-a117dd23e9eb9ac77eca31de963dc8ba51aef204.zip | |
Declare classes with matched tags, pointed out by a clang++ warning.
llvm-svn: 86144
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index ca32f75b288..60be345726a 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/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; }; |

