Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d098fe commit bbafcd9Copy full SHA for bbafcd9
1 file changed
cpp/ql/src/semmle/code/cpp/valuenumbering/HashCons.qll
@@ -704,7 +704,8 @@ private predicate mk_UuidofOperator(Type t, UuidofOperator e) {
704
}
705
706
private predicate analyzableTypeidType(TypeidOperator e) {
707
- count(e.getAChild()) = 0
+ count(e.getAChild()) = 0 and
708
+ strictcount(e.getResultType()) = 1
709
710
711
private predicate mk_TypeidType(Type t, TypeidOperator e) {
@@ -858,7 +859,7 @@ private predicate analyzableNoExceptExpr(NoExceptExpr nee) {
858
859
860
private predicate mk_NoExceptExpr(HashCons child, NoExceptExpr nee) {
861
analyzableNoExceptExpr(nee) and
- nee.getExpr() = child.getAnExpr().getFullyConverted()
862
+ nee.getExpr().getFullyConverted() = child.getAnExpr()
863
864
865
0 commit comments