We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa556c commit 61cd6caCopy full SHA for 61cd6ca
cpp/common/src/codingstandards/cpp/rules/deadcode/DeadCode.qll
@@ -115,7 +115,7 @@ class DeadStmtInstance extends Stmt {
115
// Exclude compiler generated statements
116
not this.isCompilerGenerated() and
117
// Exclude code fully generated by macros, because the code may be "live" in other expansions
118
- not this.isInMacroExpansion() and
+ isNotWithinMacroExpansion(this) and
119
// MISRA defines dead code as an "_executed_ statement whose removal would not affect the program
120
// output". We therefore exclude unreachable statements as they are, by definition, not executed.
121
not this.getBasicBlock() = any(UnreachableBasicBlock ubb).getABasicBlock()
0 commit comments