Testcase changes to satisfy pep8 E742 and E743 checks

Closes #1110
This commit is contained in:
William S Fulton 2017-10-09 07:21:41 +01:00
parent 16481add8e
commit d6077129e4
6 changed files with 25 additions and 25 deletions

View File

@ -3,7 +3,7 @@
%module class_scope_namespace
%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) H::HH;
%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) Space8::I::II;
%warnfilter(SWIGWARN_PARSE_NAMED_NESTED_CLASS) Space8::I_::II;
%inline %{
struct A;
@ -107,12 +107,12 @@ void hhh(H::HH) {}
namespace Space8 {
struct II;
struct I {
struct I_ {
struct II {
void ii(Space8::I::II, I::II) {}
void ii(Space8::I_::II, I_::II) {}
};
};
void iii(Space8::I::II, I::II) {}
void iii(Space8::I_::II, I_::II) {}
}
struct J;

View File

@ -22,7 +22,7 @@ public class class_scope_namespace_runme {
F f = new F();
G g = new G();
H.HH h = new H.HH();
I.II i = new I.II();
I_.II i = new I_.II();
J j = new J();
K k = new K();
L l = new L();

View File

@ -23,10 +23,10 @@ public class template_partial_specialization_runme {
new G().g();
new H().h();
new I().i();
new J().j();
new K().k();
new L().l();
new M().m();
new N().n();
new BB().b();
new BBB().b();

View File

@ -23,10 +23,10 @@ public class template_partial_specialization_typedef_runme {
new G().g();
new H().h();
new I().i();
new J().j();
new K().k();
new L().l();
new M().m();
new N().n();
new BB().b();
new BBB().b();

View File

@ -12,10 +12,10 @@ namespace One {
template <> struct OneParm<int * const &> { void g() {} };
template <> struct OneParm<int **> { void h() {} };
template <> struct OneParm<float> { void i() {} };
template <> struct OneParm<float *> { void j() {} };
template <> struct OneParm<float **> { void k() {} };
template <> struct OneParm<float ***> { void l() {} };
template <> struct OneParm<float> { void j() {} };
template <> struct OneParm<float *> { void k() {} };
template <> struct OneParm<float **> { void m() {} };
template <> struct OneParm<float ***> { void n() {} };
}
%}
@ -33,12 +33,12 @@ namespace One {
// %template scope explicit specializations
namespace One {
%template(I) One::OneParm<float>;
%template(J) ::One::OneParm<float *>;
%template(J) One::OneParm<float>;
%template(K) ::One::OneParm<float *>;
}
%template(K) ::One::OneParm<float **>;
%template(M) ::One::OneParm<float **>;
namespace One {
%template(L) OneParm<float ***>;
%template(N) OneParm<float ***>;
}
// %template scope partial specializations

View File

@ -39,10 +39,10 @@ namespace One {
template <> struct OneParm<int * const &> { void g() {} };
template <> struct OneParm<int **> { void h() {} };
template <> struct OneParm<float> { void i() {} };
template <> struct OneParm<float *> { void j() {} };
template <> struct OneParm<float **> { void k() {} };
template <> struct OneParm<float ***> { void l() {} };
template <> struct OneParm<float> { void j() {} };
template <> struct OneParm<float *> { void k() {} };
template <> struct OneParm<float **> { void m() {} };
template <> struct OneParm<float ***> { void n() {} };
}
%}
@ -60,12 +60,12 @@ namespace One {
// %template scope explicit specializations
namespace One {
%template(I) One::OneParm<TypeDef::Float>;
%template(J) ::One::OneParm<TypeDef::FloatPtr>;
%template(J) One::OneParm<TypeDef::Float>;
%template(K) ::One::OneParm<TypeDef::FloatPtr>;
}
%template(K) ::One::OneParm<TypeDef::FloatPtrPtr>;
%template(M) ::One::OneParm<TypeDef::FloatPtrPtr>;
namespace One {
%template(L) OneParm<TypeDef::FloatPtrPtrPtr>;
%template(N) OneParm<TypeDef::FloatPtrPtrPtr>;
}
// %template scope partial specializations