mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C++: Replace @buildin_op with @builtin_op
This commit is contained in:
@@ -4,7 +4,7 @@ import semmle.code.cpp.exprs.Expr
|
||||
* A C/C++ builtin operation. This is the root QL class encompassing
|
||||
* built-in functionality.
|
||||
*/
|
||||
class BuiltInOperation extends Expr, @buildin_op {
|
||||
class BuiltInOperation extends Expr, @builtin_op {
|
||||
override string getCanonicalQLClass() { result = "BuiltInOperation" }
|
||||
}
|
||||
|
||||
@@ -12,17 +12,7 @@ class BuiltInOperation extends Expr, @buildin_op {
|
||||
* A C/C++ built-in operation that is used to support functions with variable numbers of arguments.
|
||||
* This includes `va_start`, `va_end`, `va_copy`, and `va_arg`.
|
||||
*/
|
||||
class VarArgsExpr extends BuiltInOperation, @var_args_expr {
|
||||
VarArgsExpr() {
|
||||
this instanceof BuiltInVarArgsStart
|
||||
or
|
||||
this instanceof BuiltInVarArgsEnd
|
||||
or
|
||||
this instanceof BuiltInVarArg
|
||||
or
|
||||
this instanceof BuiltInVarArgCopy
|
||||
}
|
||||
}
|
||||
class VarArgsExpr extends BuiltInOperation, @var_args_expr { }
|
||||
|
||||
/**
|
||||
* A C/C++ `__builtin_va_start` built-in operation (used by some
|
||||
|
||||
@@ -1647,7 +1647,7 @@ case @expr.kind of
|
||||
| @vacopyexpr
|
||||
;
|
||||
|
||||
@buildin_op = @var_args_expr
|
||||
@builtin_op = @var_args_expr
|
||||
| @noopexpr
|
||||
| @offsetofexpr
|
||||
| @intaddrexpr
|
||||
|
||||
@@ -1647,7 +1647,7 @@ case @expr.kind of
|
||||
| @vacopyexpr
|
||||
;
|
||||
|
||||
@buildin_op = @var_args_expr
|
||||
@builtin_op = @var_args_expr
|
||||
| @noopexpr
|
||||
| @offsetofexpr
|
||||
| @intaddrexpr
|
||||
|
||||
Reference in New Issue
Block a user