Fix stylistic issues found by Checkdoc

This commit is contained in:
Philipp Stephani 2022-02-18 13:08:33 +01:00
parent af78b49ac4
commit 9d70392d97

View File

@ -35,7 +35,7 @@
;; elegant solution of composing a list of lineup functions or quantities with ;; elegant solution of composing a list of lineup functions or quantities with
;; operators such as "add") ;; operators such as "add")
(defun google-c-lineup-expression-plus-4 (langelem) (defun google-c-lineup-expression-plus-4 (langelem)
"Indents to the beginning of the current C expression plus 4 spaces. "Indent to the beginning of the current C expression plus 4 spaces.
This implements title \"Function Declarations and Definitions\" This implements title \"Function Declarations and Definitions\"
of the Google C++ Style Guide for the case where the previous of the Google C++ Style Guide for the case where the previous
@ -47,7 +47,8 @@ regardless of the number of nested parentheses, but excluding
non-expression material such as \"if(\" and \"for(\" control non-expression material such as \"if(\" and \"for(\" control
structures. structures.
Suitable for inclusion in `c-offsets-alist'." Suitable for inclusion in `c-offsets-alist'.
See `c-offsets-alist' for a definition of LANGELEM."
(save-excursion (save-excursion
(back-to-indentation) (back-to-indentation)
;; Go to beginning of *previous* line: ;; Go to beginning of *previous* line:
@ -132,8 +133,8 @@ Suitable for inclusion in `c-offsets-alist'."
;;;###autoload ;;;###autoload
(defun google-set-c-style () (defun google-set-c-style ()
"Set the current buffer's c-style to Google C/C++ Programming "Set the current buffer's c-style to Google C/C++ Programming Style.
Style. Meant to be added to `c-mode-common-hook'." Meant to be added to `c-mode-common-hook'."
(interactive) (interactive)
(make-local-variable 'c-tab-always-indent) (make-local-variable 'c-tab-always-indent)
(setq c-tab-always-indent t) (setq c-tab-always-indent t)
@ -141,8 +142,8 @@ Suitable for inclusion in `c-offsets-alist'."
;;;###autoload ;;;###autoload
(defun google-make-newline-indent () (defun google-make-newline-indent ()
"Sets up preferred newline behavior. Not set by default. Meant "Set up preferred newline behavior.
to be added to `c-mode-common-hook'." Not set by default. Meant to be added to `c-mode-common-hook'."
(interactive) (interactive)
(define-key c-mode-base-map "\C-m" 'newline-and-indent) (define-key c-mode-base-map "\C-m" 'newline-and-indent)
(define-key c-mode-base-map [ret] 'newline-and-indent)) (define-key c-mode-base-map [ret] 'newline-and-indent))