Skip to content

Commit f40a80c

Browse files
committed
Use 'normal' checking instead of 'simplified'
1 parent a2a216b commit f40a80c

5 files changed

Lines changed: 8 additions & 11 deletions

File tree

lib/checkexceptionsafety.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ class CPPCHECKLIB CheckExceptionSafety : public Check {
6161
: Check(myName(), tokenizer, settings, errorLogger) {
6262
}
6363

64-
/** Checks that uses the simplified token list */
65-
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
64+
void runChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
6665
if (tokenizer->isC())
6766
return;
6867

@@ -75,6 +74,12 @@ class CPPCHECKLIB CheckExceptionSafety : public Check {
7574
checkExceptionSafety.unhandledExceptionSpecification();
7675
}
7776

77+
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
78+
(void)tokenizer;
79+
(void)settings;
80+
(void)errorLogger;
81+
}
82+
7883
/** Don't throw exceptions in destructors */
7984
void destructors();
8085

test/testbool.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ class TestBool : public TestFixture {
8282
// Check...
8383
CheckBool checkBool(&tokenizer, &settings, this);
8484
checkBool.runChecks(&tokenizer, &settings, this);
85-
tokenizer.simplifyTokenList2();
86-
checkBool.runSimplifiedChecks(&tokenizer, &settings, this);
8785
}
8886

8987

test/testbufferoverrun.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ class TestBufferOverrun : public TestFixture {
5454
// Check for buffer overruns..
5555
CheckBufferOverrun checkBufferOverrun;
5656
checkBufferOverrun.runChecks(&tokenizer, &settings0, this);
57-
tokenizer.simplifyTokenList2();
58-
checkBufferOverrun.runSimplifiedChecks(&tokenizer, &settings0, this);
5957
}
6058

6159
void check(const char code[], const Settings &settings, const char filename[] = "test.cpp") {
@@ -69,8 +67,6 @@ class TestBufferOverrun : public TestFixture {
6967
// Check for buffer overruns..
7068
CheckBufferOverrun checkBufferOverrun(&tokenizer, &settings, this);
7169
checkBufferOverrun.runChecks(&tokenizer, &settings, this);
72-
tokenizer.simplifyTokenList2();
73-
checkBufferOverrun.runSimplifiedChecks(&tokenizer, &settings, this);
7470
}
7571

7672
void run() OVERRIDE {

test/testcondition.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ class TestCondition : public TestFixture {
140140
// Run checks..
141141
CheckCondition checkCondition;
142142
checkCondition.runChecks(&tokenizer, &settings0, this);
143-
tokenizer.simplifyTokenList2();
144-
checkCondition.runSimplifiedChecks(&tokenizer, &settings0, this);
145143
}
146144

147145
void assignAndCompare() {

test/testexceptionsafety.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class TestExceptionSafety : public TestFixture {
6666

6767
// Check char variable usage..
6868
CheckExceptionSafety checkExceptionSafety(&tokenizer, &settings, this);
69-
checkExceptionSafety.runSimplifiedChecks(&tokenizer, &settings, this);
69+
checkExceptionSafety.runChecks(&tokenizer, &settings, this);
7070
}
7171

7272
void destructors() {

0 commit comments

Comments
 (0)