From 21cf90411aebe2c08787fabc5e60291903129559 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Thu, 3 Jul 2014 00:03:00 +0300 Subject: [PATCH] Fixed a few warning caused by classes forwarded as structs. Signed-off-by: Dimitar Dobrev --- src/CppParser/AST.h | 18 +++++++++--------- src/CppParser/CppParser.h | 2 +- src/CppParser/Target.h | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h index b53e598c..996346e8 100644 --- a/src/CppParser/AST.h +++ b/src/CppParser/AST.h @@ -399,15 +399,15 @@ public: std::string USR; }; -struct Class; -struct Enumeration; -struct Function; -struct TypedefDecl; -struct Namespace; -struct Template; -struct ClassTemplate; -struct FunctionTemplate; -struct Variable; +class Class; +class Enumeration; +class Function; +class TypedefDecl; +class Namespace; +class Template; +class ClassTemplate; +class FunctionTemplate; +class Variable; class CS_API DeclarationContext : public Declaration { diff --git a/src/CppParser/CppParser.h b/src/CppParser/CppParser.h index e0ccd227..5a006842 100644 --- a/src/CppParser/CppParser.h +++ b/src/CppParser/CppParser.h @@ -70,7 +70,7 @@ enum class ParserResultKind FileNotFound }; -struct Parser; +class Parser; struct CS_API ParserResult { diff --git a/src/CppParser/Target.h b/src/CppParser/Target.h index c977ffe7..00410612 100644 --- a/src/CppParser/Target.h +++ b/src/CppParser/Target.h @@ -11,7 +11,7 @@ namespace CppSharp { namespace CppParser { -enum struct ParserIntType +enum class ParserIntType { NoInt = 0, SignedChar,