@ -57,10 +57,10 @@ static std::vector<T> split(const T & str, const T & delimiters) {
@@ -57,10 +57,10 @@ static std::vector<T> split(const T & str, const T & delimiters) {
namespace CppSharp { namespace CppParser { namespace AST {
Type : : Type ( TypeKind kind ) : K ind( kind ) { }
Type : : Type ( const Type & rhs ) : K ind( rhs . Kind ) , I sDependent( rhs . I sDependent) { }
Type : : Type ( TypeKind kind ) : k ind( kind ) { }
Type : : Type ( const Type & rhs ) : k ind( rhs . kind ) , i sDependent( rhs . i sDependent) { }
QualifiedType : : QualifiedType ( ) : T ype( 0 ) { }
QualifiedType : : QualifiedType ( ) : t ype( 0 ) { }
TagType : : TagType ( ) : Type ( TypeKind : : Tag ) { }
@ -76,7 +76,7 @@ PointerType::PointerType() : Type(TypeKind::Pointer) {}
@@ -76,7 +76,7 @@ PointerType::PointerType() : Type(TypeKind::Pointer) {}
MemberPointerType : : MemberPointerType ( ) : Type ( TypeKind : : MemberPointer ) { }
TypedefType : : TypedefType ( ) : Type ( TypeKind : : Typedef ) , D eclaration( 0 ) { }
TypedefType : : TypedefType ( ) : Type ( TypeKind : : Typedef ) , d eclaration( 0 ) { }
AttributedType : : AttributedType ( ) : Type ( TypeKind : : Attributed ) { }
@ -85,9 +85,9 @@ DecayedType::DecayedType() : Type(TypeKind::Decayed) {}
@@ -85,9 +85,9 @@ DecayedType::DecayedType() : Type(TypeKind::Decayed) {}
// Template
TemplateParameter : : TemplateParameter ( DeclarationKind kind )
: Declaration ( kind )
, D epth( 0 )
, I ndex( 0 )
, I sParameterPack( false )
, d epth( 0 )
, i ndex( 0 )
, i sParameterPack( false )
{
}
@ -97,9 +97,9 @@ TemplateParameter::~TemplateParameter()
@@ -97,9 +97,9 @@ TemplateParameter::~TemplateParameter()
TemplateTemplateParameter : : TemplateTemplateParameter ( )
: Template ( DeclarationKind : : TemplateTemplateParm )
, I sParameterPack( false )
, I sPackExpansion( false )
, I sExpandedParameterPack( false )
, i sParameterPack( false )
, i sPackExpansion( false )
, i sExpandedParameterPack( false )
{
}
@ -114,8 +114,8 @@ TypeTemplateParameter::TypeTemplateParameter()
@@ -114,8 +114,8 @@ TypeTemplateParameter::TypeTemplateParameter()
}
TypeTemplateParameter : : TypeTemplateParameter ( const TypeTemplateParameter & rhs )
: TemplateParameter ( rhs . K ind)
, D efaultArgument( rhs . D efaultArgument)
: TemplateParameter ( rhs . k ind)
, d efaultArgument( rhs . d efaultArgument)
{
}
@ -123,32 +123,32 @@ TypeTemplateParameter::~TypeTemplateParameter() {}
@@ -123,32 +123,32 @@ TypeTemplateParameter::~TypeTemplateParameter() {}
NonTypeTemplateParameter : : NonTypeTemplateParameter ( )
: TemplateParameter ( DeclarationKind : : NonTypeTemplateParm )
, D efaultArgument( 0 )
, P osition( 0 )
, I sPackExpansion( false )
, I sExpandedParameterPack( false )
, d efaultArgument( 0 )
, p osition( 0 )
, i sPackExpansion( false )
, i sExpandedParameterPack( false )
{
}
NonTypeTemplateParameter : : NonTypeTemplateParameter ( const NonTypeTemplateParameter & rhs )
: TemplateParameter ( rhs . K ind)
, D efaultArgument( rhs . D efaultArgument)
, P osition( rhs . P osition)
, I sPackExpansion( rhs . I sPackExpansion)
, I sExpandedParameterPack( rhs . I sExpandedParameterPack)
: TemplateParameter ( rhs . k ind)
, d efaultArgument( rhs . d efaultArgument)
, p osition( rhs . p osition)
, i sPackExpansion( rhs . i sPackExpansion)
, i sExpandedParameterPack( rhs . i sExpandedParameterPack)
{
}
NonTypeTemplateParameter : : ~ NonTypeTemplateParameter ( ) { }
TemplateArgument : : TemplateArgument ( ) : D eclaration( 0 ) , I ntegral( 0 ) { }
TemplateArgument : : TemplateArgument ( ) : d eclaration( 0 ) , i ntegral( 0 ) { }
TemplateSpecializationType : : TemplateSpecializationType ( )
: Type ( TypeKind : : TemplateSpecialization ) , T emplate( 0 ) { }
: Type ( TypeKind : : TemplateSpecialization ) , _t emplate( 0 ) { }
TemplateSpecializationType : : TemplateSpecializationType (
const TemplateSpecializationType & rhs ) : Type ( rhs ) ,
Arguments ( rhs . Arguments ) , T emplate( rhs . Template ) , D esugared( rhs . D esugared) { }
Arguments ( rhs . Arguments ) , _t emplate( rhs . _template ) , d esugared( rhs . d esugared) { }
TemplateSpecializationType : : ~ TemplateSpecializationType ( ) { }
@ -159,22 +159,22 @@ DependentTemplateSpecializationType::DependentTemplateSpecializationType()
@@ -159,22 +159,22 @@ DependentTemplateSpecializationType::DependentTemplateSpecializationType()
DependentTemplateSpecializationType : : DependentTemplateSpecializationType (
const DependentTemplateSpecializationType & rhs ) : Type ( rhs ) ,
Arguments ( rhs . Arguments ) , D esugared( rhs . D esugared) { }
Arguments ( rhs . Arguments ) , d esugared( rhs . d esugared) { }
DependentTemplateSpecializationType : : ~ DependentTemplateSpecializationType ( ) { }
DEF_VECTOR ( DependentTemplateSpecializationType , TemplateArgument , Arguments )
TemplateParameterType : : TemplateParameterType ( ) : Type ( TypeKind : : TemplateParameter ) , P arameter( 0 ) { }
TemplateParameterType : : TemplateParameterType ( ) : Type ( TypeKind : : TemplateParameter ) , p arameter( 0 ) { }
TemplateParameterType : : ~ TemplateParameterType ( ) { }
TemplateParameterSubstitutionType : : TemplateParameterSubstitutionType ( )
: Type ( TypeKind : : TemplateParameterSubstitution ) , R eplacedParameter( 0 ) { }
: Type ( TypeKind : : TemplateParameterSubstitution ) , r eplacedParameter( 0 ) { }
InjectedClassNameType : : InjectedClassNameType ( )
: Type ( TypeKind : : InjectedClassName )
, C lass( 0 )
, _c lass( 0 )
{
}
@ -184,11 +184,11 @@ PackExpansionType::PackExpansionType() : Type(TypeKind::PackExpansion) {}
@@ -184,11 +184,11 @@ PackExpansionType::PackExpansionType() : Type(TypeKind::PackExpansion) {}
UnaryTransformType : : UnaryTransformType ( ) : Type ( TypeKind : : UnaryTransform ) { }
VectorType : : VectorType ( ) : Type ( TypeKind : : Vector ) , N umElements( 0 ) { }
VectorType : : VectorType ( ) : Type ( TypeKind : : Vector ) , n umElements( 0 ) { }
BuiltinType : : BuiltinType ( ) : CppSharp : : CppParser : : AST : : Type ( TypeKind : : Builtin ) { }
VTableComponent : : VTableComponent ( ) : O ffset( 0 ) , D eclaration( 0 ) { }
VTableComponent : : VTableComponent ( ) : o ffset( 0 ) , d eclaration( 0 ) { }
// VTableLayout
VTableLayout : : VTableLayout ( ) { }
@ -200,15 +200,15 @@ DEF_VECTOR(VTableLayout, VTableComponent, Components)
@@ -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 ) ,
L ayout( rhs . L ayout) { }
l ayout( rhs . l ayout) { }
LayoutField : : LayoutField ( ) : O ffset( 0 ) , F ieldPtr( 0 ) { }
LayoutField : : LayoutField ( ) : o ffset( 0 ) , f ieldPtr( 0 ) { }
LayoutField : : LayoutField ( const LayoutField & other )
: O ffset( other . O ffset)
: o ffset( other . o ffset)
, Name ( other . Name )
, Q ualifiedType( other . Q ualifiedType)
, F ieldPtr( other . F ieldPtr)
, q ualifiedType( other . q ualifiedType)
, f ieldPtr( other . f ieldPtr)
{
}
@ -216,14 +216,14 @@ LayoutField::~LayoutField() {}
@@ -216,14 +216,14 @@ LayoutField::~LayoutField() {}
DEF_STRING ( LayoutField , Name )
LayoutBase : : LayoutBase ( ) : O ffset( 0 ) , C lass( 0 ) { }
LayoutBase : : LayoutBase ( ) : o ffset( 0 ) , _c lass( 0 ) { }
LayoutBase : : LayoutBase ( const LayoutBase & other ) : O ffset( other . Offset ) , C lass( other . C lass) { }
LayoutBase : : LayoutBase ( const LayoutBase & other ) : o ffset( other . offset ) , _c lass( other . _c lass) { }
LayoutBase : : ~ LayoutBase ( ) { }
ClassLayout : : ClassLayout ( ) : ABI ( CppAbi : : Itanium ) , H asOwnVFPtr( false ) ,
VBPtrOffset ( 0 ) , A lignment( 0 ) , S ize( 0 ) , D ataSize( 0 ) { }
ClassLayout : : ClassLayout ( ) : ABI ( CppAbi : : Itanium ) , h asOwnVFPtr( false ) ,
VBPtrOffset ( 0 ) , a lignment( 0 ) , s ize( 0 ) , d ataSize( 0 ) { }
DEF_VECTOR ( ClassLayout , VFTableInfo , VFTables )
@ -232,39 +232,39 @@ DEF_VECTOR(ClassLayout, LayoutField, Fields)
@@ -232,39 +232,39 @@ DEF_VECTOR(ClassLayout, LayoutField, Fields)
DEF_VECTOR ( ClassLayout , LayoutBase , Bases )
Declaration : : Declaration ( DeclarationKind kind )
: K ind( kind )
, A ccess( AccessSpecifier : : Public )
, _N amespace ( 0 )
, L ocation( 0 )
, L ineNumberStart( 0 )
, L ineNumberEnd( 0 )
, C omment( 0 )
, I sIncomplete( false )
, I sDependent( false )
, I sImplicit( false )
, C ompleteDeclaration( 0 )
, D efinitionOrder( 0 )
, O riginalPtr( 0 )
: k ind( kind )
, a ccess( AccessSpecifier : : Public )
, _n amespace ( 0 )
, l ocation( 0 )
, l ineNumberStart( 0 )
, l ineNumberEnd( 0 )
, c omment( 0 )
, i sIncomplete( false )
, i sDependent( false )
, i sImplicit( false )
, c ompleteDeclaration( 0 )
, d efinitionOrder( 0 )
, o riginalPtr( 0 )
{
}
Declaration : : Declaration ( const Declaration & rhs )
: K ind( rhs . K ind)
, A ccess( rhs . A ccess)
, _N amespace ( rhs . _N amespace )
, L ocation( rhs . L ocation. ID )
, L ineNumberStart( rhs . L ineNumberStart)
, L ineNumberEnd( rhs . L ineNumberEnd)
: k ind( rhs . k ind)
, a ccess( rhs . a ccess)
, _n amespace ( rhs . _n amespace )
, l ocation( rhs . l ocation. ID )
, l ineNumberStart( rhs . l ineNumberStart)
, l ineNumberEnd( rhs . l ineNumberEnd)
, Name ( rhs . Name )
, C omment( rhs . C omment)
, c omment( rhs . c omment)
, DebugText ( rhs . DebugText )
, I sIncomplete( rhs . I sIncomplete)
, I sDependent( rhs . I sDependent)
, I sImplicit( rhs . I sImplicit)
, C ompleteDeclaration( rhs . C ompleteDeclaration)
, D efinitionOrder( rhs . D efinitionOrder)
, i sIncomplete( rhs . i sIncomplete)
, i sDependent( rhs . i sDependent)
, i sImplicit( rhs . i sImplicit)
, c ompleteDeclaration( rhs . c ompleteDeclaration)
, d efinitionOrder( rhs . d efinitionOrder)
, PreprocessedEntities ( rhs . PreprocessedEntities )
, O riginalPtr( rhs . O riginalPtr)
, o riginalPtr( rhs . o riginalPtr)
{
}
@ -279,7 +279,7 @@ DEF_VECTOR(Declaration, PreprocessedEntity*, PreprocessedEntities)
@@ -279,7 +279,7 @@ DEF_VECTOR(Declaration, PreprocessedEntity*, PreprocessedEntities)
DeclarationContext : : DeclarationContext ( DeclarationKind kind )
: Declaration ( kind )
, I sAnonymous( false )
, i sAnonymous( false )
{ }
DEF_VECTOR ( DeclarationContext , Namespace * , Namespaces )
@ -294,8 +294,8 @@ DEF_VECTOR(DeclarationContext, Friend*, Friends)
@@ -294,8 +294,8 @@ DEF_VECTOR(DeclarationContext, Friend*, Friends)
Declaration * DeclarationContext : : FindAnonymous ( const std : : string & key )
{
auto it = A nonymous. find ( key ) ;
return ( it ! = A nonymous. end ( ) ) ? it - > second : 0 ;
auto it = a nonymous. find ( key ) ;
return ( it ! = a nonymous. end ( ) ) ? it - > second : 0 ;
}
Namespace * DeclarationContext : : FindNamespace ( const std : : string & Name )
@ -335,7 +335,7 @@ Namespace* DeclarationContext::FindCreateNamespace(const std::string& Name)
@@ -335,7 +335,7 @@ Namespace* DeclarationContext::FindCreateNamespace(const std::string& Name)
{
_namespace = new Namespace ( ) ;
_namespace - > Name = Name ;
_namespace - > _N amespace = this ;
_namespace - > _n amespace = this ;
Namespaces . push_back ( _namespace ) ;
}
@ -353,7 +353,7 @@ Class* DeclarationContext::FindClass(const std::string& Name, bool IsComplete)
@@ -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 - > I sIncomplete | | ! IsComplete ) ; } ) ;
( ! klass - > i sIncomplete | | ! IsComplete ) ; } ) ;
return _class ! = Classes . end ( ) ? * _class : nullptr ;
}
@ -374,8 +374,8 @@ Class* DeclarationContext::CreateClass(std::string Name, bool IsComplete)
@@ -374,8 +374,8 @@ Class* DeclarationContext::CreateClass(std::string Name, bool IsComplete)
{
auto _class = new Class ( ) ;
_class - > Name = Name ;
_class - > _N amespace = this ;
_class - > I sIncomplete = ! IsComplete ;
_class - > _n amespace = this ;
_class - > i sIncomplete = ! IsComplete ;
return _class ;
}
@ -402,7 +402,7 @@ Class* DeclarationContext::FindClass(const std::string& Name, bool IsComplete,
@@ -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 - > O riginalPtr = = OriginalPtr ; } ) ;
[ & ] ( Enumeration * enumeration ) { return enumeration - > o riginalPtr = = OriginalPtr ; } ) ;
if ( foundEnum ! = Enums . end ( ) )
return * foundEnum ;
@ -427,7 +427,7 @@ Enumeration* DeclarationContext::FindEnum(const std::string& Name, bool Create)
@@ -427,7 +427,7 @@ Enumeration* DeclarationContext::FindEnum(const std::string& Name, bool Create)
auto _enum = new Enumeration ( ) ;
_enum - > Name = Name ;
_enum - > _N amespace = this ;
_enum - > _n amespace = this ;
Enums . push_back ( _enum ) ;
return _enum ;
}
@ -495,7 +495,7 @@ TypedefDecl* DeclarationContext::FindTypedef(const std::string& Name, bool Creat
@@ -495,7 +495,7 @@ TypedefDecl* DeclarationContext::FindTypedef(const std::string& Name, bool Creat
auto tdef = new TypedefDecl ( ) ;
tdef - > Name = Name ;
tdef - > _N amespace = this ;
tdef - > _n amespace = this ;
return tdef ;
}
@ -513,7 +513,7 @@ TypeAlias* DeclarationContext::FindTypeAlias(const std::string& Name, bool Creat
@@ -513,7 +513,7 @@ TypeAlias* DeclarationContext::FindTypeAlias(const std::string& Name, bool Creat
auto talias = new TypeAlias ( ) ;
talias - > Name = Name ;
talias - > _N amespace = this ;
talias - > _n amespace = this ;
return talias ;
}
@ -548,17 +548,17 @@ TypedefDecl::TypedefDecl() : TypedefNameDecl(DeclarationKind::Typedef) {}
@@ -548,17 +548,17 @@ TypedefDecl::TypedefDecl() : TypedefNameDecl(DeclarationKind::Typedef) {}
TypedefDecl : : ~ TypedefDecl ( ) { }
TypeAlias : : TypeAlias ( ) : TypedefNameDecl ( DeclarationKind : : TypeAlias ) , D escribedAliasTemplate( 0 ) { }
TypeAlias : : TypeAlias ( ) : TypedefNameDecl ( DeclarationKind : : TypeAlias ) , d escribedAliasTemplate( 0 ) { }
TypeAlias : : ~ TypeAlias ( ) { }
Friend : : Friend ( ) : CppSharp : : CppParser : : AST : : Declaration ( DeclarationKind : : Friend ) , D eclaration( 0 ) { }
Friend : : Friend ( ) : CppSharp : : CppParser : : AST : : Declaration ( DeclarationKind : : Friend ) , d eclaration( 0 ) { }
Friend : : ~ Friend ( ) { }
DEF_STRING ( Statement , String )
Statement : : Statement ( const std : : string & str , StatementClass stmtClass , Declaration * decl ) : String ( str ) , C lass( stmtClass ) , D ecl( decl ) { }
Statement : : Statement ( const std : : string & str , StatementClass stmtClass , Declaration * decl ) : String ( str ) , _c lass( stmtClass ) , d ecl( decl ) { }
Expression : : Expression ( const std : : string & str , StatementClass stmtClass , Declaration * decl )
: Statement ( str , stmtClass , decl ) { }
@ -597,26 +597,26 @@ CXXConstructExpr::~CXXConstructExpr()
@@ -597,26 +597,26 @@ CXXConstructExpr::~CXXConstructExpr()
DEF_VECTOR ( CXXConstructExpr , Expression * , Arguments )
Parameter : : Parameter ( ) : Declaration ( DeclarationKind : : Parameter ) ,
I sIndirect( false ) , H asDefaultValue( false ) , D efaultArgument( 0 ) { }
i sIndirect( false ) , h asDefaultValue( false ) , d efaultArgument( 0 ) { }
Parameter : : ~ Parameter ( )
{
if ( D efaultArgument)
if ( d efaultArgument)
{
// HACK: see https://github.com/mono/CppSharp/issues/598
switch ( DefaultArgument - > C lass)
switch ( defaultArgument - > _c lass)
{
case StatementClass : : BinaryOperator :
delete static_cast < BinaryOperator * > ( D efaultArgument) ;
delete static_cast < BinaryOperator * > ( d efaultArgument) ;
break ;
case StatementClass : : CallExprClass :
delete static_cast < CallExpr * > ( D efaultArgument) ;
delete static_cast < CallExpr * > ( d efaultArgument) ;
break ;
case StatementClass : : CXXConstructExprClass :
delete static_cast < CXXConstructExpr * > ( D efaultArgument) ;
delete static_cast < CXXConstructExpr * > ( d efaultArgument) ;
break ;
default :
delete D efaultArgument;
delete d efaultArgument;
break ;
}
}
@ -624,9 +624,9 @@ Parameter::~Parameter()
@@ -624,9 +624,9 @@ Parameter::~Parameter()
Function : : Function ( )
: Declaration ( DeclarationKind : : Function )
, I sReturnIndirect( false )
, S pecializationInfo( 0 )
, I nstantiatedFrom( 0 )
, i sReturnIndirect( false )
, s pecializationInfo( 0 )
, i nstantiatedFrom( 0 )
{
}
@ -638,17 +638,17 @@ DEF_VECTOR(Function, Parameter*, Parameters)
@@ -638,17 +638,17 @@ DEF_VECTOR(Function, Parameter*, Parameters)
Method : : Method ( )
: Function ( )
, I sVirtual( false )
, I sStatic( false )
, I sConst( false )
, I sExplicit( false )
, I sOverride( false )
, I sDefaultConstructor( false )
, I sCopyConstructor( false )
, I sMoveConstructor( false )
, R efQualifier( RefQualifierKind : : None )
, i sVirtual( false )
, i sStatic( false )
, i sConst( false )
, i sExplicit( false )
, i sOverride( false )
, i sDefaultConstructor( false )
, i sCopyConstructor( false )
, i sMoveConstructor( false )
, r efQualifier( RefQualifierKind : : None )
{
K ind = DeclarationKind : : Method ;
k ind = DeclarationKind : : Method ;
}
Method : : ~ Method ( ) { }
@ -656,7 +656,7 @@ Method::~Method() {}
@@ -656,7 +656,7 @@ Method::~Method() {}
// Enumeration
Enumeration : : Enumeration ( ) : DeclarationContext ( DeclarationKind : : Enumeration ) ,
M odifiers( ( EnumModifiers ) 0 ) , T ype( 0 ) , B uiltinType( 0 ) { }
m odifiers( ( EnumModifiers ) 0 ) , t ype( 0 ) , b uiltinType( 0 ) { }
Enumeration : : ~ Enumeration ( ) { }
@ -665,7 +665,7 @@ DEF_VECTOR(Enumeration, Enumeration::Item*, Items)
@@ -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 ) , V alue( rhs . V alue) { }
Expression ( rhs . Expression ) , v alue( rhs . v alue) { }
Enumeration : : Item : : ~ Item ( ) { }
@ -686,10 +686,10 @@ Variable::~Variable() {}
@@ -686,10 +686,10 @@ Variable::~Variable() {}
DEF_STRING ( Variable , Mangled )
BaseClassSpecifier : : BaseClassSpecifier ( ) : T ype( 0 ) , O ffset( 0 ) { }
BaseClassSpecifier : : BaseClassSpecifier ( ) : t ype( 0 ) , o ffset( 0 ) { }
Field : : Field ( ) : Declaration ( DeclarationKind : : Field ) , C lass( 0 ) ,
I sBitField( false ) , B itWidth( 0 ) { }
Field : : Field ( ) : Declaration ( DeclarationKind : : Field ) , _c lass( 0 ) ,
i sBitField( false ) , b itWidth( 0 ) { }
Field : : ~ Field ( ) { }
@ -700,23 +700,23 @@ AccessSpecifierDecl::~AccessSpecifierDecl() {}
@@ -700,23 +700,23 @@ AccessSpecifierDecl::~AccessSpecifierDecl() {}
Class : : Class ( )
: DeclarationContext ( DeclarationKind : : Class )
, I sPOD( false )
, I sAbstract( false )
, I sUnion( false )
, I sDynamic( false )
, I sPolymorphic( false )
, H asNonTrivialDefaultConstructor( false )
, H asNonTrivialCopyConstructor( false )
, H asNonTrivialDestructor( false )
, I sExternCContext( false )
, L ayout( 0 )
, i sPOD( false )
, i sAbstract( false )
, i sUnion( false )
, i sDynamic( false )
, i sPolymorphic( false )
, h asNonTrivialDefaultConstructor( false )
, h asNonTrivialCopyConstructor( false )
, h asNonTrivialDestructor( false )
, i sExternCContext( false )
, l ayout( 0 )
{
}
Class : : ~ Class ( )
{
if ( L ayout)
delete L ayout;
if ( l ayout)
delete l ayout;
}
DEF_VECTOR ( Class , BaseClassSpecifier * , Bases )
@ -743,9 +743,9 @@ DEF_VECTOR(ClassTemplate, ClassTemplateSpecialization*, Specializations)
@@ -743,9 +743,9 @@ DEF_VECTOR(ClassTemplate, ClassTemplateSpecialization*, Specializations)
ClassTemplateSpecialization : : ClassTemplateSpecialization ( )
: Class ( )
, T emplatedDecl( 0 )
, t emplatedDecl( 0 )
{
K ind = DeclarationKind : : ClassTemplateSpecialization ;
k ind = DeclarationKind : : ClassTemplateSpecialization ;
}
ClassTemplateSpecialization : : ~ ClassTemplateSpecialization ( ) { }
@ -755,7 +755,7 @@ DEF_VECTOR(ClassTemplateSpecialization, TemplateArgument, Arguments)
@@ -755,7 +755,7 @@ DEF_VECTOR(ClassTemplateSpecialization, TemplateArgument, Arguments)
ClassTemplatePartialSpecialization : : ClassTemplatePartialSpecialization ( )
: ClassTemplateSpecialization ( )
{
K ind = DeclarationKind : : ClassTemplatePartialSpecialization ;
k ind = DeclarationKind : : ClassTemplatePartialSpecialization ;
}
ClassTemplatePartialSpecialization : : ~ ClassTemplatePartialSpecialization ( ) { }
@ -769,7 +769,7 @@ DEF_VECTOR(FunctionTemplate, FunctionTemplateSpecialization*, Specializations)
@@ -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 - > S pecializedFunction- > USR = = usr ; } ) ;
[ & ] ( FunctionTemplateSpecialization * cts ) { return cts - > s pecializedFunction- > USR = = usr ; } ) ;
if ( foundSpec ! = Specializations . end ( ) )
return static_cast < FunctionTemplateSpecialization * > ( * foundSpec ) ;
@ -778,8 +778,8 @@ FunctionTemplateSpecialization* FunctionTemplate::FindSpecialization(const std::
@@ -778,8 +778,8 @@ FunctionTemplateSpecialization* FunctionTemplate::FindSpecialization(const std::
}
FunctionTemplateSpecialization : : FunctionTemplateSpecialization ( )
: T emplate( 0 )
, S pecializedFunction( 0 )
: _t emplate( 0 )
, s pecializedFunction( 0 )
{
}
@ -816,9 +816,9 @@ VarTemplatePartialSpecialization* VarTemplate::FindPartialSpecialization(const s
@@ -816,9 +816,9 @@ VarTemplatePartialSpecialization* VarTemplate::FindPartialSpecialization(const s
VarTemplateSpecialization : : VarTemplateSpecialization ( )
: Variable ( )
, T emplatedDecl( 0 )
, t emplatedDecl( 0 )
{
K ind = DeclarationKind : : VarTemplateSpecialization ;
k ind = DeclarationKind : : VarTemplateSpecialization ;
}
VarTemplateSpecialization : : ~ VarTemplateSpecialization ( ) { }
@ -828,7 +828,7 @@ DEF_VECTOR(VarTemplateSpecialization, TemplateArgument, Arguments)
@@ -828,7 +828,7 @@ DEF_VECTOR(VarTemplateSpecialization, TemplateArgument, Arguments)
VarTemplatePartialSpecialization : : VarTemplatePartialSpecialization ( )
: VarTemplateSpecialization ( )
{
K ind = DeclarationKind : : VarTemplatePartialSpecialization ;
k ind = DeclarationKind : : VarTemplatePartialSpecialization ;
}
VarTemplatePartialSpecialization : : ~ VarTemplatePartialSpecialization ( )
@ -837,32 +837,32 @@ VarTemplatePartialSpecialization::~VarTemplatePartialSpecialization()
@@ -837,32 +837,32 @@ VarTemplatePartialSpecialization::~VarTemplatePartialSpecialization()
Namespace : : Namespace ( )
: DeclarationContext ( DeclarationKind : : Namespace )
, I sInline( false )
, i sInline( false )
{
}
Namespace : : ~ Namespace ( ) { }
PreprocessedEntity : : PreprocessedEntity ( )
: M acroLocation( AST : : MacroLocation : : Unknown ) ,
O riginalPtr( 0 ) , K ind( DeclarationKind : : PreprocessedEntity ) { }
: m acroLocation( AST : : MacroLocation : : Unknown ) ,
o riginalPtr( 0 ) , k ind( DeclarationKind : : PreprocessedEntity ) { }
MacroDefinition : : MacroDefinition ( )
: L ineNumberStart( 0 ) , L ineNumberEnd( 0 ) { K ind = DeclarationKind : : MacroDefinition ; }
: l ineNumberStart( 0 ) , l ineNumberEnd( 0 ) { k ind = DeclarationKind : : MacroDefinition ; }
MacroDefinition : : ~ MacroDefinition ( ) { }
DEF_STRING ( MacroDefinition , Name )
DEF_STRING ( MacroDefinition , Expression )
MacroExpansion : : MacroExpansion ( ) : D efinition( 0 ) { K ind = DeclarationKind : : MacroExpansion ; }
MacroExpansion : : MacroExpansion ( ) : d efinition( 0 ) { k ind = DeclarationKind : : MacroExpansion ; }
MacroExpansion : : ~ MacroExpansion ( ) { }
DEF_STRING ( MacroExpansion , Name )
DEF_STRING ( MacroExpansion , Text )
TranslationUnit : : TranslationUnit ( ) { K ind = DeclarationKind : : TranslationUnit ; }
TranslationUnit : : TranslationUnit ( ) { k ind = DeclarationKind : : TranslationUnit ; }
TranslationUnit : : ~ TranslationUnit ( ) { }
@ -870,7 +870,7 @@ DEF_STRING(TranslationUnit, FileName)
@@ -870,7 +870,7 @@ DEF_STRING(TranslationUnit, FileName)
DEF_VECTOR ( TranslationUnit , MacroDefinition * , Macros )
NativeLibrary : : NativeLibrary ( )
: A rchType( AST : : ArchType : : UnknownArch )
: a rchType( AST : : ArchType : : UnknownArch )
{
}
@ -929,17 +929,17 @@ TranslationUnit* ASTContext::FindOrCreateModule(std::string File)
@@ -929,17 +929,17 @@ TranslationUnit* ASTContext::FindOrCreateModule(std::string File)
}
// Comments
Comment : : Comment ( CommentKind kind ) : K ind( kind ) { }
Comment : : Comment ( CommentKind kind ) : k ind( kind ) { }
DEF_STRING ( RawComment , Text )
DEF_STRING ( RawComment , BriefText )
RawComment : : RawComment ( ) : F ullCommentBlock( 0 ) { }
RawComment : : RawComment ( ) : f ullCommentBlock( 0 ) { }
RawComment : : ~ RawComment ( )
{
if ( F ullCommentBlock)
delete F ullCommentBlock;
if ( f ullCommentBlock)
delete f ullCommentBlock;
}
FullComment : : FullComment ( ) : Comment ( CommentKind : : FullComment ) { }
@ -949,7 +949,7 @@ FullComment::~FullComment()
@@ -949,7 +949,7 @@ FullComment::~FullComment()
for ( auto & block : Blocks )
{
// HACK: see https://github.com/mono/CppSharp/issues/599
switch ( block - > K ind)
switch ( block - > k ind)
{
case CommentKind : : BlockCommandComment :
delete static_cast < BlockCommandComment * > ( block ) ;
@ -988,18 +988,18 @@ BlockCommandComment::Argument::Argument(const Argument& rhs) : Text(rhs.Text) {}
@@ -988,18 +988,18 @@ BlockCommandComment::Argument::Argument(const Argument& rhs) : Text(rhs.Text) {}
DEF_STRING ( BlockCommandComment : : Argument , Text )
BlockCommandComment : : BlockCommandComment ( ) : BlockContentComment ( CommentKind : : BlockCommandComment ) , C ommandId( 0 ) , P aragraphComment( 0 ) { }
BlockCommandComment : : BlockCommandComment ( ) : BlockContentComment ( CommentKind : : BlockCommandComment ) , c ommandId( 0 ) , p aragraphComment( 0 ) { }
BlockCommandComment : : BlockCommandComment ( CommentKind Kind ) : BlockContentComment ( Kind ) , C ommandId( 0 ) , P aragraphComment( 0 ) { }
BlockCommandComment : : BlockCommandComment ( CommentKind Kind ) : BlockContentComment ( Kind ) , c ommandId( 0 ) , p aragraphComment( 0 ) { }
BlockCommandComment : : ~ BlockCommandComment ( )
{
delete P aragraphComment;
delete p aragraphComment;
}
DEF_VECTOR ( BlockCommandComment , BlockCommandComment : : Argument , Arguments )
ParamCommandComment : : ParamCommandComment ( ) : BlockCommandComment ( CommentKind : : ParamCommandComment ) , D irection( PassDirection : : In ) , P aramIndex( 0 ) { }
ParamCommandComment : : ParamCommandComment ( ) : BlockCommandComment ( CommentKind : : ParamCommandComment ) , d irection( PassDirection : : In ) , p aramIndex( 0 ) { }
TParamCommandComment : : TParamCommandComment ( ) : BlockCommandComment ( CommentKind : : TParamCommandComment ) { }
@ -1019,14 +1019,14 @@ VerbatimLineComment::VerbatimLineComment() : BlockCommandComment(CommentKind::Ve
@@ -1019,14 +1019,14 @@ VerbatimLineComment::VerbatimLineComment() : BlockCommandComment(CommentKind::Ve
DEF_STRING ( VerbatimLineComment , Text )
ParagraphComment : : ParagraphComment ( ) : BlockContentComment ( CommentKind : : ParagraphComment ) , I sWhitespace( false ) { }
ParagraphComment : : ParagraphComment ( ) : BlockContentComment ( CommentKind : : ParagraphComment ) , i sWhitespace( false ) { }
ParagraphComment : : ~ ParagraphComment ( )
{
for ( auto & content : Content )
{
// HACK: see https://github.com/mono/CppSharp/issues/599
switch ( content - > K ind)
switch ( content - > k ind)
{
case CommentKind : : InlineCommandComment :
delete static_cast < InlineCommandComment * > ( content ) ;
@ -1074,9 +1074,9 @@ HTMLEndTagComment::HTMLEndTagComment() : HTMLTagComment(CommentKind::HTMLEndTagC
@@ -1074,9 +1074,9 @@ HTMLEndTagComment::HTMLEndTagComment() : HTMLTagComment(CommentKind::HTMLEndTagC
DEF_STRING ( HTMLEndTagComment , TagName )
InlineContentComment : : InlineContentComment ( ) : Comment ( CommentKind : : InlineContentComment ) , H asTrailingNewline( false ) { }
InlineContentComment : : InlineContentComment ( ) : Comment ( CommentKind : : InlineContentComment ) , h asTrailingNewline( false ) { }
InlineContentComment : : InlineContentComment ( CommentKind Kind ) : Comment ( Kind ) , H asTrailingNewline( false ) { }
InlineContentComment : : InlineContentComment ( CommentKind Kind ) : Comment ( Kind ) , h asTrailingNewline( false ) { }
TextComment : : TextComment ( ) : InlineContentComment ( CommentKind : : TextComment ) { }
@ -1089,7 +1089,7 @@ InlineCommandComment::Argument::Argument(const Argument& rhs) : Text(rhs.Text) {
@@ -1089,7 +1089,7 @@ InlineCommandComment::Argument::Argument(const Argument& rhs) : Text(rhs.Text) {
DEF_STRING ( InlineCommandComment : : Argument , Text )
InlineCommandComment : : InlineCommandComment ( )
: InlineContentComment ( CommentKind : : InlineCommandComment ) , C ommandId( 0 ) , C ommentRenderKind( RenderNormal ) { }
: InlineContentComment ( CommentKind : : InlineCommandComment ) , c ommandId( 0 ) , c ommentRenderKind( RenderNormal ) { }
DEF_VECTOR ( InlineCommandComment , InlineCommandComment : : Argument , Arguments )