Skip to content

Commit 6713436

Browse files
authored
Merge pull request github#15197 from jketema/attr-expr-arg
C++: Support attribute arguments that are expressions
2 parents 19c5d1f + f59a00c commit 6713436

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)