Mark first argument to all C-API tracepoint functions as nonnull
This commit is contained in:
parent
04ebedf7f0
commit
3aee7b982b
Notes:
git
2025-03-28 14:08:49 +00:00
@ -479,7 +479,7 @@ RBIMPL_ATTR_RETURNS_NONNULL()
|
|||||||
*/
|
*/
|
||||||
rb_trace_arg_t *rb_tracearg_from_tracepoint(VALUE tpval);
|
rb_trace_arg_t *rb_tracearg_from_tracepoint(VALUE tpval);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the event of the passed trace.
|
* Queries the event of the passed trace.
|
||||||
*
|
*
|
||||||
@ -488,7 +488,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
rb_event_flag_t rb_tracearg_event_flag(rb_trace_arg_t *trace_arg);
|
rb_event_flag_t rb_tracearg_event_flag(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Identical to rb_tracearg_event_flag(), except it returns the name of the
|
* Identical to rb_tracearg_event_flag(), except it returns the name of the
|
||||||
* event in Ruby's symbol.
|
* event in Ruby's symbol.
|
||||||
@ -498,7 +498,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_event(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_event(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the line of the point where the trace is at.
|
* Queries the line of the point where the trace is at.
|
||||||
*
|
*
|
||||||
@ -508,7 +508,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_lineno(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_lineno(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the file name of the point where the trace is at.
|
* Queries the file name of the point where the trace is at.
|
||||||
*
|
*
|
||||||
@ -518,7 +518,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_path(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_path(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Queries the parameters passed on a call or return event.
|
* Queries the parameters passed on a call or return event.
|
||||||
@ -530,7 +530,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_parameters(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_parameters(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the method name of the point where the trace is at.
|
* Queries the method name of the point where the trace is at.
|
||||||
*
|
*
|
||||||
@ -540,7 +540,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_method_id(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_method_id(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Identical to rb_tracearg_method_id(), except it returns callee id like
|
* Identical to rb_tracearg_method_id(), except it returns callee id like
|
||||||
* rb_frame_callee().
|
* rb_frame_callee().
|
||||||
@ -551,7 +551,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_callee_id(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_callee_id(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the class that defines the method that the passed trace is at. This
|
* Queries the class that defines the method that the passed trace is at. This
|
||||||
* can be different from the class of rb_tracearg_self()'s return value because
|
* can be different from the class of rb_tracearg_self()'s return value because
|
||||||
@ -563,7 +563,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_defined_class(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_defined_class(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Creates a binding object of the point where the trace is at.
|
* Creates a binding object of the point where the trace is at.
|
||||||
*
|
*
|
||||||
@ -578,7 +578,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_binding(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_binding(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the receiver of the point trace is at.
|
* Queries the receiver of the point trace is at.
|
||||||
*
|
*
|
||||||
@ -587,7 +587,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_self(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_self(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the return value that the trace represents.
|
* Queries the return value that the trace represents.
|
||||||
*
|
*
|
||||||
@ -597,7 +597,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_return_value(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_return_value(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the raised exception that the trace represents.
|
* Queries the raised exception that the trace represents.
|
||||||
*
|
*
|
||||||
@ -607,7 +607,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_raised_exception(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_raised_exception(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the compiled source code of the 'script_compiled' event.
|
* Queries the compiled source code of the 'script_compiled' event.
|
||||||
* If loaded from a file, it will return nil.
|
* If loaded from a file, it will return nil.
|
||||||
@ -620,7 +620,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_eval_script(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_eval_script(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Queries the compiled instruction sequence on a 'script_compiled' event.
|
* Queries the compiled instruction sequence on a 'script_compiled' event.
|
||||||
@ -633,7 +633,7 @@ RBIMPL_ATTR_NONNULL(())
|
|||||||
*/
|
*/
|
||||||
VALUE rb_tracearg_instruction_sequence(rb_trace_arg_t *trace_arg);
|
VALUE rb_tracearg_instruction_sequence(rb_trace_arg_t *trace_arg);
|
||||||
|
|
||||||
RBIMPL_ATTR_NONNULL(())
|
RBIMPL_ATTR_NONNULL((1))
|
||||||
/**
|
/**
|
||||||
* Queries the allocated/deallocated object that the trace represents.
|
* Queries the allocated/deallocated object that the trace represents.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user