Skip to content

Commit 5df06ec

Browse files
committed
Add qldoc to maybeACompileTimeTemplateArgument
1 parent e55a5b3 commit 5df06ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/common/src/codingstandards/cpp/deadcode/UnusedVariables.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ class UserProvidedConstructorFieldInit extends ConstructorFieldInit {
123123
}
124124
}
125125

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+
*/
126130
predicate maybeACompileTimeTemplateArgument(Variable v) {
127131
v.isConstexpr() and
128132
exists(ClassTemplateInstantiation cti, TranslationUnit tu |

0 commit comments

Comments
 (0)