Skip to content

Commit 3aee7b9

Browse files
richardboehmeko1
authored andcommitted
Mark first argument to all C-API tracepoint functions as nonnull
1 parent 04ebedf commit 3aee7b9

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

include/ruby/debug.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ RBIMPL_ATTR_RETURNS_NONNULL()
479479
*/
480480
rb_trace_arg_t *rb_tracearg_from_tracepoint(VALUE tpval);
481481

482-
RBIMPL_ATTR_NONNULL(())
482+
RBIMPL_ATTR_NONNULL((1))
483483
/**
484484
* Queries the event of the passed trace.
485485
*
@@ -488,7 +488,7 @@ RBIMPL_ATTR_NONNULL(())
488488
*/
489489
rb_event_flag_t rb_tracearg_event_flag(rb_trace_arg_t *trace_arg);
490490

491-
RBIMPL_ATTR_NONNULL(())
491+
RBIMPL_ATTR_NONNULL((1))
492492
/**
493493
* Identical to rb_tracearg_event_flag(), except it returns the name of the
494494
* event in Ruby's symbol.
@@ -498,7 +498,7 @@ RBIMPL_ATTR_NONNULL(())
498498
*/
499499
VALUE rb_tracearg_event(rb_trace_arg_t *trace_arg);
500500

501-
RBIMPL_ATTR_NONNULL(())
501+
RBIMPL_ATTR_NONNULL((1))
502502
/**
503503
* Queries the line of the point where the trace is at.
504504
*
@@ -508,7 +508,7 @@ RBIMPL_ATTR_NONNULL(())
508508
*/
509509
VALUE rb_tracearg_lineno(rb_trace_arg_t *trace_arg);
510510

511-
RBIMPL_ATTR_NONNULL(())
511+
RBIMPL_ATTR_NONNULL((1))
512512
/**
513513
* Queries the file name of the point where the trace is at.
514514
*
@@ -518,7 +518,7 @@ RBIMPL_ATTR_NONNULL(())
518518
*/
519519
VALUE rb_tracearg_path(rb_trace_arg_t *trace_arg);
520520

521-
RBIMPL_ATTR_NONNULL(())
521+
RBIMPL_ATTR_NONNULL((1))
522522
/**
523523
*
524524
* Queries the parameters passed on a call or return event.
@@ -530,7 +530,7 @@ RBIMPL_ATTR_NONNULL(())
530530
*/
531531
VALUE rb_tracearg_parameters(rb_trace_arg_t *trace_arg);
532532

533-
RBIMPL_ATTR_NONNULL(())
533+
RBIMPL_ATTR_NONNULL((1))
534534
/**
535535
* Queries the method name of the point where the trace is at.
536536
*
@@ -540,7 +540,7 @@ RBIMPL_ATTR_NONNULL(())
540540
*/
541541
VALUE rb_tracearg_method_id(rb_trace_arg_t *trace_arg);
542542

543-
RBIMPL_ATTR_NONNULL(())
543+
RBIMPL_ATTR_NONNULL((1))
544544
/**
545545
* Identical to rb_tracearg_method_id(), except it returns callee id like
546546
* rb_frame_callee().
@@ -551,7 +551,7 @@ RBIMPL_ATTR_NONNULL(())
551551
*/
552552
VALUE rb_tracearg_callee_id(rb_trace_arg_t *trace_arg);
553553

554-
RBIMPL_ATTR_NONNULL(())
554+
RBIMPL_ATTR_NONNULL((1))
555555
/**
556556
* Queries the class that defines the method that the passed trace is at. This
557557
* can be different from the class of rb_tracearg_self()'s return value because
@@ -563,7 +563,7 @@ RBIMPL_ATTR_NONNULL(())
563563
*/
564564
VALUE rb_tracearg_defined_class(rb_trace_arg_t *trace_arg);
565565

566-
RBIMPL_ATTR_NONNULL(())
566+
RBIMPL_ATTR_NONNULL((1))
567567
/**
568568
* Creates a binding object of the point where the trace is at.
569569
*
@@ -578,7 +578,7 @@ RBIMPL_ATTR_NONNULL(())
578578
*/
579579
VALUE rb_tracearg_binding(rb_trace_arg_t *trace_arg);
580580

581-
RBIMPL_ATTR_NONNULL(())
581+
RBIMPL_ATTR_NONNULL((1))
582582
/**
583583
* Queries the receiver of the point trace is at.
584584
*
@@ -587,7 +587,7 @@ RBIMPL_ATTR_NONNULL(())
587587
*/
588588
VALUE rb_tracearg_self(rb_trace_arg_t *trace_arg);
589589

590-
RBIMPL_ATTR_NONNULL(())
590+
RBIMPL_ATTR_NONNULL((1))
591591
/**
592592
* Queries the return value that the trace represents.
593593
*
@@ -597,7 +597,7 @@ RBIMPL_ATTR_NONNULL(())
597597
*/
598598
VALUE rb_tracearg_return_value(rb_trace_arg_t *trace_arg);
599599

600-
RBIMPL_ATTR_NONNULL(())
600+
RBIMPL_ATTR_NONNULL((1))
601601
/**
602602
* Queries the raised exception that the trace represents.
603603
*
@@ -607,7 +607,7 @@ RBIMPL_ATTR_NONNULL(())
607607
*/
608608
VALUE rb_tracearg_raised_exception(rb_trace_arg_t *trace_arg);
609609

610-
RBIMPL_ATTR_NONNULL(())
610+
RBIMPL_ATTR_NONNULL((1))
611611
/**
612612
* Queries the compiled source code of the 'script_compiled' event.
613613
* If loaded from a file, it will return nil.
@@ -620,7 +620,7 @@ RBIMPL_ATTR_NONNULL(())
620620
*/
621621
VALUE rb_tracearg_eval_script(rb_trace_arg_t *trace_arg);
622622

623-
RBIMPL_ATTR_NONNULL(())
623+
RBIMPL_ATTR_NONNULL((1))
624624
/**
625625
*
626626
* Queries the compiled instruction sequence on a 'script_compiled' event.
@@ -633,7 +633,7 @@ RBIMPL_ATTR_NONNULL(())
633633
*/
634634
VALUE rb_tracearg_instruction_sequence(rb_trace_arg_t *trace_arg);
635635

636-
RBIMPL_ATTR_NONNULL(())
636+
RBIMPL_ATTR_NONNULL((1))
637637
/**
638638
* Queries the allocated/deallocated object that the trace represents.
639639
*

0 commit comments

Comments
 (0)