Fix tabs/spaces

This commit is contained in:
Hackerpilot 2020-08-06 17:27:16 -07:00
parent 3b590c377a
commit 2174832e9f
1 changed files with 22 additions and 22 deletions

View File

@ -162,17 +162,17 @@ public:
popNestedFunc(); popNestedFunc();
} }
override void visit(const(StructDeclaration) decl) override void visit(const(StructDeclaration) decl)
{ {
pushVirtual(false); pushVirtual(false);
pushInClass(false); pushInClass(false);
pushNestedFunc(false); pushNestedFunc(false);
decl.accept(this); decl.accept(this);
check(); check();
popVirtual(); popVirtual();
popInClass(); popInClass();
popNestedFunc(); popNestedFunc();
} }
override void visit(const(Constructor) ctor) override void visit(const(Constructor) ctor)
{ {
@ -416,17 +416,17 @@ unittest
} }
}, sac); }, sac);
assertAnalyzerWarnings(q{ assertAnalyzerWarnings(q{
class C { class C {
static struct S { static struct S {
public: public:
this(int) { this(int) {
foo(); foo();
} }
void foo() {} void foo() {}
} }
} }
}, sac); }, sac);
import std.stdio: writeln; import std.stdio: writeln;
writeln("Unittest for VcallCtorChecker passed"); writeln("Unittest for VcallCtorChecker passed");