mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
@@ -497,7 +497,12 @@ class DynamicCast extends Cast, @dynamic_cast {
|
||||
* specified by the `__declspec(uuid)` attribute.
|
||||
*/
|
||||
class UuidofOperator extends Expr, @uuidof {
|
||||
override string toString() { result = "__uuidof(" + getTypeOperand().getName() + ")" }
|
||||
override string toString() {
|
||||
if exists(getTypeOperand()) then
|
||||
result = "__uuidof(" + getTypeOperand().getName() + ")"
|
||||
else
|
||||
result = "__uuidof(0)"
|
||||
}
|
||||
|
||||
override int getPrecedence() { result = 15 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user