We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe2717f commit a39e583Copy full SHA for a39e583
1 file changed
lib/checkother.cpp
@@ -2676,6 +2676,9 @@ void CheckOther::checkRedundantPointerOp()
2676
if (!tok->isUnaryOp("&") || !tok->astOperand1()->isUnaryOp("*"))
2677
continue;
2678
2679
+ if (tok->isExpandedMacro())
2680
+ continue;
2681
+
2682
// variable
2683
const Token *varTok = tok->astOperand1()->astOperand1();
2684
if (!varTok || varTok->isExpandedMacro())
0 commit comments