emacs/test/lisp/emacs-lisp/bytecomp-resources
Mattias Engdegård 109ca1bd00 Warn about arity errors in inlining calls (bug#12299)
Wrong number of arguments in inlining function calls (to `defsubst` or
explicitly using `inline`) did not result in warnings, or in very
cryptic ones.

* lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Add calls
to `byte-compile--check-arity-bytecode`.
* lisp/emacs-lisp/bytecomp.el (byte-compile-emit-callargs-warn)
(byte-compile--check-arity-bytecode): New functions.
(byte-compile-callargs-warn): Use factored-out function.
* test/lisp/emacs-lisp/bytecomp-resources/warn-callargs-defsubst.el:
* test/lisp/emacs-lisp/bytecomp-tests.el ("warn-callargs-defsubst.el"):
New test case.
2021-07-23 15:19:01 +02:00
..
bc-test-alpha.el Don't propagate lexical variables into inlined functions 2021-05-27 14:16:17 +02:00
bc-test-beta.el Don't propagate lexical variables into inlined functions 2021-05-27 14:16:17 +02:00
error-lexical-var-with-add-hook.el
error-lexical-var-with-remove-hook.el
error-lexical-var-with-run-hook-with-args-until-failure.el
error-lexical-var-with-run-hook-with-args-until-success.el
error-lexical-var-with-run-hook-with-args.el
error-lexical-var-with-symbol-value.el
foo-inlinable.el Fix spurious "Lexical argument shadows the dynamic variable" due to inlining 2021-01-21 13:15:05 -05:00
nowarn-inline-after-defvar.el Fix spurious "Lexical argument shadows the dynamic variable" due to inlining 2021-01-21 13:15:05 -05:00
warn-autoload-not-on-top-level.el
warn-callargs-defsubst.el Warn about arity errors in inlining calls (bug#12299) 2021-07-23 15:19:01 +02:00
warn-callargs.el
warn-defcustom-nogroup.el
warn-defcustom-notype.el
warn-defvar-lacks-prefix.el
warn-format.el
warn-free-setq.el
warn-free-variable-reference.el
warn-interactive-only.el
warn-lambda-malformed-interactive-spec.el
warn-make-variable-buffer-local.el
warn-obsolete-defun.el
warn-obsolete-hook.el
warn-obsolete-variable-bound.el
warn-obsolete-variable-same-file.el
warn-obsolete-variable.el
warn-redefine-defun-as-macro.el
warn-redefine-defun.el
warn-redefine-macro-as-defun.el
warn-save-excursion.el
warn-variable-let-bind-constant.el
warn-variable-let-bind-nonvariable.el
warn-variable-set-constant.el
warn-variable-set-nonvariable.el
warn-wide-docstring-autoload.el
warn-wide-docstring-custom-declare-variable.el
warn-wide-docstring-defalias.el
warn-wide-docstring-defconst.el
warn-wide-docstring-define-abbrev-table.el
warn-wide-docstring-define-obsolete-function-alias.el
warn-wide-docstring-define-obsolete-variable-alias.el
warn-wide-docstring-defun.el
warn-wide-docstring-defvar.el
warn-wide-docstring-defvaralias.el
warn-wide-docstring-ignore-fill-column.el
warn-wide-docstring-ignore-override.el
warn-wide-docstring-ignore.el
warn-wide-docstring-multiline-first.el
warn-wide-docstring-multiline.el