File tree Expand file tree Collapse file tree
cpp/ql/test/library-tests/dataflow/taint-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ char *user_input() {
1414 return source ();
1515}
1616
17- void sink (const char *s) {} ;
18- void sink (const std::string &s) {} ;
17+ void sink (const char *s);
18+ void sink (const std::string &s);
1919void sink (const char *filename, const char *mode);
20- void sink (char ) {}
20+ void sink (char );
2121
2222void test_string ()
2323{
Original file line number Diff line number Diff line change @@ -10,18 +10,18 @@ namespace ns_char
1010 char source ();
1111}
1212
13- void sink (int i) {} ;
13+ void sink (int i);
1414
15- void sink (const std::string &s) {} ;
15+ void sink (const std::string &s);
1616
1717template <class charT >
18- void sink (const std::basic_ostream<charT> &s) {} ;
18+ void sink (const std::basic_ostream<charT> &s);
1919
2020template <class charT >
21- void sink (const std::basic_istream<charT> &s) {} ;
21+ void sink (const std::basic_istream<charT> &s);
2222
2323template <class charT >
24- void sink (const std::basic_iostream<charT> &s) {} ;
24+ void sink (const std::basic_iostream<charT> &s);
2525
2626void test_stringstream_string (int amount)
2727{
You can’t perform that action at this time.
0 commit comments