From a9baadd2f67ff5e8fbe0fde313f84799625caed8 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Sun, 22 Jan 2017 02:11:52 +0200 Subject: [PATCH] Fixed all warnings in our C++ part. --- src/CppParser/AST.cpp | 292 ++++---- src/CppParser/AST.h | 336 ++++----- src/CppParser/Bindings/CLI/AST.cpp | 656 ++++++++--------- src/CppParser/Bindings/CLI/CppParser.cpp | 52 +- src/CppParser/Bindings/CLI/Target.cpp | 152 ++-- src/CppParser/Comments.cpp | 30 +- src/CppParser/CppParser.cpp | 34 +- src/CppParser/CppParser.h | 30 +- src/CppParser/Parser.cpp | 872 +++++++++++------------ src/CppParser/Parser.h | 18 +- src/CppParser/Target.cpp | 58 +- src/CppParser/Target.h | 76 +- 12 files changed, 1303 insertions(+), 1303 deletions(-) diff --git a/src/CppParser/AST.cpp b/src/CppParser/AST.cpp index 8dd89c8481..a0f4e13028 100644 --- a/src/CppParser/AST.cpp +++ b/src/CppParser/AST.cpp @@ -57,10 +57,10 @@ static std::vector split(const T & str, const T & delimiters) { namespace CppSharp { namespace CppParser { namespace AST { -Type::Type(TypeKind kind) : Kind(kind) {} -Type::Type(const Type& rhs) : Kind(rhs.Kind), IsDependent(rhs.IsDependent) {} +Type::Type(TypeKind kind) : kind(kind) {} +Type::Type(const Type& rhs) : kind(rhs.kind), isDependent(rhs.isDependent) {} -QualifiedType::QualifiedType() : Type(0) {} +QualifiedType::QualifiedType() : type(0) {} TagType::TagType() : Type(TypeKind::Tag) {} @@ -76,7 +76,7 @@ PointerType::PointerType() : Type(TypeKind::Pointer) {} MemberPointerType::MemberPointerType() : Type(TypeKind::MemberPointer) {} -TypedefType::TypedefType() : Type(TypeKind::Typedef), Declaration(0) {} +TypedefType::TypedefType() : Type(TypeKind::Typedef), declaration(0) {} AttributedType::AttributedType() : Type(TypeKind::Attributed) {} @@ -85,9 +85,9 @@ DecayedType::DecayedType() : Type(TypeKind::Decayed) {} // Template TemplateParameter::TemplateParameter(DeclarationKind kind) : Declaration(kind) - , Depth(0) - , Index(0) - , IsParameterPack(false) + , depth(0) + , index(0) + , isParameterPack(false) { } @@ -97,9 +97,9 @@ TemplateParameter::~TemplateParameter() TemplateTemplateParameter::TemplateTemplateParameter() : Template(DeclarationKind::TemplateTemplateParm) - , IsParameterPack(false) - , IsPackExpansion(false) - , IsExpandedParameterPack(false) + , isParameterPack(false) + , isPackExpansion(false) + , isExpandedParameterPack(false) { } @@ -114,8 +114,8 @@ TypeTemplateParameter::TypeTemplateParameter() } TypeTemplateParameter::TypeTemplateParameter(const TypeTemplateParameter& rhs) - : TemplateParameter(rhs.Kind) - , DefaultArgument(rhs.DefaultArgument) + : TemplateParameter(rhs.kind) + , defaultArgument(rhs.defaultArgument) { } @@ -123,32 +123,32 @@ TypeTemplateParameter::~TypeTemplateParameter() {} NonTypeTemplateParameter::NonTypeTemplateParameter() : TemplateParameter(DeclarationKind::NonTypeTemplateParm) - , DefaultArgument(0) - , Position(0) - , IsPackExpansion(false) - , IsExpandedParameterPack(false) + , defaultArgument(0) + , position(0) + , isPackExpansion(false) + , isExpandedParameterPack(false) { } NonTypeTemplateParameter::NonTypeTemplateParameter(const NonTypeTemplateParameter& rhs) - : TemplateParameter(rhs.Kind) - , DefaultArgument(rhs.DefaultArgument) - , Position(rhs.Position) - , IsPackExpansion(rhs.IsPackExpansion) - , IsExpandedParameterPack(rhs.IsExpandedParameterPack) + : TemplateParameter(rhs.kind) + , defaultArgument(rhs.defaultArgument) + , position(rhs.position) + , isPackExpansion(rhs.isPackExpansion) + , isExpandedParameterPack(rhs.isExpandedParameterPack) { } NonTypeTemplateParameter::~NonTypeTemplateParameter() {} -TemplateArgument::TemplateArgument() : Declaration(0), Integral(0) {} +TemplateArgument::TemplateArgument() : declaration(0), integral(0) {} TemplateSpecializationType::TemplateSpecializationType() - : Type(TypeKind::TemplateSpecialization), Template(0) {} + : Type(TypeKind::TemplateSpecialization), _template(0) {} TemplateSpecializationType::TemplateSpecializationType( const TemplateSpecializationType& rhs) : Type(rhs), - Arguments(rhs.Arguments), Template(rhs.Template), Desugared(rhs.Desugared) {} + Arguments(rhs.Arguments), _template(rhs._template), desugared(rhs.desugared) {} TemplateSpecializationType::~TemplateSpecializationType() {} @@ -159,22 +159,22 @@ DependentTemplateSpecializationType::DependentTemplateSpecializationType() DependentTemplateSpecializationType::DependentTemplateSpecializationType( const DependentTemplateSpecializationType& rhs) : Type(rhs), - Arguments(rhs.Arguments), Desugared(rhs.Desugared) {} + Arguments(rhs.Arguments), desugared(rhs.desugared) {} DependentTemplateSpecializationType::~DependentTemplateSpecializationType() {} DEF_VECTOR(DependentTemplateSpecializationType, TemplateArgument, Arguments) -TemplateParameterType::TemplateParameterType() : Type(TypeKind::TemplateParameter), Parameter(0) {} +TemplateParameterType::TemplateParameterType() : Type(TypeKind::TemplateParameter), parameter(0) {} TemplateParameterType::~TemplateParameterType() {} TemplateParameterSubstitutionType::TemplateParameterSubstitutionType() - : Type(TypeKind::TemplateParameterSubstitution), ReplacedParameter(0) {} + : Type(TypeKind::TemplateParameterSubstitution), replacedParameter(0) {} InjectedClassNameType::InjectedClassNameType() : Type(TypeKind::InjectedClassName) - , Class(0) + , _class(0) { } @@ -184,11 +184,11 @@ PackExpansionType::PackExpansionType() : Type(TypeKind::PackExpansion) {} UnaryTransformType::UnaryTransformType() : Type(TypeKind::UnaryTransform) {} -VectorType::VectorType() : Type(TypeKind::Vector), NumElements(0) {} +VectorType::VectorType() : Type(TypeKind::Vector), numElements(0) {} BuiltinType::BuiltinType() : CppSharp::CppParser::AST::Type(TypeKind::Builtin) {} -VTableComponent::VTableComponent() : Offset(0), Declaration(0) {} +VTableComponent::VTableComponent() : offset(0), declaration(0) {} // VTableLayout VTableLayout::VTableLayout() {} @@ -200,15 +200,15 @@ DEF_VECTOR(VTableLayout, VTableComponent, Components) VFTableInfo::VFTableInfo() : VBTableIndex(0), VFPtrOffset(0), VFPtrFullOffset(0) {} VFTableInfo::VFTableInfo(const VFTableInfo& rhs) : VBTableIndex(rhs.VBTableIndex), VFPtrOffset(rhs.VFPtrOffset), VFPtrFullOffset(rhs.VFPtrFullOffset), - Layout(rhs.Layout) {} + layout(rhs.layout) {} -LayoutField::LayoutField() : Offset(0), FieldPtr(0) {} +LayoutField::LayoutField() : offset(0), fieldPtr(0) {} LayoutField::LayoutField(const LayoutField & other) - : Offset(other.Offset) + : offset(other.offset) , Name(other.Name) - , QualifiedType(other.QualifiedType) - , FieldPtr(other.FieldPtr) + , qualifiedType(other.qualifiedType) + , fieldPtr(other.fieldPtr) { } @@ -216,14 +216,14 @@ LayoutField::~LayoutField() {} DEF_STRING(LayoutField, Name) -LayoutBase::LayoutBase() : Offset(0), Class(0) {} +LayoutBase::LayoutBase() : offset(0), _class(0) {} -LayoutBase::LayoutBase(const LayoutBase& other) : Offset(other.Offset), Class(other.Class) {} +LayoutBase::LayoutBase(const LayoutBase& other) : offset(other.offset), _class(other._class) {} LayoutBase::~LayoutBase() {} -ClassLayout::ClassLayout() : ABI(CppAbi::Itanium), HasOwnVFPtr(false), - VBPtrOffset(0), Alignment(0), Size(0), DataSize(0) {} +ClassLayout::ClassLayout() : ABI(CppAbi::Itanium), hasOwnVFPtr(false), + VBPtrOffset(0), alignment(0), size(0), dataSize(0) {} DEF_VECTOR(ClassLayout, VFTableInfo, VFTables) @@ -232,39 +232,39 @@ DEF_VECTOR(ClassLayout, LayoutField, Fields) DEF_VECTOR(ClassLayout, LayoutBase, Bases) Declaration::Declaration(DeclarationKind kind) - : Kind(kind) - , Access(AccessSpecifier::Public) - , _Namespace(0) - , Location(0) - , LineNumberStart(0) - , LineNumberEnd(0) - , Comment(0) - , IsIncomplete(false) - , IsDependent(false) - , IsImplicit(false) - , CompleteDeclaration(0) - , DefinitionOrder(0) - , OriginalPtr(0) + : kind(kind) + , access(AccessSpecifier::Public) + , _namespace(0) + , location(0) + , lineNumberStart(0) + , lineNumberEnd(0) + , comment(0) + , isIncomplete(false) + , isDependent(false) + , isImplicit(false) + , completeDeclaration(0) + , definitionOrder(0) + , originalPtr(0) { } Declaration::Declaration(const Declaration& rhs) - : Kind(rhs.Kind) - , Access(rhs.Access) - , _Namespace(rhs._Namespace) - , Location(rhs.Location.ID) - , LineNumberStart(rhs.LineNumberStart) - , LineNumberEnd(rhs.LineNumberEnd) + : kind(rhs.kind) + , access(rhs.access) + , _namespace(rhs._namespace) + , location(rhs.location.ID) + , lineNumberStart(rhs.lineNumberStart) + , lineNumberEnd(rhs.lineNumberEnd) , Name(rhs.Name) - , Comment(rhs.Comment) + , comment(rhs.comment) , DebugText(rhs.DebugText) - , IsIncomplete(rhs.IsIncomplete) - , IsDependent(rhs.IsDependent) - , IsImplicit(rhs.IsImplicit) - , CompleteDeclaration(rhs.CompleteDeclaration) - , DefinitionOrder(rhs.DefinitionOrder) + , isIncomplete(rhs.isIncomplete) + , isDependent(rhs.isDependent) + , isImplicit(rhs.isImplicit) + , completeDeclaration(rhs.completeDeclaration) + , definitionOrder(rhs.definitionOrder) , PreprocessedEntities(rhs.PreprocessedEntities) - , OriginalPtr(rhs.OriginalPtr) + , originalPtr(rhs.originalPtr) { } @@ -279,7 +279,7 @@ DEF_VECTOR(Declaration, PreprocessedEntity*, PreprocessedEntities) DeclarationContext::DeclarationContext(DeclarationKind kind) : Declaration(kind) - , IsAnonymous(false) + , isAnonymous(false) {} DEF_VECTOR(DeclarationContext, Namespace*, Namespaces) @@ -294,8 +294,8 @@ DEF_VECTOR(DeclarationContext, Friend*, Friends) Declaration* DeclarationContext::FindAnonymous(const std::string& key) { - auto it = Anonymous.find(key); - return (it != Anonymous.end()) ? it->second : 0; + auto it = anonymous.find(key); + return (it != anonymous.end()) ? it->second : 0; } Namespace* DeclarationContext::FindNamespace(const std::string& Name) @@ -335,7 +335,7 @@ Namespace* DeclarationContext::FindCreateNamespace(const std::string& Name) { _namespace = new Namespace(); _namespace->Name = Name; - _namespace->_Namespace = this; + _namespace->_namespace = this; Namespaces.push_back(_namespace); } @@ -353,7 +353,7 @@ Class* DeclarationContext::FindClass(const std::string& Name, bool IsComplete) { auto _class = std::find_if(Classes.begin(), Classes.end(), [&](Class* klass) { return klass->Name == Name && - (!klass->IsIncomplete || !IsComplete); }); + (!klass->isIncomplete || !IsComplete); }); return _class != Classes.end() ? *_class : nullptr; } @@ -374,8 +374,8 @@ Class* DeclarationContext::CreateClass(std::string Name, bool IsComplete) { auto _class = new Class(); _class->Name = Name; - _class->_Namespace = this; - _class->IsIncomplete = !IsComplete; + _class->_namespace = this; + _class->isIncomplete = !IsComplete; return _class; } @@ -402,7 +402,7 @@ Class* DeclarationContext::FindClass(const std::string& Name, bool IsComplete, Enumeration* DeclarationContext::FindEnum(const void* OriginalPtr) { auto foundEnum = std::find_if(Enums.begin(), Enums.end(), - [&](Enumeration* enumeration) { return enumeration->OriginalPtr == OriginalPtr; }); + [&](Enumeration* enumeration) { return enumeration->originalPtr == OriginalPtr; }); if (foundEnum != Enums.end()) return *foundEnum; @@ -427,7 +427,7 @@ Enumeration* DeclarationContext::FindEnum(const std::string& Name, bool Create) auto _enum = new Enumeration(); _enum->Name = Name; - _enum->_Namespace = this; + _enum->_namespace = this; Enums.push_back(_enum); return _enum; } @@ -495,7 +495,7 @@ TypedefDecl* DeclarationContext::FindTypedef(const std::string& Name, bool Creat auto tdef = new TypedefDecl(); tdef->Name = Name; - tdef->_Namespace = this; + tdef->_namespace = this; return tdef; } @@ -513,7 +513,7 @@ TypeAlias* DeclarationContext::FindTypeAlias(const std::string& Name, bool Creat auto talias = new TypeAlias(); talias->Name = Name; - talias->_Namespace = this; + talias->_namespace = this; return talias; } @@ -548,17 +548,17 @@ TypedefDecl::TypedefDecl() : TypedefNameDecl(DeclarationKind::Typedef) {} TypedefDecl::~TypedefDecl() {} -TypeAlias::TypeAlias() : TypedefNameDecl(DeclarationKind::TypeAlias), DescribedAliasTemplate(0) {} +TypeAlias::TypeAlias() : TypedefNameDecl(DeclarationKind::TypeAlias), describedAliasTemplate(0) {} TypeAlias::~TypeAlias() {} -Friend::Friend() : CppSharp::CppParser::AST::Declaration(DeclarationKind::Friend), Declaration(0) {} +Friend::Friend() : CppSharp::CppParser::AST::Declaration(DeclarationKind::Friend), declaration(0) {} Friend::~Friend() {} DEF_STRING(Statement, String) -Statement::Statement(const std::string& str, StatementClass stmtClass, Declaration* decl) : String(str), Class(stmtClass), Decl(decl) {} +Statement::Statement(const std::string& str, StatementClass stmtClass, Declaration* decl) : String(str), _class(stmtClass), decl(decl) {} Expression::Expression(const std::string& str, StatementClass stmtClass, Declaration* decl) : Statement(str, stmtClass, decl) {} @@ -597,26 +597,26 @@ CXXConstructExpr::~CXXConstructExpr() DEF_VECTOR(CXXConstructExpr, Expression*, Arguments) Parameter::Parameter() : Declaration(DeclarationKind::Parameter), - IsIndirect(false), HasDefaultValue(false), DefaultArgument(0) {} + isIndirect(false), hasDefaultValue(false), defaultArgument(0) {} Parameter::~Parameter() { - if (DefaultArgument) + if (defaultArgument) { // HACK: see https://github.com/mono/CppSharp/issues/598 - switch (DefaultArgument->Class) + switch (defaultArgument->_class) { case StatementClass::BinaryOperator: - delete static_cast(DefaultArgument); + delete static_cast(defaultArgument); break; case StatementClass::CallExprClass: - delete static_cast(DefaultArgument); + delete static_cast(defaultArgument); break; case StatementClass::CXXConstructExprClass: - delete static_cast(DefaultArgument); + delete static_cast(defaultArgument); break; default: - delete DefaultArgument; + delete defaultArgument; break; } } @@ -624,9 +624,9 @@ Parameter::~Parameter() Function::Function() : Declaration(DeclarationKind::Function) - , IsReturnIndirect(false) - , SpecializationInfo(0) - , InstantiatedFrom(0) + , isReturnIndirect(false) + , specializationInfo(0) + , instantiatedFrom(0) { } @@ -638,17 +638,17 @@ DEF_VECTOR(Function, Parameter*, Parameters) Method::Method() : Function() - , IsVirtual(false) - , IsStatic(false) - , IsConst(false) - , IsExplicit(false) - , IsOverride(false) - , IsDefaultConstructor(false) - , IsCopyConstructor(false) - , IsMoveConstructor(false) - , RefQualifier(RefQualifierKind::None) + , isVirtual(false) + , isStatic(false) + , isConst(false) + , isExplicit(false) + , isOverride(false) + , isDefaultConstructor(false) + , isCopyConstructor(false) + , isMoveConstructor(false) + , refQualifier(RefQualifierKind::None) { - Kind = DeclarationKind::Method; + kind = DeclarationKind::Method; } Method::~Method() {} @@ -656,7 +656,7 @@ Method::~Method() {} // Enumeration Enumeration::Enumeration() : DeclarationContext(DeclarationKind::Enumeration), - Modifiers((EnumModifiers)0), Type(0), BuiltinType(0) {} + modifiers((EnumModifiers)0), type(0), builtinType(0) {} Enumeration::~Enumeration() {} @@ -665,7 +665,7 @@ DEF_VECTOR(Enumeration, Enumeration::Item*, Items) Enumeration::Item::Item() : Declaration(DeclarationKind::EnumerationItem) {} Enumeration::Item::Item(const Item& rhs) : Declaration(rhs), - Expression(rhs.Expression), Value(rhs.Value) {} + Expression(rhs.Expression), value(rhs.value) {} Enumeration::Item::~Item() {} @@ -686,10 +686,10 @@ Variable::~Variable() {} DEF_STRING(Variable, Mangled) -BaseClassSpecifier::BaseClassSpecifier() : Type(0), Offset(0) {} +BaseClassSpecifier::BaseClassSpecifier() : type(0), offset(0) {} -Field::Field() : Declaration(DeclarationKind::Field), Class(0), - IsBitField(false), BitWidth(0) {} +Field::Field() : Declaration(DeclarationKind::Field), _class(0), + isBitField(false), bitWidth(0) {} Field::~Field() {} @@ -700,23 +700,23 @@ AccessSpecifierDecl::~AccessSpecifierDecl() {} Class::Class() : DeclarationContext(DeclarationKind::Class) - , IsPOD(false) - , IsAbstract(false) - , IsUnion(false) - , IsDynamic(false) - , IsPolymorphic(false) - , HasNonTrivialDefaultConstructor(false) - , HasNonTrivialCopyConstructor(false) - , HasNonTrivialDestructor(false) - , IsExternCContext(false) - , Layout(0) + , isPOD(false) + , isAbstract(false) + , isUnion(false) + , isDynamic(false) + , isPolymorphic(false) + , hasNonTrivialDefaultConstructor(false) + , hasNonTrivialCopyConstructor(false) + , hasNonTrivialDestructor(false) + , isExternCContext(false) + , layout(0) { } Class::~Class() { - if (Layout) - delete Layout; + if (layout) + delete layout; } DEF_VECTOR(Class, BaseClassSpecifier*, Bases) @@ -743,9 +743,9 @@ DEF_VECTOR(ClassTemplate, ClassTemplateSpecialization*, Specializations) ClassTemplateSpecialization::ClassTemplateSpecialization() : Class() - , TemplatedDecl(0) + , templatedDecl(0) { - Kind = DeclarationKind::ClassTemplateSpecialization; + kind = DeclarationKind::ClassTemplateSpecialization; } ClassTemplateSpecialization::~ClassTemplateSpecialization() {} @@ -755,7 +755,7 @@ DEF_VECTOR(ClassTemplateSpecialization, TemplateArgument, Arguments) ClassTemplatePartialSpecialization::ClassTemplatePartialSpecialization() : ClassTemplateSpecialization() { - Kind = DeclarationKind::ClassTemplatePartialSpecialization; + kind = DeclarationKind::ClassTemplatePartialSpecialization; } ClassTemplatePartialSpecialization::~ClassTemplatePartialSpecialization() {} @@ -769,7 +769,7 @@ DEF_VECTOR(FunctionTemplate, FunctionTemplateSpecialization*, Specializations) FunctionTemplateSpecialization* FunctionTemplate::FindSpecialization(const std::string& usr) { auto foundSpec = std::find_if(Specializations.begin(), Specializations.end(), - [&](FunctionTemplateSpecialization* cts) { return cts->SpecializedFunction->USR == usr; }); + [&](FunctionTemplateSpecialization* cts) { return cts->specializedFunction->USR == usr; }); if (foundSpec != Specializations.end()) return static_cast(*foundSpec); @@ -778,8 +778,8 @@ FunctionTemplateSpecialization* FunctionTemplate::FindSpecialization(const std:: } FunctionTemplateSpecialization::FunctionTemplateSpecialization() - : Template(0) - , SpecializedFunction(0) + : _template(0) + , specializedFunction(0) { } @@ -816,9 +816,9 @@ VarTemplatePartialSpecialization* VarTemplate::FindPartialSpecialization(const s VarTemplateSpecialization::VarTemplateSpecialization() : Variable() - , TemplatedDecl(0) + , templatedDecl(0) { - Kind = DeclarationKind::VarTemplateSpecialization; + kind = DeclarationKind::VarTemplateSpecialization; } VarTemplateSpecialization::~VarTemplateSpecialization() {} @@ -828,7 +828,7 @@ DEF_VECTOR(VarTemplateSpecialization, TemplateArgument, Arguments) VarTemplatePartialSpecialization::VarTemplatePartialSpecialization() : VarTemplateSpecialization() { - Kind = DeclarationKind::VarTemplatePartialSpecialization; + kind = DeclarationKind::VarTemplatePartialSpecialization; } VarTemplatePartialSpecialization::~VarTemplatePartialSpecialization() @@ -837,32 +837,32 @@ VarTemplatePartialSpecialization::~VarTemplatePartialSpecialization() Namespace::Namespace() : DeclarationContext(DeclarationKind::Namespace) - , IsInline(false) + , isInline(false) { } Namespace::~Namespace() {} PreprocessedEntity::PreprocessedEntity() - : MacroLocation(AST::MacroLocation::Unknown), - OriginalPtr(0), Kind(DeclarationKind::PreprocessedEntity) {} + : macroLocation(AST::MacroLocation::Unknown), + originalPtr(0), kind(DeclarationKind::PreprocessedEntity) {} MacroDefinition::MacroDefinition() - : LineNumberStart(0), LineNumberEnd(0) { Kind = DeclarationKind::MacroDefinition; } + : lineNumberStart(0), lineNumberEnd(0) { kind = DeclarationKind::MacroDefinition; } MacroDefinition::~MacroDefinition() {} DEF_STRING(MacroDefinition, Name) DEF_STRING(MacroDefinition, Expression) -MacroExpansion::MacroExpansion() : Definition(0) { Kind = DeclarationKind::MacroExpansion; } +MacroExpansion::MacroExpansion() : definition(0) { kind = DeclarationKind::MacroExpansion; } MacroExpansion::~MacroExpansion() {} DEF_STRING(MacroExpansion, Name) DEF_STRING(MacroExpansion, Text) -TranslationUnit::TranslationUnit() { Kind = DeclarationKind::TranslationUnit; } +TranslationUnit::TranslationUnit() { kind = DeclarationKind::TranslationUnit; } TranslationUnit::~TranslationUnit() {} @@ -870,7 +870,7 @@ DEF_STRING(TranslationUnit, FileName) DEF_VECTOR(TranslationUnit, MacroDefinition*, Macros) NativeLibrary::NativeLibrary() - : ArchType(AST::ArchType::UnknownArch) + : archType(AST::ArchType::UnknownArch) { } @@ -929,17 +929,17 @@ TranslationUnit* ASTContext::FindOrCreateModule(std::string File) } // Comments -Comment::Comment(CommentKind kind) : Kind(kind) {} +Comment::Comment(CommentKind kind) : kind(kind) {} DEF_STRING(RawComment, Text) DEF_STRING(RawComment, BriefText) -RawComment::RawComment() : FullCommentBlock(0) {} +RawComment::RawComment() : fullCommentBlock(0) {} RawComment::~RawComment() { - if (FullCommentBlock) - delete FullCommentBlock; + if (fullCommentBlock) + delete fullCommentBlock; } FullComment::FullComment() : Comment(CommentKind::FullComment) {} @@ -949,7 +949,7 @@ FullComment::~FullComment() for (auto& block : Blocks) { // HACK: see https://github.com/mono/CppSharp/issues/599 - switch (block->Kind) + switch (block->kind) { case CommentKind::BlockCommandComment: delete static_cast(block); @@ -988,18 +988,18 @@ BlockCommandComment::Argument::Argument(const Argument& rhs) : Text(rhs.Text) {} DEF_STRING(BlockCommandComment::Argument, Text) -BlockCommandComment::BlockCommandComment() : BlockContentComment(CommentKind::BlockCommandComment), CommandId(0), ParagraphComment(0) {} +BlockCommandComment::BlockCommandComment() : BlockContentComment(CommentKind::BlockCommandComment), commandId(0), paragraphComment(0) {} -BlockCommandComment::BlockCommandComment(CommentKind Kind) : BlockContentComment(Kind), CommandId(0), ParagraphComment(0) {} +BlockCommandComment::BlockCommandComment(CommentKind Kind) : BlockContentComment(Kind), commandId(0), paragraphComment(0) {} BlockCommandComment::~BlockCommandComment() { - delete ParagraphComment; + delete paragraphComment; } DEF_VECTOR(BlockCommandComment, BlockCommandComment::Argument, Arguments) -ParamCommandComment::ParamCommandComment() : BlockCommandComment(CommentKind::ParamCommandComment), Direction(PassDirection::In), ParamIndex(0) {} +ParamCommandComment::ParamCommandComment() : BlockCommandComment(CommentKind::ParamCommandComment), direction(PassDirection::In), paramIndex(0) {} TParamCommandComment::TParamCommandComment() : BlockCommandComment(CommentKind::TParamCommandComment) {} @@ -1019,14 +1019,14 @@ VerbatimLineComment::VerbatimLineComment() : BlockCommandComment(CommentKind::Ve DEF_STRING(VerbatimLineComment, Text) -ParagraphComment::ParagraphComment() : BlockContentComment(CommentKind::ParagraphComment), IsWhitespace(false) {} +ParagraphComment::ParagraphComment() : BlockContentComment(CommentKind::ParagraphComment), isWhitespace(false) {} ParagraphComment::~ParagraphComment() { for (auto& content : Content) { // HACK: see https://github.com/mono/CppSharp/issues/599 - switch (content->Kind) + switch (content->kind) { case CommentKind::InlineCommandComment: delete static_cast(content); @@ -1074,9 +1074,9 @@ HTMLEndTagComment::HTMLEndTagComment() : HTMLTagComment(CommentKind::HTMLEndTagC DEF_STRING(HTMLEndTagComment, TagName) -InlineContentComment::InlineContentComment() : Comment(CommentKind::InlineContentComment), HasTrailingNewline(false) {} +InlineContentComment::InlineContentComment() : Comment(CommentKind::InlineContentComment), hasTrailingNewline(false) {} -InlineContentComment::InlineContentComment(CommentKind Kind) : Comment(Kind), HasTrailingNewline(false) {} +InlineContentComment::InlineContentComment(CommentKind Kind) : Comment(Kind), hasTrailingNewline(false) {} TextComment::TextComment() : InlineContentComment(CommentKind::TextComment) {} @@ -1089,7 +1089,7 @@ InlineCommandComment::Argument::Argument(const Argument& rhs) : Text(rhs.Text) { DEF_STRING(InlineCommandComment::Argument, Text) InlineCommandComment::InlineCommandComment() - : InlineContentComment(CommentKind::InlineCommandComment), CommandId(0), CommentRenderKind(RenderNormal) {} + : InlineContentComment(CommentKind::InlineCommandComment), commandId(0), commentRenderKind(RenderNormal) {} DEF_VECTOR(InlineCommandComment, InlineCommandComment::Argument, Arguments) diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h index a1024a045d..0f9d7f3e65 100644 --- a/src/CppParser/AST.h +++ b/src/CppParser/AST.h @@ -46,22 +46,22 @@ class CS_API Type Type(TypeKind kind); Type(const Type&); - TypeKind Kind; - bool IsDependent; + TypeKind kind; + bool isDependent; }; struct CS_API TypeQualifiers { - bool IsConst; - bool IsVolatile; - bool IsRestrict; + bool isConst; + bool isVolatile; + bool isRestrict; }; struct CS_API QualifiedType { QualifiedType(); - CppSharp::CppParser::AST::Type* Type; - TypeQualifiers Qualifiers; + Type* type; + TypeQualifiers qualifiers; }; class Declaration; @@ -70,7 +70,7 @@ class CS_API TagType : public Type { public: DECLARE_TYPE_KIND(Tag) - CppSharp::CppParser::AST::Declaration* Declaration; + Declaration* declaration; }; class CS_API ArrayType : public Type @@ -85,10 +85,10 @@ class CS_API ArrayType : public Type }; DECLARE_TYPE_KIND(Array) - CppSharp::CppParser::AST::QualifiedType QualifiedType; - ArraySize SizeType; - long Size; - long ElementSize; + QualifiedType qualifiedType; + ArraySize sizeType; + long size; + long elementSize; }; class Parameter; @@ -108,8 +108,8 @@ class CS_API FunctionType : public Type public: ~FunctionType(); DECLARE_TYPE_KIND(Function) - QualifiedType ReturnType; - CppSharp::CppParser::AST::CallingConvention CallingConvention; + QualifiedType returnType; + CallingConvention callingConvention; VECTOR(Parameter*, Parameters) }; @@ -125,15 +125,15 @@ class CS_API PointerType : public Type }; DECLARE_TYPE_KIND(Pointer) - QualifiedType QualifiedPointee; - TypeModifier Modifier; + QualifiedType qualifiedPointee; + TypeModifier modifier; }; class CS_API MemberPointerType : public Type { public: DECLARE_TYPE_KIND(MemberPointer) - QualifiedType Pointee; + QualifiedType pointee; }; class TypedefNameDecl; @@ -142,24 +142,24 @@ class CS_API TypedefType : public Type { public: TypedefType(); - TypedefNameDecl* Declaration; + TypedefNameDecl* declaration; }; class CS_API AttributedType : public Type { public: DECLARE_TYPE_KIND(Attributed) - QualifiedType Modified; - QualifiedType Equivalent; + QualifiedType modified; + QualifiedType equivalent; }; class CS_API DecayedType : public Type { public: DECLARE_TYPE_KIND(Decayed) - QualifiedType Decayed; - QualifiedType Original; - QualifiedType Pointee; + QualifiedType decayed; + QualifiedType original; + QualifiedType pointee; }; struct CS_API TemplateArgument @@ -178,10 +178,10 @@ struct CS_API TemplateArgument Pack }; - ArgumentKind Kind; - QualifiedType Type; - CppSharp::CppParser::AST::Declaration* Declaration; - long Integral; + ArgumentKind kind; + QualifiedType type; + Declaration* declaration; + long integral; }; class Template; @@ -194,8 +194,8 @@ class CS_API TemplateSpecializationType : public Type ~TemplateSpecializationType(); VECTOR(TemplateArgument, Arguments) - CppSharp::CppParser::AST::Template* Template; - QualifiedType Desugared; + Template* _template; + QualifiedType desugared; }; class CS_API DependentTemplateSpecializationType : public Type @@ -206,7 +206,7 @@ class CS_API DependentTemplateSpecializationType : public Type ~DependentTemplateSpecializationType(); VECTOR(TemplateArgument, Arguments) - QualifiedType Desugared; + QualifiedType desugared; }; class TypeTemplateParameter; @@ -216,18 +216,18 @@ class CS_API TemplateParameterType : public Type public: DECLARE_TYPE_KIND(TemplateParameter) ~TemplateParameterType(); - TypeTemplateParameter* Parameter; - unsigned int Depth; - unsigned int Index; - bool IsParameterPack; + TypeTemplateParameter* parameter; + unsigned int depth; + unsigned int index; + bool isParameterPack; }; class CS_API TemplateParameterSubstitutionType : public Type { public: DECLARE_TYPE_KIND(TemplateParameterSubstitution) - QualifiedType Replacement; - TemplateParameterType* ReplacedParameter; + QualifiedType replacement; + TemplateParameterType* replacedParameter; }; class Class; @@ -236,15 +236,15 @@ class CS_API InjectedClassNameType : public Type { public: DECLARE_TYPE_KIND(InjectedClassName) - QualifiedType InjectedSpecializationType; - CppSharp::CppParser::AST::Class* Class; + QualifiedType injectedSpecializationType; + Class* _class; }; class CS_API DependentNameType : public Type { public: DECLARE_TYPE_KIND(DependentName) - QualifiedType Desugared; + QualifiedType desugared; }; class CS_API PackExpansionType : public Type @@ -257,16 +257,16 @@ class CS_API UnaryTransformType : public Type { public: DECLARE_TYPE_KIND(UnaryTransform) - QualifiedType Desugared; - QualifiedType BaseType; + QualifiedType desugared; + QualifiedType baseType; }; class CS_API VectorType : public Type { public: DECLARE_TYPE_KIND(Vector) - QualifiedType ElementType; - unsigned NumElements; + QualifiedType elementType; + unsigned numElements; }; enum class PrimitiveType @@ -301,7 +301,7 @@ class CS_API BuiltinType : public Type { public: DECLARE_TYPE_KIND(Builtin) - PrimitiveType Type; + PrimitiveType type; }; #pragma endregion @@ -332,9 +332,9 @@ enum class VTableComponentKind struct CS_API VTableComponent { VTableComponent(); - VTableComponentKind Kind; - unsigned Offset; - CppSharp::CppParser::AST::Declaration* Declaration; + VTableComponentKind kind; + unsigned offset; + Declaration* declaration; }; struct CS_API VTableLayout @@ -352,7 +352,7 @@ struct CS_API VFTableInfo uint64_t VBTableIndex; uint32_t VFPtrOffset; uint32_t VFPtrFullOffset; - VTableLayout Layout; + VTableLayout layout; }; class CS_API LayoutField @@ -361,10 +361,10 @@ class CS_API LayoutField LayoutField(); LayoutField(const LayoutField& other); ~LayoutField(); - unsigned Offset; + unsigned offset; STRING(Name) - QualifiedType QualifiedType; - void* FieldPtr; + QualifiedType qualifiedType; + void* fieldPtr; }; class Class; @@ -375,8 +375,8 @@ class CS_API LayoutBase LayoutBase(); LayoutBase(const LayoutBase& other); ~LayoutBase(); - unsigned Offset; - Class* Class; + unsigned offset; + Class* _class; }; struct CS_API ClassLayout @@ -384,12 +384,12 @@ struct CS_API ClassLayout ClassLayout(); CppAbi ABI; VECTOR(VFTableInfo, VFTables) - VTableLayout Layout; - bool HasOwnVFPtr; + VTableLayout layout; + bool hasOwnVFPtr; long VBPtrOffset; - int Alignment; - int Size; - int DataSize; + int alignment; + int size; + int dataSize; VECTOR(LayoutField, Fields) VECTOR(LayoutBase, Bases) }; @@ -453,23 +453,23 @@ class CS_API Declaration Declaration(const Declaration&); ~Declaration(); - DeclarationKind Kind; - AccessSpecifier Access; - DeclarationContext* _Namespace; - SourceLocation Location; - int LineNumberStart; - int LineNumberEnd; + DeclarationKind kind; + AccessSpecifier access; + DeclarationContext* _namespace; + SourceLocation location; + int lineNumberStart; + int lineNumberEnd; STRING(Name) STRING(USR) STRING(DebugText) - bool IsIncomplete; - bool IsDependent; - bool IsImplicit; - Declaration* CompleteDeclaration; - unsigned DefinitionOrder; + bool isIncomplete; + bool isDependent; + bool isImplicit; + Declaration* completeDeclaration; + unsigned definitionOrder; VECTOR(PreprocessedEntity*, PreprocessedEntities) - void* OriginalPtr; - RawComment* Comment; + void* originalPtr; + RawComment* comment; }; class Class; @@ -492,9 +492,9 @@ class CS_API DeclarationContext : public Declaration CS_IGNORE Declaration* FindAnonymous(const std::string& USR); - CS_IGNORE CppSharp::CppParser::AST::Namespace* FindNamespace(const std::string& Name); - CS_IGNORE CppSharp::CppParser::AST::Namespace* FindNamespace(const std::vector&); - CS_IGNORE CppSharp::CppParser::AST::Namespace* FindCreateNamespace(const std::string& Name); + CS_IGNORE Namespace* FindNamespace(const std::string& Name); + CS_IGNORE Namespace* FindNamespace(const std::vector&); + CS_IGNORE Namespace* FindCreateNamespace(const std::string& Name); CS_IGNORE Class* CreateClass(std::string Name, bool IsComplete); CS_IGNORE Class* FindClass(const std::string& Name, bool IsComplete); @@ -527,9 +527,9 @@ class CS_API DeclarationContext : public Declaration VECTOR(Variable*, Variables) VECTOR(Friend*, Friends) - std::map Anonymous; + std::map anonymous; - bool IsAnonymous; + bool isAnonymous; }; class CS_API TypedefNameDecl : public Declaration @@ -537,7 +537,7 @@ class CS_API TypedefNameDecl : public Declaration public: TypedefNameDecl(DeclarationKind kind); ~TypedefNameDecl(); - CppSharp::CppParser::AST::QualifiedType QualifiedType; + QualifiedType qualifiedType; }; class CS_API TypedefDecl : public TypedefNameDecl @@ -552,7 +552,7 @@ class CS_API TypeAlias : public TypedefNameDecl public: TypeAlias(); ~TypeAlias(); - TypeAliasTemplate* DescribedAliasTemplate; + TypeAliasTemplate* describedAliasTemplate; }; class CS_API Friend : public Declaration @@ -560,7 +560,7 @@ class CS_API Friend : public Declaration public: DECLARE_DECL_KIND(Friend, Friend) ~Friend(); - CppSharp::CppParser::AST::Declaration* Declaration; + Declaration* declaration; }; enum class StatementClass @@ -579,8 +579,8 @@ class CS_API Statement { public: Statement(const std::string& str, StatementClass Class = StatementClass::Any, Declaration* decl = 0); - StatementClass Class; - Declaration* Decl; + StatementClass _class; + Declaration* decl; STRING(String) }; @@ -622,11 +622,11 @@ class CS_API Parameter : public Declaration Parameter(); ~Parameter(); - CppSharp::CppParser::AST::QualifiedType QualifiedType; - bool IsIndirect; - bool HasDefaultValue; - unsigned int Index; - Expression* DefaultArgument; + QualifiedType qualifiedType; + bool isIndirect; + bool hasDefaultValue; + unsigned int index; + Expression* defaultArgument; }; enum class CXXMethodKind @@ -696,21 +696,21 @@ class CS_API Function : public Declaration Function(); ~Function(); - QualifiedType ReturnType; - bool IsReturnIndirect; - bool HasThisReturn; + QualifiedType returnType; + bool isReturnIndirect; + bool hasThisReturn; - bool IsVariadic; - bool IsInline; - bool IsPure; - bool IsDeleted; + bool isVariadic; + bool isInline; + bool isPure; + bool isDeleted; CXXOperatorKind OperatorKind; STRING(Mangled) STRING(Signature) - CppSharp::CppParser::AST::CallingConvention CallingConvention; + CallingConvention callingConvention; VECTOR(Parameter*, Parameters) - FunctionTemplateSpecialization* SpecializationInfo; - Function* InstantiatedFrom; + FunctionTemplateSpecialization* specializationInfo; + Function* instantiatedFrom; }; class AccessSpecifierDecl; @@ -728,20 +728,20 @@ class CS_API Method : public Function Method(); ~Method(); - bool IsVirtual; - bool IsStatic; - bool IsConst; - bool IsExplicit; - bool IsOverride; + bool isVirtual; + bool isStatic; + bool isConst; + bool isExplicit; + bool isOverride; - CXXMethodKind MethodKind; + CXXMethodKind methodKind; - bool IsDefaultConstructor; - bool IsCopyConstructor; - bool IsMoveConstructor; + bool isDefaultConstructor; + bool isCopyConstructor; + bool isMoveConstructor; - QualifiedType ConversionType; - RefQualifierKind RefQualifier; + QualifiedType conversionType; + RefQualifierKind refQualifier; }; class CS_API Enumeration : public DeclarationContext @@ -758,7 +758,7 @@ class CS_API Enumeration : public DeclarationContext ~Item(); STRING(Expression) - uint64_t Value; + uint64_t value; }; enum class CS_FLAGS EnumModifiers @@ -768,9 +768,9 @@ class CS_API Enumeration : public DeclarationContext Flags = 1 << 2, }; - EnumModifiers Modifiers; - CppSharp::CppParser::AST::Type* Type; - CppSharp::CppParser::AST::BuiltinType* BuiltinType; + EnumModifiers modifiers; + Type* type; + BuiltinType* builtinType; VECTOR(Item*, Items) Item* FindItemByName(const std::string& Name); @@ -782,7 +782,7 @@ class CS_API Variable : public Declaration DECLARE_DECL_KIND(Variable, Variable) ~Variable(); STRING(Mangled) - CppSharp::CppParser::AST::QualifiedType QualifiedType; + QualifiedType qualifiedType; }; class PreprocessedEntity; @@ -790,10 +790,10 @@ class PreprocessedEntity; struct CS_API BaseClassSpecifier { BaseClassSpecifier(); - AccessSpecifier Access; - bool IsVirtual; - CppSharp::CppParser::AST::Type* Type; - int Offset; + AccessSpecifier access; + bool isVirtual; + Type* type; + int offset; }; class Class; @@ -803,10 +803,10 @@ class CS_API Field : public Declaration public: DECLARE_DECL_KIND(Field, Field) ~Field(); - CppSharp::CppParser::AST::QualifiedType QualifiedType; - CppSharp::CppParser::AST::Class* Class; - bool IsBitField; - unsigned BitWidth; + QualifiedType qualifiedType; + Class* _class; + bool isBitField; + unsigned bitWidth; }; class CS_API AccessSpecifierDecl : public Declaration @@ -827,17 +827,17 @@ class CS_API Class : public DeclarationContext VECTOR(Method*, Methods) VECTOR(AccessSpecifierDecl*, Specifiers) - bool IsPOD; - bool IsAbstract; - bool IsUnion; - bool IsDynamic; - bool IsPolymorphic; - bool HasNonTrivialDefaultConstructor; - bool HasNonTrivialCopyConstructor; - bool HasNonTrivialDestructor; - bool IsExternCContext; + bool isPOD; + bool isAbstract; + bool isUnion; + bool isDynamic; + bool isPolymorphic; + bool hasNonTrivialDefaultConstructor; + bool hasNonTrivialCopyConstructor; + bool hasNonTrivialDestructor; + bool isExternCContext; - ClassLayout* Layout; + ClassLayout* layout; }; class CS_API Template : public Declaration @@ -873,9 +873,9 @@ class CS_API TemplateParameter : public Declaration public: TemplateParameter(DeclarationKind kind); ~TemplateParameter(); - unsigned int Depth; - unsigned int Index; - bool IsParameterPack; + unsigned int depth; + unsigned int index; + bool isParameterPack; }; class CS_API TemplateTemplateParameter : public Template @@ -884,9 +884,9 @@ class CS_API TemplateTemplateParameter : public Template TemplateTemplateParameter(); ~TemplateTemplateParameter(); - bool IsParameterPack; - bool IsPackExpansion; - bool IsExpandedParameterPack; + bool isParameterPack; + bool isPackExpansion; + bool isExpandedParameterPack; }; class CS_API TypeTemplateParameter : public TemplateParameter @@ -896,7 +896,7 @@ class CS_API TypeTemplateParameter : public TemplateParameter TypeTemplateParameter(const TypeTemplateParameter&); ~TypeTemplateParameter(); - QualifiedType DefaultArgument; + QualifiedType defaultArgument; }; class CS_API NonTypeTemplateParameter : public TemplateParameter @@ -906,10 +906,10 @@ class CS_API NonTypeTemplateParameter : public TemplateParameter NonTypeTemplateParameter(const NonTypeTemplateParameter&); ~NonTypeTemplateParameter(); - Expression* DefaultArgument; - unsigned int Position; - bool IsPackExpansion; - bool IsExpandedParameterPack; + Expression* defaultArgument; + unsigned int position; + bool isPackExpansion; + bool isExpandedParameterPack; }; class ClassTemplateSpecialization; @@ -939,9 +939,9 @@ class CS_API ClassTemplateSpecialization : public Class public: ClassTemplateSpecialization(); ~ClassTemplateSpecialization(); - ClassTemplate* TemplatedDecl; + ClassTemplate* templatedDecl; VECTOR(TemplateArgument, Arguments) - TemplateSpecializationKind SpecializationKind; + TemplateSpecializationKind specializationKind; }; class CS_API ClassTemplatePartialSpecialization : public ClassTemplateSpecialization @@ -965,10 +965,10 @@ class CS_API FunctionTemplateSpecialization public: FunctionTemplateSpecialization(); ~FunctionTemplateSpecialization(); - FunctionTemplate* Template; + FunctionTemplate* _template; VECTOR(TemplateArgument, Arguments) - Function* SpecializedFunction; - TemplateSpecializationKind SpecializationKind; + Function* specializedFunction; + TemplateSpecializationKind specializationKind; }; class VarTemplateSpecialization; @@ -989,9 +989,9 @@ class CS_API VarTemplateSpecialization : public Variable public: VarTemplateSpecialization(); ~VarTemplateSpecialization(); - VarTemplate* TemplatedDecl; + VarTemplate* templatedDecl; VECTOR(TemplateArgument, Arguments) - TemplateSpecializationKind SpecializationKind; + TemplateSpecializationKind specializationKind; }; class CS_API VarTemplatePartialSpecialization : public VarTemplateSpecialization @@ -1006,7 +1006,7 @@ class CS_API Namespace : public DeclarationContext public: Namespace(); ~Namespace(); - bool IsInline; + bool isInline; }; enum class MacroLocation @@ -1023,9 +1023,9 @@ class CS_API PreprocessedEntity { public: PreprocessedEntity(); - MacroLocation MacroLocation; - void* OriginalPtr; - DeclarationKind Kind; + MacroLocation macroLocation; + void* originalPtr; + DeclarationKind kind; }; class CS_API MacroDefinition : public PreprocessedEntity @@ -1035,8 +1035,8 @@ class CS_API MacroDefinition : public PreprocessedEntity ~MacroDefinition(); STRING(Name) STRING(Expression) - int LineNumberStart; - int LineNumberEnd; + int lineNumberStart; + int lineNumberEnd; }; class CS_API MacroExpansion : public PreprocessedEntity @@ -1046,7 +1046,7 @@ class CS_API MacroExpansion : public PreprocessedEntity ~MacroExpansion(); STRING(Name) STRING(Text) - MacroDefinition* Definition; + MacroDefinition* definition; }; class CS_API TranslationUnit : public Namespace @@ -1055,7 +1055,7 @@ class CS_API TranslationUnit : public Namespace TranslationUnit(); ~TranslationUnit(); STRING(FileName) - bool IsSystemHeader; + bool isSystemHeader; VECTOR(MacroDefinition*, Macros) }; @@ -1072,7 +1072,7 @@ class CS_API NativeLibrary NativeLibrary(); ~NativeLibrary(); STRING(FileName) - ArchType ArchType; + ArchType archType; VECTOR_STRING(Symbols) VECTOR_STRING(Dependencies) }; @@ -1113,7 +1113,7 @@ class CS_API CS_ABSTRACT Comment { public: Comment(CommentKind kind); - CommentKind Kind; + CommentKind kind; }; class CS_API BlockContentComment : public Comment @@ -1136,7 +1136,7 @@ class CS_API InlineContentComment : public Comment public: InlineContentComment(); InlineContentComment(CommentKind Kind); - bool HasTrailingNewline; + bool hasTrailingNewline; }; class CS_API ParagraphComment : public BlockContentComment @@ -1144,7 +1144,7 @@ class CS_API ParagraphComment : public BlockContentComment public: ParagraphComment(); ~ParagraphComment(); - bool IsWhitespace; + bool isWhitespace; VECTOR(InlineContentComment*, Content) }; @@ -1161,8 +1161,8 @@ class CS_API BlockCommandComment : public BlockContentComment BlockCommandComment(); BlockCommandComment(CommentKind Kind); ~BlockCommandComment(); - unsigned CommandId; - ParagraphComment* ParagraphComment; + unsigned commandId; + ParagraphComment* paragraphComment; VECTOR(Argument, Arguments) }; @@ -1176,8 +1176,8 @@ class CS_API ParamCommandComment : public BlockCommandComment InOut }; ParamCommandComment(); - PassDirection Direction; - unsigned ParamIndex; + PassDirection direction; + unsigned paramIndex; }; class CS_API TParamCommandComment : public BlockCommandComment @@ -1227,8 +1227,8 @@ class CS_API InlineCommandComment : public InlineContentComment STRING(Text) }; InlineCommandComment(); - unsigned CommandId; - RenderKind CommentRenderKind; + unsigned commandId; + RenderKind commentRenderKind; VECTOR(Argument, Arguments) }; @@ -1286,10 +1286,10 @@ class CS_API RawComment public: RawComment(); ~RawComment(); - RawCommentKind Kind; + RawCommentKind kind; STRING(Text) STRING(BriefText) - FullComment* FullCommentBlock; + FullComment* fullCommentBlock; }; #pragma region Commands diff --git a/src/CppParser/Bindings/CLI/AST.cpp b/src/CppParser/Bindings/CLI/AST.cpp index 46f03bbca2..c9c75c7f17 100644 --- a/src/CppParser/Bindings/CLI/AST.cpp +++ b/src/CppParser/Bindings/CLI/AST.cpp @@ -55,22 +55,22 @@ void CppSharp::Parser::AST::Type::__Instance::set(System::IntPtr object) CppSharp::Parser::AST::TypeKind CppSharp::Parser::AST::Type::Kind::get() { - return (CppSharp::Parser::AST::TypeKind)((::CppSharp::CppParser::AST::Type*)NativePtr)->Kind; + return (CppSharp::Parser::AST::TypeKind)((::CppSharp::CppParser::AST::Type*)NativePtr)->kind; } void CppSharp::Parser::AST::Type::Kind::set(CppSharp::Parser::AST::TypeKind value) { - ((::CppSharp::CppParser::AST::Type*)NativePtr)->Kind = (::CppSharp::CppParser::AST::TypeKind)value; + ((::CppSharp::CppParser::AST::Type*)NativePtr)->kind = (::CppSharp::CppParser::AST::TypeKind)value; } bool CppSharp::Parser::AST::Type::IsDependent::get() { - return ((::CppSharp::CppParser::AST::Type*)NativePtr)->IsDependent; + return ((::CppSharp::CppParser::AST::Type*)NativePtr)->isDependent; } void CppSharp::Parser::AST::Type::IsDependent::set(bool value) { - ((::CppSharp::CppParser::AST::Type*)NativePtr)->IsDependent = value; + ((::CppSharp::CppParser::AST::Type*)NativePtr)->isDependent = value; } CppSharp::Parser::AST::TypeQualifiers::TypeQualifiers(::CppSharp::CppParser::AST::TypeQualifiers* native) @@ -116,32 +116,32 @@ void CppSharp::Parser::AST::TypeQualifiers::__Instance::set(System::IntPtr objec bool CppSharp::Parser::AST::TypeQualifiers::IsConst::get() { - return ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->IsConst; + return ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->isConst; } void CppSharp::Parser::AST::TypeQualifiers::IsConst::set(bool value) { - ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->IsConst = value; + ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->isConst = value; } bool CppSharp::Parser::AST::TypeQualifiers::IsVolatile::get() { - return ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->IsVolatile; + return ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->isVolatile; } void CppSharp::Parser::AST::TypeQualifiers::IsVolatile::set(bool value) { - ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->IsVolatile = value; + ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->isVolatile = value; } bool CppSharp::Parser::AST::TypeQualifiers::IsRestrict::get() { - return ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->IsRestrict; + return ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->isRestrict; } void CppSharp::Parser::AST::TypeQualifiers::IsRestrict::set(bool value) { - ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->IsRestrict = value; + ((::CppSharp::CppParser::AST::TypeQualifiers*)NativePtr)->isRestrict = value; } CppSharp::Parser::AST::QualifiedType::QualifiedType(::CppSharp::CppParser::AST::QualifiedType* native) @@ -187,22 +187,22 @@ void CppSharp::Parser::AST::QualifiedType::__Instance::set(System::IntPtr object CppSharp::Parser::AST::Type^ CppSharp::Parser::AST::QualifiedType::Type::get() { - return (((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->Type == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Type((::CppSharp::CppParser::AST::Type*)((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->Type); + return (((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->type == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Type((::CppSharp::CppParser::AST::Type*)((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->type); } void CppSharp::Parser::AST::QualifiedType::Type::set(CppSharp::Parser::AST::Type^ value) { - ((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->Type = (::CppSharp::CppParser::AST::Type*)value->NativePtr; + ((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->type = (::CppSharp::CppParser::AST::Type*)value->NativePtr; } CppSharp::Parser::AST::TypeQualifiers^ CppSharp::Parser::AST::QualifiedType::Qualifiers::get() { - return (&((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->Qualifiers == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TypeQualifiers((::CppSharp::CppParser::AST::TypeQualifiers*)&((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->Qualifiers); + return (&((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->qualifiers == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TypeQualifiers((::CppSharp::CppParser::AST::TypeQualifiers*)&((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->qualifiers); } void CppSharp::Parser::AST::QualifiedType::Qualifiers::set(CppSharp::Parser::AST::TypeQualifiers^ value) { - ((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->Qualifiers = *(::CppSharp::CppParser::AST::TypeQualifiers*)value->NativePtr; + ((::CppSharp::CppParser::AST::QualifiedType*)NativePtr)->qualifiers = *(::CppSharp::CppParser::AST::TypeQualifiers*)value->NativePtr; } CppSharp::Parser::AST::TagType::TagType(::CppSharp::CppParser::AST::TagType* native) @@ -238,12 +238,12 @@ CppSharp::Parser::AST::TagType::TagType(CppSharp::Parser::AST::TagType^ _0) CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::TagType::Declaration::get() { - return (((::CppSharp::CppParser::AST::TagType*)NativePtr)->Declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::TagType*)NativePtr)->Declaration); + return (((::CppSharp::CppParser::AST::TagType*)NativePtr)->declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::TagType*)NativePtr)->declaration); } void CppSharp::Parser::AST::TagType::Declaration::set(CppSharp::Parser::AST::Declaration^ value) { - ((::CppSharp::CppParser::AST::TagType*)NativePtr)->Declaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; + ((::CppSharp::CppParser::AST::TagType*)NativePtr)->declaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; } CppSharp::Parser::AST::ArrayType::ArrayType(::CppSharp::CppParser::AST::ArrayType* native) @@ -279,42 +279,42 @@ CppSharp::Parser::AST::ArrayType::ArrayType(CppSharp::Parser::AST::ArrayType^ _0 CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::ArrayType::QualifiedType::get() { - return (&((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->QualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->QualifiedType); + return (&((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->qualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->qualifiedType); } void CppSharp::Parser::AST::ArrayType::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->QualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::ArrayType::ArraySize CppSharp::Parser::AST::ArrayType::SizeType::get() { - return (CppSharp::Parser::AST::ArrayType::ArraySize)((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->SizeType; + return (CppSharp::Parser::AST::ArrayType::ArraySize)((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->sizeType; } void CppSharp::Parser::AST::ArrayType::SizeType::set(CppSharp::Parser::AST::ArrayType::ArraySize value) { - ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->SizeType = (::CppSharp::CppParser::AST::ArrayType::ArraySize)value; + ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->sizeType = (::CppSharp::CppParser::AST::ArrayType::ArraySize)value; } long CppSharp::Parser::AST::ArrayType::Size::get() { - return ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->Size; + return ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->size; } void CppSharp::Parser::AST::ArrayType::Size::set(long value) { - ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->Size = value; + ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->size = value; } long CppSharp::Parser::AST::ArrayType::ElementSize::get() { - return ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->ElementSize; + return ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->elementSize; } void CppSharp::Parser::AST::ArrayType::ElementSize::set(long value) { - ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->ElementSize = value; + ((::CppSharp::CppParser::AST::ArrayType*)NativePtr)->elementSize = value; } CppSharp::Parser::AST::FunctionType::FunctionType(::CppSharp::CppParser::AST::FunctionType* native) @@ -376,22 +376,22 @@ CppSharp::Parser::AST::FunctionType::FunctionType(CppSharp::Parser::AST::Functio CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::FunctionType::ReturnType::get() { - return (&((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->ReturnType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->ReturnType); + return (&((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->returnType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->returnType); } void CppSharp::Parser::AST::FunctionType::ReturnType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->ReturnType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->returnType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::CallingConvention CppSharp::Parser::AST::FunctionType::CallingConvention::get() { - return (CppSharp::Parser::AST::CallingConvention)((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->CallingConvention; + return (CppSharp::Parser::AST::CallingConvention)((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->callingConvention; } void CppSharp::Parser::AST::FunctionType::CallingConvention::set(CppSharp::Parser::AST::CallingConvention value) { - ((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->CallingConvention = (::CppSharp::CppParser::AST::CallingConvention)value; + ((::CppSharp::CppParser::AST::FunctionType*)NativePtr)->callingConvention = (::CppSharp::CppParser::AST::CallingConvention)value; } unsigned int CppSharp::Parser::AST::FunctionType::ParametersCount::get() @@ -433,22 +433,22 @@ CppSharp::Parser::AST::PointerType::PointerType(CppSharp::Parser::AST::PointerTy CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::PointerType::QualifiedPointee::get() { - return (&((::CppSharp::CppParser::AST::PointerType*)NativePtr)->QualifiedPointee == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::PointerType*)NativePtr)->QualifiedPointee); + return (&((::CppSharp::CppParser::AST::PointerType*)NativePtr)->qualifiedPointee == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::PointerType*)NativePtr)->qualifiedPointee); } void CppSharp::Parser::AST::PointerType::QualifiedPointee::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::PointerType*)NativePtr)->QualifiedPointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::PointerType*)NativePtr)->qualifiedPointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::PointerType::TypeModifier CppSharp::Parser::AST::PointerType::Modifier::get() { - return (CppSharp::Parser::AST::PointerType::TypeModifier)((::CppSharp::CppParser::AST::PointerType*)NativePtr)->Modifier; + return (CppSharp::Parser::AST::PointerType::TypeModifier)((::CppSharp::CppParser::AST::PointerType*)NativePtr)->modifier; } void CppSharp::Parser::AST::PointerType::Modifier::set(CppSharp::Parser::AST::PointerType::TypeModifier value) { - ((::CppSharp::CppParser::AST::PointerType*)NativePtr)->Modifier = (::CppSharp::CppParser::AST::PointerType::TypeModifier)value; + ((::CppSharp::CppParser::AST::PointerType*)NativePtr)->modifier = (::CppSharp::CppParser::AST::PointerType::TypeModifier)value; } CppSharp::Parser::AST::MemberPointerType::MemberPointerType(::CppSharp::CppParser::AST::MemberPointerType* native) @@ -484,12 +484,12 @@ CppSharp::Parser::AST::MemberPointerType::MemberPointerType(CppSharp::Parser::AS CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::MemberPointerType::Pointee::get() { - return (&((::CppSharp::CppParser::AST::MemberPointerType*)NativePtr)->Pointee == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::MemberPointerType*)NativePtr)->Pointee); + return (&((::CppSharp::CppParser::AST::MemberPointerType*)NativePtr)->pointee == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::MemberPointerType*)NativePtr)->pointee); } void CppSharp::Parser::AST::MemberPointerType::Pointee::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::MemberPointerType*)NativePtr)->Pointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::MemberPointerType*)NativePtr)->pointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::TypedefType::TypedefType(::CppSharp::CppParser::AST::TypedefType* native) @@ -525,12 +525,12 @@ CppSharp::Parser::AST::TypedefType::TypedefType(CppSharp::Parser::AST::TypedefTy CppSharp::Parser::AST::TypedefNameDecl^ CppSharp::Parser::AST::TypedefType::Declaration::get() { - return (((::CppSharp::CppParser::AST::TypedefType*)NativePtr)->Declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TypedefNameDecl((::CppSharp::CppParser::AST::TypedefNameDecl*)((::CppSharp::CppParser::AST::TypedefType*)NativePtr)->Declaration); + return (((::CppSharp::CppParser::AST::TypedefType*)NativePtr)->declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TypedefNameDecl((::CppSharp::CppParser::AST::TypedefNameDecl*)((::CppSharp::CppParser::AST::TypedefType*)NativePtr)->declaration); } void CppSharp::Parser::AST::TypedefType::Declaration::set(CppSharp::Parser::AST::TypedefNameDecl^ value) { - ((::CppSharp::CppParser::AST::TypedefType*)NativePtr)->Declaration = (::CppSharp::CppParser::AST::TypedefNameDecl*)value->NativePtr; + ((::CppSharp::CppParser::AST::TypedefType*)NativePtr)->declaration = (::CppSharp::CppParser::AST::TypedefNameDecl*)value->NativePtr; } CppSharp::Parser::AST::AttributedType::AttributedType(::CppSharp::CppParser::AST::AttributedType* native) @@ -566,22 +566,22 @@ CppSharp::Parser::AST::AttributedType::AttributedType(CppSharp::Parser::AST::Att CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::AttributedType::Modified::get() { - return (&((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->Modified == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->Modified); + return (&((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->modified == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->modified); } void CppSharp::Parser::AST::AttributedType::Modified::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->Modified = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->modified = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::AttributedType::Equivalent::get() { - return (&((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->Equivalent == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->Equivalent); + return (&((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->equivalent == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->equivalent); } void CppSharp::Parser::AST::AttributedType::Equivalent::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->Equivalent = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::AttributedType*)NativePtr)->equivalent = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::DecayedType::DecayedType(::CppSharp::CppParser::AST::DecayedType* native) @@ -617,32 +617,32 @@ CppSharp::Parser::AST::DecayedType::DecayedType(CppSharp::Parser::AST::DecayedTy CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DecayedType::Decayed::get() { - return (&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Decayed == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Decayed); + return (&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->decayed == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->decayed); } void CppSharp::Parser::AST::DecayedType::Decayed::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Decayed = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->decayed = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DecayedType::Original::get() { - return (&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Original == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Original); + return (&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->original == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->original); } void CppSharp::Parser::AST::DecayedType::Original::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Original = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->original = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DecayedType::Pointee::get() { - return (&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Pointee == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Pointee); + return (&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->pointee == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->pointee); } void CppSharp::Parser::AST::DecayedType::Pointee::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->Pointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::DecayedType*)NativePtr)->pointee = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::TemplateArgument::TemplateArgument(::CppSharp::CppParser::AST::TemplateArgument* native) @@ -688,42 +688,42 @@ void CppSharp::Parser::AST::TemplateArgument::__Instance::set(System::IntPtr obj CppSharp::Parser::AST::TemplateArgument::ArgumentKind CppSharp::Parser::AST::TemplateArgument::Kind::get() { - return (CppSharp::Parser::AST::TemplateArgument::ArgumentKind)((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Kind; + return (CppSharp::Parser::AST::TemplateArgument::ArgumentKind)((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->kind; } void CppSharp::Parser::AST::TemplateArgument::Kind::set(CppSharp::Parser::AST::TemplateArgument::ArgumentKind value) { - ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Kind = (::CppSharp::CppParser::AST::TemplateArgument::ArgumentKind)value; + ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->kind = (::CppSharp::CppParser::AST::TemplateArgument::ArgumentKind)value; } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TemplateArgument::Type::get() { - return (&((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Type == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Type); + return (&((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->type == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->type); } void CppSharp::Parser::AST::TemplateArgument::Type::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Type = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->type = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::TemplateArgument::Declaration::get() { - return (((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Declaration); + return (((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->declaration); } void CppSharp::Parser::AST::TemplateArgument::Declaration::set(CppSharp::Parser::AST::Declaration^ value) { - ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Declaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; + ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->declaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; } long CppSharp::Parser::AST::TemplateArgument::Integral::get() { - return ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Integral; + return ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->integral; } void CppSharp::Parser::AST::TemplateArgument::Integral::set(long value) { - ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->Integral = value; + ((::CppSharp::CppParser::AST::TemplateArgument*)NativePtr)->integral = value; } CppSharp::Parser::AST::TemplateSpecializationType::TemplateSpecializationType(::CppSharp::CppParser::AST::TemplateSpecializationType* native) @@ -785,22 +785,22 @@ void CppSharp::Parser::AST::TemplateSpecializationType::ClearArguments() CppSharp::Parser::AST::Template^ CppSharp::Parser::AST::TemplateSpecializationType::Template::get() { - return (((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->Template == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Template((::CppSharp::CppParser::AST::Template*)((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->Template); + return (((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->_template == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Template((::CppSharp::CppParser::AST::Template*)((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->_template); } void CppSharp::Parser::AST::TemplateSpecializationType::Template::set(CppSharp::Parser::AST::Template^ value) { - ((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->Template = (::CppSharp::CppParser::AST::Template*)value->NativePtr; + ((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->_template = (::CppSharp::CppParser::AST::Template*)value->NativePtr; } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TemplateSpecializationType::Desugared::get() { - return (&((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->Desugared == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->Desugared); + return (&((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->desugared == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->desugared); } void CppSharp::Parser::AST::TemplateSpecializationType::Desugared::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->Desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::TemplateSpecializationType*)NativePtr)->desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } unsigned int CppSharp::Parser::AST::TemplateSpecializationType::ArgumentsCount::get() @@ -868,12 +868,12 @@ void CppSharp::Parser::AST::DependentTemplateSpecializationType::ClearArguments( CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DependentTemplateSpecializationType::Desugared::get() { - return (&((::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->Desugared == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->Desugared); + return (&((::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->desugared == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->desugared); } void CppSharp::Parser::AST::DependentTemplateSpecializationType::Desugared::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->Desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::DependentTemplateSpecializationType*)NativePtr)->desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } unsigned int CppSharp::Parser::AST::DependentTemplateSpecializationType::ArgumentsCount::get() @@ -921,42 +921,42 @@ CppSharp::Parser::AST::TemplateParameterType::TemplateParameterType(CppSharp::Pa CppSharp::Parser::AST::TypeTemplateParameter^ CppSharp::Parser::AST::TemplateParameterType::Parameter::get() { - return (((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->Parameter == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TypeTemplateParameter((::CppSharp::CppParser::AST::TypeTemplateParameter*)((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->Parameter); + return (((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->parameter == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TypeTemplateParameter((::CppSharp::CppParser::AST::TypeTemplateParameter*)((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->parameter); } void CppSharp::Parser::AST::TemplateParameterType::Parameter::set(CppSharp::Parser::AST::TypeTemplateParameter^ value) { - ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->Parameter = (::CppSharp::CppParser::AST::TypeTemplateParameter*)value->NativePtr; + ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->parameter = (::CppSharp::CppParser::AST::TypeTemplateParameter*)value->NativePtr; } unsigned int CppSharp::Parser::AST::TemplateParameterType::Depth::get() { - return ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->Depth; + return ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->depth; } void CppSharp::Parser::AST::TemplateParameterType::Depth::set(unsigned int value) { - ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->Depth = value; + ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->depth = value; } unsigned int CppSharp::Parser::AST::TemplateParameterType::Index::get() { - return ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->Index; + return ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->index; } void CppSharp::Parser::AST::TemplateParameterType::Index::set(unsigned int value) { - ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->Index = value; + ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->index = value; } bool CppSharp::Parser::AST::TemplateParameterType::IsParameterPack::get() { - return ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->IsParameterPack; + return ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->isParameterPack; } void CppSharp::Parser::AST::TemplateParameterType::IsParameterPack::set(bool value) { - ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->IsParameterPack = value; + ((::CppSharp::CppParser::AST::TemplateParameterType*)NativePtr)->isParameterPack = value; } CppSharp::Parser::AST::TemplateParameterSubstitutionType::TemplateParameterSubstitutionType(::CppSharp::CppParser::AST::TemplateParameterSubstitutionType* native) @@ -992,22 +992,22 @@ CppSharp::Parser::AST::TemplateParameterSubstitutionType::TemplateParameterSubst CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TemplateParameterSubstitutionType::Replacement::get() { - return (&((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->Replacement == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->Replacement); + return (&((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->replacement == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->replacement); } void CppSharp::Parser::AST::TemplateParameterSubstitutionType::Replacement::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->Replacement = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->replacement = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::TemplateParameterType^ CppSharp::Parser::AST::TemplateParameterSubstitutionType::ReplacedParameter::get() { - return (((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->ReplacedParameter == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TemplateParameterType((::CppSharp::CppParser::AST::TemplateParameterType*)((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->ReplacedParameter); + return (((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->replacedParameter == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TemplateParameterType((::CppSharp::CppParser::AST::TemplateParameterType*)((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->replacedParameter); } void CppSharp::Parser::AST::TemplateParameterSubstitutionType::ReplacedParameter::set(CppSharp::Parser::AST::TemplateParameterType^ value) { - ((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->ReplacedParameter = (::CppSharp::CppParser::AST::TemplateParameterType*)value->NativePtr; + ((::CppSharp::CppParser::AST::TemplateParameterSubstitutionType*)NativePtr)->replacedParameter = (::CppSharp::CppParser::AST::TemplateParameterType*)value->NativePtr; } CppSharp::Parser::AST::InjectedClassNameType::InjectedClassNameType(::CppSharp::CppParser::AST::InjectedClassNameType* native) @@ -1043,22 +1043,22 @@ CppSharp::Parser::AST::InjectedClassNameType::InjectedClassNameType(CppSharp::Pa CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::InjectedClassNameType::InjectedSpecializationType::get() { - return (&((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->InjectedSpecializationType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->InjectedSpecializationType); + return (&((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->injectedSpecializationType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->injectedSpecializationType); } void CppSharp::Parser::AST::InjectedClassNameType::InjectedSpecializationType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->InjectedSpecializationType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->injectedSpecializationType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::Class^ CppSharp::Parser::AST::InjectedClassNameType::Class::get() { - return (((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->Class == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Class((::CppSharp::CppParser::AST::Class*)((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->Class); + return (((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->_class == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Class((::CppSharp::CppParser::AST::Class*)((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->_class); } void CppSharp::Parser::AST::InjectedClassNameType::Class::set(CppSharp::Parser::AST::Class^ value) { - ((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->Class = (::CppSharp::CppParser::AST::Class*)value->NativePtr; + ((::CppSharp::CppParser::AST::InjectedClassNameType*)NativePtr)->_class = (::CppSharp::CppParser::AST::Class*)value->NativePtr; } CppSharp::Parser::AST::DependentNameType::DependentNameType(::CppSharp::CppParser::AST::DependentNameType* native) @@ -1094,12 +1094,12 @@ CppSharp::Parser::AST::DependentNameType::DependentNameType(CppSharp::Parser::AS CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::DependentNameType::Desugared::get() { - return (&((::CppSharp::CppParser::AST::DependentNameType*)NativePtr)->Desugared == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DependentNameType*)NativePtr)->Desugared); + return (&((::CppSharp::CppParser::AST::DependentNameType*)NativePtr)->desugared == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::DependentNameType*)NativePtr)->desugared); } void CppSharp::Parser::AST::DependentNameType::Desugared::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::DependentNameType*)NativePtr)->Desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::DependentNameType*)NativePtr)->desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::PackExpansionType::PackExpansionType(::CppSharp::CppParser::AST::PackExpansionType* native) @@ -1166,22 +1166,22 @@ CppSharp::Parser::AST::UnaryTransformType::UnaryTransformType(CppSharp::Parser:: CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::UnaryTransformType::Desugared::get() { - return (&((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->Desugared == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->Desugared); + return (&((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->desugared == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->desugared); } void CppSharp::Parser::AST::UnaryTransformType::Desugared::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->Desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->desugared = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::UnaryTransformType::BaseType::get() { - return (&((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->BaseType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->BaseType); + return (&((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->baseType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->baseType); } void CppSharp::Parser::AST::UnaryTransformType::BaseType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->BaseType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::UnaryTransformType*)NativePtr)->baseType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::VectorType::VectorType(::CppSharp::CppParser::AST::VectorType* native) @@ -1217,22 +1217,22 @@ CppSharp::Parser::AST::VectorType::VectorType(CppSharp::Parser::AST::VectorType^ CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::VectorType::ElementType::get() { - return (&((::CppSharp::CppParser::AST::VectorType*)NativePtr)->ElementType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::VectorType*)NativePtr)->ElementType); + return (&((::CppSharp::CppParser::AST::VectorType*)NativePtr)->elementType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::VectorType*)NativePtr)->elementType); } void CppSharp::Parser::AST::VectorType::ElementType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::VectorType*)NativePtr)->ElementType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::VectorType*)NativePtr)->elementType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } unsigned int CppSharp::Parser::AST::VectorType::NumElements::get() { - return ((::CppSharp::CppParser::AST::VectorType*)NativePtr)->NumElements; + return ((::CppSharp::CppParser::AST::VectorType*)NativePtr)->numElements; } void CppSharp::Parser::AST::VectorType::NumElements::set(unsigned int value) { - ((::CppSharp::CppParser::AST::VectorType*)NativePtr)->NumElements = value; + ((::CppSharp::CppParser::AST::VectorType*)NativePtr)->numElements = value; } CppSharp::Parser::AST::BuiltinType::BuiltinType(::CppSharp::CppParser::AST::BuiltinType* native) @@ -1268,12 +1268,12 @@ CppSharp::Parser::AST::BuiltinType::BuiltinType(CppSharp::Parser::AST::BuiltinTy CppSharp::Parser::AST::PrimitiveType CppSharp::Parser::AST::BuiltinType::Type::get() { - return (CppSharp::Parser::AST::PrimitiveType)((::CppSharp::CppParser::AST::BuiltinType*)NativePtr)->Type; + return (CppSharp::Parser::AST::PrimitiveType)((::CppSharp::CppParser::AST::BuiltinType*)NativePtr)->type; } void CppSharp::Parser::AST::BuiltinType::Type::set(CppSharp::Parser::AST::PrimitiveType value) { - ((::CppSharp::CppParser::AST::BuiltinType*)NativePtr)->Type = (::CppSharp::CppParser::AST::PrimitiveType)value; + ((::CppSharp::CppParser::AST::BuiltinType*)NativePtr)->type = (::CppSharp::CppParser::AST::PrimitiveType)value; } CppSharp::Parser::AST::VTableComponent::VTableComponent(::CppSharp::CppParser::AST::VTableComponent* native) @@ -1319,32 +1319,32 @@ void CppSharp::Parser::AST::VTableComponent::__Instance::set(System::IntPtr obje CppSharp::Parser::AST::VTableComponentKind CppSharp::Parser::AST::VTableComponent::Kind::get() { - return (CppSharp::Parser::AST::VTableComponentKind)((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->Kind; + return (CppSharp::Parser::AST::VTableComponentKind)((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->kind; } void CppSharp::Parser::AST::VTableComponent::Kind::set(CppSharp::Parser::AST::VTableComponentKind value) { - ((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->Kind = (::CppSharp::CppParser::AST::VTableComponentKind)value; + ((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->kind = (::CppSharp::CppParser::AST::VTableComponentKind)value; } unsigned int CppSharp::Parser::AST::VTableComponent::Offset::get() { - return ((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->Offset; + return ((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->offset; } void CppSharp::Parser::AST::VTableComponent::Offset::set(unsigned int value) { - ((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->Offset = value; + ((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->offset = value; } CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::VTableComponent::Declaration::get() { - return (((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->Declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->Declaration); + return (((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->declaration); } void CppSharp::Parser::AST::VTableComponent::Declaration::set(CppSharp::Parser::AST::Declaration^ value) { - ((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->Declaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; + ((::CppSharp::CppParser::AST::VTableComponent*)NativePtr)->declaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; } CppSharp::Parser::AST::VTableLayout::VTableLayout(::CppSharp::CppParser::AST::VTableLayout* native) @@ -1487,12 +1487,12 @@ void CppSharp::Parser::AST::VFTableInfo::VFPtrFullOffset::set(unsigned int value CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::VFTableInfo::Layout::get() { - return (&((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->Layout == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VTableLayout((::CppSharp::CppParser::AST::VTableLayout*)&((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->Layout); + return (&((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->layout == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VTableLayout((::CppSharp::CppParser::AST::VTableLayout*)&((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->layout); } void CppSharp::Parser::AST::VFTableInfo::Layout::set(CppSharp::Parser::AST::VTableLayout^ value) { - ((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->Layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr; + ((::CppSharp::CppParser::AST::VFTableInfo*)NativePtr)->layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr; } CppSharp::Parser::AST::LayoutField::LayoutField(::CppSharp::CppParser::AST::LayoutField* native) @@ -1538,32 +1538,32 @@ void CppSharp::Parser::AST::LayoutField::__Instance::set(System::IntPtr object) unsigned int CppSharp::Parser::AST::LayoutField::Offset::get() { - return ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->Offset; + return ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->offset; } void CppSharp::Parser::AST::LayoutField::Offset::set(unsigned int value) { - ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->Offset = value; + ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->offset = value; } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::LayoutField::QualifiedType::get() { - return (&((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->QualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->QualifiedType); + return (&((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->qualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->qualifiedType); } void CppSharp::Parser::AST::LayoutField::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->QualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } ::System::IntPtr CppSharp::Parser::AST::LayoutField::FieldPtr::get() { - return ::System::IntPtr(((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->FieldPtr); + return ::System::IntPtr(((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->fieldPtr); } void CppSharp::Parser::AST::LayoutField::FieldPtr::set(::System::IntPtr value) { - ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->FieldPtr = (void*)value; + ((::CppSharp::CppParser::AST::LayoutField*)NativePtr)->fieldPtr = (void*)value; } System::String^ CppSharp::Parser::AST::LayoutField::Name::get() @@ -1623,22 +1623,22 @@ void CppSharp::Parser::AST::LayoutBase::__Instance::set(System::IntPtr object) unsigned int CppSharp::Parser::AST::LayoutBase::Offset::get() { - return ((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->Offset; + return ((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->offset; } void CppSharp::Parser::AST::LayoutBase::Offset::set(unsigned int value) { - ((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->Offset = value; + ((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->offset = value; } CppSharp::Parser::AST::Class^ CppSharp::Parser::AST::LayoutBase::Class::get() { - return (((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->Class == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Class((::CppSharp::CppParser::AST::Class*)((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->Class); + return (((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->_class == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Class((::CppSharp::CppParser::AST::Class*)((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->_class); } void CppSharp::Parser::AST::LayoutBase::Class::set(CppSharp::Parser::AST::Class^ value) { - ((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->Class = (::CppSharp::CppParser::AST::Class*)value->NativePtr; + ((::CppSharp::CppParser::AST::LayoutBase*)NativePtr)->_class = (::CppSharp::CppParser::AST::Class*)value->NativePtr; } CppSharp::Parser::AST::ClassLayout::ClassLayout(::CppSharp::CppParser::AST::ClassLayout* native) @@ -1754,22 +1754,22 @@ void CppSharp::Parser::AST::ClassLayout::ABI::set(CppSharp::Parser::AST::CppAbi CppSharp::Parser::AST::VTableLayout^ CppSharp::Parser::AST::ClassLayout::Layout::get() { - return (&((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->Layout == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VTableLayout((::CppSharp::CppParser::AST::VTableLayout*)&((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->Layout); + return (&((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->layout == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VTableLayout((::CppSharp::CppParser::AST::VTableLayout*)&((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->layout); } void CppSharp::Parser::AST::ClassLayout::Layout::set(CppSharp::Parser::AST::VTableLayout^ value) { - ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->Layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr; + ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->layout = *(::CppSharp::CppParser::AST::VTableLayout*)value->NativePtr; } bool CppSharp::Parser::AST::ClassLayout::HasOwnVFPtr::get() { - return ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->HasOwnVFPtr; + return ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->hasOwnVFPtr; } void CppSharp::Parser::AST::ClassLayout::HasOwnVFPtr::set(bool value) { - ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->HasOwnVFPtr = value; + ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->hasOwnVFPtr = value; } long CppSharp::Parser::AST::ClassLayout::VBPtrOffset::get() @@ -1784,32 +1784,32 @@ void CppSharp::Parser::AST::ClassLayout::VBPtrOffset::set(long value) int CppSharp::Parser::AST::ClassLayout::Alignment::get() { - return ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->Alignment; + return ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->alignment; } void CppSharp::Parser::AST::ClassLayout::Alignment::set(int value) { - ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->Alignment = value; + ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->alignment = value; } int CppSharp::Parser::AST::ClassLayout::Size::get() { - return ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->Size; + return ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->size; } void CppSharp::Parser::AST::ClassLayout::Size::set(int value) { - ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->Size = value; + ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->size = value; } int CppSharp::Parser::AST::ClassLayout::DataSize::get() { - return ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->DataSize; + return ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->dataSize; } void CppSharp::Parser::AST::ClassLayout::DataSize::set(int value) { - ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->DataSize = value; + ((::CppSharp::CppParser::AST::ClassLayout*)NativePtr)->dataSize = value; } unsigned int CppSharp::Parser::AST::ClassLayout::VFTablesCount::get() @@ -1902,134 +1902,134 @@ void CppSharp::Parser::AST::Declaration::__Instance::set(System::IntPtr object) CppSharp::Parser::AST::DeclarationKind CppSharp::Parser::AST::Declaration::Kind::get() { - return (CppSharp::Parser::AST::DeclarationKind)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Kind; + return (CppSharp::Parser::AST::DeclarationKind)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->kind; } void CppSharp::Parser::AST::Declaration::Kind::set(CppSharp::Parser::AST::DeclarationKind value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Kind = (::CppSharp::CppParser::AST::DeclarationKind)value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->kind = (::CppSharp::CppParser::AST::DeclarationKind)value; } CppSharp::Parser::AST::AccessSpecifier CppSharp::Parser::AST::Declaration::Access::get() { - return (CppSharp::Parser::AST::AccessSpecifier)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Access; + return (CppSharp::Parser::AST::AccessSpecifier)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->access; } void CppSharp::Parser::AST::Declaration::Access::set(CppSharp::Parser::AST::AccessSpecifier value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Access = (::CppSharp::CppParser::AST::AccessSpecifier)value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->access = (::CppSharp::CppParser::AST::AccessSpecifier)value; } CppSharp::Parser::AST::DeclarationContext^ CppSharp::Parser::AST::Declaration::Namespace::get() { - return (((::CppSharp::CppParser::AST::Declaration*)NativePtr)->_Namespace == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::DeclarationContext((::CppSharp::CppParser::AST::DeclarationContext*)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->_Namespace); + return (((::CppSharp::CppParser::AST::Declaration*)NativePtr)->_namespace == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::DeclarationContext((::CppSharp::CppParser::AST::DeclarationContext*)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->_namespace); } void CppSharp::Parser::AST::Declaration::Namespace::set(CppSharp::Parser::AST::DeclarationContext^ value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->_Namespace = (::CppSharp::CppParser::AST::DeclarationContext*)value->NativePtr; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->_namespace = (::CppSharp::CppParser::AST::DeclarationContext*)value->NativePtr; } CppSharp::Parser::SourceLocation CppSharp::Parser::AST::Declaration::Location::get() { - return CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Location); + return CppSharp::Parser::SourceLocation((::CppSharp::CppParser::SourceLocation*)&((::CppSharp::CppParser::AST::Declaration*)NativePtr)->location); } void CppSharp::Parser::AST::Declaration::Location::set(CppSharp::Parser::SourceLocation value) { auto _marshal0 = ::CppSharp::CppParser::SourceLocation(); _marshal0.ID = value.ID; - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Location = _marshal0; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->location = _marshal0; } int CppSharp::Parser::AST::Declaration::LineNumberStart::get() { - return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->LineNumberStart; + return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->lineNumberStart; } void CppSharp::Parser::AST::Declaration::LineNumberStart::set(int value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->LineNumberStart = value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->lineNumberStart = value; } int CppSharp::Parser::AST::Declaration::LineNumberEnd::get() { - return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->LineNumberEnd; + return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->lineNumberEnd; } void CppSharp::Parser::AST::Declaration::LineNumberEnd::set(int value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->LineNumberEnd = value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->lineNumberEnd = value; } bool CppSharp::Parser::AST::Declaration::IsIncomplete::get() { - return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->IsIncomplete; + return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->isIncomplete; } void CppSharp::Parser::AST::Declaration::IsIncomplete::set(bool value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->IsIncomplete = value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->isIncomplete = value; } bool CppSharp::Parser::AST::Declaration::IsDependent::get() { - return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->IsDependent; + return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->isDependent; } void CppSharp::Parser::AST::Declaration::IsDependent::set(bool value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->IsDependent = value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->isDependent = value; } bool CppSharp::Parser::AST::Declaration::IsImplicit::get() { - return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->IsImplicit; + return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->isImplicit; } void CppSharp::Parser::AST::Declaration::IsImplicit::set(bool value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->IsImplicit = value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->isImplicit = value; } CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Declaration::CompleteDeclaration::get() { - return (((::CppSharp::CppParser::AST::Declaration*)NativePtr)->CompleteDeclaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->CompleteDeclaration); + return (((::CppSharp::CppParser::AST::Declaration*)NativePtr)->completeDeclaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->completeDeclaration); } void CppSharp::Parser::AST::Declaration::CompleteDeclaration::set(CppSharp::Parser::AST::Declaration^ value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->CompleteDeclaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->completeDeclaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; } unsigned int CppSharp::Parser::AST::Declaration::DefinitionOrder::get() { - return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->DefinitionOrder; + return ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->definitionOrder; } void CppSharp::Parser::AST::Declaration::DefinitionOrder::set(unsigned int value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->DefinitionOrder = value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->definitionOrder = value; } ::System::IntPtr CppSharp::Parser::AST::Declaration::OriginalPtr::get() { - return ::System::IntPtr(((::CppSharp::CppParser::AST::Declaration*)NativePtr)->OriginalPtr); + return ::System::IntPtr(((::CppSharp::CppParser::AST::Declaration*)NativePtr)->originalPtr); } void CppSharp::Parser::AST::Declaration::OriginalPtr::set(::System::IntPtr value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->OriginalPtr = (void*)value; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->originalPtr = (void*)value; } CppSharp::Parser::AST::RawComment^ CppSharp::Parser::AST::Declaration::Comment::get() { - return (((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Comment == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::RawComment((::CppSharp::CppParser::AST::RawComment*)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Comment); + return (((::CppSharp::CppParser::AST::Declaration*)NativePtr)->comment == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::RawComment((::CppSharp::CppParser::AST::RawComment*)((::CppSharp::CppParser::AST::Declaration*)NativePtr)->comment); } void CppSharp::Parser::AST::Declaration::Comment::set(CppSharp::Parser::AST::RawComment^ value) { - ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->Comment = (::CppSharp::CppParser::AST::RawComment*)value->NativePtr; + ((::CppSharp::CppParser::AST::Declaration*)NativePtr)->comment = (::CppSharp::CppParser::AST::RawComment*)value->NativePtr; } System::String^ CppSharp::Parser::AST::Declaration::Name::get() @@ -2308,12 +2308,12 @@ CppSharp::Parser::AST::DeclarationContext::operator CppSharp::Parser::AST::Decla bool CppSharp::Parser::AST::DeclarationContext::IsAnonymous::get() { - return ((::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->IsAnonymous; + return ((::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->isAnonymous; } void CppSharp::Parser::AST::DeclarationContext::IsAnonymous::set(bool value) { - ((::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->IsAnonymous = value; + ((::CppSharp::CppParser::AST::DeclarationContext*)NativePtr)->isAnonymous = value; } unsigned int CppSharp::Parser::AST::DeclarationContext::NamespacesCount::get() @@ -2418,12 +2418,12 @@ CppSharp::Parser::AST::TypedefNameDecl::operator CppSharp::Parser::AST::TypedefN CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypedefNameDecl::QualifiedType::get() { - return (&((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->QualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->QualifiedType); + return (&((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->qualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->qualifiedType); } void CppSharp::Parser::AST::TypedefNameDecl::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->QualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::TypedefNameDecl*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::TypedefDecl::TypedefDecl(::CppSharp::CppParser::AST::TypedefDecl* native) @@ -2502,12 +2502,12 @@ CppSharp::Parser::AST::TypeAlias::TypeAlias(CppSharp::Parser::AST::TypeAlias^ _0 CppSharp::Parser::AST::TypeAliasTemplate^ CppSharp::Parser::AST::TypeAlias::DescribedAliasTemplate::get() { - return (((::CppSharp::CppParser::AST::TypeAlias*)NativePtr)->DescribedAliasTemplate == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TypeAliasTemplate((::CppSharp::CppParser::AST::TypeAliasTemplate*)((::CppSharp::CppParser::AST::TypeAlias*)NativePtr)->DescribedAliasTemplate); + return (((::CppSharp::CppParser::AST::TypeAlias*)NativePtr)->describedAliasTemplate == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::TypeAliasTemplate((::CppSharp::CppParser::AST::TypeAliasTemplate*)((::CppSharp::CppParser::AST::TypeAlias*)NativePtr)->describedAliasTemplate); } void CppSharp::Parser::AST::TypeAlias::DescribedAliasTemplate::set(CppSharp::Parser::AST::TypeAliasTemplate^ value) { - ((::CppSharp::CppParser::AST::TypeAlias*)NativePtr)->DescribedAliasTemplate = (::CppSharp::CppParser::AST::TypeAliasTemplate*)value->NativePtr; + ((::CppSharp::CppParser::AST::TypeAlias*)NativePtr)->describedAliasTemplate = (::CppSharp::CppParser::AST::TypeAliasTemplate*)value->NativePtr; } CppSharp::Parser::AST::Friend::Friend(::CppSharp::CppParser::AST::Friend* native) @@ -2549,12 +2549,12 @@ CppSharp::Parser::AST::Friend::Friend(CppSharp::Parser::AST::Friend^ _0) CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Friend::Declaration::get() { - return (((::CppSharp::CppParser::AST::Friend*)NativePtr)->Declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::Friend*)NativePtr)->Declaration); + return (((::CppSharp::CppParser::AST::Friend*)NativePtr)->declaration == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::Friend*)NativePtr)->declaration); } void CppSharp::Parser::AST::Friend::Declaration::set(CppSharp::Parser::AST::Declaration^ value) { - ((::CppSharp::CppParser::AST::Friend*)NativePtr)->Declaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; + ((::CppSharp::CppParser::AST::Friend*)NativePtr)->declaration = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; } CppSharp::Parser::AST::Statement::Statement(::CppSharp::CppParser::AST::Statement* native) @@ -2594,22 +2594,22 @@ void CppSharp::Parser::AST::Statement::__Instance::set(System::IntPtr object) CppSharp::Parser::AST::StatementClass CppSharp::Parser::AST::Statement::Class::get() { - return (CppSharp::Parser::AST::StatementClass)((::CppSharp::CppParser::AST::Statement*)NativePtr)->Class; + return (CppSharp::Parser::AST::StatementClass)((::CppSharp::CppParser::AST::Statement*)NativePtr)->_class; } void CppSharp::Parser::AST::Statement::Class::set(CppSharp::Parser::AST::StatementClass value) { - ((::CppSharp::CppParser::AST::Statement*)NativePtr)->Class = (::CppSharp::CppParser::AST::StatementClass)value; + ((::CppSharp::CppParser::AST::Statement*)NativePtr)->_class = (::CppSharp::CppParser::AST::StatementClass)value; } CppSharp::Parser::AST::Declaration^ CppSharp::Parser::AST::Statement::Decl::get() { - return (((::CppSharp::CppParser::AST::Statement*)NativePtr)->Decl == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::Statement*)NativePtr)->Decl); + return (((::CppSharp::CppParser::AST::Statement*)NativePtr)->decl == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Declaration((::CppSharp::CppParser::AST::Declaration*)((::CppSharp::CppParser::AST::Statement*)NativePtr)->decl); } void CppSharp::Parser::AST::Statement::Decl::set(CppSharp::Parser::AST::Declaration^ value) { - ((::CppSharp::CppParser::AST::Statement*)NativePtr)->Decl = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; + ((::CppSharp::CppParser::AST::Statement*)NativePtr)->decl = (::CppSharp::CppParser::AST::Declaration*)value->NativePtr; } System::String^ CppSharp::Parser::AST::Statement::String::get() @@ -2871,52 +2871,52 @@ CppSharp::Parser::AST::Parameter::Parameter(CppSharp::Parser::AST::Parameter^ _0 CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Parameter::QualifiedType::get() { - return (&((::CppSharp::CppParser::AST::Parameter*)NativePtr)->QualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Parameter*)NativePtr)->QualifiedType); + return (&((::CppSharp::CppParser::AST::Parameter*)NativePtr)->qualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Parameter*)NativePtr)->qualifiedType); } void CppSharp::Parser::AST::Parameter::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->QualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } bool CppSharp::Parser::AST::Parameter::IsIndirect::get() { - return ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->IsIndirect; + return ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->isIndirect; } void CppSharp::Parser::AST::Parameter::IsIndirect::set(bool value) { - ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->IsIndirect = value; + ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->isIndirect = value; } bool CppSharp::Parser::AST::Parameter::HasDefaultValue::get() { - return ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->HasDefaultValue; + return ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->hasDefaultValue; } void CppSharp::Parser::AST::Parameter::HasDefaultValue::set(bool value) { - ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->HasDefaultValue = value; + ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->hasDefaultValue = value; } unsigned int CppSharp::Parser::AST::Parameter::Index::get() { - return ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->Index; + return ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->index; } void CppSharp::Parser::AST::Parameter::Index::set(unsigned int value) { - ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->Index = value; + ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->index = value; } CppSharp::Parser::AST::Expression^ CppSharp::Parser::AST::Parameter::DefaultArgument::get() { - return (((::CppSharp::CppParser::AST::Parameter*)NativePtr)->DefaultArgument == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Expression((::CppSharp::CppParser::AST::Expression*)((::CppSharp::CppParser::AST::Parameter*)NativePtr)->DefaultArgument); + return (((::CppSharp::CppParser::AST::Parameter*)NativePtr)->defaultArgument == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Expression((::CppSharp::CppParser::AST::Expression*)((::CppSharp::CppParser::AST::Parameter*)NativePtr)->defaultArgument); } void CppSharp::Parser::AST::Parameter::DefaultArgument::set(CppSharp::Parser::AST::Expression^ value) { - ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->DefaultArgument = (::CppSharp::CppParser::AST::Expression*)value->NativePtr; + ((::CppSharp::CppParser::AST::Parameter*)NativePtr)->defaultArgument = (::CppSharp::CppParser::AST::Expression*)value->NativePtr; } CppSharp::Parser::AST::Function::Function(::CppSharp::CppParser::AST::Function* native) @@ -2978,72 +2978,72 @@ CppSharp::Parser::AST::Function::Function(CppSharp::Parser::AST::Function^ _0) CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Function::ReturnType::get() { - return (&((::CppSharp::CppParser::AST::Function*)NativePtr)->ReturnType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Function*)NativePtr)->ReturnType); + return (&((::CppSharp::CppParser::AST::Function*)NativePtr)->returnType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Function*)NativePtr)->returnType); } void CppSharp::Parser::AST::Function::ReturnType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->ReturnType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->returnType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } bool CppSharp::Parser::AST::Function::IsReturnIndirect::get() { - return ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsReturnIndirect; + return ((::CppSharp::CppParser::AST::Function*)NativePtr)->isReturnIndirect; } void CppSharp::Parser::AST::Function::IsReturnIndirect::set(bool value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsReturnIndirect = value; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->isReturnIndirect = value; } bool CppSharp::Parser::AST::Function::HasThisReturn::get() { - return ((::CppSharp::CppParser::AST::Function*)NativePtr)->HasThisReturn; + return ((::CppSharp::CppParser::AST::Function*)NativePtr)->hasThisReturn; } void CppSharp::Parser::AST::Function::HasThisReturn::set(bool value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->HasThisReturn = value; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->hasThisReturn = value; } bool CppSharp::Parser::AST::Function::IsVariadic::get() { - return ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsVariadic; + return ((::CppSharp::CppParser::AST::Function*)NativePtr)->isVariadic; } void CppSharp::Parser::AST::Function::IsVariadic::set(bool value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsVariadic = value; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->isVariadic = value; } bool CppSharp::Parser::AST::Function::IsInline::get() { - return ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsInline; + return ((::CppSharp::CppParser::AST::Function*)NativePtr)->isInline; } void CppSharp::Parser::AST::Function::IsInline::set(bool value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsInline = value; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->isInline = value; } bool CppSharp::Parser::AST::Function::IsPure::get() { - return ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsPure; + return ((::CppSharp::CppParser::AST::Function*)NativePtr)->isPure; } void CppSharp::Parser::AST::Function::IsPure::set(bool value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsPure = value; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->isPure = value; } bool CppSharp::Parser::AST::Function::IsDeleted::get() { - return ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsDeleted; + return ((::CppSharp::CppParser::AST::Function*)NativePtr)->isDeleted; } void CppSharp::Parser::AST::Function::IsDeleted::set(bool value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->IsDeleted = value; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->isDeleted = value; } CppSharp::Parser::AST::CXXOperatorKind CppSharp::Parser::AST::Function::OperatorKind::get() @@ -3058,32 +3058,32 @@ void CppSharp::Parser::AST::Function::OperatorKind::set(CppSharp::Parser::AST::C CppSharp::Parser::AST::CallingConvention CppSharp::Parser::AST::Function::CallingConvention::get() { - return (CppSharp::Parser::AST::CallingConvention)((::CppSharp::CppParser::AST::Function*)NativePtr)->CallingConvention; + return (CppSharp::Parser::AST::CallingConvention)((::CppSharp::CppParser::AST::Function*)NativePtr)->callingConvention; } void CppSharp::Parser::AST::Function::CallingConvention::set(CppSharp::Parser::AST::CallingConvention value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->CallingConvention = (::CppSharp::CppParser::AST::CallingConvention)value; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->callingConvention = (::CppSharp::CppParser::AST::CallingConvention)value; } CppSharp::Parser::AST::FunctionTemplateSpecialization^ CppSharp::Parser::AST::Function::SpecializationInfo::get() { - return (((::CppSharp::CppParser::AST::Function*)NativePtr)->SpecializationInfo == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::FunctionTemplateSpecialization((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)((::CppSharp::CppParser::AST::Function*)NativePtr)->SpecializationInfo); + return (((::CppSharp::CppParser::AST::Function*)NativePtr)->specializationInfo == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::FunctionTemplateSpecialization((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)((::CppSharp::CppParser::AST::Function*)NativePtr)->specializationInfo); } void CppSharp::Parser::AST::Function::SpecializationInfo::set(CppSharp::Parser::AST::FunctionTemplateSpecialization^ value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->SpecializationInfo = (::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)value->NativePtr; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->specializationInfo = (::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)value->NativePtr; } CppSharp::Parser::AST::Function^ CppSharp::Parser::AST::Function::InstantiatedFrom::get() { - return (((::CppSharp::CppParser::AST::Function*)NativePtr)->InstantiatedFrom == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Function((::CppSharp::CppParser::AST::Function*)((::CppSharp::CppParser::AST::Function*)NativePtr)->InstantiatedFrom); + return (((::CppSharp::CppParser::AST::Function*)NativePtr)->instantiatedFrom == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Function((::CppSharp::CppParser::AST::Function*)((::CppSharp::CppParser::AST::Function*)NativePtr)->instantiatedFrom); } void CppSharp::Parser::AST::Function::InstantiatedFrom::set(CppSharp::Parser::AST::Function^ value) { - ((::CppSharp::CppParser::AST::Function*)NativePtr)->InstantiatedFrom = (::CppSharp::CppParser::AST::Function*)value->NativePtr; + ((::CppSharp::CppParser::AST::Function*)NativePtr)->instantiatedFrom = (::CppSharp::CppParser::AST::Function*)value->NativePtr; } System::String^ CppSharp::Parser::AST::Function::Mangled::get() @@ -3159,112 +3159,112 @@ CppSharp::Parser::AST::Method::Method(CppSharp::Parser::AST::Method^ _0) bool CppSharp::Parser::AST::Method::IsVirtual::get() { - return ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsVirtual; + return ((::CppSharp::CppParser::AST::Method*)NativePtr)->isVirtual; } void CppSharp::Parser::AST::Method::IsVirtual::set(bool value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsVirtual = value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->isVirtual = value; } bool CppSharp::Parser::AST::Method::IsStatic::get() { - return ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsStatic; + return ((::CppSharp::CppParser::AST::Method*)NativePtr)->isStatic; } void CppSharp::Parser::AST::Method::IsStatic::set(bool value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsStatic = value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->isStatic = value; } bool CppSharp::Parser::AST::Method::IsConst::get() { - return ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsConst; + return ((::CppSharp::CppParser::AST::Method*)NativePtr)->isConst; } void CppSharp::Parser::AST::Method::IsConst::set(bool value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsConst = value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->isConst = value; } bool CppSharp::Parser::AST::Method::IsExplicit::get() { - return ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsExplicit; + return ((::CppSharp::CppParser::AST::Method*)NativePtr)->isExplicit; } void CppSharp::Parser::AST::Method::IsExplicit::set(bool value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsExplicit = value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->isExplicit = value; } bool CppSharp::Parser::AST::Method::IsOverride::get() { - return ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsOverride; + return ((::CppSharp::CppParser::AST::Method*)NativePtr)->isOverride; } void CppSharp::Parser::AST::Method::IsOverride::set(bool value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsOverride = value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->isOverride = value; } CppSharp::Parser::AST::CXXMethodKind CppSharp::Parser::AST::Method::MethodKind::get() { - return (CppSharp::Parser::AST::CXXMethodKind)((::CppSharp::CppParser::AST::Method*)NativePtr)->MethodKind; + return (CppSharp::Parser::AST::CXXMethodKind)((::CppSharp::CppParser::AST::Method*)NativePtr)->methodKind; } void CppSharp::Parser::AST::Method::MethodKind::set(CppSharp::Parser::AST::CXXMethodKind value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->MethodKind = (::CppSharp::CppParser::AST::CXXMethodKind)value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->methodKind = (::CppSharp::CppParser::AST::CXXMethodKind)value; } bool CppSharp::Parser::AST::Method::IsDefaultConstructor::get() { - return ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsDefaultConstructor; + return ((::CppSharp::CppParser::AST::Method*)NativePtr)->isDefaultConstructor; } void CppSharp::Parser::AST::Method::IsDefaultConstructor::set(bool value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsDefaultConstructor = value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->isDefaultConstructor = value; } bool CppSharp::Parser::AST::Method::IsCopyConstructor::get() { - return ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsCopyConstructor; + return ((::CppSharp::CppParser::AST::Method*)NativePtr)->isCopyConstructor; } void CppSharp::Parser::AST::Method::IsCopyConstructor::set(bool value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsCopyConstructor = value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->isCopyConstructor = value; } bool CppSharp::Parser::AST::Method::IsMoveConstructor::get() { - return ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsMoveConstructor; + return ((::CppSharp::CppParser::AST::Method*)NativePtr)->isMoveConstructor; } void CppSharp::Parser::AST::Method::IsMoveConstructor::set(bool value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->IsMoveConstructor = value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->isMoveConstructor = value; } CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Method::ConversionType::get() { - return (&((::CppSharp::CppParser::AST::Method*)NativePtr)->ConversionType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Method*)NativePtr)->ConversionType); + return (&((::CppSharp::CppParser::AST::Method*)NativePtr)->conversionType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Method*)NativePtr)->conversionType); } void CppSharp::Parser::AST::Method::ConversionType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->ConversionType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->conversionType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::RefQualifierKind CppSharp::Parser::AST::Method::RefQualifier::get() { - return (CppSharp::Parser::AST::RefQualifierKind)((::CppSharp::CppParser::AST::Method*)NativePtr)->RefQualifier; + return (CppSharp::Parser::AST::RefQualifierKind)((::CppSharp::CppParser::AST::Method*)NativePtr)->refQualifier; } void CppSharp::Parser::AST::Method::RefQualifier::set(CppSharp::Parser::AST::RefQualifierKind value) { - ((::CppSharp::CppParser::AST::Method*)NativePtr)->RefQualifier = (::CppSharp::CppParser::AST::RefQualifierKind)value; + ((::CppSharp::CppParser::AST::Method*)NativePtr)->refQualifier = (::CppSharp::CppParser::AST::RefQualifierKind)value; } CppSharp::Parser::AST::Enumeration::Item::Item(::CppSharp::CppParser::AST::Enumeration::Item* native) @@ -3306,12 +3306,12 @@ CppSharp::Parser::AST::Enumeration::Item::Item(CppSharp::Parser::AST::Enumeratio unsigned long long CppSharp::Parser::AST::Enumeration::Item::Value::get() { - return ((::CppSharp::CppParser::AST::Enumeration::Item*)NativePtr)->Value; + return ((::CppSharp::CppParser::AST::Enumeration::Item*)NativePtr)->value; } void CppSharp::Parser::AST::Enumeration::Item::Value::set(unsigned long long value) { - ((::CppSharp::CppParser::AST::Enumeration::Item*)NativePtr)->Value = (::uint64_t)value; + ((::CppSharp::CppParser::AST::Enumeration::Item*)NativePtr)->value = (::uint64_t)value; } System::String^ CppSharp::Parser::AST::Enumeration::Item::Expression::get() @@ -3387,32 +3387,32 @@ CppSharp::Parser::AST::Enumeration::Enumeration(CppSharp::Parser::AST::Enumerati CppSharp::Parser::AST::Enumeration::EnumModifiers CppSharp::Parser::AST::Enumeration::Modifiers::get() { - return (CppSharp::Parser::AST::Enumeration::EnumModifiers)((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->Modifiers; + return (CppSharp::Parser::AST::Enumeration::EnumModifiers)((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->modifiers; } void CppSharp::Parser::AST::Enumeration::Modifiers::set(CppSharp::Parser::AST::Enumeration::EnumModifiers value) { - ((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->Modifiers = (::CppSharp::CppParser::AST::Enumeration::EnumModifiers)value; + ((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->modifiers = (::CppSharp::CppParser::AST::Enumeration::EnumModifiers)value; } CppSharp::Parser::AST::Type^ CppSharp::Parser::AST::Enumeration::Type::get() { - return (((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->Type == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Type((::CppSharp::CppParser::AST::Type*)((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->Type); + return (((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->type == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Type((::CppSharp::CppParser::AST::Type*)((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->type); } void CppSharp::Parser::AST::Enumeration::Type::set(CppSharp::Parser::AST::Type^ value) { - ((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->Type = (::CppSharp::CppParser::AST::Type*)value->NativePtr; + ((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->type = (::CppSharp::CppParser::AST::Type*)value->NativePtr; } CppSharp::Parser::AST::BuiltinType^ CppSharp::Parser::AST::Enumeration::BuiltinType::get() { - return (((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->BuiltinType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BuiltinType((::CppSharp::CppParser::AST::BuiltinType*)((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->BuiltinType); + return (((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->builtinType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::BuiltinType((::CppSharp::CppParser::AST::BuiltinType*)((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->builtinType); } void CppSharp::Parser::AST::Enumeration::BuiltinType::set(CppSharp::Parser::AST::BuiltinType^ value) { - ((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->BuiltinType = (::CppSharp::CppParser::AST::BuiltinType*)value->NativePtr; + ((::CppSharp::CppParser::AST::Enumeration*)NativePtr)->builtinType = (::CppSharp::CppParser::AST::BuiltinType*)value->NativePtr; } unsigned int CppSharp::Parser::AST::Enumeration::ItemsCount::get() @@ -3460,12 +3460,12 @@ CppSharp::Parser::AST::Variable::Variable(CppSharp::Parser::AST::Variable^ _0) CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Variable::QualifiedType::get() { - return (&((::CppSharp::CppParser::AST::Variable*)NativePtr)->QualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Variable*)NativePtr)->QualifiedType); + return (&((::CppSharp::CppParser::AST::Variable*)NativePtr)->qualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Variable*)NativePtr)->qualifiedType); } void CppSharp::Parser::AST::Variable::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::Variable*)NativePtr)->QualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::Variable*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } System::String^ CppSharp::Parser::AST::Variable::Mangled::get() @@ -3525,42 +3525,42 @@ void CppSharp::Parser::AST::BaseClassSpecifier::__Instance::set(System::IntPtr o CppSharp::Parser::AST::AccessSpecifier CppSharp::Parser::AST::BaseClassSpecifier::Access::get() { - return (CppSharp::Parser::AST::AccessSpecifier)((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->Access; + return (CppSharp::Parser::AST::AccessSpecifier)((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->access; } void CppSharp::Parser::AST::BaseClassSpecifier::Access::set(CppSharp::Parser::AST::AccessSpecifier value) { - ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->Access = (::CppSharp::CppParser::AST::AccessSpecifier)value; + ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->access = (::CppSharp::CppParser::AST::AccessSpecifier)value; } bool CppSharp::Parser::AST::BaseClassSpecifier::IsVirtual::get() { - return ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->IsVirtual; + return ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->isVirtual; } void CppSharp::Parser::AST::BaseClassSpecifier::IsVirtual::set(bool value) { - ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->IsVirtual = value; + ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->isVirtual = value; } CppSharp::Parser::AST::Type^ CppSharp::Parser::AST::BaseClassSpecifier::Type::get() { - return (((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->Type == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Type((::CppSharp::CppParser::AST::Type*)((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->Type); + return (((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->type == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Type((::CppSharp::CppParser::AST::Type*)((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->type); } void CppSharp::Parser::AST::BaseClassSpecifier::Type::set(CppSharp::Parser::AST::Type^ value) { - ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->Type = (::CppSharp::CppParser::AST::Type*)value->NativePtr; + ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->type = (::CppSharp::CppParser::AST::Type*)value->NativePtr; } int CppSharp::Parser::AST::BaseClassSpecifier::Offset::get() { - return ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->Offset; + return ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->offset; } void CppSharp::Parser::AST::BaseClassSpecifier::Offset::set(int value) { - ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->Offset = value; + ((::CppSharp::CppParser::AST::BaseClassSpecifier*)NativePtr)->offset = value; } CppSharp::Parser::AST::Field::Field(::CppSharp::CppParser::AST::Field* native) @@ -3602,42 +3602,42 @@ CppSharp::Parser::AST::Field::Field(CppSharp::Parser::AST::Field^ _0) CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::Field::QualifiedType::get() { - return (&((::CppSharp::CppParser::AST::Field*)NativePtr)->QualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Field*)NativePtr)->QualifiedType); + return (&((::CppSharp::CppParser::AST::Field*)NativePtr)->qualifiedType == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::Field*)NativePtr)->qualifiedType); } void CppSharp::Parser::AST::Field::QualifiedType::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::Field*)NativePtr)->QualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::Field*)NativePtr)->qualifiedType = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::Class^ CppSharp::Parser::AST::Field::Class::get() { - return (((::CppSharp::CppParser::AST::Field*)NativePtr)->Class == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Class((::CppSharp::CppParser::AST::Class*)((::CppSharp::CppParser::AST::Field*)NativePtr)->Class); + return (((::CppSharp::CppParser::AST::Field*)NativePtr)->_class == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Class((::CppSharp::CppParser::AST::Class*)((::CppSharp::CppParser::AST::Field*)NativePtr)->_class); } void CppSharp::Parser::AST::Field::Class::set(CppSharp::Parser::AST::Class^ value) { - ((::CppSharp::CppParser::AST::Field*)NativePtr)->Class = (::CppSharp::CppParser::AST::Class*)value->NativePtr; + ((::CppSharp::CppParser::AST::Field*)NativePtr)->_class = (::CppSharp::CppParser::AST::Class*)value->NativePtr; } bool CppSharp::Parser::AST::Field::IsBitField::get() { - return ((::CppSharp::CppParser::AST::Field*)NativePtr)->IsBitField; + return ((::CppSharp::CppParser::AST::Field*)NativePtr)->isBitField; } void CppSharp::Parser::AST::Field::IsBitField::set(bool value) { - ((::CppSharp::CppParser::AST::Field*)NativePtr)->IsBitField = value; + ((::CppSharp::CppParser::AST::Field*)NativePtr)->isBitField = value; } unsigned int CppSharp::Parser::AST::Field::BitWidth::get() { - return ((::CppSharp::CppParser::AST::Field*)NativePtr)->BitWidth; + return ((::CppSharp::CppParser::AST::Field*)NativePtr)->bitWidth; } void CppSharp::Parser::AST::Field::BitWidth::set(unsigned int value) { - ((::CppSharp::CppParser::AST::Field*)NativePtr)->BitWidth = value; + ((::CppSharp::CppParser::AST::Field*)NativePtr)->bitWidth = value; } CppSharp::Parser::AST::AccessSpecifierDecl::AccessSpecifierDecl(::CppSharp::CppParser::AST::AccessSpecifierDecl* native) @@ -3796,102 +3796,102 @@ CppSharp::Parser::AST::Class::Class(CppSharp::Parser::AST::Class^ _0) bool CppSharp::Parser::AST::Class::IsPOD::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsPOD; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->isPOD; } void CppSharp::Parser::AST::Class::IsPOD::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsPOD = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->isPOD = value; } bool CppSharp::Parser::AST::Class::IsAbstract::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsAbstract; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->isAbstract; } void CppSharp::Parser::AST::Class::IsAbstract::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsAbstract = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->isAbstract = value; } bool CppSharp::Parser::AST::Class::IsUnion::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsUnion; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->isUnion; } void CppSharp::Parser::AST::Class::IsUnion::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsUnion = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->isUnion = value; } bool CppSharp::Parser::AST::Class::IsDynamic::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsDynamic; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->isDynamic; } void CppSharp::Parser::AST::Class::IsDynamic::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsDynamic = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->isDynamic = value; } bool CppSharp::Parser::AST::Class::IsPolymorphic::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsPolymorphic; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->isPolymorphic; } void CppSharp::Parser::AST::Class::IsPolymorphic::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsPolymorphic = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->isPolymorphic = value; } bool CppSharp::Parser::AST::Class::HasNonTrivialDefaultConstructor::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->HasNonTrivialDefaultConstructor; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->hasNonTrivialDefaultConstructor; } void CppSharp::Parser::AST::Class::HasNonTrivialDefaultConstructor::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->HasNonTrivialDefaultConstructor = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->hasNonTrivialDefaultConstructor = value; } bool CppSharp::Parser::AST::Class::HasNonTrivialCopyConstructor::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->HasNonTrivialCopyConstructor; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->hasNonTrivialCopyConstructor; } void CppSharp::Parser::AST::Class::HasNonTrivialCopyConstructor::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->HasNonTrivialCopyConstructor = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->hasNonTrivialCopyConstructor = value; } bool CppSharp::Parser::AST::Class::HasNonTrivialDestructor::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->HasNonTrivialDestructor; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->hasNonTrivialDestructor; } void CppSharp::Parser::AST::Class::HasNonTrivialDestructor::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->HasNonTrivialDestructor = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->hasNonTrivialDestructor = value; } bool CppSharp::Parser::AST::Class::IsExternCContext::get() { - return ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsExternCContext; + return ((::CppSharp::CppParser::AST::Class*)NativePtr)->isExternCContext; } void CppSharp::Parser::AST::Class::IsExternCContext::set(bool value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->IsExternCContext = value; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->isExternCContext = value; } CppSharp::Parser::AST::ClassLayout^ CppSharp::Parser::AST::Class::Layout::get() { - return (((::CppSharp::CppParser::AST::Class*)NativePtr)->Layout == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ClassLayout((::CppSharp::CppParser::AST::ClassLayout*)((::CppSharp::CppParser::AST::Class*)NativePtr)->Layout); + return (((::CppSharp::CppParser::AST::Class*)NativePtr)->layout == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ClassLayout((::CppSharp::CppParser::AST::ClassLayout*)((::CppSharp::CppParser::AST::Class*)NativePtr)->layout); } void CppSharp::Parser::AST::Class::Layout::set(CppSharp::Parser::AST::ClassLayout^ value) { - ((::CppSharp::CppParser::AST::Class*)NativePtr)->Layout = (::CppSharp::CppParser::AST::ClassLayout*)value->NativePtr; + ((::CppSharp::CppParser::AST::Class*)NativePtr)->layout = (::CppSharp::CppParser::AST::ClassLayout*)value->NativePtr; } unsigned int CppSharp::Parser::AST::Class::BasesCount::get() @@ -4092,32 +4092,32 @@ CppSharp::Parser::AST::TemplateParameter::operator CppSharp::Parser::AST::Templa unsigned int CppSharp::Parser::AST::TemplateParameter::Depth::get() { - return ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->Depth; + return ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->depth; } void CppSharp::Parser::AST::TemplateParameter::Depth::set(unsigned int value) { - ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->Depth = value; + ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->depth = value; } unsigned int CppSharp::Parser::AST::TemplateParameter::Index::get() { - return ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->Index; + return ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->index; } void CppSharp::Parser::AST::TemplateParameter::Index::set(unsigned int value) { - ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->Index = value; + ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->index = value; } bool CppSharp::Parser::AST::TemplateParameter::IsParameterPack::get() { - return ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->IsParameterPack; + return ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->isParameterPack; } void CppSharp::Parser::AST::TemplateParameter::IsParameterPack::set(bool value) { - ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->IsParameterPack = value; + ((::CppSharp::CppParser::AST::TemplateParameter*)NativePtr)->isParameterPack = value; } CppSharp::Parser::AST::TemplateTemplateParameter::TemplateTemplateParameter(::CppSharp::CppParser::AST::TemplateTemplateParameter* native) @@ -4159,32 +4159,32 @@ CppSharp::Parser::AST::TemplateTemplateParameter::TemplateTemplateParameter(CppS bool CppSharp::Parser::AST::TemplateTemplateParameter::IsParameterPack::get() { - return ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->IsParameterPack; + return ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->isParameterPack; } void CppSharp::Parser::AST::TemplateTemplateParameter::IsParameterPack::set(bool value) { - ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->IsParameterPack = value; + ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->isParameterPack = value; } bool CppSharp::Parser::AST::TemplateTemplateParameter::IsPackExpansion::get() { - return ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->IsPackExpansion; + return ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->isPackExpansion; } void CppSharp::Parser::AST::TemplateTemplateParameter::IsPackExpansion::set(bool value) { - ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->IsPackExpansion = value; + ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->isPackExpansion = value; } bool CppSharp::Parser::AST::TemplateTemplateParameter::IsExpandedParameterPack::get() { - return ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->IsExpandedParameterPack; + return ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->isExpandedParameterPack; } void CppSharp::Parser::AST::TemplateTemplateParameter::IsExpandedParameterPack::set(bool value) { - ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->IsExpandedParameterPack = value; + ((::CppSharp::CppParser::AST::TemplateTemplateParameter*)NativePtr)->isExpandedParameterPack = value; } CppSharp::Parser::AST::TypeTemplateParameter::TypeTemplateParameter(::CppSharp::CppParser::AST::TypeTemplateParameter* native) @@ -4226,12 +4226,12 @@ CppSharp::Parser::AST::TypeTemplateParameter::TypeTemplateParameter(CppSharp::Pa CppSharp::Parser::AST::QualifiedType^ CppSharp::Parser::AST::TypeTemplateParameter::DefaultArgument::get() { - return (&((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->DefaultArgument == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->DefaultArgument); + return (&((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->defaultArgument == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::QualifiedType((::CppSharp::CppParser::AST::QualifiedType*)&((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->defaultArgument); } void CppSharp::Parser::AST::TypeTemplateParameter::DefaultArgument::set(CppSharp::Parser::AST::QualifiedType^ value) { - ((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->DefaultArgument = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; + ((::CppSharp::CppParser::AST::TypeTemplateParameter*)NativePtr)->defaultArgument = *(::CppSharp::CppParser::AST::QualifiedType*)value->NativePtr; } CppSharp::Parser::AST::NonTypeTemplateParameter::NonTypeTemplateParameter(::CppSharp::CppParser::AST::NonTypeTemplateParameter* native) @@ -4273,42 +4273,42 @@ CppSharp::Parser::AST::NonTypeTemplateParameter::NonTypeTemplateParameter(CppSha CppSharp::Parser::AST::Expression^ CppSharp::Parser::AST::NonTypeTemplateParameter::DefaultArgument::get() { - return (((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->DefaultArgument == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Expression((::CppSharp::CppParser::AST::Expression*)((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->DefaultArgument); + return (((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->defaultArgument == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Expression((::CppSharp::CppParser::AST::Expression*)((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->defaultArgument); } void CppSharp::Parser::AST::NonTypeTemplateParameter::DefaultArgument::set(CppSharp::Parser::AST::Expression^ value) { - ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->DefaultArgument = (::CppSharp::CppParser::AST::Expression*)value->NativePtr; + ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->defaultArgument = (::CppSharp::CppParser::AST::Expression*)value->NativePtr; } unsigned int CppSharp::Parser::AST::NonTypeTemplateParameter::Position::get() { - return ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->Position; + return ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->position; } void CppSharp::Parser::AST::NonTypeTemplateParameter::Position::set(unsigned int value) { - ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->Position = value; + ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->position = value; } bool CppSharp::Parser::AST::NonTypeTemplateParameter::IsPackExpansion::get() { - return ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->IsPackExpansion; + return ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->isPackExpansion; } void CppSharp::Parser::AST::NonTypeTemplateParameter::IsPackExpansion::set(bool value) { - ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->IsPackExpansion = value; + ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->isPackExpansion = value; } bool CppSharp::Parser::AST::NonTypeTemplateParameter::IsExpandedParameterPack::get() { - return ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->IsExpandedParameterPack; + return ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->isExpandedParameterPack; } void CppSharp::Parser::AST::NonTypeTemplateParameter::IsExpandedParameterPack::set(bool value) { - ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->IsExpandedParameterPack = value; + ((::CppSharp::CppParser::AST::NonTypeTemplateParameter*)NativePtr)->isExpandedParameterPack = value; } CppSharp::Parser::AST::ClassTemplate::ClassTemplate(::CppSharp::CppParser::AST::ClassTemplate* native) @@ -4433,22 +4433,22 @@ CppSharp::Parser::AST::ClassTemplateSpecialization::ClassTemplateSpecialization( CppSharp::Parser::AST::ClassTemplate^ CppSharp::Parser::AST::ClassTemplateSpecialization::TemplatedDecl::get() { - return (((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->TemplatedDecl == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ClassTemplate((::CppSharp::CppParser::AST::ClassTemplate*)((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->TemplatedDecl); + return (((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->templatedDecl == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ClassTemplate((::CppSharp::CppParser::AST::ClassTemplate*)((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->templatedDecl); } void CppSharp::Parser::AST::ClassTemplateSpecialization::TemplatedDecl::set(CppSharp::Parser::AST::ClassTemplate^ value) { - ((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->TemplatedDecl = (::CppSharp::CppParser::AST::ClassTemplate*)value->NativePtr; + ((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->templatedDecl = (::CppSharp::CppParser::AST::ClassTemplate*)value->NativePtr; } CppSharp::Parser::AST::TemplateSpecializationKind CppSharp::Parser::AST::ClassTemplateSpecialization::SpecializationKind::get() { - return (CppSharp::Parser::AST::TemplateSpecializationKind)((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->SpecializationKind; + return (CppSharp::Parser::AST::TemplateSpecializationKind)((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->specializationKind; } void CppSharp::Parser::AST::ClassTemplateSpecialization::SpecializationKind::set(CppSharp::Parser::AST::TemplateSpecializationKind value) { - ((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->SpecializationKind = (::CppSharp::CppParser::AST::TemplateSpecializationKind)value; + ((::CppSharp::CppParser::AST::ClassTemplateSpecialization*)NativePtr)->specializationKind = (::CppSharp::CppParser::AST::TemplateSpecializationKind)value; } unsigned int CppSharp::Parser::AST::ClassTemplateSpecialization::ArgumentsCount::get() @@ -4620,32 +4620,32 @@ void CppSharp::Parser::AST::FunctionTemplateSpecialization::__Instance::set(Syst CppSharp::Parser::AST::FunctionTemplate^ CppSharp::Parser::AST::FunctionTemplateSpecialization::Template::get() { - return (((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->Template == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::FunctionTemplate((::CppSharp::CppParser::AST::FunctionTemplate*)((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->Template); + return (((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->_template == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::FunctionTemplate((::CppSharp::CppParser::AST::FunctionTemplate*)((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->_template); } void CppSharp::Parser::AST::FunctionTemplateSpecialization::Template::set(CppSharp::Parser::AST::FunctionTemplate^ value) { - ((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->Template = (::CppSharp::CppParser::AST::FunctionTemplate*)value->NativePtr; + ((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->_template = (::CppSharp::CppParser::AST::FunctionTemplate*)value->NativePtr; } CppSharp::Parser::AST::Function^ CppSharp::Parser::AST::FunctionTemplateSpecialization::SpecializedFunction::get() { - return (((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->SpecializedFunction == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Function((::CppSharp::CppParser::AST::Function*)((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->SpecializedFunction); + return (((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->specializedFunction == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::Function((::CppSharp::CppParser::AST::Function*)((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->specializedFunction); } void CppSharp::Parser::AST::FunctionTemplateSpecialization::SpecializedFunction::set(CppSharp::Parser::AST::Function^ value) { - ((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->SpecializedFunction = (::CppSharp::CppParser::AST::Function*)value->NativePtr; + ((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->specializedFunction = (::CppSharp::CppParser::AST::Function*)value->NativePtr; } CppSharp::Parser::AST::TemplateSpecializationKind CppSharp::Parser::AST::FunctionTemplateSpecialization::SpecializationKind::get() { - return (CppSharp::Parser::AST::TemplateSpecializationKind)((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->SpecializationKind; + return (CppSharp::Parser::AST::TemplateSpecializationKind)((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->specializationKind; } void CppSharp::Parser::AST::FunctionTemplateSpecialization::SpecializationKind::set(CppSharp::Parser::AST::TemplateSpecializationKind value) { - ((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->SpecializationKind = (::CppSharp::CppParser::AST::TemplateSpecializationKind)value; + ((::CppSharp::CppParser::AST::FunctionTemplateSpecialization*)NativePtr)->specializationKind = (::CppSharp::CppParser::AST::TemplateSpecializationKind)value; } unsigned int CppSharp::Parser::AST::FunctionTemplateSpecialization::ArgumentsCount::get() @@ -4776,22 +4776,22 @@ CppSharp::Parser::AST::VarTemplateSpecialization::VarTemplateSpecialization(CppS CppSharp::Parser::AST::VarTemplate^ CppSharp::Parser::AST::VarTemplateSpecialization::TemplatedDecl::get() { - return (((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->TemplatedDecl == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VarTemplate((::CppSharp::CppParser::AST::VarTemplate*)((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->TemplatedDecl); + return (((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->templatedDecl == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::VarTemplate((::CppSharp::CppParser::AST::VarTemplate*)((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->templatedDecl); } void CppSharp::Parser::AST::VarTemplateSpecialization::TemplatedDecl::set(CppSharp::Parser::AST::VarTemplate^ value) { - ((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->TemplatedDecl = (::CppSharp::CppParser::AST::VarTemplate*)value->NativePtr; + ((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->templatedDecl = (::CppSharp::CppParser::AST::VarTemplate*)value->NativePtr; } CppSharp::Parser::AST::TemplateSpecializationKind CppSharp::Parser::AST::VarTemplateSpecialization::SpecializationKind::get() { - return (CppSharp::Parser::AST::TemplateSpecializationKind)((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->SpecializationKind; + return (CppSharp::Parser::AST::TemplateSpecializationKind)((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->specializationKind; } void CppSharp::Parser::AST::VarTemplateSpecialization::SpecializationKind::set(CppSharp::Parser::AST::TemplateSpecializationKind value) { - ((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->SpecializationKind = (::CppSharp::CppParser::AST::TemplateSpecializationKind)value; + ((::CppSharp::CppParser::AST::VarTemplateSpecialization*)NativePtr)->specializationKind = (::CppSharp::CppParser::AST::TemplateSpecializationKind)value; } unsigned int CppSharp::Parser::AST::VarTemplateSpecialization::ArgumentsCount::get() @@ -4876,12 +4876,12 @@ CppSharp::Parser::AST::Namespace::Namespace(CppSharp::Parser::AST::Namespace^ _0 bool CppSharp::Parser::AST::Namespace::IsInline::get() { - return ((::CppSharp::CppParser::AST::Namespace*)NativePtr)->IsInline; + return ((::CppSharp::CppParser::AST::Namespace*)NativePtr)->isInline; } void CppSharp::Parser::AST::Namespace::IsInline::set(bool value) { - ((::CppSharp::CppParser::AST::Namespace*)NativePtr)->IsInline = value; + ((::CppSharp::CppParser::AST::Namespace*)NativePtr)->isInline = value; } CppSharp::Parser::AST::PreprocessedEntity::PreprocessedEntity(::CppSharp::CppParser::AST::PreprocessedEntity* native) @@ -4927,32 +4927,32 @@ void CppSharp::Parser::AST::PreprocessedEntity::__Instance::set(System::IntPtr o CppSharp::Parser::AST::MacroLocation CppSharp::Parser::AST::PreprocessedEntity::MacroLocation::get() { - return (CppSharp::Parser::AST::MacroLocation)((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->MacroLocation; + return (CppSharp::Parser::AST::MacroLocation)((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->macroLocation; } void CppSharp::Parser::AST::PreprocessedEntity::MacroLocation::set(CppSharp::Parser::AST::MacroLocation value) { - ((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->MacroLocation = (::CppSharp::CppParser::AST::MacroLocation)value; + ((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->macroLocation = (::CppSharp::CppParser::AST::MacroLocation)value; } ::System::IntPtr CppSharp::Parser::AST::PreprocessedEntity::OriginalPtr::get() { - return ::System::IntPtr(((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->OriginalPtr); + return ::System::IntPtr(((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->originalPtr); } void CppSharp::Parser::AST::PreprocessedEntity::OriginalPtr::set(::System::IntPtr value) { - ((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->OriginalPtr = (void*)value; + ((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->originalPtr = (void*)value; } CppSharp::Parser::AST::DeclarationKind CppSharp::Parser::AST::PreprocessedEntity::Kind::get() { - return (CppSharp::Parser::AST::DeclarationKind)((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->Kind; + return (CppSharp::Parser::AST::DeclarationKind)((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->kind; } void CppSharp::Parser::AST::PreprocessedEntity::Kind::set(CppSharp::Parser::AST::DeclarationKind value) { - ((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->Kind = (::CppSharp::CppParser::AST::DeclarationKind)value; + ((::CppSharp::CppParser::AST::PreprocessedEntity*)NativePtr)->kind = (::CppSharp::CppParser::AST::DeclarationKind)value; } CppSharp::Parser::AST::MacroDefinition::MacroDefinition(::CppSharp::CppParser::AST::MacroDefinition* native) @@ -4994,22 +4994,22 @@ CppSharp::Parser::AST::MacroDefinition::MacroDefinition(CppSharp::Parser::AST::M int CppSharp::Parser::AST::MacroDefinition::LineNumberStart::get() { - return ((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->LineNumberStart; + return ((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->lineNumberStart; } void CppSharp::Parser::AST::MacroDefinition::LineNumberStart::set(int value) { - ((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->LineNumberStart = value; + ((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->lineNumberStart = value; } int CppSharp::Parser::AST::MacroDefinition::LineNumberEnd::get() { - return ((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->LineNumberEnd; + return ((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->lineNumberEnd; } void CppSharp::Parser::AST::MacroDefinition::LineNumberEnd::set(int value) { - ((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->LineNumberEnd = value; + ((::CppSharp::CppParser::AST::MacroDefinition*)NativePtr)->lineNumberEnd = value; } System::String^ CppSharp::Parser::AST::MacroDefinition::Name::get() @@ -5079,12 +5079,12 @@ CppSharp::Parser::AST::MacroExpansion::MacroExpansion(CppSharp::Parser::AST::Mac CppSharp::Parser::AST::MacroDefinition^ CppSharp::Parser::AST::MacroExpansion::Definition::get() { - return (((::CppSharp::CppParser::AST::MacroExpansion*)NativePtr)->Definition == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::MacroDefinition((::CppSharp::CppParser::AST::MacroDefinition*)((::CppSharp::CppParser::AST::MacroExpansion*)NativePtr)->Definition); + return (((::CppSharp::CppParser::AST::MacroExpansion*)NativePtr)->definition == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::MacroDefinition((::CppSharp::CppParser::AST::MacroDefinition*)((::CppSharp::CppParser::AST::MacroExpansion*)NativePtr)->definition); } void CppSharp::Parser::AST::MacroExpansion::Definition::set(CppSharp::Parser::AST::MacroDefinition^ value) { - ((::CppSharp::CppParser::AST::MacroExpansion*)NativePtr)->Definition = (::CppSharp::CppParser::AST::MacroDefinition*)value->NativePtr; + ((::CppSharp::CppParser::AST::MacroExpansion*)NativePtr)->definition = (::CppSharp::CppParser::AST::MacroDefinition*)value->NativePtr; } System::String^ CppSharp::Parser::AST::MacroExpansion::Name::get() @@ -5174,12 +5174,12 @@ CppSharp::Parser::AST::TranslationUnit::TranslationUnit(CppSharp::Parser::AST::T bool CppSharp::Parser::AST::TranslationUnit::IsSystemHeader::get() { - return ((::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->IsSystemHeader; + return ((::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->isSystemHeader; } void CppSharp::Parser::AST::TranslationUnit::IsSystemHeader::set(bool value) { - ((::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->IsSystemHeader = value; + ((::CppSharp::CppParser::AST::TranslationUnit*)NativePtr)->isSystemHeader = value; } System::String^ CppSharp::Parser::AST::TranslationUnit::FileName::get() @@ -5283,12 +5283,12 @@ void CppSharp::Parser::AST::NativeLibrary::__Instance::set(System::IntPtr object CppSharp::Parser::AST::ArchType CppSharp::Parser::AST::NativeLibrary::ArchType::get() { - return (CppSharp::Parser::AST::ArchType)((::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->ArchType; + return (CppSharp::Parser::AST::ArchType)((::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->archType; } void CppSharp::Parser::AST::NativeLibrary::ArchType::set(CppSharp::Parser::AST::ArchType value) { - ((::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->ArchType = (::CppSharp::CppParser::AST::ArchType)value; + ((::CppSharp::CppParser::AST::NativeLibrary*)NativePtr)->archType = (::CppSharp::CppParser::AST::ArchType)value; } System::String^ CppSharp::Parser::AST::NativeLibrary::FileName::get() @@ -5436,12 +5436,12 @@ void CppSharp::Parser::AST::Comment::__Instance::set(System::IntPtr object) CppSharp::Parser::AST::CommentKind CppSharp::Parser::AST::Comment::Kind::get() { - return (CppSharp::Parser::AST::CommentKind)((::CppSharp::CppParser::AST::Comment*)NativePtr)->Kind; + return (CppSharp::Parser::AST::CommentKind)((::CppSharp::CppParser::AST::Comment*)NativePtr)->kind; } void CppSharp::Parser::AST::Comment::Kind::set(CppSharp::Parser::AST::CommentKind value) { - ((::CppSharp::CppParser::AST::Comment*)NativePtr)->Kind = (::CppSharp::CppParser::AST::CommentKind)value; + ((::CppSharp::CppParser::AST::Comment*)NativePtr)->kind = (::CppSharp::CppParser::AST::CommentKind)value; } CppSharp::Parser::AST::BlockContentComment::BlockContentComment(::CppSharp::CppParser::AST::BlockContentComment* native) @@ -5603,12 +5603,12 @@ CppSharp::Parser::AST::InlineContentComment::operator CppSharp::Parser::AST::Inl bool CppSharp::Parser::AST::InlineContentComment::HasTrailingNewline::get() { - return ((::CppSharp::CppParser::AST::InlineContentComment*)NativePtr)->HasTrailingNewline; + return ((::CppSharp::CppParser::AST::InlineContentComment*)NativePtr)->hasTrailingNewline; } void CppSharp::Parser::AST::InlineContentComment::HasTrailingNewline::set(bool value) { - ((::CppSharp::CppParser::AST::InlineContentComment*)NativePtr)->HasTrailingNewline = value; + ((::CppSharp::CppParser::AST::InlineContentComment*)NativePtr)->hasTrailingNewline = value; } CppSharp::Parser::AST::ParagraphComment::ParagraphComment(::CppSharp::CppParser::AST::ParagraphComment* native) @@ -5670,12 +5670,12 @@ CppSharp::Parser::AST::ParagraphComment::ParagraphComment(CppSharp::Parser::AST: bool CppSharp::Parser::AST::ParagraphComment::IsWhitespace::get() { - return ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->IsWhitespace; + return ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->isWhitespace; } void CppSharp::Parser::AST::ParagraphComment::IsWhitespace::set(bool value) { - ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->IsWhitespace = value; + ((::CppSharp::CppParser::AST::ParagraphComment*)NativePtr)->isWhitespace = value; } unsigned int CppSharp::Parser::AST::ParagraphComment::ContentCount::get() @@ -5814,22 +5814,22 @@ CppSharp::Parser::AST::BlockCommandComment::operator CppSharp::Parser::AST::Bloc unsigned int CppSharp::Parser::AST::BlockCommandComment::CommandId::get() { - return ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->CommandId; + return ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->commandId; } void CppSharp::Parser::AST::BlockCommandComment::CommandId::set(unsigned int value) { - ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->CommandId = value; + ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->commandId = value; } CppSharp::Parser::AST::ParagraphComment^ CppSharp::Parser::AST::BlockCommandComment::ParagraphComment::get() { - return (((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->ParagraphComment == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ParagraphComment((::CppSharp::CppParser::AST::ParagraphComment*)((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->ParagraphComment); + return (((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->paragraphComment == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::ParagraphComment((::CppSharp::CppParser::AST::ParagraphComment*)((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->paragraphComment); } void CppSharp::Parser::AST::BlockCommandComment::ParagraphComment::set(CppSharp::Parser::AST::ParagraphComment^ value) { - ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->ParagraphComment = (::CppSharp::CppParser::AST::ParagraphComment*)value->NativePtr; + ((::CppSharp::CppParser::AST::BlockCommandComment*)NativePtr)->paragraphComment = (::CppSharp::CppParser::AST::ParagraphComment*)value->NativePtr; } unsigned int CppSharp::Parser::AST::BlockCommandComment::ArgumentsCount::get() @@ -5877,22 +5877,22 @@ CppSharp::Parser::AST::ParamCommandComment::ParamCommandComment(CppSharp::Parser CppSharp::Parser::AST::ParamCommandComment::PassDirection CppSharp::Parser::AST::ParamCommandComment::Direction::get() { - return (CppSharp::Parser::AST::ParamCommandComment::PassDirection)((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->Direction; + return (CppSharp::Parser::AST::ParamCommandComment::PassDirection)((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->direction; } void CppSharp::Parser::AST::ParamCommandComment::Direction::set(CppSharp::Parser::AST::ParamCommandComment::PassDirection value) { - ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->Direction = (::CppSharp::CppParser::AST::ParamCommandComment::PassDirection)value; + ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->direction = (::CppSharp::CppParser::AST::ParamCommandComment::PassDirection)value; } unsigned int CppSharp::Parser::AST::ParamCommandComment::ParamIndex::get() { - return ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->ParamIndex; + return ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->paramIndex; } void CppSharp::Parser::AST::ParamCommandComment::ParamIndex::set(unsigned int value) { - ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->ParamIndex = value; + ((::CppSharp::CppParser::AST::ParamCommandComment*)NativePtr)->paramIndex = value; } CppSharp::Parser::AST::TParamCommandComment::TParamCommandComment(::CppSharp::CppParser::AST::TParamCommandComment* native) @@ -6235,22 +6235,22 @@ CppSharp::Parser::AST::InlineCommandComment::InlineCommandComment(CppSharp::Pars unsigned int CppSharp::Parser::AST::InlineCommandComment::CommandId::get() { - return ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->CommandId; + return ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->commandId; } void CppSharp::Parser::AST::InlineCommandComment::CommandId::set(unsigned int value) { - ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->CommandId = value; + ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->commandId = value; } CppSharp::Parser::AST::InlineCommandComment::RenderKind CppSharp::Parser::AST::InlineCommandComment::CommentRenderKind::get() { - return (CppSharp::Parser::AST::InlineCommandComment::RenderKind)((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->CommentRenderKind; + return (CppSharp::Parser::AST::InlineCommandComment::RenderKind)((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->commentRenderKind; } void CppSharp::Parser::AST::InlineCommandComment::CommentRenderKind::set(CppSharp::Parser::AST::InlineCommandComment::RenderKind value) { - ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->CommentRenderKind = (::CppSharp::CppParser::AST::InlineCommandComment::RenderKind)value; + ((::CppSharp::CppParser::AST::InlineCommandComment*)NativePtr)->commentRenderKind = (::CppSharp::CppParser::AST::InlineCommandComment::RenderKind)value; } unsigned int CppSharp::Parser::AST::InlineCommandComment::ArgumentsCount::get() @@ -6597,22 +6597,22 @@ void CppSharp::Parser::AST::RawComment::__Instance::set(System::IntPtr object) CppSharp::Parser::AST::RawCommentKind CppSharp::Parser::AST::RawComment::Kind::get() { - return (CppSharp::Parser::AST::RawCommentKind)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->Kind; + return (CppSharp::Parser::AST::RawCommentKind)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->kind; } void CppSharp::Parser::AST::RawComment::Kind::set(CppSharp::Parser::AST::RawCommentKind value) { - ((::CppSharp::CppParser::AST::RawComment*)NativePtr)->Kind = (::CppSharp::CppParser::AST::RawCommentKind)value; + ((::CppSharp::CppParser::AST::RawComment*)NativePtr)->kind = (::CppSharp::CppParser::AST::RawCommentKind)value; } CppSharp::Parser::AST::FullComment^ CppSharp::Parser::AST::RawComment::FullCommentBlock::get() { - return (((::CppSharp::CppParser::AST::RawComment*)NativePtr)->FullCommentBlock == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::FullComment((::CppSharp::CppParser::AST::FullComment*)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->FullCommentBlock); + return (((::CppSharp::CppParser::AST::RawComment*)NativePtr)->fullCommentBlock == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::FullComment((::CppSharp::CppParser::AST::FullComment*)((::CppSharp::CppParser::AST::RawComment*)NativePtr)->fullCommentBlock); } void CppSharp::Parser::AST::RawComment::FullCommentBlock::set(CppSharp::Parser::AST::FullComment^ value) { - ((::CppSharp::CppParser::AST::RawComment*)NativePtr)->FullCommentBlock = (::CppSharp::CppParser::AST::FullComment*)value->NativePtr; + ((::CppSharp::CppParser::AST::RawComment*)NativePtr)->fullCommentBlock = (::CppSharp::CppParser::AST::FullComment*)value->NativePtr; } System::String^ CppSharp::Parser::AST::RawComment::Text::get() diff --git a/src/CppParser/Bindings/CLI/CppParser.cpp b/src/CppParser/Bindings/CLI/CppParser.cpp index 85ed841c10..afa4489867 100644 --- a/src/CppParser/Bindings/CLI/CppParser.cpp +++ b/src/CppParser/Bindings/CLI/CppParser.cpp @@ -191,82 +191,82 @@ void CppSharp::Parser::CppParserOptions::ASTContext::set(CppSharp::Parser::AST:: int CppSharp::Parser::CppParserOptions::ToolSetToUse::get() { - return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->ToolSetToUse; + return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->toolSetToUse; } void CppSharp::Parser::CppParserOptions::ToolSetToUse::set(int value) { - ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->ToolSetToUse = value; + ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->toolSetToUse = value; } CppSharp::Parser::AST::CppAbi CppSharp::Parser::CppParserOptions::Abi::get() { - return (CppSharp::Parser::AST::CppAbi)((::CppSharp::CppParser::CppParserOptions*)NativePtr)->Abi; + return (CppSharp::Parser::AST::CppAbi)((::CppSharp::CppParser::CppParserOptions*)NativePtr)->abi; } void CppSharp::Parser::CppParserOptions::Abi::set(CppSharp::Parser::AST::CppAbi value) { - ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->Abi = (::CppSharp::CppParser::AST::CppAbi)value; + ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->abi = (::CppSharp::CppParser::AST::CppAbi)value; } bool CppSharp::Parser::CppParserOptions::NoStandardIncludes::get() { - return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->NoStandardIncludes; + return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->noStandardIncludes; } void CppSharp::Parser::CppParserOptions::NoStandardIncludes::set(bool value) { - ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->NoStandardIncludes = value; + ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->noStandardIncludes = value; } bool CppSharp::Parser::CppParserOptions::NoBuiltinIncludes::get() { - return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->NoBuiltinIncludes; + return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->noBuiltinIncludes; } void CppSharp::Parser::CppParserOptions::NoBuiltinIncludes::set(bool value) { - ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->NoBuiltinIncludes = value; + ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->noBuiltinIncludes = value; } bool CppSharp::Parser::CppParserOptions::MicrosoftMode::get() { - return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->MicrosoftMode; + return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->microsoftMode; } void CppSharp::Parser::CppParserOptions::MicrosoftMode::set(bool value) { - ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->MicrosoftMode = value; + ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->microsoftMode = value; } bool CppSharp::Parser::CppParserOptions::Verbose::get() { - return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->Verbose; + return ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->verbose; } void CppSharp::Parser::CppParserOptions::Verbose::set(bool value) { - ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->Verbose = value; + ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->verbose = value; } CppSharp::Parser::LanguageVersion CppSharp::Parser::CppParserOptions::LanguageVersion::get() { - return (CppSharp::Parser::LanguageVersion)((::CppSharp::CppParser::CppParserOptions*)NativePtr)->LanguageVersion; + return (CppSharp::Parser::LanguageVersion)((::CppSharp::CppParser::CppParserOptions*)NativePtr)->languageVersion; } void CppSharp::Parser::CppParserOptions::LanguageVersion::set(CppSharp::Parser::LanguageVersion value) { - ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->LanguageVersion = (::CppSharp::CppParser::LanguageVersion)value; + ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->languageVersion = (::CppSharp::CppParser::LanguageVersion)value; } CppSharp::Parser::ParserTargetInfo^ CppSharp::Parser::CppParserOptions::TargetInfo::get() { - return (((::CppSharp::CppParser::CppParserOptions*)NativePtr)->TargetInfo == nullptr) ? nullptr : gcnew CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*)((::CppSharp::CppParser::CppParserOptions*)NativePtr)->TargetInfo); + return (((::CppSharp::CppParser::CppParserOptions*)NativePtr)->targetInfo == nullptr) ? nullptr : gcnew CppSharp::Parser::ParserTargetInfo((::CppSharp::CppParser::ParserTargetInfo*)((::CppSharp::CppParser::CppParserOptions*)NativePtr)->targetInfo); } void CppSharp::Parser::CppParserOptions::TargetInfo::set(CppSharp::Parser::ParserTargetInfo^ value) { - ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->TargetInfo = (::CppSharp::CppParser::ParserTargetInfo*)value->NativePtr; + ((::CppSharp::CppParser::CppParserOptions*)NativePtr)->targetInfo = (::CppSharp::CppParser::ParserTargetInfo*)value->NativePtr; } System::String^ CppSharp::Parser::CppParserOptions::LibraryFile::get() @@ -382,32 +382,32 @@ void CppSharp::Parser::ParserDiagnostic::__Instance::set(System::IntPtr object) CppSharp::Parser::ParserDiagnosticLevel CppSharp::Parser::ParserDiagnostic::Level::get() { - return (CppSharp::Parser::ParserDiagnosticLevel)((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->Level; + return (CppSharp::Parser::ParserDiagnosticLevel)((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->level; } void CppSharp::Parser::ParserDiagnostic::Level::set(CppSharp::Parser::ParserDiagnosticLevel value) { - ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->Level = (::CppSharp::CppParser::ParserDiagnosticLevel)value; + ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->level = (::CppSharp::CppParser::ParserDiagnosticLevel)value; } int CppSharp::Parser::ParserDiagnostic::LineNumber::get() { - return ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->LineNumber; + return ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->lineNumber; } void CppSharp::Parser::ParserDiagnostic::LineNumber::set(int value) { - ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->LineNumber = value; + ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->lineNumber = value; } int CppSharp::Parser::ParserDiagnostic::ColumnNumber::get() { - return ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->ColumnNumber; + return ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->columnNumber; } void CppSharp::Parser::ParserDiagnostic::ColumnNumber::set(int value) { - ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->ColumnNumber = value; + ((::CppSharp::CppParser::ParserDiagnostic*)NativePtr)->columnNumber = value; } System::String^ CppSharp::Parser::ParserDiagnostic::FileName::get() @@ -501,12 +501,12 @@ void CppSharp::Parser::ParserResult::__Instance::set(System::IntPtr object) CppSharp::Parser::ParserResultKind CppSharp::Parser::ParserResult::Kind::get() { - return (CppSharp::Parser::ParserResultKind)((::CppSharp::CppParser::ParserResult*)NativePtr)->Kind; + return (CppSharp::Parser::ParserResultKind)((::CppSharp::CppParser::ParserResult*)NativePtr)->kind; } void CppSharp::Parser::ParserResult::Kind::set(CppSharp::Parser::ParserResultKind value) { - ((::CppSharp::CppParser::ParserResult*)NativePtr)->Kind = (::CppSharp::CppParser::ParserResultKind)value; + ((::CppSharp::CppParser::ParserResult*)NativePtr)->kind = (::CppSharp::CppParser::ParserResultKind)value; } CppSharp::Parser::AST::ASTContext^ CppSharp::Parser::ParserResult::ASTContext::get() @@ -521,12 +521,12 @@ void CppSharp::Parser::ParserResult::ASTContext::set(CppSharp::Parser::AST::ASTC CppSharp::Parser::AST::NativeLibrary^ CppSharp::Parser::ParserResult::Library::get() { - return (((::CppSharp::CppParser::ParserResult*)NativePtr)->Library == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*)((::CppSharp::CppParser::ParserResult*)NativePtr)->Library); + return (((::CppSharp::CppParser::ParserResult*)NativePtr)->library == nullptr) ? nullptr : gcnew CppSharp::Parser::AST::NativeLibrary((::CppSharp::CppParser::AST::NativeLibrary*)((::CppSharp::CppParser::ParserResult*)NativePtr)->library); } void CppSharp::Parser::ParserResult::Library::set(CppSharp::Parser::AST::NativeLibrary^ value) { - ((::CppSharp::CppParser::ParserResult*)NativePtr)->Library = (::CppSharp::CppParser::AST::NativeLibrary*)value->NativePtr; + ((::CppSharp::CppParser::ParserResult*)NativePtr)->library = (::CppSharp::CppParser::AST::NativeLibrary*)value->NativePtr; } unsigned int CppSharp::Parser::ParserResult::DiagnosticsCount::get() diff --git a/src/CppParser/Bindings/CLI/Target.cpp b/src/CppParser/Bindings/CLI/Target.cpp index 4a74d9b0f7..4f45b18296 100644 --- a/src/CppParser/Bindings/CLI/Target.cpp +++ b/src/CppParser/Bindings/CLI/Target.cpp @@ -46,382 +46,382 @@ void CppSharp::Parser::ParserTargetInfo::__Instance::set(System::IntPtr object) CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Char16Type::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char16Type; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Type; } void CppSharp::Parser::ParserTargetInfo::Char16Type::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char16Type = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Type = (::CppSharp::CppParser::ParserIntType)value; } CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Char32Type::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char32Type; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Type; } void CppSharp::Parser::ParserTargetInfo::Char32Type::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char32Type = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Type = (::CppSharp::CppParser::ParserIntType)value; } CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::Int64Type::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Int64Type; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->int64Type; } void CppSharp::Parser::ParserTargetInfo::Int64Type::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Int64Type = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->int64Type = (::CppSharp::CppParser::ParserIntType)value; } CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::IntMaxType::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntMaxType; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxType; } void CppSharp::Parser::ParserTargetInfo::IntMaxType::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntMaxType = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxType = (::CppSharp::CppParser::ParserIntType)value; } CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::IntPtrType::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntPtrType; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intPtrType; } void CppSharp::Parser::ParserTargetInfo::IntPtrType::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntPtrType = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intPtrType = (::CppSharp::CppParser::ParserIntType)value; } CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::SizeType::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->SizeType; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->sizeType; } void CppSharp::Parser::ParserTargetInfo::SizeType::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->SizeType = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->sizeType = (::CppSharp::CppParser::ParserIntType)value; } CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::UIntMaxType::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->UIntMaxType; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->uIntMaxType; } void CppSharp::Parser::ParserTargetInfo::UIntMaxType::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->UIntMaxType = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->uIntMaxType = (::CppSharp::CppParser::ParserIntType)value; } CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::WCharType::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->WCharType; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharType; } void CppSharp::Parser::ParserTargetInfo::WCharType::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->WCharType = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharType = (::CppSharp::CppParser::ParserIntType)value; } CppSharp::Parser::ParserIntType CppSharp::Parser::ParserTargetInfo::WIntType::get() { - return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->WIntType; + return (CppSharp::Parser::ParserIntType)((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wIntType; } void CppSharp::Parser::ParserTargetInfo::WIntType::set(CppSharp::Parser::ParserIntType value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->WIntType = (::CppSharp::CppParser::ParserIntType)value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wIntType = (::CppSharp::CppParser::ParserIntType)value; } unsigned int CppSharp::Parser::ParserTargetInfo::BoolAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->BoolAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolAlign; } void CppSharp::Parser::ParserTargetInfo::BoolAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->BoolAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::BoolWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->BoolWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolWidth; } void CppSharp::Parser::ParserTargetInfo::BoolWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->BoolWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->boolWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::CharAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->CharAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charAlign; } void CppSharp::Parser::ParserTargetInfo::CharAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->CharAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::CharWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->CharWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charWidth; } void CppSharp::Parser::ParserTargetInfo::CharWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->CharWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->charWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::Char16Align::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char16Align; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Align; } void CppSharp::Parser::ParserTargetInfo::Char16Align::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char16Align = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Align = value; } unsigned int CppSharp::Parser::ParserTargetInfo::Char16Width::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char16Width; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Width; } void CppSharp::Parser::ParserTargetInfo::Char16Width::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char16Width = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char16Width = value; } unsigned int CppSharp::Parser::ParserTargetInfo::Char32Align::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char32Align; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Align; } void CppSharp::Parser::ParserTargetInfo::Char32Align::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char32Align = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Align = value; } unsigned int CppSharp::Parser::ParserTargetInfo::Char32Width::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char32Width; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Width; } void CppSharp::Parser::ParserTargetInfo::Char32Width::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->Char32Width = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->char32Width = value; } unsigned int CppSharp::Parser::ParserTargetInfo::HalfAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->HalfAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfAlign; } void CppSharp::Parser::ParserTargetInfo::HalfAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->HalfAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::HalfWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->HalfWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfWidth; } void CppSharp::Parser::ParserTargetInfo::HalfWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->HalfWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->halfWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::FloatAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->FloatAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatAlign; } void CppSharp::Parser::ParserTargetInfo::FloatAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->FloatAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::FloatWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->FloatWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatWidth; } void CppSharp::Parser::ParserTargetInfo::FloatWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->FloatWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->floatWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::DoubleAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->DoubleAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleAlign; } void CppSharp::Parser::ParserTargetInfo::DoubleAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->DoubleAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::DoubleWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->DoubleWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleWidth; } void CppSharp::Parser::ParserTargetInfo::DoubleWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->DoubleWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->doubleWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::ShortAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ShortAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortAlign; } void CppSharp::Parser::ParserTargetInfo::ShortAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ShortAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::ShortWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ShortWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortWidth; } void CppSharp::Parser::ParserTargetInfo::ShortWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->ShortWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->shortWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::IntAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intAlign; } void CppSharp::Parser::ParserTargetInfo::IntAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::IntWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intWidth; } void CppSharp::Parser::ParserTargetInfo::IntWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::IntMaxTWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntMaxTWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxTWidth; } void CppSharp::Parser::ParserTargetInfo::IntMaxTWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->IntMaxTWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->intMaxTWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::LongAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longAlign; } void CppSharp::Parser::ParserTargetInfo::LongAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::LongWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longWidth; } void CppSharp::Parser::ParserTargetInfo::LongWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::LongDoubleAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongDoubleAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleAlign; } void CppSharp::Parser::ParserTargetInfo::LongDoubleAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongDoubleAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::LongDoubleWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongDoubleWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleWidth; } void CppSharp::Parser::ParserTargetInfo::LongDoubleWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongDoubleWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longDoubleWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::LongLongAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongLongAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongAlign; } void CppSharp::Parser::ParserTargetInfo::LongLongAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongLongAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::LongLongWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongLongWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongWidth; } void CppSharp::Parser::ParserTargetInfo::LongLongWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->LongLongWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->longLongWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::PointerAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->PointerAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerAlign; } void CppSharp::Parser::ParserTargetInfo::PointerAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->PointerAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::PointerWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->PointerWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerWidth; } void CppSharp::Parser::ParserTargetInfo::PointerWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->PointerWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->pointerWidth = value; } unsigned int CppSharp::Parser::ParserTargetInfo::WCharAlign::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->WCharAlign; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharAlign; } void CppSharp::Parser::ParserTargetInfo::WCharAlign::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->WCharAlign = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharAlign = value; } unsigned int CppSharp::Parser::ParserTargetInfo::WCharWidth::get() { - return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->WCharWidth; + return ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharWidth; } void CppSharp::Parser::ParserTargetInfo::WCharWidth::set(unsigned int value) { - ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->WCharWidth = value; + ((::CppSharp::CppParser::ParserTargetInfo*)NativePtr)->wCharWidth = value; } System::String^ CppSharp::Parser::ParserTargetInfo::ABI::get() diff --git a/src/CppParser/Comments.cpp b/src/CppParser/Comments.cpp index 013108b0d0..e091868edf 100644 --- a/src/CppParser/Comments.cpp +++ b/src/CppParser/Comments.cpp @@ -38,9 +38,9 @@ RawComment* Parser::WalkRawComment(const clang::RawComment* RC) { using namespace clang; - auto& SM = C->getSourceManager(); + auto& SM = c->getSourceManager(); auto Comment = new RawComment(); - Comment->Kind = ConvertRawCommentKind(RC->getKind()); + Comment->kind = ConvertRawCommentKind(RC->getKind()); Comment->Text = RC->getRawText(SM); Comment->BriefText = RC->getBriefText(*AST); @@ -84,13 +84,13 @@ ConvertParamPassDirection(clang::comments::ParamCommandComment::PassDirection Di static void HandleInlineContent(const clang::comments::InlineContentComment *CK, InlineContentComment* IC) { - IC->HasTrailingNewline = CK->hasTrailingNewline(); + IC->hasTrailingNewline = CK->hasTrailingNewline(); } static void HandleBlockCommand(const clang::comments::BlockCommandComment *CK, BlockCommandComment* BC) { - BC->CommandId = CK->getCommandID(); + BC->commandId = CK->getCommandID(); for (unsigned I = 0, E = CK->getNumArgs(); I != E; ++I) { auto Arg = BlockCommandComment::Argument(); @@ -127,7 +127,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto BC = new BlockCommandComment(); _Comment = BC; HandleBlockCommand(CK, BC); - BC->ParagraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); + BC->paragraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); break; } case Comment::ParamCommandCommentKind: @@ -136,10 +136,10 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto PC = new ParamCommandComment(); _Comment = PC; HandleBlockCommand(CK, PC); - PC->Direction = ConvertParamPassDirection(CK->getDirection()); + PC->direction = ConvertParamPassDirection(CK->getDirection()); if (CK->isParamIndexValid() && !CK->isVarArgParam()) - PC->ParamIndex = CK->getParamIndex(); - PC->ParagraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); + PC->paramIndex = CK->getParamIndex(); + PC->paragraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); break; } case Comment::TParamCommandCommentKind: @@ -152,7 +152,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) if (CK->isPositionValid()) for (unsigned I = 0, E = CK->getDepth(); I != E; ++I) TC->Position.push_back(CK->getIndex(I)); - TC->ParagraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); + TC->paragraphComment = static_cast(ConvertCommentBlock(CK->getParagraph())); break; } case Comment::VerbatimBlockCommentKind: @@ -185,7 +185,7 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto Content = ConvertCommentBlock(*I); PC->Content.push_back(static_cast(Content)); } - PC->IsWhitespace = CK->isWhitespace(); + PC->isWhitespace = CK->isWhitespace(); break; } case Comment::HTMLStartTagCommentKind: @@ -229,8 +229,8 @@ static Comment* ConvertCommentBlock(clang::comments::Comment* C) auto IC = new InlineCommandComment(); _Comment = IC; HandleInlineContent(CK, IC); - IC->CommandId = CK->getCommandID(); - IC->CommentRenderKind = ConvertRenderKind(CK->getRenderKind()); + IC->commandId = CK->getCommandID(); + IC->commentRenderKind = ConvertRenderKind(CK->getRenderKind()); for (unsigned I = 0, E = CK->getNumArgs(); I != E; ++I) { auto Arg = InlineCommandComment::Argument(); @@ -265,11 +265,11 @@ void Parser::HandleComments(const clang::Decl* D, Declaration* Decl) return; auto RawComment = WalkRawComment(RC); - Decl->Comment = RawComment; + Decl->comment = RawComment; - if (clang::comments::FullComment* FC = RC->parse(*AST, &C->getPreprocessor(), D)) + if (clang::comments::FullComment* FC = RC->parse(*AST, &c->getPreprocessor(), D)) { auto CB = static_cast(ConvertCommentBlock(FC)); - RawComment->FullCommentBlock = CB; + RawComment->fullCommentBlock = CB; } } diff --git a/src/CppParser/CppParser.cpp b/src/CppParser/CppParser.cpp index aca8dfa086..bd85dc0377 100644 --- a/src/CppParser/CppParser.cpp +++ b/src/CppParser/CppParser.cpp @@ -12,14 +12,14 @@ namespace CppSharp { namespace CppParser { CppParserOptions::CppParserOptions() : ASTContext(0) - , ToolSetToUse(0) - , Abi(CppAbi::Itanium) - , NoStandardIncludes(false) - , NoBuiltinIncludes(false) - , MicrosoftMode(false) - , Verbose(false) - , LanguageVersion(CppParser::LanguageVersion::GNUPlusPlus11) - , TargetInfo(0) + , toolSetToUse(0) + , abi(CppAbi::Itanium) + , noStandardIncludes(false) + , noBuiltinIncludes(false) + , microsoftMode(false) + , verbose(false) + , languageVersion(CppParser::LanguageVersion::GNUPlusPlus11) + , targetInfo(0) { } @@ -36,22 +36,22 @@ DEF_STRING(ParserTargetInfo, ABI) ParserResult::ParserResult() : ASTContext(0) - , Library(0) - , CodeParser(0) + , library(0) + , codeParser(0) { } ParserResult::ParserResult(const ParserResult& rhs) - : Kind(rhs.Kind) + : kind(rhs.kind) , Diagnostics(rhs.Diagnostics) , ASTContext(rhs.ASTContext) - , Library(rhs.Library) - , CodeParser(rhs.CodeParser) + , library(rhs.library) + , codeParser(rhs.codeParser) {} ParserResult::~ParserResult() { - delete CodeParser; + delete codeParser; } ParserDiagnostic::ParserDiagnostic() {} @@ -59,9 +59,9 @@ ParserDiagnostic::ParserDiagnostic() {} ParserDiagnostic::ParserDiagnostic(const ParserDiagnostic& rhs) : FileName(rhs.FileName) , Message(rhs.Message) - , Level(rhs.Level) - , LineNumber(rhs.LineNumber) - , ColumnNumber(rhs.ColumnNumber) + , level(rhs.level) + , lineNumber(rhs.lineNumber) + , columnNumber(rhs.columnNumber) {} DEF_STRING(ParserDiagnostic, FileName) diff --git a/src/CppParser/CppParser.h b/src/CppParser/CppParser.h index 3644262e54..174cf9eb94 100644 --- a/src/CppParser/CppParser.h +++ b/src/CppParser/CppParser.h @@ -62,17 +62,17 @@ struct CS_API CppParserOptions CppSharp::CppParser::AST::ASTContext* ASTContext; - int ToolSetToUse; + int toolSetToUse; STRING(TargetTriple) - CppAbi Abi; + CppAbi abi; - bool NoStandardIncludes; - bool NoBuiltinIncludes; - bool MicrosoftMode; - bool Verbose; - LanguageVersion LanguageVersion; + bool noStandardIncludes; + bool noBuiltinIncludes; + bool microsoftMode; + bool verbose; + LanguageVersion languageVersion; - ParserTargetInfo* TargetInfo; + ParserTargetInfo* targetInfo; }; enum class ParserDiagnosticLevel @@ -91,9 +91,9 @@ struct CS_API ParserDiagnostic STRING(FileName) STRING(Message) - ParserDiagnosticLevel Level; - int LineNumber; - int ColumnNumber; + ParserDiagnosticLevel level; + int lineNumber; + int columnNumber; }; enum class ParserResultKind @@ -111,12 +111,12 @@ struct CS_API ParserResult ParserResult(const ParserResult&); ~ParserResult(); - ParserResultKind Kind; + ParserResultKind kind; VECTOR(ParserDiagnostic, Diagnostics) - CppSharp::CppParser::AST::ASTContext* ASTContext; - CppSharp::CppParser::AST::NativeLibrary* Library; - Parser* CodeParser; + ASTContext* ASTContext; + NativeLibrary* library; + Parser* codeParser; }; enum class SourceLocationKind diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index 7a32be8fe7..22d768d281 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -66,7 +66,7 @@ void* IgnorePtr = (void*) 0x1; //-----------------------------------// -Parser::Parser(CppParserOptions* Opts) : Lib(Opts->ASTContext), Opts(Opts), Index(0) +Parser::Parser(CppParserOptions* Opts) : lib(Opts->ASTContext), opts(Opts), index(0) { } @@ -87,9 +87,9 @@ LayoutField Parser::WalkVTablePointer(Class* Class, const clang::CharUnits& Offset, const std::string& prefix) { LayoutField LayoutField; - LayoutField.Offset = Offset.getQuantity(); + LayoutField.offset = Offset.getQuantity(); LayoutField.Name = prefix + "_" + Class->Name; - LayoutField.QualifiedType = GetQualifiedType(C->getASTContext().VoidPtrTy); + LayoutField.qualifiedType = GetQualifiedType(c->getASTContext().VoidPtrTy); return LayoutField; } @@ -98,7 +98,7 @@ void Parser::ReadClassLayout(Class* Class, const clang::RecordDecl* RD, { using namespace clang; - const auto &Layout = C->getASTContext().getASTRecordLayout(RD); + const auto &Layout = c->getASTContext().getASTRecordLayout(RD); auto CXXRD = dyn_cast(RD); auto Parent = static_cast( @@ -107,9 +107,9 @@ void Parser::ReadClassLayout(Class* Class, const clang::RecordDecl* RD, if (Class != Parent) { LayoutBase LayoutBase; - LayoutBase.Offset = Offset.getQuantity(); - LayoutBase.Class = Parent; - Class->Layout->Bases.push_back(LayoutBase); + LayoutBase.offset = Offset.getQuantity(); + LayoutBase._class = Parent; + Class->layout->Bases.push_back(LayoutBase); } // Dump bases. @@ -120,13 +120,13 @@ void Parser::ReadClassLayout(Class* Class, const clang::RecordDecl* RD, // Vtable pointer. if (CXXRD->isDynamicClass() && !PrimaryBase && - !C->getASTContext().getTargetInfo().getCXXABI().isMicrosoft()) { + !c->getASTContext().getTargetInfo().getCXXABI().isMicrosoft()) { auto VPtr = WalkVTablePointer(Parent, Offset, "vptr"); - Class->Layout->Fields.push_back(VPtr); + Class->layout->Fields.push_back(VPtr); } else if (HasOwnVFPtr) { auto VTPtr = WalkVTablePointer(Parent, Offset, "vfptr"); - Class->Layout->Fields.push_back(VTPtr); + Class->layout->Fields.push_back(VTPtr); } // Collect nvbases. @@ -155,7 +155,7 @@ void Parser::ReadClassLayout(Class* Class, const clang::RecordDecl* RD, if (HasOwnVBPtr) { auto VBPtr = WalkVTablePointer(Parent, Offset + Layout.getVBPtrOffset(), "vbptr"); - Class->Layout->Fields.push_back(VBPtr); + Class->layout->Fields.push_back(VBPtr); } } @@ -166,15 +166,15 @@ void Parser::ReadClassLayout(Class* Class, const clang::RecordDecl* RD, auto Field = *I; uint64_t LocalFieldOffsetInBits = Layout.getFieldOffset(FieldNo); CharUnits FieldOffset = - Offset + C->getASTContext().toCharUnitsFromBits(LocalFieldOffsetInBits); + Offset + c->getASTContext().toCharUnitsFromBits(LocalFieldOffsetInBits); auto F = WalkFieldCXX(Field, Parent); LayoutField LayoutField; - LayoutField.Offset = FieldOffset.getQuantity(); + LayoutField.offset = FieldOffset.getQuantity(); LayoutField.Name = F->Name; - LayoutField.QualifiedType = GetQualifiedType(Field->getType()); - LayoutField.FieldPtr = (void*)Field; - Class->Layout->Fields.push_back(LayoutField); + LayoutField.qualifiedType = GetQualifiedType(Field->getType()); + LayoutField.fieldPtr = (void*)Field; + Class->layout->Fields.push_back(LayoutField); } // Dump virtual bases. @@ -191,7 +191,7 @@ void Parser::ReadClassLayout(Class* Class, const clang::RecordDecl* RD, if (VtorDisps.find(VBase)->second.hasVtorDisp()) { auto VtorDisp = WalkVTablePointer(Parent, VBaseOffset - CharUnits::fromQuantity(4), "vtordisp"); - Class->Layout->Fields.push_back(VtorDisp); + Class->layout->Fields.push_back(VtorDisp); } ReadClassLayout(Class, VBase, VBaseOffset, @@ -250,7 +250,7 @@ void Parser::SetupHeader() std::vector args; args.push_back("-cc1"); - switch (Opts->LanguageVersion) + switch (opts->languageVersion) { case CppParser::LanguageVersion::C: case CppParser::LanguageVersion::GNUC: @@ -261,7 +261,7 @@ void Parser::SetupHeader() break; } - switch (Opts->LanguageVersion) + switch (opts->languageVersion) { case CppParser::LanguageVersion::C: args.push_back("-std=c99"); @@ -276,88 +276,88 @@ void Parser::SetupHeader() args.push_back("-std=gnu++98"); break; case CppParser::LanguageVersion::CPlusPlus11: - args.push_back(Opts->MicrosoftMode ? "-std=c++14" : "-std=c++11"); + args.push_back(opts->microsoftMode ? "-std=c++14" : "-std=c++11"); break; default: - args.push_back(Opts->MicrosoftMode ? "-std=gnu++14" : "-std=gnu++11"); + args.push_back(opts->microsoftMode ? "-std=gnu++14" : "-std=gnu++11"); break; } args.push_back("-fno-rtti"); - for (unsigned I = 0, E = Opts->Arguments.size(); I != E; ++I) + for (unsigned I = 0, E = opts->Arguments.size(); I != E; ++I) { - const auto& Arg = Opts->Arguments[I]; + const auto& Arg = opts->Arguments[I]; args.push_back(Arg.c_str()); } - C.reset(new CompilerInstance()); - C->createDiagnostics(); + c.reset(new CompilerInstance()); + c->createDiagnostics(); CompilerInvocation* Inv = new CompilerInvocation(); CompilerInvocation::CreateFromArgs(*Inv, args.data(), args.data() + args.size(), - C->getDiagnostics()); - C->setInvocation(Inv); + c->getDiagnostics()); + c->setInvocation(Inv); auto& TO = Inv->TargetOpts; - TargetABI = ConvertToClangTargetCXXABI(Opts->Abi); + targetABI = ConvertToClangTargetCXXABI(opts->abi); TO->Triple = llvm::sys::getDefaultTargetTriple(); - if (!Opts->TargetTriple.empty()) - TO->Triple = llvm::Triple::normalize(Opts->TargetTriple); + if (!opts->TargetTriple.empty()) + TO->Triple = llvm::Triple::normalize(opts->TargetTriple); - TargetInfo* TI = TargetInfo::CreateTargetInfo(C->getDiagnostics(), TO); + TargetInfo* TI = TargetInfo::CreateTargetInfo(c->getDiagnostics(), TO); if (!TI) { // We might have no target info due to an invalid user-provided triple. // Try again with the default triple. TO->Triple = llvm::sys::getDefaultTargetTriple(); - TI = TargetInfo::CreateTargetInfo(C->getDiagnostics(), TO); + TI = TargetInfo::CreateTargetInfo(c->getDiagnostics(), TO); } assert(TI && "Expected valid target info"); - C->setTarget(TI); + c->setTarget(TI); - C->createFileManager(); - C->createSourceManager(C->getFileManager()); + c->createFileManager(); + c->createSourceManager(c->getFileManager()); - auto& HSOpts = C->getHeaderSearchOpts(); - auto& PPOpts = C->getPreprocessorOpts(); - auto& LangOpts = C->getLangOpts(); + auto& HSOpts = c->getHeaderSearchOpts(); + auto& PPOpts = c->getPreprocessorOpts(); + auto& LangOpts = c->getLangOpts(); - if (Opts->NoStandardIncludes) + if (opts->noStandardIncludes) { HSOpts.UseStandardSystemIncludes = false; HSOpts.UseStandardCXXIncludes = false; } - if (Opts->NoBuiltinIncludes) + if (opts->noBuiltinIncludes) HSOpts.UseBuiltinIncludes = false; - if (Opts->Verbose) + if (opts->verbose) HSOpts.Verbose = true; - for (unsigned I = 0, E = Opts->IncludeDirs.size(); I != E; ++I) + for (unsigned I = 0, E = opts->IncludeDirs.size(); I != E; ++I) { - const auto& s = Opts->IncludeDirs[I]; + const auto& s = opts->IncludeDirs[I]; HSOpts.AddPath(s, frontend::Angled, false, false); } - for (unsigned I = 0, E = Opts->SystemIncludeDirs.size(); I != E; ++I) + for (unsigned I = 0, E = opts->SystemIncludeDirs.size(); I != E; ++I) { - const auto& s = Opts->SystemIncludeDirs[I]; + const auto& s = opts->SystemIncludeDirs[I]; HSOpts.AddPath(s, frontend::System, false, false); } - for (unsigned I = 0, E = Opts->Defines.size(); I != E; ++I) + for (unsigned I = 0, E = opts->Defines.size(); I != E; ++I) { - const auto& define = Opts->Defines[I]; + const auto& define = opts->Defines[I]; PPOpts.addMacroDef(define); } - for (unsigned I = 0, E = Opts->Undefines.size(); I != E; ++I) + for (unsigned I = 0, E = opts->Undefines.size(); I != E; ++I) { - const auto& undefine = Opts->Undefines[I]; + const auto& undefine = opts->Undefines[I]; PPOpts.addMacroUndef(undefine); } @@ -370,15 +370,15 @@ void Parser::SetupHeader() /*IgnoreSysRoot=*/false); #ifdef _MSC_VER - if (Opts->MicrosoftMode) + if (opts->microsoftMode) { - LangOpts.MSCompatibilityVersion = Opts->ToolSetToUse; + LangOpts.MSCompatibilityVersion = opts->toolSetToUse; if (!LangOpts.MSCompatibilityVersion) LangOpts.MSCompatibilityVersion = 1700; } #endif llvm::opt::InputArgList Args(0, 0); - clang::driver::Driver D("", TO->Triple, C->getDiagnostics()); + clang::driver::Driver D("", TO->Triple, c->getDiagnostics()); clang::driver::ToolChain *TC = nullptr; llvm::Triple Target(TO->Triple); switch (Target.getOS()) { @@ -390,7 +390,7 @@ void Parser::SetupHeader() break; } - if (TC && !Opts->NoStandardIncludes) { + if (TC && !opts->noStandardIncludes) { llvm::opt::ArgStringList Includes; TC->AddClangSystemIncludeArgs(Args, Includes); TC->AddClangCXXStdlibIncludeArgs(Args, Includes); @@ -404,13 +404,13 @@ void Parser::SetupHeader() // Enable preprocessing record. PPOpts.DetailedRecord = true; - C->createPreprocessor(TU_Complete); + c->createPreprocessor(TU_Complete); - Preprocessor& PP = C->getPreprocessor(); + Preprocessor& PP = c->getPreprocessor(); PP.getBuiltinInfo().initializeBuiltins(PP.getIdentifierTable(), PP.getLangOpts()); - C->createASTContext(); + c->createASTContext(); } //-----------------------------------// @@ -430,7 +430,7 @@ std::string Parser::GetDeclMangledName(const clang::Decl* D) auto ND = cast(D); std::unique_ptr MC; - switch(TargetABI) + switch(targetABI) { default: MC.reset(ItaniumMangleContext::create(*AST, AST->getDiagnostics())); @@ -573,7 +573,7 @@ std::string Parser::GetTypeName(const clang::Type* Type) return GetTagDeclName(Tag->getDecl()); } - PrintingPolicy pp(C->getLangOpts()); + PrintingPolicy pp(c->getLangOpts()); pp.SuppressTagKeyword = true; std::string TypeName; @@ -585,17 +585,17 @@ std::string Parser::GetTypeName(const clang::Type* Type) static TypeQualifiers GetTypeQualifiers(const clang::QualType& Type) { TypeQualifiers quals; - quals.IsConst = Type.isLocalConstQualified(); - quals.IsRestrict = Type.isLocalRestrictQualified(); - quals.IsVolatile = Type.isVolatileQualified(); + quals.isConst = Type.isLocalConstQualified(); + quals.isRestrict = Type.isLocalRestrictQualified(); + quals.isVolatile = Type.isVolatileQualified(); return quals; } QualifiedType Parser::GetQualifiedType(const clang::QualType& qual, clang::TypeLoc* TL) { QualifiedType qualType; - qualType.Type = WalkType(qual, TL); - qualType.Qualifiers = GetTypeQualifiers(qual); + qualType.type = WalkType(qual, TL); + qualType.qualifiers = GetTypeQualifiers(qual); return qualType; } @@ -628,55 +628,55 @@ Parser::WalkVTableComponent(const clang::VTableComponent& Component) { case clang::VTableComponent::CK_VCallOffset: { - VTC.Kind = VTableComponentKind::VBaseOffset; - VTC.Offset = Component.getVCallOffset().getQuantity(); + VTC.kind = VTableComponentKind::VBaseOffset; + VTC.offset = Component.getVCallOffset().getQuantity(); break; } case clang::VTableComponent::CK_VBaseOffset: { - VTC.Kind = VTableComponentKind::VBaseOffset; - VTC.Offset = Component.getVBaseOffset().getQuantity(); + VTC.kind = VTableComponentKind::VBaseOffset; + VTC.offset = Component.getVBaseOffset().getQuantity(); break; } case clang::VTableComponent::CK_OffsetToTop: { - VTC.Kind = VTableComponentKind::OffsetToTop; - VTC.Offset = Component.getOffsetToTop().getQuantity(); + VTC.kind = VTableComponentKind::OffsetToTop; + VTC.offset = Component.getOffsetToTop().getQuantity(); break; } case clang::VTableComponent::CK_RTTI: { - VTC.Kind = VTableComponentKind::RTTI; + VTC.kind = VTableComponentKind::RTTI; auto RD = Component.getRTTIDecl(); - VTC.Declaration = WalkRecordCXX(RD); + VTC.declaration = WalkRecordCXX(RD); break; } case clang::VTableComponent::CK_FunctionPointer: { - VTC.Kind = VTableComponentKind::FunctionPointer; + VTC.kind = VTableComponentKind::FunctionPointer; auto MD = Component.getFunctionDecl(); - VTC.Declaration = WalkMethodCXX(MD); + VTC.declaration = WalkMethodCXX(MD); break; } case clang::VTableComponent::CK_CompleteDtorPointer: { - VTC.Kind = VTableComponentKind::CompleteDtorPointer; + VTC.kind = VTableComponentKind::CompleteDtorPointer; auto MD = Component.getDestructorDecl(); - VTC.Declaration = WalkMethodCXX(MD); + VTC.declaration = WalkMethodCXX(MD); break; } case clang::VTableComponent::CK_DeletingDtorPointer: { - VTC.Kind = VTableComponentKind::DeletingDtorPointer; + VTC.kind = VTableComponentKind::DeletingDtorPointer; auto MD = Component.getDestructorDecl(); - VTC.Declaration = WalkMethodCXX(MD); + VTC.declaration = WalkMethodCXX(MD); break; } case clang::VTableComponent::CK_UnusedFunctionPointer: { - VTC.Kind = VTableComponentKind::UnusedFunctionPointer; + VTC.kind = VTableComponentKind::UnusedFunctionPointer; auto MD = Component.getUnusedFunctionDecl(); - VTC.Declaration = WalkMethodCXX(MD); + VTC.declaration = WalkMethodCXX(MD); break; } default: @@ -707,14 +707,14 @@ void Parser::WalkVTable(const clang::CXXRecordDecl* RD, Class* C) assert(RD->isDynamicClass() && "Only dynamic classes have virtual tables"); - if (!C->Layout) - C->Layout = new ClassLayout(); + if (!C->layout) + C->layout = new ClassLayout(); - switch(TargetABI) + switch(targetABI) { case TargetCXXABI::Microsoft: { - C->Layout->ABI = CppAbi::Microsoft; + C->layout->ABI = CppAbi::Microsoft; MicrosoftVTableContext VTContext(*AST); auto VFPtrs = VTContext.getVFPtrOffsets(RD); @@ -727,19 +727,19 @@ void Parser::WalkVTable(const clang::CXXRecordDecl* RD, Class* C) Info.VFPtrFullOffset = VFPtrInfo->FullOffsetInMDC.getQuantity(); auto& VTLayout = VTContext.getVFTableLayout(RD, VFPtrInfo->FullOffsetInMDC); - Info.Layout = WalkVTableLayout(VTLayout); + Info.layout = WalkVTableLayout(VTLayout); - C->Layout->VFTables.push_back(Info); + C->layout->VFTables.push_back(Info); } break; } case TargetCXXABI::GenericItanium: { - C->Layout->ABI = CppAbi::Itanium; + C->layout->ABI = CppAbi::Itanium; ItaniumVTableContext VTContext(*AST); auto& VTLayout = VTContext.getVTableLayout(RD); - C->Layout->Layout = WalkVTableLayout(VTLayout); + C->layout->layout = WalkVTableLayout(VTLayout); break; } default: @@ -752,14 +752,14 @@ void Parser::EnsureCompleteRecord(const clang::RecordDecl* Record, { using namespace clang; - if (!RC->IsIncomplete || RC->CompleteDeclaration) + if (!RC->isIncomplete || RC->completeDeclaration) return; auto Complete = NS->FindClass(Record->getName(), /*IsComplete=*/true, /*Create=*/false); if (Complete) { - RC->CompleteDeclaration = Complete; + RC->completeDeclaration = Complete; return; } @@ -779,7 +779,7 @@ void Parser::EnsureCompleteRecord(const clang::RecordDecl* Record, /*IsComplete=*/true, /*Create=*/false); if (Complete) { - RC->CompleteDeclaration = Complete; + RC->completeDeclaration = Complete; return; } Complete = DC->FindClass(Record->getName(), @@ -789,7 +789,7 @@ void Parser::EnsureCompleteRecord(const clang::RecordDecl* Record, else WalkRecord(Definition, Complete); HandleDeclaration(Definition, Complete); - RC->CompleteDeclaration = Complete; + RC->completeDeclaration = Complete; } Class* Parser::GetRecord(const clang::RecordDecl* Record, bool& Process) @@ -831,7 +831,7 @@ Class* Parser::GetRecord(const clang::RecordDecl* Record, bool& Process) if (HasEmptyName) { auto USR = GetDeclUSR(Record); - NS->Anonymous[USR] = RC; + NS->anonymous[USR] = RC; } if (!isCompleteDefinition) @@ -876,7 +876,7 @@ void Parser::WalkRecord(const clang::RecordDecl* Record, Class* RC) if (Record->isImplicit()) return; - auto headStartLoc = GetDeclStartLocation(C.get(), Record); + auto headStartLoc = GetDeclStartLocation(c.get(), Record); auto headEndLoc = Record->getLocation(); // identifier location auto bodyEndLoc = Record->getLocEnd(); @@ -886,22 +886,22 @@ void Parser::WalkRecord(const clang::RecordDecl* Record, Class* RC) HandlePreprocessedEntities(RC, headRange, MacroLocation::ClassHead); HandlePreprocessedEntities(RC, bodyRange, MacroLocation::ClassBody); - auto& Sema = C->getSema(); + auto& Sema = c->getSema(); - RC->IsUnion = Record->isUnion(); - RC->IsDependent = Record->isDependentType(); - RC->IsExternCContext = Record->isExternCContext(); + RC->isUnion = Record->isUnion(); + RC->isDependent = Record->isDependentType(); + RC->isExternCContext = Record->isExternCContext(); bool hasLayout = !Record->isDependentType() && !Record->isInvalidDecl(); if (hasLayout) { - const auto& Layout = C->getASTContext().getASTRecordLayout(Record); - if (!RC->Layout) - RC->Layout = new ClassLayout(); - RC->Layout->Alignment = (int)Layout.getAlignment().getQuantity(); - RC->Layout->Size = (int)Layout.getSize().getQuantity(); - RC->Layout->DataSize = (int)Layout.getDataSize().getQuantity(); + const auto& Layout = c->getASTContext().getASTRecordLayout(Record); + if (!RC->layout) + RC->layout = new ClassLayout(); + RC->layout->alignment = (int)Layout.getAlignment().getQuantity(); + RC->layout->size = (int)Layout.getSize().getQuantity(); + RC->layout->dataSize = (int)Layout.getDataSize().getQuantity(); ReadClassLayout(RC, Record, CharUnits(), true); } @@ -933,8 +933,8 @@ void Parser::WalkRecord(const clang::RecordDecl* Record, Class* RC) auto AccessDecl = new AccessSpecifierDecl(); HandleDeclaration(AS, AccessDecl); - AccessDecl->Access = ConvertToAccess(AS->getAccess()); - AccessDecl->_Namespace = RC; + AccessDecl->access = ConvertToAccess(AS->getAccess()); + AccessDecl->_namespace = RC; RC->Specifiers.push_back(AccessDecl); break; @@ -971,31 +971,31 @@ void Parser::WalkRecordCXX(const clang::CXXRecordDecl* Record, Class* RC) if (Record->isImplicit()) return; - auto& Sema = C->getSema(); + auto& Sema = c->getSema(); Sema.ForceDeclarationOfImplicitMembers(const_cast(Record)); WalkRecord(Record, RC); - RC->IsPOD = Record->isPOD(); - RC->IsAbstract = Record->isAbstract(); - RC->IsDynamic = Record->isDynamicClass(); - RC->IsPolymorphic = Record->isPolymorphic(); - RC->HasNonTrivialDefaultConstructor = Record->hasNonTrivialDefaultConstructor(); - RC->HasNonTrivialCopyConstructor = Record->hasNonTrivialCopyConstructor(); - RC->HasNonTrivialDestructor = Record->hasNonTrivialDestructor(); + RC->isPOD = Record->isPOD(); + RC->isAbstract = Record->isAbstract(); + RC->isDynamic = Record->isDynamicClass(); + RC->isPolymorphic = Record->isPolymorphic(); + RC->hasNonTrivialDefaultConstructor = Record->hasNonTrivialDefaultConstructor(); + RC->hasNonTrivialCopyConstructor = Record->hasNonTrivialCopyConstructor(); + RC->hasNonTrivialDestructor = Record->hasNonTrivialDestructor(); bool hasLayout = !Record->isDependentType() && !Record->isInvalidDecl() && - Record->getDeclName() != C->getSema().VAListTagName; + Record->getDeclName() != c->getSema().VAListTagName; // Get the record layout information. const ASTRecordLayout* Layout = 0; if (hasLayout) { - Layout = &C->getASTContext().getASTRecordLayout(Record); + Layout = &c->getASTContext().getASTRecordLayout(Record); - assert (RC->Layout && "Expected a valid AST layout"); - RC->Layout->HasOwnVFPtr = Layout->hasOwnVFPtr(); - RC->Layout->VBPtrOffset = Layout->getVBPtrOffset().getQuantity(); + assert (RC->layout && "Expected a valid AST layout"); + RC->layout->hasOwnVFPtr = Layout->hasOwnVFPtr(); + RC->layout->VBPtrOffset = Layout->getVBPtrOffset().getQuantity(); } // Iterate through the record bases. @@ -1004,18 +1004,18 @@ void Parser::WalkRecordCXX(const clang::CXXRecordDecl* Record, Class* RC) auto& BS = *it; BaseClassSpecifier* Base = new BaseClassSpecifier(); - Base->Access = ConvertToAccess(BS.getAccessSpecifier()); - Base->IsVirtual = BS.isVirtual(); + Base->access = ConvertToAccess(BS.getAccessSpecifier()); + Base->isVirtual = BS.isVirtual(); auto BSTL = BS.getTypeSourceInfo()->getTypeLoc(); - Base->Type = WalkType(BS.getType(), &BSTL); + Base->type = WalkType(BS.getType(), &BSTL); auto BaseDecl = GetCXXRecordDeclFromBaseType(BS.getType().getTypePtr()); if (BaseDecl && Layout) { auto Offset = BS.isVirtual() ? Layout->getVBaseClassOffset(BaseDecl) : Layout->getBaseClassOffset(BaseDecl); - Base->Offset = Offset.getQuantity(); + Base->offset = Offset.getQuantity(); } RC->Bases.push_back(Base); @@ -1064,10 +1064,10 @@ Parser::WalkClassTemplateSpecialization(const clang::ClassTemplateSpecialization auto NS = GetNamespace(CTS); assert(NS && "Expected a valid namespace"); - TS->_Namespace = NS; + TS->_namespace = NS; TS->Name = CTS->getName(); - TS->TemplatedDecl = CT; - TS->SpecializationKind = WalkTemplateSpecializationKind(CTS->getSpecializationKind()); + TS->templatedDecl = CT; + TS->specializationKind = WalkTemplateSpecializationKind(CTS->getSpecializationKind()); CT->Specializations.push_back(TS); auto& TAL = CTS->getTemplateArgs(); @@ -1089,12 +1089,12 @@ Parser::WalkClassTemplateSpecialization(const clang::ClassTemplateSpecialization } else { - TS->IsIncomplete = true; + TS->isIncomplete = true; if (CTS->getDefinition()) { auto Complete = WalkDeclaration(CTS->getDefinition(), /*CanBeDefinition=*/true); - if (!Complete->IsIncomplete) - TS->CompleteDeclaration = Complete; + if (!Complete->isIncomplete) + TS->completeDeclaration = Complete; } } @@ -1119,10 +1119,10 @@ Parser::WalkClassTemplatePartialSpecialization(const clang::ClassTemplatePartial auto NS = GetNamespace(CTS); assert(NS && "Expected a valid namespace"); - TS->_Namespace = NS; + TS->_namespace = NS; TS->Name = CTS->getName(); - TS->TemplatedDecl = CT; - TS->SpecializationKind = WalkTemplateSpecializationKind(CTS->getSpecializationKind()); + TS->templatedDecl = CT; + TS->specializationKind = WalkTemplateSpecializationKind(CTS->getSpecializationKind()); CT->Specializations.push_back(TS); auto& TAL = CTS->getTemplateArgs(); @@ -1139,12 +1139,12 @@ Parser::WalkClassTemplatePartialSpecialization(const clang::ClassTemplatePartial } else { - TS->IsIncomplete = true; + TS->isIncomplete = true; if (CTS->getDefinition()) { auto Complete = WalkDeclaration(CTS->getDefinition(), /*CanBeDefinition=*/true); - if (!Complete->IsIncomplete) - TS->CompleteDeclaration = Complete; + if (!Complete->isIncomplete) + TS->completeDeclaration = Complete; } } @@ -1183,7 +1183,7 @@ ClassTemplate* Parser::WalkClassTemplate(const clang::ClassTemplateDecl* TD) HandleDeclaration(TD, CT); CT->Name = GetDeclName(TD); - CT->_Namespace = NS; + CT->_namespace = NS; NS->Templates.push_back(CT); bool Process; @@ -1202,22 +1202,22 @@ ClassTemplate* Parser::WalkClassTemplate(const clang::ClassTemplateDecl* TD) TemplateTemplateParameter* Parser::WalkTemplateTemplateParameter(const clang::TemplateTemplateParmDecl* TTP) { - auto TP = WalkedTemplateTemplateParameters[TTP]; + auto TP = walkedTemplateTemplateParameters[TTP]; if (TP) return TP; TP = new TemplateTemplateParameter(); HandleDeclaration(TTP, TP); TP->Parameters = WalkTemplateParameterList(TTP->getTemplateParameters()); - TP->IsParameterPack = TTP->isParameterPack(); - TP->IsPackExpansion = TTP->isPackExpansion(); - TP->IsExpandedParameterPack = TTP->isExpandedParameterPack(); + TP->isParameterPack = TTP->isParameterPack(); + TP->isPackExpansion = TTP->isPackExpansion(); + TP->isExpandedParameterPack = TTP->isExpandedParameterPack(); if (TTP->getTemplatedDecl()) { auto TD = WalkDeclaration(TTP->getTemplatedDecl(), /*IgnoreSystemDecls=*/false); TP->TemplatedDecl = TD; } - WalkedTemplateTemplateParameters[TTP] = TP; + walkedTemplateTemplateParameters[TTP] = TP; return TP; } @@ -1225,7 +1225,7 @@ TemplateTemplateParameter* Parser::WalkTemplateTemplateParameter(const clang::Te TypeTemplateParameter* Parser::WalkTypeTemplateParameter(const clang::TemplateTypeParmDecl* TTPD) { - auto TP = WalkedTypeTemplateParameters[TTPD]; + auto TP = walkedTypeTemplateParameters[TTPD]; if (TP) return TP; @@ -1233,11 +1233,11 @@ TypeTemplateParameter* Parser::WalkTypeTemplateParameter(const clang::TemplateTy TP->Name = GetDeclName(TTPD); HandleDeclaration(TTPD, TP); if (TTPD->hasDefaultArgument()) - TP->DefaultArgument = GetQualifiedType(TTPD->getDefaultArgument()); - TP->Depth = TTPD->getDepth(); - TP->Index = TTPD->getIndex(); - TP->IsParameterPack = TTPD->isParameterPack(); - WalkedTypeTemplateParameters[TTPD] = TP; + TP->defaultArgument = GetQualifiedType(TTPD->getDefaultArgument()); + TP->depth = TTPD->getDepth(); + TP->index = TTPD->getIndex(); + TP->isParameterPack = TTPD->isParameterPack(); + walkedTypeTemplateParameters[TTPD] = TP; return TP; } @@ -1245,7 +1245,7 @@ TypeTemplateParameter* Parser::WalkTypeTemplateParameter(const clang::TemplateTy NonTypeTemplateParameter* Parser::WalkNonTypeTemplateParameter(const clang::NonTypeTemplateParmDecl* NTTPD) { - auto NTP = WalkedNonTypeTemplateParameters[NTTPD]; + auto NTP = walkedNonTypeTemplateParameters[NTTPD]; if (NTP) return NTP; @@ -1253,11 +1253,11 @@ NonTypeTemplateParameter* Parser::WalkNonTypeTemplateParameter(const clang::NonT NTP->Name = GetDeclName(NTTPD); HandleDeclaration(NTTPD, NTP); if (NTTPD->hasDefaultArgument()) - NTP->DefaultArgument = WalkExpression(NTTPD->getDefaultArgument()); - NTP->Depth = NTTPD->getDepth(); - NTP->Index = NTTPD->getIndex(); - NTP->IsParameterPack = NTTPD->isParameterPack(); - WalkedNonTypeTemplateParameters[NTTPD] = NTP; + NTP->defaultArgument = WalkExpression(NTTPD->getDefaultArgument()); + NTP->depth = NTTPD->getDepth(); + NTP->index = NTTPD->getIndex(); + NTP->isParameterPack = NTTPD->isParameterPack(); + walkedNonTypeTemplateParameters[NTTPD] = NTP; return NTP; } @@ -1320,41 +1320,41 @@ Parser::WalkTemplateArgument(const clang::TemplateArgument& TA, clang::TemplateA { case clang::TemplateArgument::Type: { - Arg.Kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Type; + Arg.kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Type; if (ArgLoc && ArgLoc->getTypeSourceInfo()) { auto ArgTL = ArgLoc->getTypeSourceInfo()->getTypeLoc(); - Arg.Type = GetQualifiedType(TA.getAsType(), &ArgTL); + Arg.type = GetQualifiedType(TA.getAsType(), &ArgTL); } else { - Arg.Type = GetQualifiedType(TA.getAsType()); + Arg.type = GetQualifiedType(TA.getAsType()); } break; } case clang::TemplateArgument::Declaration: - Arg.Kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Declaration; - Arg.Declaration = WalkDeclaration(TA.getAsDecl(), 0); + Arg.kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Declaration; + Arg.declaration = WalkDeclaration(TA.getAsDecl(), 0); break; case clang::TemplateArgument::NullPtr: - Arg.Kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::NullPtr; + Arg.kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::NullPtr; break; case clang::TemplateArgument::Integral: - Arg.Kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Integral; + Arg.kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Integral; //Arg.Type = WalkType(TA.getIntegralType(), 0); - Arg.Integral = TA.getAsIntegral().getLimitedValue(); + Arg.integral = TA.getAsIntegral().getLimitedValue(); break; case clang::TemplateArgument::Template: - Arg.Kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Template; + Arg.kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Template; break; case clang::TemplateArgument::TemplateExpansion: - Arg.Kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::TemplateExpansion; + Arg.kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::TemplateExpansion; break; case clang::TemplateArgument::Expression: - Arg.Kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Expression; + Arg.kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Expression; break; case clang::TemplateArgument::Pack: - Arg.Kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Pack; + Arg.kind = CppSharp::CppParser::TemplateArgument::ArgumentKind::Pack; break; case clang::TemplateArgument::Null: default: @@ -1418,7 +1418,7 @@ FunctionTemplate* Parser::WalkFunctionTemplate(const clang::FunctionTemplateDecl HandleDeclaration(TD, FT); FT->Name = GetDeclName(TD); - FT->_Namespace = NS; + FT->_namespace = NS; FT->TemplatedDecl = Function; FT->Parameters = WalkTemplateParameterList(TD->getTemplateParameters()); @@ -1435,14 +1435,14 @@ Parser::WalkFunctionTemplateSpec(clang::FunctionTemplateSpecializationInfo* FTSI using namespace clang; auto FTS = new CppSharp::CppParser::FunctionTemplateSpecialization(); - FTS->SpecializationKind = WalkTemplateSpecializationKind(FTSI->getTemplateSpecializationKind()); - FTS->SpecializedFunction = Function; + FTS->specializationKind = WalkTemplateSpecializationKind(FTSI->getTemplateSpecializationKind()); + FTS->specializedFunction = Function; // HACK: walking template arguments crashes when generating the parser bindings for OS X // so let's disable it for function templates which we do not support yet anyway //if (auto TALI = FTSI->TemplateArgumentsAsWritten) // FTS->Arguments = WalkTemplateArgumentList(FTSI->TemplateArguments, TALI); - FTS->Template = WalkFunctionTemplate(FTSI->getTemplate()); - FTS->Template->Specializations.push_back(FTS); + FTS->_template = WalkFunctionTemplate(FTSI->getTemplate()); + FTS->_template->Specializations.push_back(FTS); return FTS; } @@ -1463,7 +1463,7 @@ VarTemplate* Parser::WalkVarTemplate(const clang::VarTemplateDecl* TD) HandleDeclaration(TD, VT); VT->Name = GetDeclName(TD); - VT->_Namespace = NS; + VT->_namespace = NS; NS->Templates.push_back(VT); auto RC = WalkVariable(TD->getTemplatedDecl()); @@ -1489,10 +1489,10 @@ Parser::WalkVarTemplateSpecialization(const clang::VarTemplateSpecializationDecl auto NS = GetNamespace(VTS); assert(NS && "Expected a valid namespace"); - TS->_Namespace = NS; + TS->_namespace = NS; TS->Name = VTS->getName(); - TS->TemplatedDecl = VT; - TS->SpecializationKind = WalkTemplateSpecializationKind(VTS->getSpecializationKind()); + TS->templatedDecl = VT; + TS->specializationKind = WalkTemplateSpecializationKind(VTS->getSpecializationKind()); VT->Specializations.push_back(TS); auto& TAL = VTS->getTemplateArgs(); @@ -1529,10 +1529,10 @@ Parser::WalkVarTemplatePartialSpecialization(const clang::VarTemplatePartialSpec auto NS = GetNamespace(VTS); assert(NS && "Expected a valid namespace"); - TS->_Namespace = NS; + TS->_namespace = NS; TS->Name = VTS->getName(); - TS->TemplatedDecl = VT; - TS->SpecializationKind = WalkTemplateSpecializationKind(VTS->getSpecializationKind()); + TS->templatedDecl = VT; + TS->specializationKind = WalkTemplateSpecializationKind(VTS->getSpecializationKind()); VT->Specializations.push_back(TS); auto& TAL = VTS->getTemplateArgs(); @@ -1629,22 +1629,22 @@ Method* Parser::WalkMethodCXX(const clang::CXXMethodDecl* MD) auto Method = new CppSharp::CppParser::Method(); HandleDeclaration(MD, Method); - Method->Access = ConvertToAccess(MD->getAccess()); - Method->MethodKind = GetMethodKindFromDecl(MD->getDeclName()); - Method->IsStatic = MD->isStatic(); - Method->IsVirtual = MD->isVirtual(); - Method->IsConst = MD->isConst(); - Method->IsOverride = MD->size_overridden_methods() > 0; + Method->access = ConvertToAccess(MD->getAccess()); + Method->methodKind = GetMethodKindFromDecl(MD->getDeclName()); + Method->isStatic = MD->isStatic(); + Method->isVirtual = MD->isVirtual(); + Method->isConst = MD->isConst(); + Method->isOverride = MD->size_overridden_methods() > 0; switch (MD->getRefQualifier()) { case clang::RefQualifierKind::RQ_None: - Method->RefQualifier = RefQualifierKind::None; + Method->refQualifier = RefQualifierKind::None; break; case clang::RefQualifierKind::RQ_LValue: - Method->RefQualifier = RefQualifierKind::LValue; + Method->refQualifier = RefQualifierKind::LValue; break; case clang::RefQualifierKind::RQ_RValue: - Method->RefQualifier = RefQualifierKind::RValue; + Method->refQualifier = RefQualifierKind::RValue; break; } @@ -1661,10 +1661,10 @@ Method* Parser::WalkMethodCXX(const clang::CXXMethodDecl* MD) if (const CXXConstructorDecl* CD = dyn_cast(MD)) { - Method->IsDefaultConstructor = CD->isDefaultConstructor(); - Method->IsCopyConstructor = CD->isCopyConstructor(); - Method->IsMoveConstructor = CD->isMoveConstructor(); - Method->IsExplicit = CD->isExplicit(); + Method->isDefaultConstructor = CD->isDefaultConstructor(); + Method->isCopyConstructor = CD->isCopyConstructor(); + Method->isMoveConstructor = CD->isMoveConstructor(); + Method->isExplicit = CD->isExplicit(); } else if (const CXXDestructorDecl* DD = dyn_cast(MD)) { @@ -1673,7 +1673,7 @@ Method* Parser::WalkMethodCXX(const clang::CXXMethodDecl* MD) { auto TL = MD->getTypeSourceInfo()->getTypeLoc().castAs(); auto RTL = TL.getReturnLoc(); - Method->ConversionType = GetQualifiedType(CD->getConversionType(), &RTL); + Method->conversionType = GetQualifiedType(CD->getConversionType(), &RTL); } Class->Methods.push_back(Method); @@ -1698,15 +1698,15 @@ Field* Parser::WalkFieldCXX(const clang::FieldDecl* FD, Class* Class) auto F = new Field(); HandleDeclaration(FD, F); - F->_Namespace = Class; + F->_namespace = Class; F->Name = FD->getName(); auto TL = FD->getTypeSourceInfo()->getTypeLoc(); - F->QualifiedType = GetQualifiedType(FD->getType(), &TL); - F->Access = ConvertToAccess(FD->getAccess()); - F->Class = Class; - F->IsBitField = FD->isBitField(); - if (F->IsBitField && !F->IsDependent && !FD->getBitWidth()->isInstantiationDependent()) - F->BitWidth = FD->getBitWidthValue(C->getASTContext()); + F->qualifiedType = GetQualifiedType(FD->getType(), &TL); + F->access = ConvertToAccess(FD->getAccess()); + F->_class = Class; + F->isBitField = FD->isBitField(); + if (F->isBitField && !F->isDependent && !FD->getBitWidth()->isInstantiationDependent()) + F->bitWidth = FD->getBitWidthValue(c->getASTContext()); Class->Fields.push_back(F); @@ -1720,7 +1720,7 @@ TranslationUnit* Parser::GetTranslationUnit(clang::SourceLocation Loc, { using namespace clang; - clang::SourceManager& SM = C->getSourceManager(); + clang::SourceManager& SM = c->getSourceManager(); if (Loc.isMacroID()) Loc = SM.getExpansionLoc(Loc); @@ -1748,13 +1748,13 @@ TranslationUnit* Parser::GetTranslationUnit(clang::SourceLocation Loc, if (Kind) *Kind = LocKind; - auto Unit = Lib->FindOrCreateModule(File); + auto Unit = lib->FindOrCreateModule(File); - Unit->OriginalPtr = (void*) Unit; - assert(Unit->OriginalPtr != nullptr); + Unit->originalPtr = (void*) Unit; + assert(Unit->originalPtr != nullptr); if (LocKind != SourceLocationKind::Invalid) - Unit->IsSystemHeader = SM.isInSystemHeader(Loc); + Unit->isSystemHeader = SM.isInSystemHeader(Loc); return Unit; } @@ -1810,8 +1810,8 @@ DeclarationContext* Parser::GetNamespace(const clang::Decl* D, continue; auto Name = ND->getName(); DC = DC->FindCreateNamespace(Name); - ((Namespace*)DC)->IsAnonymous = ND->isAnonymousNamespace(); - ((Namespace*)DC)->IsInline = ND->isInline(); + ((Namespace*)DC)->isAnonymous = ND->isAnonymousNamespace(); + ((Namespace*)DC)->isInline = ND->isInline(); HandleDeclaration(ND, DC); continue; } @@ -2041,7 +2041,7 @@ bool Parser::ShouldCompleteType(const clang::QualType& QualType, bool LocValid) // while running the AST converter since the latter is a giant indirect recursion // this solution is a hack because we might need to complete system template specialisations // such as std:string or std::vector in order to represent them in the target language - return !Unit->IsSystemHeader; + return !Unit->isSystemHeader; } return true; } @@ -2058,7 +2058,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto CompleteType = ShouldCompleteType(QualType, LocValid); if (CompleteType) - C->getSema().RequireCompleteType( + c->getSema().RequireCompleteType( LocValid ? TL->getLocStart() : clang::SourceLocation(), QualType, 1); const clang::Type* Type = QualType.getTypePtr(); @@ -2097,10 +2097,10 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto AT = new AttributedType(); auto Modified = Attributed->getModifiedType(); - AT->Modified = GetQualifiedType(Modified, &Next); + AT->modified = GetQualifiedType(Modified, &Next); auto Equivalent = Attributed->getEquivalentType(); - AT->Equivalent = GetQualifiedType(Equivalent, &Next); + AT->equivalent = GetQualifiedType(Equivalent, &Next); Ty = AT; break; @@ -2111,7 +2111,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, assert(Builtin && "Expected a builtin type"); auto BT = new BuiltinType(); - BT->Type = WalkBuiltinType(Builtin); + BT->type = WalkBuiltinType(Builtin); Ty = BT; break; @@ -2122,7 +2122,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, EnumDecl* ED = ET->getDecl(); auto TT = new TagType(); - TT->Declaration = TT->Declaration = WalkDeclaration(ED, /*IgnoreSystemDecls=*/false); + TT->declaration = TT->declaration = WalkDeclaration(ED, /*IgnoreSystemDecls=*/false); Ty = TT; break; @@ -2132,13 +2132,13 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto Pointer = Type->getAs(); auto P = new PointerType(); - P->Modifier = PointerType::TypeModifier::Pointer; + P->modifier = PointerType::TypeModifier::Pointer; TypeLoc Next; if (LocValid) Next = TL->getNextTypeLoc(); auto Pointee = Pointer->getPointeeType(); - P->QualifiedPointee = GetQualifiedType(Pointee, &Next); + P->qualifiedPointee = GetQualifiedType(Pointee, &Next); Ty = P; break; @@ -2153,7 +2153,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, /*IgnoreSystemDecls=*/false)); auto Type = new TypedefType(); - Type->Declaration = TDD; + Type->declaration = TDD; Ty = Type; break; @@ -2166,9 +2166,9 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, if (LocValid) Next = TL->getNextTypeLoc(); auto Type = new DecayedType(); - Type->Decayed = GetQualifiedType(DT->getDecayedType(), &Next); - Type->Original = GetQualifiedType(DT->getOriginalType(), &Next); - Type->Pointee = GetQualifiedType(DT->getPointeeType(), &Next); + Type->decayed = GetQualifiedType(DT->getDecayedType(), &Next); + Type->original = GetQualifiedType(DT->getOriginalType(), &Next); + Type->pointee = GetQualifiedType(DT->getPointeeType(), &Next); Ty = Type; break; @@ -2189,7 +2189,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, RecordDecl* RD = RT->getDecl(); auto TT = new TagType(); - TT->Declaration = WalkDeclaration(RD, /*IgnoreSystemDecls=*/false); + TT->declaration = WalkDeclaration(RD, /*IgnoreSystemDecls=*/false); Ty = TT; break; @@ -2213,11 +2213,11 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto A = new ArrayType(); auto ElemTy = AT->getElementType(); - A->QualifiedType = GetQualifiedType(ElemTy, &Next); - A->SizeType = ArrayType::ArraySize::Constant; - A->Size = AST->getConstantArrayElementCount(AT); + A->qualifiedType = GetQualifiedType(ElemTy, &Next); + A->sizeType = ArrayType::ArraySize::Constant; + A->size = AST->getConstantArrayElementCount(AT); if (!ElemTy->isDependentType()) - A->ElementSize = (long)AST->getTypeSize(ElemTy); + A->elementSize = (long)AST->getTypeSize(ElemTy); Ty = A; break; @@ -2230,8 +2230,8 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, if (LocValid) Next = TL->getNextTypeLoc(); auto A = new ArrayType(); - A->QualifiedType = GetQualifiedType(AT->getElementType(), &Next); - A->SizeType = ArrayType::ArraySize::Incomplete; + A->qualifiedType = GetQualifiedType(AT->getElementType(), &Next); + A->sizeType = ArrayType::ArraySize::Incomplete; Ty = A; break; @@ -2244,8 +2244,8 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, if (LocValid) Next = TL->getNextTypeLoc(); auto A = new ArrayType(); - A->QualifiedType = GetQualifiedType(AT->getElementType(), &Next); - A->SizeType = ArrayType::ArraySize::Dependent; + A->qualifiedType = GetQualifiedType(AT->getElementType(), &Next); + A->sizeType = ArrayType::ArraySize::Dependent; //A->Size = AT->getSizeExpr(); Ty = A; @@ -2274,8 +2274,8 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, } auto F = new FunctionType(); - F->ReturnType = GetQualifiedType(FP->getReturnType(), &RL); - F->CallingConvention = ConvertCallConv(FP->getCallConv()); + F->returnType = GetQualifiedType(FP->getReturnType(), &RL); + F->callingConvention = ConvertCallConv(FP->getCallConv()); Ty = F; break; @@ -2303,8 +2303,8 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, } auto F = new FunctionType(); - F->ReturnType = GetQualifiedType(FP->getReturnType(), &RL); - F->CallingConvention = ConvertCallConv(FP->getCallConv()); + F->returnType = GetQualifiedType(FP->getReturnType(), &RL); + F->callingConvention = ConvertCallConv(FP->getCallConv()); for (unsigned i = 0; i < FP->getNumParams(); ++i) { @@ -2317,18 +2317,18 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto PTL = PVD->getTypeSourceInfo()->getTypeLoc(); FA->Name = PVD->getNameAsString(); - FA->QualifiedType = GetQualifiedType(PVD->getOriginalType(), &PTL); + FA->qualifiedType = GetQualifiedType(PVD->getOriginalType(), &PTL); } else { auto Arg = FP->getParamType(i); FA->Name = ""; - FA->QualifiedType = GetQualifiedType(Arg); + FA->qualifiedType = GetQualifiedType(Arg); // In this case we have no valid value to use as a pointer so // use a special value known to the managed side to make sure // it gets ignored. - FA->OriginalPtr = IgnorePtr; + FA->originalPtr = IgnorePtr; } F->Parameters.push_back(FA); } @@ -2358,7 +2358,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, if (LocValid) Next = TL->getNextTypeLoc(); auto MPT = new MemberPointerType(); - MPT->Pointee = GetQualifiedType(MP->getPointeeType(), &Next); + MPT->pointee = GetQualifiedType(MP->getPointeeType(), &Next); Ty = MPT; break; @@ -2369,10 +2369,10 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto TST = new TemplateSpecializationType(); TemplateName Name = TS->getTemplateName(); - TST->Template = static_cast(WalkDeclaration( + TST->_template = static_cast(WalkDeclaration( Name.getAsTemplateDecl(), 0)); if (TS->isSugared()) - TST->Desugared = GetQualifiedType(TS->desugar(), TL); + TST->desugared = GetQualifiedType(TS->desugar(), TL); TypeLoc UTL, ETL, ITL; @@ -2415,7 +2415,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto TST = new DependentTemplateSpecializationType(); if (TS->isSugared()) - TST->Desugared = GetQualifiedType(TS->desugar(), TL); + TST->desugared = GetQualifiedType(TS->desugar(), TL); TypeLoc UTL, ETL, ITL; @@ -2459,7 +2459,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto TPT = new CppSharp::CppParser::TemplateParameterType(); if (auto Ident = TP->getIdentifier()) - TPT->Parameter->Name = Ident->getName(); + TPT->parameter->Name = Ident->getName(); TypeLoc UTL, ETL, ITL, Next; @@ -2487,11 +2487,11 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, assert(TL->getTypeLocClass() == TypeLoc::TemplateTypeParm); auto TTTL = TL->getAs(); - TPT->Parameter = WalkTypeTemplateParameter(TTTL.getDecl()); + TPT->parameter = WalkTypeTemplateParameter(TTTL.getDecl()); } - TPT->Depth = TP->getDepth(); - TPT->Index = TP->getIndex(); - TPT->IsParameterPack = TP->isParameterPack(); + TPT->depth = TP->getDepth(); + TPT->index = TP->getIndex(); + TPT->isParameterPack = TP->isParameterPack(); Ty = TPT; break; @@ -2505,10 +2505,10 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, if (LocValid) Next = TL->getNextTypeLoc(); auto RepTy = TP->getReplacementType(); - TPT->Replacement = GetQualifiedType(RepTy, &Next); - TPT->ReplacedParameter = (TemplateParameterType*) + TPT->replacement = GetQualifiedType(RepTy, &Next); + TPT->replacedParameter = (TemplateParameterType*) WalkType(clang::QualType(TP->getReplacedParameter(), 0), 0); - TPT->ReplacedParameter->Parameter = WalkTypeTemplateParameter( + TPT->replacedParameter->parameter = WalkTypeTemplateParameter( TP->getReplacedParameter()->getDecl()); Ty = TPT; @@ -2518,9 +2518,9 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, { auto ICN = Type->getAs(); auto ICNT = new InjectedClassNameType(); - ICNT->Class = static_cast(WalkDeclaration( + ICNT->_class = static_cast(WalkDeclaration( ICN->getDecl(), 0)); - ICNT->InjectedSpecializationType = GetQualifiedType( + ICNT->injectedSpecializationType = GetQualifiedType( ICN->getInjectedSpecializationType()); Ty = ICNT; @@ -2531,7 +2531,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto DN = Type->getAs(); auto DNT = new DependentNameType(); if (DN->isSugared()) - DNT->Desugared = GetQualifiedType(DN->desugar(), TL); + DNT->desugared = GetQualifiedType(DN->desugar(), TL); Ty = DNT; break; @@ -2541,13 +2541,13 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto LR = Type->getAs(); auto P = new PointerType(); - P->Modifier = PointerType::TypeModifier::LVReference; + P->modifier = PointerType::TypeModifier::LVReference; TypeLoc Next; if (LocValid) Next = TL->getNextTypeLoc(); auto Pointee = LR->getPointeeType(); - P->QualifiedPointee = GetQualifiedType(Pointee, &Next); + P->qualifiedPointee = GetQualifiedType(Pointee, &Next); Ty = P; break; @@ -2557,13 +2557,13 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto LR = Type->getAs(); auto P = new PointerType(); - P->Modifier = PointerType::TypeModifier::RVReference; + P->modifier = PointerType::TypeModifier::RVReference; TypeLoc Next; if (LocValid) Next = TL->getNextTypeLoc(); auto Pointee = LR->getPointeeType(); - P->QualifiedPointee = GetQualifiedType(Pointee, &Next); + P->qualifiedPointee = GetQualifiedType(Pointee, &Next); Ty = P; break; @@ -2574,8 +2574,8 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto UTT = new UnaryTransformType(); auto Loc = TL->getAs().getUnderlyingTInfo()->getTypeLoc(); - UTT->Desugared = GetQualifiedType(UT->isSugared() ? UT->desugar() : UT->getBaseType(), &Loc); - UTT->BaseType = GetQualifiedType(UT->getBaseType(), &Loc); + UTT->desugared = GetQualifiedType(UT->isSugared() ? UT->desugar() : UT->getBaseType(), &Loc); + UTT->baseType = GetQualifiedType(UT->getBaseType(), &Loc); Ty = UTT; break; @@ -2585,8 +2585,8 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, auto V = Type->getAs(); auto VT = new VectorType(); - VT->ElementType = GetQualifiedType(V->getElementType()); - VT->NumElements = V->getNumElements(); + VT->elementType = GetQualifiedType(V->getElementType()); + VT->numElements = V->getNumElements(); Ty = VT; break; @@ -2609,7 +2609,7 @@ Type* Parser::WalkType(clang::QualType QualType, clang::TypeLoc* TL, return nullptr; } } - Ty->IsDependent = Type->isDependentType(); + Ty->isDependent = Type->isDependentType(); return Ty; } @@ -2623,7 +2623,7 @@ Enumeration* Parser::WalkEnum(const clang::EnumDecl* ED) assert(NS && "Expected a valid namespace"); auto E = NS->FindEnum(ED->getCanonicalDecl()); - if (E && !E->IsIncomplete) + if (E && !E->isIncomplete) return E; if (!E) @@ -2644,7 +2644,7 @@ Enumeration* Parser::WalkEnum(const clang::EnumDecl* ED) } } - if (E && !E->IsIncomplete) + if (E && !E->isIncomplete) return E; if (!E) @@ -2656,29 +2656,29 @@ Enumeration* Parser::WalkEnum(const clang::EnumDecl* ED) { E = new Enumeration(); E->Name = Name; - E->_Namespace = NS; + E->_namespace = NS; NS->Enums.push_back(E); } HandleDeclaration(ED, E); } if (ED->isScoped()) - E->Modifiers = (Enumeration::EnumModifiers) - ((int)E->Modifiers | (int)Enumeration::EnumModifiers::Scoped); + E->modifiers = (Enumeration::EnumModifiers) + ((int)E->modifiers | (int)Enumeration::EnumModifiers::Scoped); // Get the underlying integer backing the enum. clang::QualType IntType = ED->getIntegerType(); - E->Type = WalkType(IntType, 0); - E->BuiltinType = static_cast(WalkType(IntType, 0, + E->type = WalkType(IntType, 0); + E->builtinType = static_cast(WalkType(IntType, 0, /*DesugarType=*/true)); if (!ED->isThisDeclarationADefinition()) { - E->IsIncomplete = true; + E->isIncomplete = true; return E; } - E->IsIncomplete = false; + E->isIncomplete = false; for(auto it = ED->enumerator_begin(); it != ED->enumerator_end(); ++it) { E->Items.push_back(WalkEnumItem(*it)); @@ -2694,9 +2694,9 @@ Enumeration::Item* Parser::WalkEnumItem(clang::EnumConstantDecl* ECD) EnumItem->Name = ECD->getNameAsString(); auto Value = ECD->getInitVal(); - EnumItem->Value = Value.isSigned() ? Value.getSExtValue() + EnumItem->value = Value.isSigned() ? Value.getSExtValue() : Value.getZExtValue(); - EnumItem->_Namespace = GetNamespace(ECD); + EnumItem->_namespace = GetNamespace(ECD); std::string Text; if (GetDeclText(ECD->getSourceRange(), Text)) @@ -2733,7 +2733,7 @@ bool Parser::CanCheckCodeGenInfo(clang::Sema& S, const clang::Type* Ty) // Lock in the MS inheritance model if we have a member pointer to a class, // else we get an assertion error inside Clang's codegen machinery. - if (C->getASTContext().getTargetInfo().getCXXABI().isMicrosoft()) + if (c->getASTContext().getTargetInfo().getCXXABI().isMicrosoft()) { if (auto MPT = Ty->getAs()) if (!MPT->isDependentType()) @@ -2778,17 +2778,17 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F, assert(NS && "Expected a valid namespace"); F->Name = FD->getNameAsString(); - F->_Namespace = NS; - F->IsVariadic = FD->isVariadic(); - F->IsInline = FD->isInlined(); - F->IsDependent = FD->isDependentContext(); - F->IsPure = FD->isPure(); - F->IsDeleted = FD->isDeleted(); + F->_namespace = NS; + F->isVariadic = FD->isVariadic(); + F->isInline = FD->isInlined(); + F->isDependent = FD->isDependentContext(); + F->isPure = FD->isPure(); + F->isDeleted = FD->isDeleted(); if (auto InstantiatedFrom = FD->getTemplateInstantiationPattern()) - F->InstantiatedFrom = static_cast(WalkDeclaration(InstantiatedFrom)); + F->instantiatedFrom = static_cast(WalkDeclaration(InstantiatedFrom)); auto CC = FT->getCallConv(); - F->CallingConvention = ConvertCallConv(CC); + F->callingConvention = ConvertCallConv(CC); F->OperatorKind = GetOperatorKindFromDecl(FD->getDeclName()); @@ -2801,8 +2801,8 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F, { RTL = FTL.getReturnLoc(); - auto& SM = C->getSourceManager(); - auto headStartLoc = GetDeclStartLocation(C.get(), FD); + auto& SM = c->getSourceManager(); + auto headStartLoc = GetDeclStartLocation(c.get(), FD); auto headEndLoc = SM.getExpansionLoc(FTL.getLParenLoc()); auto headRange = clang::SourceRange(headStartLoc, headEndLoc); @@ -2811,7 +2811,7 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F, } } - F->ReturnType = GetQualifiedType(FD->getReturnType(), &RTL); + F->returnType = GetQualifiedType(FD->getReturnType(), &RTL); const auto& Mangled = GetDeclMangledName(FD); F->Mangled = Mangled; @@ -2860,16 +2860,16 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F, HandlePreprocessedEntities(P, paramRange, MacroLocation::FunctionParameters); - P->QualifiedType = GetQualifiedType(VD->getOriginalType(), &PTL); - P->HasDefaultValue = VD->hasDefaultArg(); - P->_Namespace = NS; - P->Index = VD->getFunctionScopeIndex(); + P->qualifiedType = GetQualifiedType(VD->getOriginalType(), &PTL); + P->hasDefaultValue = VD->hasDefaultArg(); + P->_namespace = NS; + P->index = VD->getFunctionScopeIndex(); if (VD->hasDefaultArg() && !VD->hasUnparsedDefaultArg()) { if (VD->hasUninstantiatedDefaultArg()) - P->DefaultArgument = WalkExpression(VD->getUninstantiatedDefaultArg()); + P->defaultArgument = WalkExpression(VD->getUninstantiatedDefaultArg()); else - P->DefaultArgument = WalkExpression(VD->getDefaultArg()); + P->defaultArgument = WalkExpression(VD->getDefaultArg()); } HandleDeclaration(VD, P); @@ -2878,7 +2878,7 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F, ParamStartLoc = VD->getLocEnd(); } - auto& CXXABI = CodeGenTypes->getCXXABI(); + auto& CXXABI = codeGenTypes->getCXXABI(); bool HasThisReturn = false; if (auto CD = dyn_cast(FD)) HasThisReturn = CXXABI.HasThisReturn(GlobalDecl(CD, Ctor_Complete)); @@ -2887,25 +2887,25 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F, else HasThisReturn = CXXABI.HasThisReturn(FD); - F->HasThisReturn = HasThisReturn; + F->hasThisReturn = HasThisReturn; if (auto FTSI = FD->getTemplateSpecializationInfo()) - F->SpecializationInfo = WalkFunctionTemplateSpec(FTSI, F); + F->specializationInfo = WalkFunctionTemplateSpec(FTSI, F); const CXXMethodDecl* MD; if ((MD = dyn_cast(FD)) && !MD->isStatic() && - !CanCheckCodeGenInfo(C->getSema(), MD->getThisType(C->getASTContext()).getTypePtr())) + !CanCheckCodeGenInfo(c->getSema(), MD->getThisType(c->getASTContext()).getTypePtr())) return; - if (!CanCheckCodeGenInfo(C->getSema(), FD->getReturnType().getTypePtr())) + if (!CanCheckCodeGenInfo(c->getSema(), FD->getReturnType().getTypePtr())) return; for (const auto& P : FD->parameters()) - if (!CanCheckCodeGenInfo(C->getSema(), P->getType().getTypePtr())) + if (!CanCheckCodeGenInfo(c->getSema(), P->getType().getTypePtr())) return; - auto& CGInfo = GetCodeGenFuntionInfo(CodeGenTypes, FD); - F->IsReturnIndirect = CGInfo.getReturnInfo().isIndirect(); + auto& CGInfo = GetCodeGenFuntionInfo(codeGenTypes, FD); + F->isReturnIndirect = CGInfo.getReturnInfo().isIndirect(); unsigned Index = 0; for (auto I = CGInfo.arg_begin(), E = CGInfo.arg_end(); I != E; I++) @@ -2915,7 +2915,7 @@ void Parser::WalkFunction(const clang::FunctionDecl* FD, Function* F, continue; if (Index >= F->Parameters.size()) continue; - F->Parameters[Index++]->IsIndirect = I->info.isIndirect(); + F->Parameters[Index++]->isIndirect = I->info.isIndirect(); } } @@ -2951,7 +2951,7 @@ SourceLocationKind Parser::GetLocationKind(const clang::SourceLocation& Loc) { using namespace clang; - clang::SourceManager& SM = C->getSourceManager(); + clang::SourceManager& SM = c->getSourceManager(); clang::PresumedLoc PLoc = SM.getPresumedLoc(Loc); if (PLoc.isInvalid()) @@ -2997,10 +2997,10 @@ void Parser::WalkVariable(const clang::VarDecl* VD, Variable* Var) HandleDeclaration(VD, Var); Var->Name = VD->getName(); - Var->Access = ConvertToAccess(VD->getAccess()); + Var->access = ConvertToAccess(VD->getAccess()); auto TL = VD->getTypeSourceInfo()->getTypeLoc(); - Var->QualifiedType = GetQualifiedType(VD->getType(), &TL); + Var->qualifiedType = GetQualifiedType(VD->getType(), &TL); auto Mangled = GetDeclMangledName(VD); Var->Mangled = Mangled; @@ -3018,7 +3018,7 @@ Variable* Parser::WalkVariable(const clang::VarDecl *VD) return Var; auto Var = new Variable(); - Var->_Namespace = NS; + Var->_namespace = NS; WalkVariable(VD, Var); @@ -3046,11 +3046,11 @@ Friend* Parser::WalkFriend(const clang::FriendDecl *FD) auto F = new Friend(); HandleDeclaration(FD, F); - F->_Namespace = NS; + F->_namespace = NS; if (FriendDecl) { - F->Declaration = GetDeclarationFromFriend(FriendDecl); + F->declaration = GetDeclarationFromFriend(FriendDecl); } NS->Friends.push_back(F); @@ -3063,8 +3063,8 @@ Friend* Parser::WalkFriend(const clang::FriendDecl *FD) bool Parser::GetDeclText(clang::SourceRange SR, std::string& Text) { using namespace clang; - clang::SourceManager& SM = C->getSourceManager(); - const LangOptions &LangOpts = C->getLangOpts(); + clang::SourceManager& SM = c->getSourceManager(); + const LangOptions &LangOpts = c->getLangOpts(); auto Range = CharSourceRange::getTokenRange(SR); @@ -3083,11 +3083,11 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity( I != E; ++I) { auto Entity = Decl->PreprocessedEntities[I]; - if (Entity->OriginalPtr == PPEntity) + if (Entity->originalPtr == PPEntity) return Entity; } - auto& P = C->getPreprocessor(); + auto& P = c->getPreprocessor(); PreprocessedEntity* Entity = 0; @@ -3099,7 +3099,7 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity( auto Expansion = new MacroExpansion(); auto MD = ME->getDefinition(); if (MD && MD->getKind() != clang::PreprocessedEntity::InvalidKind) - Expansion->Definition = (MacroDefinition*) + Expansion->definition = (MacroDefinition*) WalkPreprocessedEntity(Decl, ME->getDefinition()); Entity = Expansion; @@ -3124,8 +3124,8 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity( if (!MI || MI->isBuiltinMacro() || MI->isFunctionLike()) break; - clang::SourceManager& SM = C->getSourceManager(); - const LangOptions &LangOpts = C->getLangOpts(); + clang::SourceManager& SM = c->getSourceManager(); + const LangOptions &LangOpts = c->getLangOpts(); auto Loc = MI->getDefinitionLoc(); @@ -3146,8 +3146,8 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity( break; auto Definition = new MacroDefinition(); - Definition->LineNumberStart = SM.getExpansionLineNumber(MD->getLocation()); - Definition->LineNumberEnd = SM.getExpansionLineNumber(MD->getLocation()); + Definition->lineNumberStart = SM.getExpansionLineNumber(MD->getLocation()); + Definition->lineNumberEnd = SM.getExpansionLineNumber(MD->getLocation()); Entity = Definition; Definition->Name = II->getName().trim(); @@ -3163,10 +3163,10 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity( if (!Entity) return nullptr; - Entity->OriginalPtr = PPEntity; + Entity->originalPtr = PPEntity; auto Namespace = GetTranslationUnit(PPEntity->getSourceRange().getBegin()); - if (Decl->Kind == CppSharp::CppParser::AST::DeclarationKind::TranslationUnit) + if (Decl->kind == CppSharp::CppParser::AST::DeclarationKind::TranslationUnit) { Namespace->PreprocessedEntities.push_back(Entity); } @@ -3181,7 +3181,7 @@ PreprocessedEntity* Parser::WalkPreprocessedEntity( void Parser::HandlePreprocessedEntities(Declaration* Decl) { using namespace clang; - auto PPRecord = C->getPreprocessor().getPreprocessingRecord(); + auto PPRecord = c->getPreprocessor().getPreprocessingRecord(); for (auto it = PPRecord->begin(); it != PPRecord->end(); ++it) { @@ -3271,7 +3271,7 @@ AST::Expression* Parser::WalkExpression(clang::Expr* Expr) Expr->getStmtClass() != Stmt::CXXBoolLiteralExprClass && Expr->getStmtClass() != Stmt::UnaryExprOrTypeTraitExprClass && !Expr->isValueDependent() && - Expr->EvaluateAsInt(integer, C->getASTContext())) + Expr->EvaluateAsInt(integer, c->getASTContext())) return new AST::Expression(integer.toString(10)); return new AST::Expression(GetStringFromStatement(Expr)); } @@ -3280,7 +3280,7 @@ std::string Parser::GetStringFromStatement(const clang::Stmt* Statement) { using namespace clang; - PrintingPolicy Policy(C->getLangOpts()); + PrintingPolicy Policy(c->getLangOpts()); std::string s; llvm::raw_string_ostream as(s); Statement->printPretty(as, 0, Policy); @@ -3293,7 +3293,7 @@ void Parser::HandlePreprocessedEntities(Declaration* Decl, { if (sourceRange.isInvalid()) return; - auto& SourceMgr = C->getSourceManager(); + auto& SourceMgr = c->getSourceManager(); auto isBefore = SourceMgr.isBeforeInTranslationUnit(sourceRange.getEnd(), sourceRange.getBegin()); @@ -3303,7 +3303,7 @@ void Parser::HandlePreprocessedEntities(Declaration* Decl, sourceRange.getBegin())); using namespace clang; - auto PPRecord = C->getPreprocessor().getPreprocessingRecord(); + auto PPRecord = c->getPreprocessor().getPreprocessingRecord(); auto Range = PPRecord->getPreprocessedEntitiesInRange(sourceRange); @@ -3312,15 +3312,15 @@ void Parser::HandlePreprocessedEntities(Declaration* Decl, auto Entity = WalkPreprocessedEntity(Decl, PPEntity); if (!Entity) continue; - if (Entity->MacroLocation == MacroLocation::Unknown) - Entity->MacroLocation = macroLocation; + if (Entity->macroLocation == MacroLocation::Unknown) + Entity->macroLocation = macroLocation; } } void Parser::HandleOriginalText(const clang::Decl* D, Declaration* Decl) { - auto& SM = C->getSourceManager(); - auto& LangOpts = C->getLangOpts(); + auto& SM = c->getSourceManager(); + auto& LangOpts = c->getLangOpts(); auto Range = clang::CharSourceRange::getTokenRange(D->getSourceRange()); @@ -3333,15 +3333,15 @@ void Parser::HandleOriginalText(const clang::Decl* D, Declaration* Decl) void Parser::HandleDeclaration(const clang::Decl* D, Declaration* Decl) { - if (Decl->OriginalPtr != nullptr) + if (Decl->originalPtr != nullptr) return; - Decl->OriginalPtr = (void*) D; + Decl->originalPtr = (void*) D; Decl->USR = GetDeclUSR(D); - Decl->IsImplicit = D->isImplicit(); - Decl->Location = SourceLocation(D->getLocation().getRawEncoding()); - Decl->LineNumberStart = C->getSourceManager().getExpansionLineNumber(D->getLocStart()); - Decl->LineNumberEnd = C->getSourceManager().getExpansionLineNumber(D->getLocEnd()); + Decl->isImplicit = D->isImplicit(); + Decl->location = SourceLocation(D->getLocation().getRawEncoding()); + Decl->lineNumberStart = c->getSourceManager().getExpansionLineNumber(D->getLocStart()); + Decl->lineNumberEnd = c->getSourceManager().getExpansionLineNumber(D->getLocEnd()); if (Decl->PreprocessedEntities.empty() && !D->isImplicit()) { @@ -3355,7 +3355,7 @@ void Parser::HandleDeclaration(const clang::Decl* D, Declaration* Decl) } else { - auto startLoc = GetDeclStartLocation(C.get(), D); + auto startLoc = GetDeclStartLocation(c.get(), D); auto endLoc = D->getLocEnd(); auto range = clang::SourceRange(startLoc, endLoc); @@ -3367,12 +3367,12 @@ void Parser::HandleDeclaration(const clang::Decl* D, Declaration* Decl) HandleComments(D, Decl); if (const clang::ValueDecl *VD = clang::dyn_cast_or_null(D)) - Decl->IsDependent = VD->getType()->isDependentType(); + Decl->isDependent = VD->getType()->isDependentType(); if (const clang::DeclContext *DC = clang::dyn_cast_or_null(D)) - Decl->IsDependent |= DC->isDependentContext(); + Decl->isDependent |= DC->isDependentContext(); - Decl->Access = ConvertToAccess(D->getAccess()); + Decl->access = ConvertToAccess(D->getAccess()); } //-----------------------------------// @@ -3419,10 +3419,10 @@ Declaration* Parser::WalkDeclaration(const clang::Decl* D, // soon as they are referenced and we need to know the original order // of the declarations. - if (CanBeDefinition && Record->DefinitionOrder == 0 && + if (CanBeDefinition && Record->definitionOrder == 0 && RD->isCompleteDefinition()) { - Record->DefinitionOrder = Index++; + Record->definitionOrder = index++; //Debug("%d: %s\n", Index++, GetTagDeclName(RD).c_str()); } @@ -3440,10 +3440,10 @@ Declaration* Parser::WalkDeclaration(const clang::Decl* D, // soon as they are referenced and we need to know the original order // of the declarations. - if (CanBeDefinition && Class->DefinitionOrder == 0 && + if (CanBeDefinition && Class->definitionOrder == 0 && RD->isCompleteDefinition()) { - Class->DefinitionOrder = Index++; + Class->definitionOrder = index++; //Debug("%d: %s\n", Index++, GetTagDeclName(RD).c_str()); } @@ -3566,7 +3566,7 @@ Declaration* Parser::WalkDeclaration(const clang::Decl* D, auto TTL = TD->getTypeSourceInfo()->getTypeLoc(); // resolve the typedef before adding it to the list otherwise it might be found and returned prematurely // see "typedef _Aligned<16, char>::type type;" and the related classes in Common.h in the tests - Typedef->QualifiedType = GetQualifiedType(TD->getUnderlyingType(), &TTL); + Typedef->qualifiedType = GetQualifiedType(TD->getUnderlyingType(), &TTL); AST::TypedefDecl* Existing; // if the typedef was added along the way, the just created one is useless, delete it if ((Existing = NS->FindTypedef(Name, /*Create=*/false))) @@ -3591,7 +3591,7 @@ Declaration* Parser::WalkDeclaration(const clang::Decl* D, auto TTL = TD->getTypeSourceInfo()->getTypeLoc(); // see above the case for "Typedef" - TypeAlias->QualifiedType = GetQualifiedType(TD->getUnderlyingType(), &TTL); + TypeAlias->qualifiedType = GetQualifiedType(TD->getUnderlyingType(), &TTL); AST::TypeAlias* Existing; if ((Existing = NS->FindTypeAlias(Name, /*Create=*/false))) delete TypeAlias; @@ -3599,7 +3599,7 @@ Declaration* Parser::WalkDeclaration(const clang::Decl* D, NS->TypeAliases.push_back(Existing = TypeAlias); if (auto TAT = TD->getDescribedAliasTemplate()) - TypeAlias->DescribedAliasTemplate = WalkTypeAliasTemplate(TAT); + TypeAlias->describedAliasTemplate = WalkTypeAliasTemplate(TAT); Decl = Existing; break; @@ -3629,7 +3629,7 @@ Declaration* Parser::WalkDeclaration(const clang::Decl* D, Decl = WalkMethodCXX(MD); auto NS = GetNamespace(MD); - Decl->_Namespace = NS; + Decl->_namespace = NS; break; } case Decl::Friend: @@ -3679,7 +3679,7 @@ Declaration* Parser::WalkDeclaration(const clang::Decl* D, { Debug("Unhandled declaration kind: %s\n", D->getDeclKindName()); - auto& SM = C->getSourceManager(); + auto& SM = c->getSourceManager(); auto Loc = D->getLocation(); auto FileName = SM.getFilename(Loc); auto Offset = SM.getFileOffset(Loc); @@ -3727,48 +3727,48 @@ struct DiagnosticConsumer : public clang::DiagnosticConsumer void Parser::HandleDiagnostics(ParserResult* res) { - auto DiagClient = (DiagnosticConsumer&) C->getDiagnosticClient(); + auto DiagClient = (DiagnosticConsumer&) c->getDiagnosticClient(); auto& Diags = DiagClient.Diagnostics; // Convert the diagnostics to the managed types for (unsigned I = 0, E = Diags.size(); I != E; ++I) { auto& Diag = DiagClient.Diagnostics[I]; - auto& Source = C->getSourceManager(); + auto& Source = c->getSourceManager(); auto FileName = Source.getFilename(Source.getFileLoc(Diag.Location)); auto PDiag = ParserDiagnostic(); PDiag.FileName = FileName.str(); PDiag.Message = Diag.Message.str(); - PDiag.LineNumber = 0; - PDiag.ColumnNumber = 0; + PDiag.lineNumber = 0; + PDiag.columnNumber = 0; if( !Diag.Location.isInvalid() ) { clang::PresumedLoc PLoc = Source.getPresumedLoc(Diag.Location); if( PLoc.isValid() ) { - PDiag.LineNumber = PLoc.getLine(); - PDiag.ColumnNumber = PLoc.getColumn(); + PDiag.lineNumber = PLoc.getLine(); + PDiag.columnNumber = PLoc.getColumn(); } } switch( Diag.Level ) { case clang::DiagnosticsEngine::Ignored: - PDiag.Level = ParserDiagnosticLevel::Ignored; + PDiag.level = ParserDiagnosticLevel::Ignored; break; case clang::DiagnosticsEngine::Note: - PDiag.Level = ParserDiagnosticLevel::Note; + PDiag.level = ParserDiagnosticLevel::Note; break; case clang::DiagnosticsEngine::Warning: - PDiag.Level = ParserDiagnosticLevel::Warning; + PDiag.level = ParserDiagnosticLevel::Warning; break; case clang::DiagnosticsEngine::Error: - PDiag.Level = ParserDiagnosticLevel::Error; + PDiag.level = ParserDiagnosticLevel::Error; break; case clang::DiagnosticsEngine::Fatal: - PDiag.Level = ParserDiagnosticLevel::Fatal; + PDiag.level = ParserDiagnosticLevel::Fatal; break; default: assert(0); @@ -3780,25 +3780,25 @@ void Parser::HandleDiagnostics(ParserResult* res) ParserResult* Parser::ParseHeader(const std::vector& SourceFiles, ParserResult* res) { - assert(Opts->ASTContext && "Expected a valid ASTContext"); + assert(opts->ASTContext && "Expected a valid ASTContext"); - res->ASTContext = Lib; + res->ASTContext = lib; if (SourceFiles.empty()) { - res->Kind = ParserResultKind::FileNotFound; + res->kind = ParserResultKind::FileNotFound; return res; } SetupHeader(); std::unique_ptr SC(new clang::SemaConsumer()); - C->setASTConsumer(std::move(SC)); + c->setASTConsumer(std::move(SC)); - C->createSema(clang::TU_Complete, 0); + c->createSema(clang::TU_Complete, 0); auto DiagClient = new DiagnosticConsumer(); - C->getDiagnostics().setClient(DiagClient); + c->getDiagnostics().setClient(DiagClient); // Check that the file is reachable. const clang::DirectoryLookup *Dir; @@ -3809,12 +3809,12 @@ ParserResult* Parser::ParseHeader(const std::vector& SourceFiles, P std::vector FileEntries; for (const auto& SourceFile : SourceFiles) { - auto FileEntry = C->getPreprocessor().getHeaderSearchInfo().LookupFile(SourceFile, + auto FileEntry = c->getPreprocessor().getHeaderSearchInfo().LookupFile(SourceFile, clang::SourceLocation(), /*isAngled*/true, nullptr, Dir, Includers, nullptr, nullptr, nullptr, nullptr); if (!FileEntry) { - res->Kind = ParserResultKind::FileNotFound; + res->kind = ParserResultKind::FileNotFound; return res; } FileEntries.push_back(FileEntry); @@ -3831,13 +3831,13 @@ ParserResult* Parser::ParseHeader(const std::vector& SourceFiles, P str += "\0"; auto buffer = llvm::MemoryBuffer::getMemBuffer(str); - auto& SM = C->getSourceManager(); + auto& SM = c->getSourceManager(); SM.setMainFileID(SM.createFileID(std::move(buffer))); - clang::DiagnosticConsumer* client = C->getDiagnostics().getClient(); - client->BeginSourceFile(C->getLangOpts(), &C->getPreprocessor()); + clang::DiagnosticConsumer* client = c->getDiagnostics().getClient(); + client->BeginSourceFile(c->getLangOpts(), &c->getPreprocessor()); - ParseAST(C->getSema(), /*PrintStats=*/false, /*SkipFunctionBodies=*/true); + ParseAST(c->getSema(), /*PrintStats=*/false, /*SkipFunctionBodies=*/true); client->EndSourceFile(); @@ -3845,21 +3845,21 @@ ParserResult* Parser::ParseHeader(const std::vector& SourceFiles, P if(client->getNumErrors() != 0) { - res->Kind = ParserResultKind::Error; + res->kind = ParserResultKind::Error; return res; } - AST = &C->getASTContext(); + AST = &c->getASTContext(); auto FileEntry = FileEntries[0]; auto FileName = FileEntry->getName(); - auto Unit = Lib->FindOrCreateModule(FileName); + auto Unit = lib->FindOrCreateModule(FileName); auto TU = AST->getTranslationUnitDecl(); HandleDeclaration(TU, Unit); - if (Unit->OriginalPtr == nullptr) - Unit->OriginalPtr = (void*)FileEntry; + if (Unit->originalPtr == nullptr) + Unit->originalPtr = (void*)FileEntry; // Initialize enough Clang codegen machinery so we can get at ABI details. llvm::LLVMContext Ctx; @@ -3869,17 +3869,17 @@ ParserResult* Parser::ParseHeader(const std::vector& SourceFiles, P M->setDataLayout(AST->getTargetInfo().getDataLayout()); std::unique_ptr CGM( - new clang::CodeGen::CodeGenModule(C->getASTContext(), C->getHeaderSearchOpts(), - C->getPreprocessorOpts(), C->getCodeGenOpts(), *M, C->getDiagnostics())); + new clang::CodeGen::CodeGenModule(c->getASTContext(), c->getHeaderSearchOpts(), + c->getPreprocessorOpts(), c->getCodeGenOpts(), *M, c->getDiagnostics())); std::unique_ptr CGT( new clang::CodeGen::CodeGenTypes(*CGM.get())); - CodeGenTypes = CGT.get(); + codeGenTypes = CGT.get(); WalkAST(); - res->Kind = ParserResultKind::Success; + res->kind = ParserResultKind::Success; return res; } @@ -3927,7 +3927,7 @@ ParserResultKind Parser::ParseSharedLib(llvm::StringRef File, auto LibName = File; NativeLib = new NativeLibrary(); NativeLib->FileName = LibName; - NativeLib->ArchType = ConvertArchType(ObjectFile->getArch()); + NativeLib->archType = ConvertArchType(ObjectFile->getArch()); if (ObjectFile->isELF()) { @@ -4037,15 +4037,15 @@ ParserResult* Parser::ParseLibrary(const std::string& File, ParserResult* res) { if (File.empty()) { - res->Kind = ParserResultKind::FileNotFound; + res->kind = ParserResultKind::FileNotFound; return res; } llvm::StringRef FileEntry; - for (unsigned I = 0, E = Opts->LibraryDirs.size(); I != E; ++I) + for (unsigned I = 0, E = opts->LibraryDirs.size(); I != E; ++I) { - auto& LibDir = Opts->LibraryDirs[I]; + auto& LibDir = opts->LibraryDirs[I]; llvm::SmallString<256> Path(LibDir); llvm::sys::path::append(Path, File); @@ -4055,30 +4055,30 @@ ParserResult* Parser::ParseLibrary(const std::string& File, ParserResult* res) if (FileEntry.empty()) { - res->Kind = ParserResultKind::FileNotFound; + res->kind = ParserResultKind::FileNotFound; return res; } auto BinaryOrErr = llvm::object::createBinary(FileEntry); if (!BinaryOrErr) { - res->Kind = ParserResultKind::Error; + res->kind = ParserResultKind::Error; return res; } auto OwningBinary = std::move(BinaryOrErr.get()); auto Bin = OwningBinary.getBinary(); if (auto Archive = llvm::dyn_cast(Bin)) { - res->Kind = ParseArchive(File, Archive, res->Library); - if (res->Kind == ParserResultKind::Success) + res->kind = ParseArchive(File, Archive, res->library); + if (res->kind == ParserResultKind::Success) return res; } if (auto ObjectFile = llvm::dyn_cast(Bin)) { - res->Kind = ParseSharedLib(File, ObjectFile, res->Library); - if (res->Kind == ParserResultKind::Success) + res->kind = ParseSharedLib(File, ObjectFile, res->library); + if (res->kind == ParserResultKind::Success) return res; } - res->Kind = ParserResultKind::Error; + res->kind = ParserResultKind::Error; return res; } @@ -4088,8 +4088,8 @@ ParserResult* ClangParser::ParseHeader(CppParserOptions* Opts) return nullptr; auto res = new ParserResult(); - res->CodeParser = new Parser(Opts); - return res->CodeParser->ParseHeader(Opts->SourceFiles, res); + res->codeParser = new Parser(Opts); + return res->codeParser->ParseHeader(Opts->SourceFiles, res); } ParserResult* ClangParser::ParseLibrary(CppParserOptions* Opts) @@ -4098,8 +4098,8 @@ ParserResult* ClangParser::ParseLibrary(CppParserOptions* Opts) return nullptr; auto res = new ParserResult(); - res->CodeParser = new Parser(Opts); - return res->CodeParser->ParseLibrary(Opts->LibraryFile, res); + res->codeParser = new Parser(Opts); + return res->codeParser->ParseLibrary(Opts->LibraryFile, res); } ParserTargetInfo* ClangParser::GetTargetInfo(CppParserOptions* Opts) @@ -4113,19 +4113,19 @@ ParserTargetInfo* ClangParser::GetTargetInfo(CppParserOptions* Opts) ParserTargetInfo* Parser::GetTargetInfo() { - assert(Opts->ASTContext && "Expected a valid ASTContext"); + assert(opts->ASTContext && "Expected a valid ASTContext"); SetupHeader(); std::unique_ptr SC(new clang::SemaConsumer()); - C->setASTConsumer(std::move(SC)); + c->setASTConsumer(std::move(SC)); - C->createSema(clang::TU_Complete, 0); + c->createSema(clang::TU_Complete, 0); auto DiagClient = new DiagnosticConsumer(); - C->getDiagnostics().setClient(DiagClient); + c->getDiagnostics().setClient(DiagClient); - AST = &C->getASTContext(); + AST = &c->getASTContext(); // Initialize enough Clang codegen machinery so we can get at ABI details. llvm::LLVMContext Ctx; @@ -4135,58 +4135,58 @@ ParserTargetInfo* Parser::GetTargetInfo() M->setDataLayout(AST->getTargetInfo().getDataLayout()); std::unique_ptr CGM( - new clang::CodeGen::CodeGenModule(C->getASTContext(), C->getHeaderSearchOpts(), - C->getPreprocessorOpts(), C->getCodeGenOpts(), *M, C->getDiagnostics())); + new clang::CodeGen::CodeGenModule(c->getASTContext(), c->getHeaderSearchOpts(), + c->getPreprocessorOpts(), c->getCodeGenOpts(), *M, c->getDiagnostics())); std::unique_ptr CGT( new clang::CodeGen::CodeGenTypes(*CGM.get())); - CodeGenTypes = CGT.get(); + codeGenTypes = CGT.get(); auto parserTargetInfo = new ParserTargetInfo(); auto& TI = AST->getTargetInfo(); parserTargetInfo->ABI = TI.getABI(); - parserTargetInfo->Char16Type = ConvertIntType(TI.getChar16Type()); - parserTargetInfo->Char32Type = ConvertIntType(TI.getChar32Type()); - parserTargetInfo->Int64Type = ConvertIntType(TI.getInt64Type()); - parserTargetInfo->IntMaxType = ConvertIntType(TI.getIntMaxType()); - parserTargetInfo->IntPtrType = ConvertIntType(TI.getIntPtrType()); - parserTargetInfo->SizeType = ConvertIntType(TI.getSizeType()); - parserTargetInfo->UIntMaxType = ConvertIntType(TI.getUIntMaxType()); - parserTargetInfo->WCharType = ConvertIntType(TI.getWCharType()); - parserTargetInfo->WIntType = ConvertIntType(TI.getWIntType()); - - parserTargetInfo->BoolAlign = TI.getBoolAlign(); - parserTargetInfo->BoolWidth = TI.getBoolWidth(); - parserTargetInfo->CharAlign = TI.getCharAlign(); - parserTargetInfo->CharWidth = TI.getCharWidth(); - parserTargetInfo->Char16Align = TI.getChar16Align(); - parserTargetInfo->Char16Width = TI.getChar16Width(); - parserTargetInfo->Char32Align = TI.getChar32Align(); - parserTargetInfo->Char32Width = TI.getChar32Width(); - parserTargetInfo->HalfAlign = TI.getHalfAlign(); - parserTargetInfo->HalfWidth = TI.getHalfWidth(); - parserTargetInfo->FloatAlign = TI.getFloatAlign(); - parserTargetInfo->FloatWidth = TI.getFloatWidth(); - parserTargetInfo->DoubleAlign = TI.getDoubleAlign(); - parserTargetInfo->DoubleWidth = TI.getDoubleWidth(); - parserTargetInfo->ShortAlign = TI.getShortAlign(); - parserTargetInfo->ShortWidth = TI.getShortWidth(); - parserTargetInfo->IntAlign = TI.getIntAlign(); - parserTargetInfo->IntWidth = TI.getIntWidth(); - parserTargetInfo->IntMaxTWidth = TI.getIntMaxTWidth(); - parserTargetInfo->LongAlign = TI.getLongAlign(); - parserTargetInfo->LongWidth = TI.getLongWidth(); - parserTargetInfo->LongDoubleAlign = TI.getLongDoubleAlign(); - parserTargetInfo->LongDoubleWidth = TI.getLongDoubleWidth(); - parserTargetInfo->LongLongAlign = TI.getLongLongAlign(); - parserTargetInfo->LongLongWidth = TI.getLongLongWidth(); - parserTargetInfo->PointerAlign = TI.getPointerAlign(0); - parserTargetInfo->PointerWidth = TI.getPointerWidth(0); - parserTargetInfo->WCharAlign = TI.getWCharAlign(); - parserTargetInfo->WCharWidth = TI.getWCharWidth(); + parserTargetInfo->char16Type = ConvertIntType(TI.getChar16Type()); + parserTargetInfo->char32Type = ConvertIntType(TI.getChar32Type()); + parserTargetInfo->int64Type = ConvertIntType(TI.getInt64Type()); + parserTargetInfo->intMaxType = ConvertIntType(TI.getIntMaxType()); + parserTargetInfo->intPtrType = ConvertIntType(TI.getIntPtrType()); + parserTargetInfo->sizeType = ConvertIntType(TI.getSizeType()); + parserTargetInfo->uIntMaxType = ConvertIntType(TI.getUIntMaxType()); + parserTargetInfo->wCharType = ConvertIntType(TI.getWCharType()); + parserTargetInfo->wIntType = ConvertIntType(TI.getWIntType()); + + parserTargetInfo->boolAlign = TI.getBoolAlign(); + parserTargetInfo->boolWidth = TI.getBoolWidth(); + parserTargetInfo->charAlign = TI.getCharAlign(); + parserTargetInfo->charWidth = TI.getCharWidth(); + parserTargetInfo->char16Align = TI.getChar16Align(); + parserTargetInfo->char16Width = TI.getChar16Width(); + parserTargetInfo->char32Align = TI.getChar32Align(); + parserTargetInfo->char32Width = TI.getChar32Width(); + parserTargetInfo->halfAlign = TI.getHalfAlign(); + parserTargetInfo->halfWidth = TI.getHalfWidth(); + parserTargetInfo->floatAlign = TI.getFloatAlign(); + parserTargetInfo->floatWidth = TI.getFloatWidth(); + parserTargetInfo->doubleAlign = TI.getDoubleAlign(); + parserTargetInfo->doubleWidth = TI.getDoubleWidth(); + parserTargetInfo->shortAlign = TI.getShortAlign(); + parserTargetInfo->shortWidth = TI.getShortWidth(); + parserTargetInfo->intAlign = TI.getIntAlign(); + parserTargetInfo->intWidth = TI.getIntWidth(); + parserTargetInfo->intMaxTWidth = TI.getIntMaxTWidth(); + parserTargetInfo->longAlign = TI.getLongAlign(); + parserTargetInfo->longWidth = TI.getLongWidth(); + parserTargetInfo->longDoubleAlign = TI.getLongDoubleAlign(); + parserTargetInfo->longDoubleWidth = TI.getLongDoubleWidth(); + parserTargetInfo->longLongAlign = TI.getLongLongAlign(); + parserTargetInfo->longLongWidth = TI.getLongLongWidth(); + parserTargetInfo->pointerAlign = TI.getPointerAlign(0); + parserTargetInfo->pointerWidth = TI.getPointerWidth(0); + parserTargetInfo->wCharAlign = TI.getWCharAlign(); + parserTargetInfo->wCharWidth = TI.getWCharWidth(); return parserTargetInfo; } @@ -4198,7 +4198,7 @@ Declaration* Parser::GetDeclarationFromFriend(clang::NamedDecl* FriendDecl) int MinLineNumberStart = std::numeric_limits::max(); int MinLineNumberEnd = std::numeric_limits::max(); - auto& SM = C->getSourceManager(); + auto& SM = c->getSourceManager(); for (auto it = FriendDecl->redecls_begin(); it != FriendDecl->redecls_end(); it++) { if (it->getLocation() != FriendDecl->getLocation()) @@ -4216,8 +4216,8 @@ Declaration* Parser::GetDeclarationFromFriend(clang::NamedDecl* FriendDecl) } if (MinLineNumberStart < std::numeric_limits::max()) { - Decl->LineNumberStart = MinLineNumberStart; - Decl->LineNumberEnd = MinLineNumberEnd; + Decl->lineNumberStart = MinLineNumberStart; + Decl->lineNumberEnd = MinLineNumberEnd; } return Decl; } \ No newline at end of file diff --git a/src/CppParser/Parser.h b/src/CppParser/Parser.h index 4d2f20925c..354f7e88f9 100644 --- a/src/CppParser/Parser.h +++ b/src/CppParser/Parser.h @@ -138,16 +138,16 @@ class Parser void HandleComments(const clang::Decl* D, Declaration* Decl); void HandleDiagnostics(ParserResult* res); - int Index; - ASTContext* Lib; - CppParserOptions* Opts; - std::unique_ptr C; + int index; + CppSharp::CppParser::AST::ASTContext* lib; + CppParserOptions* opts; + std::unique_ptr c; clang::ASTContext* AST; - clang::TargetCXXABI::Kind TargetABI; - clang::CodeGen::CodeGenTypes* CodeGenTypes; - std::unordered_map WalkedTypeTemplateParameters; - std::unordered_map WalkedTemplateTemplateParameters; - std::unordered_map WalkedNonTypeTemplateParameters; + clang::TargetCXXABI::Kind targetABI; + clang::CodeGen::CodeGenTypes* codeGenTypes; + std::unordered_map walkedTypeTemplateParameters; + std::unordered_map walkedTemplateTemplateParameters; + std::unordered_map walkedNonTypeTemplateParameters; ParserResultKind ReadSymbols(llvm::StringRef File, llvm::object::basic_symbol_iterator Begin, diff --git a/src/CppParser/Target.cpp b/src/CppParser/Target.cpp index 9c7c8dc00e..4e22bfdd83 100644 --- a/src/CppParser/Target.cpp +++ b/src/CppParser/Target.cpp @@ -10,35 +10,35 @@ namespace CppSharp { namespace CppParser { ParserTargetInfo::ParserTargetInfo() : - BoolAlign(0), - BoolWidth(0), - CharAlign(0), - CharWidth(0), - Char16Align(0), - Char16Width(0), - Char32Align(0), - Char32Width(0), - HalfAlign(0), - HalfWidth(0), - FloatAlign(0), - FloatWidth(0), - DoubleAlign(0), - DoubleWidth(0), - ShortAlign(0), - ShortWidth(0), - IntAlign(0), - IntWidth(0), - IntMaxTWidth(0), - LongAlign(0), - LongWidth(0), - LongDoubleAlign(0), - LongDoubleWidth(0), - LongLongAlign(0), - LongLongWidth(0), - PointerAlign(0), - PointerWidth(0), - WCharAlign(0), - WCharWidth(0) + boolAlign(0), + boolWidth(0), + charAlign(0), + charWidth(0), + char16Align(0), + char16Width(0), + char32Align(0), + char32Width(0), + halfAlign(0), + halfWidth(0), + floatAlign(0), + floatWidth(0), + doubleAlign(0), + doubleWidth(0), + shortAlign(0), + shortWidth(0), + intAlign(0), + intWidth(0), + intMaxTWidth(0), + longAlign(0), + longWidth(0), + longDoubleAlign(0), + longDoubleWidth(0), + longLongAlign(0), + longLongWidth(0), + pointerAlign(0), + pointerWidth(0), + wCharAlign(0), + wCharWidth(0) { } diff --git a/src/CppParser/Target.h b/src/CppParser/Target.h index 2690708c9a..428e8989ed 100644 --- a/src/CppParser/Target.h +++ b/src/CppParser/Target.h @@ -33,45 +33,45 @@ struct CS_API ParserTargetInfo STRING(ABI); - ParserIntType Char16Type; - ParserIntType Char32Type; - ParserIntType Int64Type; - ParserIntType IntMaxType; - ParserIntType IntPtrType; - ParserIntType SizeType; - ParserIntType UIntMaxType; - ParserIntType WCharType; - ParserIntType WIntType; + ParserIntType char16Type; + ParserIntType char32Type; + ParserIntType int64Type; + ParserIntType intMaxType; + ParserIntType intPtrType; + ParserIntType sizeType; + ParserIntType uIntMaxType; + ParserIntType wCharType; + ParserIntType wIntType; - unsigned int BoolAlign; - unsigned int BoolWidth; - unsigned int CharAlign; - unsigned int CharWidth; - unsigned int Char16Align; - unsigned int Char16Width; - unsigned int Char32Align; - unsigned int Char32Width; - unsigned int HalfAlign; - unsigned int HalfWidth; - unsigned int FloatAlign; - unsigned int FloatWidth; - unsigned int DoubleAlign; - unsigned int DoubleWidth; - unsigned int ShortAlign; - unsigned int ShortWidth; - unsigned int IntAlign; - unsigned int IntWidth; - unsigned int IntMaxTWidth; - unsigned int LongAlign; - unsigned int LongWidth; - unsigned int LongDoubleAlign; - unsigned int LongDoubleWidth; - unsigned int LongLongAlign; - unsigned int LongLongWidth; - unsigned int PointerAlign; - unsigned int PointerWidth; - unsigned int WCharAlign; - unsigned int WCharWidth; + unsigned int boolAlign; + unsigned int boolWidth; + unsigned int charAlign; + unsigned int charWidth; + unsigned int char16Align; + unsigned int char16Width; + unsigned int char32Align; + unsigned int char32Width; + unsigned int halfAlign; + unsigned int halfWidth; + unsigned int floatAlign; + unsigned int floatWidth; + unsigned int doubleAlign; + unsigned int doubleWidth; + unsigned int shortAlign; + unsigned int shortWidth; + unsigned int intAlign; + unsigned int intWidth; + unsigned int intMaxTWidth; + unsigned int longAlign; + unsigned int longWidth; + unsigned int longDoubleAlign; + unsigned int longDoubleWidth; + unsigned int longLongAlign; + unsigned int longLongWidth; + unsigned int pointerAlign; + unsigned int pointerWidth; + unsigned int wCharAlign; + unsigned int wCharWidth; }; } } \ No newline at end of file