Skip to content

Commit ad2fb7c

Browse files
committed
C++: Support attribute arguments that are expressions
1 parent bbe3269 commit ad2fb7c

File tree

10 files changed

+9726
-681
lines changed

10 files changed

+9726
-681
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class AttributeArg extends @attribute_arg {
2+
string toString() { none() }
3+
}
4+
5+
class Attribute extends @attribute {
6+
string toString() { none() }
7+
}
8+
9+
class Location extends @location_default {
10+
string toString() { none() }
11+
}
12+
13+
from AttributeArg arg, int kind, int kind_new, Attribute attr, int index, Location location
14+
where
15+
attribute_args(arg, kind, attr, index, location) and
16+
if arg instanceof @attribute_arg_expr then kind_new = 0 else kind_new = kind
17+
select arg, kind_new, attr, index, location

0 commit comments

Comments
 (0)