mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
C++: Mark constexpr if as unevalauted.
This commit is contained in:
@@ -307,6 +307,10 @@ class Expr extends StmtParent, @expr {
|
||||
)
|
||||
or
|
||||
exists(Decltype d | d.getExpr() = this.getParentWithConversions*())
|
||||
or
|
||||
exists(ConstexprIfStmt constIf |
|
||||
constIf.getControllingExpr() = this.getParentWithConversions*()
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,3 +14,7 @@
|
||||
| test.cpp:57:9:57:9 | 4 |
|
||||
| test.cpp:63:9:63:19 | call to getAVirtual |
|
||||
| test.cpp:63:9:63:21 | temporary object |
|
||||
| test.cpp:67:16:67:26 | sizeof(int) |
|
||||
| test.cpp:67:16:67:31 | ... == ... |
|
||||
| test.cpp:67:31:67:31 | 4 |
|
||||
| test.cpp:67:31:67:31 | (unsigned long)... |
|
||||
|
||||
Reference in New Issue
Block a user