C++: Handle using_container in using-enum downgrade script.

This commit is contained in:
Alexandre Boulgakov
2024-07-22 18:02:14 +01:00
parent 06a9599906
commit af562f15f3
2 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
description: Revert support for using-enum declarations.
compatibility: partial
usings.rel: run usings.qlo
using_container.rel: run using_container.qlo

View File

@@ -0,0 +1,14 @@
class UsingEntry extends @using {
string toString() { none() }
}
class Element extends @element {
string toString() { none() }
}
from UsingEntry u, Element parent, int kind
where
usings(u, target, _, kind) and
using_container(parent, u) and
kind != 3
select parent, u