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.
maybeACompileTimeTemplateArgument
1 parent e55a5b3 commit 5df06ecCopy full SHA for 5df06ec
cpp/common/src/codingstandards/cpp/deadcode/UnusedVariables.qll
@@ -123,6 +123,10 @@ class UserProvidedConstructorFieldInit extends ConstructorFieldInit {
123
}
124
125
126
+/**
127
+ * Holds if `v` may hold a compile time value and is accessible to a template instantiation that
128
+ * receives a constant value as an argument equal to the value of `v`.
129
+ */
130
predicate maybeACompileTimeTemplateArgument(Variable v) {
131
v.isConstexpr() and
132
exists(ClassTemplateInstantiation cti, TranslationUnit tu |
0 commit comments