Function: c-align-cpp-indent-to-body
c-align-cpp-indent-to-body is a byte-compiled function defined in
cc-cmds.el.gz.
Signature
(c-align-cpp-indent-to-body)
Documentation
Align a "#pragma" line under the previous line.
This function is intended for use as a member of c-special-indent-hook.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/cc-cmds.el.gz
(defun c-align-cpp-indent-to-body ()
"Align a \"#pragma\" line under the previous line.
This function is intended for use as a member of `c-special-indent-hook'."
(when (assq 'cpp-macro c-syntactic-context)
(when
(save-excursion
(save-match-data
(back-to-indentation)
(and
(looking-at (concat c-opt-cpp-symbol "[ \t]*\\([a-zA-Z0-9_]+\\)"))
(member (match-string-no-properties 1)
c-cpp-indent-to-body-directives))))
(c-indent-line (delete '(cpp-macro) c-syntactic-context)))))