astyle formatting
This commit is contained in:
parent
df3ffa2eda
commit
bc3b12db72
|
@ -505,12 +505,12 @@ void CheckStl::find()
|
|||
break;
|
||||
if (tok2->varId() == iteratorid && Token::simpleMatch(tok2->previous(), "*"))
|
||||
findError(tok2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void CheckStl::findError(const Token *tok)
|
||||
{
|
||||
reportError(tok, Severity::error, "stlfind", "dangerous usage of find result");
|
||||
reportError(tok, Severity::error, "stlfind", "dangerous usage of find result");
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ public:
|
|||
* bad condition.. "it < alist.end()"
|
||||
*/
|
||||
void stlBoundries();
|
||||
|
||||
|
||||
/** usage of std::find */
|
||||
void find();
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ private:
|
|||
TEST_CASE(stlBoundries1);
|
||||
TEST_CASE(stlBoundries2);
|
||||
TEST_CASE(stlBoundries3);
|
||||
|
||||
|
||||
// find
|
||||
TEST_CASE(find1);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue