C++: Accept AST field flow test output

This commit is contained in:
Jonas Jensen
2019-08-07 15:02:54 +02:00
parent 861964337c
commit 6a3f5efc1b
12 changed files with 68 additions and 25 deletions

View File

@@ -33,8 +33,8 @@ void sink(int x)
void bar(Bar &b)
{
sink(b.f.a());
sink(b.f.b());
sink(b.f.a()); // flow (through `b1.f.setA` and `b3.f.setA`) [NOT DETECTED]
sink(b.f.b()); // flow (through `b2.f.setB` and `b3.f.setB`) [NOT DETECTED]
}
void foo()
@@ -61,4 +61,4 @@ void foo()
// Nothing should alert
bar(b4);
}
}; // namespace Complex
}; // namespace Complex