astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2018-01-11 09:31:16 +01:00
parent cefb2131c7
commit 323e9ab509
2 changed files with 5 additions and 5 deletions

View File

@ -129,7 +129,7 @@ void CheckStl::iterators()
for (unsigned int iteratorId = 1; iteratorId < symbolDatabase->getVariableListSize(); iteratorId++) {
const Variable* var = symbolDatabase->getVariableFromVarId(iteratorId);
bool inconclusiveType=false;
bool inconclusiveType=false;
if (!isIterator(var, inconclusiveType))
continue;
@ -206,7 +206,7 @@ void CheckStl::iterators()
while (par2->str() != ")") {
if (par2->varId() == containerToken->varId())
break;
bool inconclusiveType2=false;
bool inconclusiveType2=false;
if (isIterator(par2->variable(), inconclusiveType2))
break; // TODO: check if iterator points at same container
if (par2->str() == "(")

View File

@ -137,7 +137,7 @@ private:
TEST_CASE(stabilityOfChecks); // #4684 cppcheck crash in template function call
TEST_CASE(dereferenceInvalidIterator);
TEST_CASE(dereferenceInvalidIterator2); // #6572
TEST_CASE(dereferenceInvalidIterator2); // #6572
TEST_CASE(dereference_auto);
TEST_CASE(readingEmptyStlContainer);
@ -2896,8 +2896,8 @@ private:
"}\n");
ASSERT_EQUALS("", errout.str());
}
void dereferenceInvalidIterator2() {
void dereferenceInvalidIterator2() {
// Self-implemented iterator class
check("class iterator {\n"
"public:\n"