Skip to content

Commit b50f4bc

Browse files
authored
Merge pull request #9903 from jketema/builtin
C++: Support additional compiler builtin operations
2 parents 13f2cf9 + a27b1ee commit b50f4bc

File tree

19 files changed

+11011
-2554
lines changed

19 files changed

+11011
-2554
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
class Expr extends @expr {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location_expr {
6+
string toString() { none() }
7+
}
8+
9+
predicate isExprWithNewBuiltin(Expr expr) {
10+
exists(int kind | exprs(expr, kind, _) | 330 <= kind and kind <= 334)
11+
}
12+
13+
from Expr expr, int kind, int kind_new, Location location
14+
where
15+
exprs(expr, kind, location) and
16+
if isExprWithNewBuiltin(expr) then kind_new = 0 else kind_new = kind
17+
select expr, kind_new, location

0 commit comments

Comments
 (0)