mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
C++: Simplify getConstructedFrom.
This commit is contained in:
@@ -16,10 +16,7 @@ import cpp
|
||||
* is not from a template instantiation.
|
||||
*/
|
||||
Function getConstructedFrom(Function f) {
|
||||
exists(Function mid |
|
||||
f.isConstructedFrom(mid) and
|
||||
result = getConstructedFrom(mid)
|
||||
)
|
||||
f.isConstructedFrom(result)
|
||||
or
|
||||
not f.isConstructedFrom(_) and
|
||||
result = f
|
||||
|
||||
Reference in New Issue
Block a user