Browse Source

Restored the generation of symbols for defaulted inlines.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
pull/913/head
Dimitar Dobrev 9 years ago
parent
commit
95b8405b28
  1. 4
      src/Generator/Passes/GenerateSymbolsPass.cs

4
src/Generator/Passes/GenerateSymbolsPass.cs

@ -31,9 +31,9 @@ namespace CppSharp.Passes
{ {
var result = base.VisitASTContext(context); var result = base.VisitASTContext(context);
var findSymbolsPass = Context.TranslationUnitPasses.FindPass<FindSymbolsPass>(); var findSymbolsPass = Context.TranslationUnitPasses.FindPass<FindSymbolsPass>();
GenerateSymbols();
if (remainingCompilationTasks > 0) if (remainingCompilationTasks > 0)
findSymbolsPass.Wait = true; findSymbolsPass.Wait = true;
GenerateSymbols();
return result; return result;
} }
@ -126,7 +126,7 @@ namespace CppSharp.Passes
{ {
var mangled = function.Mangled; var mangled = function.Mangled;
var method = function as Method; var method = function as Method;
return function.IsGenerated && !function.IsDeleted && !function.IsDefaulted && return function.IsGenerated && !function.IsDeleted &&
!function.IsDependent && !function.IsPure && !function.IsDependent && !function.IsPure &&
(!string.IsNullOrEmpty(function.Body) || function.IsImplicit) && (!string.IsNullOrEmpty(function.Body) || function.IsImplicit) &&
!(function.Namespace is ClassTemplateSpecialization) && !(function.Namespace is ClassTemplateSpecialization) &&

Loading…
Cancel
Save