mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Merge pull request #17694 from jketema/multiple-entry-point
C++: Do not generate IR for functions with multiple entry points
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* @kind graph
|
||||
*/
|
||||
|
||||
private import cpp
|
||||
private import semmle.code.cpp.ir.implementation.raw.PrintIR
|
||||
@@ -0,0 +1,7 @@
|
||||
int foo(int i);
|
||||
|
||||
int foo(int i) {
|
||||
return 42;
|
||||
}
|
||||
|
||||
int bar();
|
||||
@@ -0,0 +1,3 @@
|
||||
int foo(int i) {
|
||||
return i;
|
||||
}
|
||||
Reference in New Issue
Block a user