Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C++: Support if consteval and if ! consteval #18502

Merged
merged 8 commits into from
Jan 20, 2025
Prev Previous commit
Next Next commit
Update cpp/downgrades/1aa71a4a687fc93f807d4dfeeef70feceeced242/stmts.ql
  • Loading branch information
jketema authored Jan 20, 2025
commit 378f0368af5a2e9968d78b92b748a9fbeda15881
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ predicate isConstevalIf(Stmt stmt) {
from Stmt stmt, int kind, int kind_new, Location location
where
stmts(stmt, kind, location) and
if isConstevalIf(stmt) then kind_new = 7 else kind_new = kind // Turns consteval if into a block with two block statement in it
if isConstevalIf(stmt) then kind_new = 7 else kind_new = kind // Turns consteval if into a block with two block statements in it
select stmt, kind_new, location