Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Commit

Permalink
Fixed handling of overriden methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Aug 15, 2013
1 parent 4127585 commit 78289ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Generator/Generators/CLI/CLIHeadersTemplate.cs
Expand Up @@ -511,7 +511,7 @@ public void GenerateMethod(Method method)

GenerateDeclarationCommon(method);

if (method.IsOverride)
if (method.IsVirtual || method.IsOverride)
Write("virtual ");

if (method.IsStatic)
Expand Down
1 change: 1 addition & 0 deletions src/Parser/Parser.cpp
Expand Up @@ -790,6 +790,7 @@ CppSharp::AST::Method^ Parser::WalkMethodCXX(clang::CXXMethodDecl* MD)
Method->OperatorKind = GetOperatorKindFromDecl(Name);
Method->IsStatic = MD->isStatic();
Method->IsVirtual = MD->isVirtual();
Method->IsOverride = MD->size_overridden_methods() > 0;

WalkFunction(MD, Method);

Expand Down

0 comments on commit 78289ab

Please sign in to comment.