C++: Add BuiltInIntAddr class for __INTADDR__

This commit is contained in:
Jonas Jensen
2019-01-03 13:33:37 +01:00
parent 6b27dcabc5
commit 8f9849b30b
2 changed files with 9 additions and 1 deletions

View File

@@ -42,12 +42,19 @@ class BuiltInNoOp extends BuiltInOperation, @noopexpr {
}
/**
* A C++ `__offsetof` expression (used by some implementations of offsetof in the presence of user-defined `operator&`).
* A C++ `__offsetof` expression (used by some implementations of offsetof in the presence of user-defined `operator&`).
*/
class BuiltInOperationOffsetOf extends BuiltInOperation, @offsetofexpr {
override string toString() { result = "__offsetof" }
}
/**
* A C/C++ `__INTADDR__` expression, used by EDG to implement `offsetof` in the presence of user-defined `operator&`.
*/
class BuiltInIntAddr extends BuiltInOperation, @intaddrexpr {
override string toString() { result = "__INTADDR__" }
}
/**
* A C++ `__has_assign` expression (used by some implementations of the type_traits header).
*/