We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 060c19a commit e0ca4daCopy full SHA for e0ca4da
cpp/ql/src/semmle/code/cpp/Variable.qll
@@ -144,6 +144,11 @@ class Variable extends Declaration, @variable {
144
*/
145
predicate isConstexpr() { this.hasSpecifier("is_constexpr") }
146
147
+ /**
148
+ * Holds if this variable is declared `constinit`.
149
+ */
150
+ predicate isConstinit() { this.hasSpecifier("declared_constinit") }
151
+
152
/**
153
* Holds if this variable is `thread_local`.
154
0 commit comments