Merge pull request #536 from Dmitry-Me/getRidOfHungarianNotation
Get rid of Hungarian notation
This commit is contained in:
commit
c9898a5af4
|
@ -2778,8 +2778,8 @@ void CheckMemoryLeakNoVar::checkForUnsafeArgAlloc(const Scope *scope)
|
||||||
|
|
||||||
// Scan through the arguments to the function call
|
// Scan through the arguments to the function call
|
||||||
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2 != endParamToken; tok2 = tok2->nextArgument()) {
|
for (const Token *tok2 = tok->tokAt(2); tok2 && tok2 != endParamToken; tok2 = tok2->nextArgument()) {
|
||||||
const Function *pFunc = tok2->function();
|
const Function *func = tok2->function();
|
||||||
const bool isNothrow = pFunc && (pFunc->isAttributeNothrow() || pFunc->isThrow());
|
const bool isNothrow = func && (func->isAttributeNothrow() || func->isThrow());
|
||||||
|
|
||||||
if (Token::Match(tok2, "shared_ptr|unique_ptr < %name% > ( new %name%")) {
|
if (Token::Match(tok2, "shared_ptr|unique_ptr < %name% > ( new %name%")) {
|
||||||
pointerType = tok2->str();
|
pointerType = tok2->str();
|
||||||
|
|
Loading…
Reference in New Issue