Skip to content

Commit a5c0fa2

Browse files
authored
Merge pull request #9971 from jketema/attribute-arg
C++: Handle all forms of constant attribute arguments
2 parents 18094fb + 32a2363 commit a5c0fa2

File tree

12 files changed

+13018
-4461
lines changed

12 files changed

+13018
-4461
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class AttributeArgument extends @attribute_arg {
2+
string toString() { none() }
3+
}
4+
5+
class Attribute extends @attribute {
6+
string toString() { none() }
7+
}
8+
9+
class LocationDefault extends @location_default {
10+
string toString() { none() }
11+
}
12+
13+
from AttributeArgument arg, int kind, Attribute attr, int index, LocationDefault location
14+
where
15+
attribute_args(arg, kind, attr, index, location) and
16+
not arg instanceof @attribute_arg_constant_expr
17+
select arg, kind, attr, index, location

0 commit comments

Comments
 (0)