Skip to content

Commit bc5132e

Browse files
committed
Refactorization: Moved declaration of errout, ... to testsuite.h, uniformized style
1 parent 958c05c commit bc5132e

51 files changed

Lines changed: 12 additions & 138 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/test64bit.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
2019
#include "tokenize.h"
2120
#include "check64bit.h"
2221
#include "testsuite.h"
23-
#include <sstream>
2422

25-
extern std::ostringstream errout;
2623

2724
class Test64BitPortability : public TestFixture {
2825
public:

test/testassert.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
#include "tokenize.h"
2020
#include "checkassert.h"
2121
#include "testsuite.h"
22-
#include <sstream>
2322

24-
extern std::ostringstream errout;
2523

2624
class TestAssert : public TestFixture {
2725
public:

test/testautovariables.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
2019
#include "tokenize.h"
2120
#include "checkautovariables.h"
2221
#include "testsuite.h"
2322

24-
#include <sstream>
25-
26-
extern std::ostringstream errout;
2723

2824
class TestAutoVariables : public TestFixture {
2925
public:

test/testbool.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
2019
#include "tokenize.h"
2120
#include "checkbool.h"
2221
#include "testsuite.h"
23-
#include <sstream>
2422

25-
extern std::ostringstream errout;
2623

2724
class TestBool : public TestFixture {
2825
public:

test/testboost.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
20-
2119
#include "tokenize.h"
2220
#include "checkboost.h"
2321
#include "testsuite.h"
24-
#include <sstream>
2522

26-
extern std::ostringstream errout;
2723

2824
class TestBoost : public TestFixture {
2925
public:

test/testbufferoverrun.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,13 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
2019
#include "tokenize.h"
2120
#include "checkbufferoverrun.h"
2221
#include "testsuite.h"
2322

2423
#include <tinyxml2.h>
25-
#include <sstream>
2624
#include <climits>
2725

28-
extern std::ostringstream errout;
2926

3027
class TestBufferOverrun : public TestFixture {
3128
public:

test/testcharvar.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
2019
#include "tokenize.h"
2120
#include "checkother.h"
2221
#include "testsuite.h"
23-
#include <sstream>
2422

25-
extern std::ostringstream errout;
2623

2724
class TestCharVar : public TestFixture {
2825
public:

test/testclass.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
20-
2119
#include "tokenize.h"
2220
#include "checkclass.h"
2321
#include "testsuite.h"
24-
#include <sstream>
2522
#include <tinyxml2.h>
2623

27-
extern std::ostringstream errout;
2824

2925
class TestClass : public TestFixture {
3026
public:

test/testcmdlineparser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "redirect.h"
2323
#include "timer.h"
2424

25+
2526
class TestCmdlineParser : public TestFixture {
2627
public:
2728
TestCmdlineParser()

test/testcondition.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19-
2019
#include "tokenize.h"
2120
#include "checkcondition.h"
2221
#include "testsuite.h"
23-
#include <sstream>
2422
#include <tinyxml2.h>
2523

26-
extern std::ostringstream errout;
2724

2825
class TestCondition : public TestFixture {
2926
public:

0 commit comments

Comments
 (0)