File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ public void SetupPasses(ILibrary library)
224
224
{
225
225
TranslationUnitPasses . AddPass ( new GenerateSymbolsPass ( ) ) ;
226
226
TranslationUnitPasses . AddPass ( new TrimSpecializationsPass ( ) ) ;
227
+ TranslationUnitPasses . AddPass ( new CheckIgnoredDeclsPass ( ) ) ;
227
228
}
228
229
229
230
library . SetupPasses ( this ) ;
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ public class ConstructorToConversionOperatorPass : TranslationUnitPass
12
12
{
13
13
public override bool VisitMethodDecl ( Method method )
14
14
{
15
- if ( AlreadyVisited ( method ) || ! method . IsGenerated || ! method . IsConstructor
16
- || method . IsCopyConstructor
15
+ if ( AlreadyVisited ( method ) || ! method . IsGenerated || ! method . IsConstructor ||
16
+ method . IsCopyConstructor ||
17
17
// conversion operators can only be public
18
- || method . Access != AccessSpecifier . Public )
18
+ method . Access != AccessSpecifier . Public )
19
19
return false ;
20
20
21
21
var @params = method . Parameters . Where ( p => p . Kind == ParameterKind . Regular ) . ToList ( ) ;
@@ -29,7 +29,7 @@ public override bool VisitMethodDecl(Method method)
29
29
( p . DefaultArgument . Declaration == null ||
30
30
p . DefaultArgument . Declaration . Ignore ) ) ) ;
31
31
if ( nonDefaultParams > 1 )
32
- return false ;
32
+ return false ;
33
33
}
34
34
else
35
35
{
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ Abstract* Derived2::getAbstract()
62
62
return 0 ;
63
63
}
64
64
65
- DerivedFromExternalSpecialization::DerivedFromExternalSpecialization ()
65
+ DerivedFromExternalSpecialization::DerivedFromExternalSpecialization (int i,
66
+ TemplateWithIndependentFields<HasVirtualInDependency> defaultExternalSpecialization)
66
67
{
67
68
}
68
69
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ class DLL_API HasVirtualInDependency : public HasVirtualInCore
74
74
class DLL_API DerivedFromExternalSpecialization : public TemplateWithIndependentFields<Derived>
75
75
{
76
76
public:
77
- DerivedFromExternalSpecialization ();
77
+ DerivedFromExternalSpecialization (int i,
78
+ TemplateWithIndependentFields<HasVirtualInDependency> defaultExternalSpecialization =
79
+ TemplateWithIndependentFields<HasVirtualInDependency>());
78
80
~DerivedFromExternalSpecialization ();
79
81
TemplateWithIndependentFields<Base3> returnExternalSpecialization ();
80
82
};
You can’t perform that action at this time.
0 commit comments