Browse Source

Added parser support for deleted functions.

pull/75/merge
triton 12 years ago
parent
commit
bc33de5ddd
  1. 1
      src/AST/Function.cs
  2. 1
      src/CppParser/AST.h
  3. 1
      src/CppParser/Parser.cpp
  4. 1
      src/Parser/Parser.cpp

1
src/AST/Function.cs

@ -113,6 +113,7 @@ namespace CppSharp.AST @@ -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; }

1
src/CppParser/AST.h

@ -432,6 +432,7 @@ struct CS_API Function : public Declaration @@ -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;

1
src/CppParser/Parser.cpp

@ -1522,6 +1522,7 @@ void Parser::WalkFunction(clang::FunctionDecl* FD, Function* F, @@ -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);

1
src/Parser/Parser.cpp

@ -1524,6 +1524,7 @@ void Parser::WalkFunction(clang::FunctionDecl* FD, CppSharp::AST::Function^ F, @@ -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);

Loading…
Cancel
Save