Fixed #9925 (False positive: Redundant pointer operation in macro)
This commit is contained in:
parent
fe2717fa37
commit
a39e5835d4
|
@ -2676,6 +2676,9 @@ void CheckOther::checkRedundantPointerOp()
|
||||||
if (!tok->isUnaryOp("&") || !tok->astOperand1()->isUnaryOp("*"))
|
if (!tok->isUnaryOp("&") || !tok->astOperand1()->isUnaryOp("*"))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if (tok->isExpandedMacro())
|
||||||
|
continue;
|
||||||
|
|
||||||
// variable
|
// variable
|
||||||
const Token *varTok = tok->astOperand1()->astOperand1();
|
const Token *varTok = tok->astOperand1()->astOperand1();
|
||||||
if (!varTok || varTok->isExpandedMacro())
|
if (!varTok || varTok->isExpandedMacro())
|
||||||
|
|
Loading…
Reference in New Issue