Created
April 24, 2024 13:24
-
-
Save Bike/5e4e8c0d687ac732d6d73ad67b5f6dea to your computer and use it in GitHub Desktop.
get a list of uncalled functions in package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun uncalled (package) | |
(loop for s being the present-symbols of package | |
for ss = `(setf ,s) | |
when (and (fboundp s) (not (macro-function s)) (not (special-operator-p s)) (null (ext:who-calls s))) | |
collect s | |
when (and (fboundp ss) (null (ext:who-calls ss))) | |
collect ss)) | |
;; (uncalled :alexandria) => (alexandria::racons alexandria:hash-table-alist ...) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment