c-electric-slash is an interactive compiled Lisp function in `cc-cmds.el'.

(c-electric-slash ARG)

Insert a slash character.

If the slash is inserted immediately after the comment prefix in a c-style
comment, the comment might get closed by removing whitespace and possibly
inserting a "*". See the variable `c-cleanup-list'.

Indent the line as a comment, if:

1. The slash is second of a "//" line oriented comment introducing
token and we are on a comment-only-line, or

2. The slash is part of a "*/" token that closes a block oriented

If a numeric ARG is supplied, point is inside a literal, or
`c-syntactic-indentation' is nil or `c-electric-flag' is nil, indentation
is inhibited.