mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
C++: Implement Expr::mayBeFromImplicitlyDeclaredFunction
This commit is contained in:
@@ -0,0 +1 @@
|
||||
| file://:0:0:0:0 | <error expr> |
|
||||
@@ -0,0 +1,5 @@
|
||||
import cpp
|
||||
|
||||
from Expr e
|
||||
where e.getType() instanceof ErroneousType
|
||||
select e
|
||||
@@ -0,0 +1,2 @@
|
||||
| file://:0:0:0:0 | There was an error during this compilation |
|
||||
| implicit.cpp:5:5:5:5 | identifier 'g' is undefined |
|
||||
@@ -0,0 +1,4 @@
|
||||
import cpp
|
||||
|
||||
from Diagnostic d
|
||||
select d
|
||||
@@ -0,0 +1,4 @@
|
||||
void f() {
|
||||
f();
|
||||
g();
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// semmle-extractor-options: --expect_errors
|
||||
|
||||
void f() {
|
||||
f();
|
||||
g();
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
| implicit.c:3:5:3:5 | call to g |
|
||||
@@ -0,0 +1,5 @@
|
||||
import cpp
|
||||
|
||||
from Expr e
|
||||
where e.mayBeFromImplicitlyDeclaredFunction()
|
||||
select e
|
||||
Reference in New Issue
Block a user