Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14ac985

Browse files
author
Dave Bartolomeo
committed
Remove more ODR violations from test code.
PrintAST now works on `library-tests/dataflow/taint-tests`.
1 parent 3767a52 commit 14ac985

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

cpp/ql/test/library-tests/dataflow/taint-tests/map.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include "stl.h"
33

44
using namespace std;
5-
5+
namespace {
66
char *source();
7-
7+
}
88
void sink(char *);
99
void sink(const char *);
1010
void sink(bool);

cpp/ql/test/library-tests/dataflow/taint-tests/set.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include "stl.h"
33

44
using namespace std;
5-
5+
namespace {
66
char *source();
7-
7+
}
88
void sink(char *);
99
void sink(std::set<char *>);
1010
void sink(std::set<char *>::iterator);

cpp/ql/test/library-tests/dataflow/taint-tests/string.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include "stl.h"
33

44
using namespace std;
5-
5+
namespace {
66
char *source();
7-
7+
}
88
namespace ns_char
99
{
1010
char source();

cpp/ql/test/library-tests/dataflow/taint-tests/stringstream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include "stl.h"
33

44
using namespace std;
5-
5+
namespace {
66
char *source();
7-
7+
}
88
namespace ns_char
99
{
1010
char source();

0 commit comments

Comments
 (0)