mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C++: Accept AST field flow test output
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user