Rename sameConditionAfterEarlyExit to identicalConditionAfterEarlyExit

This commit is contained in:
Daniel Marjamäki 2017-09-10 22:59:39 +02:00
parent db321c2617
commit 9f4fc7b323
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ private:
TEST_CASE(oppositeInnerCondition2);
TEST_CASE(oppositeInnerConditionAnd);
TEST_CASE(sameConditionAfterEarlyExit);
TEST_CASE(identicalConditionAfterEarlyExit);
TEST_CASE(clarifyCondition1); // if (a = b() < 0)
TEST_CASE(clarifyCondition2); // if (a & b == c)
@ -1775,7 +1775,7 @@ private:
ASSERT_EQUALS("[test.cpp:2] -> [test.cpp:3]: (warning) Opposite inner 'if' condition leads to a dead code block.\n", errout.str());
}
void sameConditionAfterEarlyExit() {
void identicalConditionAfterEarlyExit() {
check("void f(int x) {\n"
" if (x > 100) { return; }\n"
" if (x > 100) {}\n"