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 04c8ba2 commit 79569b6Copy full SHA for 79569b6
c/misra/src/rules/RULE-2-4/UnusedTagDeclaration.ql
@@ -29,5 +29,7 @@ where
29
// expansions of the same macro.
30
// Note: due to a bug in the CodeQL CLI version 2.9.4, this will currently have no effect, because
31
// `isInMacroExpansion` is broken for `UserType`s.
32
- not s.isInMacroExpansion()
+ not s.isInMacroExpansion() and
33
+ // Exclude template parameters, in case this is run on C++ code.
34
+ not s instanceof TemplateParameter
35
select s, "struct " + s.getName() + " has an unused tag."
0 commit comments