diff --git a/src/AST/Function.cs b/src/AST/Function.cs index f922218c..f9dba774 100644 --- a/src/AST/Function.cs +++ b/src/AST/Function.cs @@ -113,6 +113,7 @@ namespace CppSharp.AST public bool IsVariadic { get; set; } public bool IsInline { get; set; } public bool IsPure { get; set; } + public bool IsDeleted { get; set; } public bool IsAmbiguous { get; set; } public CXXOperatorKind OperatorKind { get; set; } diff --git a/src/CppParser/AST.h b/src/CppParser/AST.h index 54b6f282..0551f6fd 100644 --- a/src/CppParser/AST.h +++ b/src/CppParser/AST.h @@ -432,6 +432,7 @@ struct CS_API Function : public Declaration bool IsVariadic; bool IsInline; bool IsPure; + bool IsDeleted; CXXOperatorKind OperatorKind; std::string Mangled; CallingConvention CallingConvention; diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index 7871f73a..1e47c7cb 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -1522,6 +1522,7 @@ void Parser::WalkFunction(clang::FunctionDecl* FD, Function* F, F->IsInline = FD->isInlined(); F->IsDependent = FD->isDependentContext(); F->IsPure = FD->isPure(); + F->IsPure = FD->isDeleted(); auto CC = FT->getCallConv(); F->CallingConvention = ConvertCallConv(CC); diff --git a/src/Parser/Parser.cpp b/src/Parser/Parser.cpp index ea5a0389..b4657248 100644 --- a/src/Parser/Parser.cpp +++ b/src/Parser/Parser.cpp @@ -1524,6 +1524,7 @@ void Parser::WalkFunction(clang::FunctionDecl* FD, CppSharp::AST::Function^ F, F->IsInline = FD->isInlined(); F->IsDependent = FD->isDependentContext(); F->IsPure = FD->isPure(); + F->IsDeleted = FD->isDeleted(); auto CC = FT->getCallConv(); F->CallingConvention = ConvertCallConv(CC);