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)
224224 {
225225 TranslationUnitPasses . AddPass ( new GenerateSymbolsPass ( ) ) ;
226226 TranslationUnitPasses . AddPass ( new TrimSpecializationsPass ( ) ) ;
227+ TranslationUnitPasses . AddPass ( new CheckIgnoredDeclsPass ( ) ) ;
227228 }
228229
229230 library . SetupPasses ( this ) ;
Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ public class ConstructorToConversionOperatorPass : TranslationUnitPass
1212 {
1313 public override bool VisitMethodDecl ( Method method )
1414 {
15- if ( AlreadyVisited ( method ) || ! method . IsGenerated || ! method . IsConstructor
16- || method . IsCopyConstructor
15+ if ( AlreadyVisited ( method ) || ! method . IsGenerated || ! method . IsConstructor ||
16+ method . IsCopyConstructor ||
1717 // conversion operators can only be public
18- || method . Access != AccessSpecifier . Public )
18+ method . Access != AccessSpecifier . Public )
1919 return false ;
2020
2121 var @params = method . Parameters . Where ( p => p . Kind == ParameterKind . Regular ) . ToList ( ) ;
@@ -29,7 +29,7 @@ public override bool VisitMethodDecl(Method method)
2929 ( p . DefaultArgument . Declaration == null ||
3030 p . DefaultArgument . Declaration . Ignore ) ) ) ;
3131 if ( nonDefaultParams > 1 )
32- return false ;
32+ return false ;
3333 }
3434 else
3535 {
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ Abstract* Derived2::getAbstract()
6262 return 0 ;
6363}
6464
65- DerivedFromExternalSpecialization::DerivedFromExternalSpecialization ()
65+ DerivedFromExternalSpecialization::DerivedFromExternalSpecialization (int i,
66+ TemplateWithIndependentFields<HasVirtualInDependency> defaultExternalSpecialization)
6667{
6768}
6869
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ class DLL_API HasVirtualInDependency : public HasVirtualInCore
7474class DLL_API DerivedFromExternalSpecialization : public TemplateWithIndependentFields<Derived>
7575{
7676public:
77- DerivedFromExternalSpecialization ();
77+ DerivedFromExternalSpecialization (int i,
78+ TemplateWithIndependentFields<HasVirtualInDependency> defaultExternalSpecialization =
79+ TemplateWithIndependentFields<HasVirtualInDependency>());
7880 ~DerivedFromExternalSpecialization ();
7981 TemplateWithIndependentFields<Base3> returnExternalSpecialization ();
8082};
You can’t perform that action at this time.
0 commit comments