mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Merge pull request #1012 from ian-semmle/constexpr
C++: Add Variable.isConstexpr()
This commit is contained in:
@@ -121,6 +121,13 @@ class Variable extends Declaration, @variable {
|
||||
result.getLValue() = this.getAnAccess()
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if this variable is `constexpr`.
|
||||
*/
|
||||
predicate isConstexpr() {
|
||||
this.hasSpecifier("is_constexpr")
|
||||
}
|
||||
|
||||
/**
|
||||
* Holds if this variable is constructed from `v` as a result
|
||||
* of template instantiation. If so, it originates either from a template
|
||||
|
||||
Reference in New Issue
Block a user