c-crosses-statement-barrier-p is a compiled Lisp function in `cc-engine.el'.

(c-crosses-statement-barrier-p FROM TO)

Return non-nil if buffer positions FROM to TO cross one or more
statement or declaration boundaries. The returned value is actually
the position of the earliest boundary char. FROM must not be within
a string or comment.

The variable `c-maybe-labelp' is set to the position of the first `:' that
might start a label (i.e. not part of `::' and not preceded by `?'). If a
single `?' is found, then `c-maybe-labelp' is cleared.

For AWK, a statement which is terminated by an EOL (not a ; or a }) is
regarded as having a "virtual semicolon" immediately after the last token on
the line. If this virtual semicolon is _at_ from, the function recognizes it.

Note that this function might do hidden buffer changes. See the
comment at the start of cc-engine.el for more info.