aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2017-07-04 21:46:05 -0400
committerStefan Monnier2017-07-04 21:46:05 -0400
commitbc0b1384515b194bff999cb3eaf375dea418d4b8 (patch)
tree214af71ffcf4dc6238a2c0fb8ae2666ae667041e
parent92e64db7e92dff7a81df29b1e147046064aa1842 (diff)
downloademacs-bc0b1384515b194bff999cb3eaf375dea418d4b8.tar.gz
emacs-bc0b1384515b194bff999cb3eaf375dea418d4b8.zip
* lisp/progmodes/cc-align.el: Mark unused arguments
-rw-r--r--lisp/progmodes/cc-align.el30
1 files changed, 15 insertions, 15 deletions
diff --git a/lisp/progmodes/cc-align.el b/lisp/progmodes/cc-align.el
index 0f7e4b598dc..dbedb592895 100644
--- a/lisp/progmodes/cc-align.el
+++ b/lisp/progmodes/cc-align.el
@@ -159,7 +159,7 @@ Works with: topmost-intro-cont."
159 (c-safe-position (or containing-sexp (point)) c-state-cache) 159 (c-safe-position (or containing-sexp (point)) c-state-cache)
160 containing-sexp)))) 160 containing-sexp))))
161 161
162(defun c-lineup-arglist (langelem) 162(defun c-lineup-arglist (_langelem)
163 "Line up the current argument line under the first argument. 163 "Line up the current argument line under the first argument.
164 164
165As a special case, if the indented line is inside a brace block 165As a special case, if the indented line is inside a brace block
@@ -265,7 +265,7 @@ Works with: arglist-cont, arglist-cont-nonempty."
265 (c-forward-syntactic-ws)) 265 (c-forward-syntactic-ws))
266 (c-lineup-argcont-scan other-match))))) 266 (c-lineup-argcont-scan other-match)))))
267 267
268(defun c-lineup-arglist-intro-after-paren (langelem) 268(defun c-lineup-arglist-intro-after-paren (_langelem)
269 "Line up a line to just after the open paren of the surrounding paren 269 "Line up a line to just after the open paren of the surrounding paren
270or brace block. 270or brace block.
271 271
@@ -483,7 +483,7 @@ Works with: func-decl-cont."
483 (vector (+ (current-column) c-basic-offset))) 483 (vector (+ (current-column) c-basic-offset)))
484 c-basic-offset)))) 484 c-basic-offset))))
485 485
486(defun c-indent-one-line-block (langelem) 486(defun c-indent-one-line-block (_langelem)
487 "Indent a one line block `c-basic-offset' extra. 487 "Indent a one line block `c-basic-offset' extra.
488E.g.: 488E.g.:
489 489
@@ -506,7 +506,7 @@ Work with: Almost all syntactic symbols, but most useful on *-open."
506 c-basic-offset 506 c-basic-offset
507 nil)))) 507 nil))))
508 508
509(defun c-indent-multi-line-block (langelem) 509(defun c-indent-multi-line-block (_langelem)
510 "Indent a multi line block `c-basic-offset' extra. 510 "Indent a multi line block `c-basic-offset' extra.
511E.g.: 511E.g.:
512 512
@@ -642,7 +642,7 @@ Works with: The `c' syntactic symbol."
642 (goto-char (c-langelem-pos langelem))))) 642 (goto-char (c-langelem-pos langelem)))))
643 (vector (current-column))))))) 643 (vector (current-column)))))))
644 644
645(defun c-lineup-comment (langelem) 645(defun c-lineup-comment (_langelem)
646 "Line up a comment start according to `c-comment-only-line-offset'. 646 "Line up a comment start according to `c-comment-only-line-offset'.
647If the comment is lined up with a comment starter on the previous 647If the comment is lined up with a comment starter on the previous
648line, that alignment is preserved. 648line, that alignment is preserved.
@@ -667,7 +667,7 @@ Works with: comment-intro."
667 -1000)) ;jam it against the left side 667 -1000)) ;jam it against the left side
668 )))) 668 ))))
669 669
670(defun c-lineup-knr-region-comment (langelem) 670(defun c-lineup-knr-region-comment (_langelem)
671 "Line up a comment in the \"K&R region\" with the declaration. 671 "Line up a comment in the \"K&R region\" with the declaration.
672That is the region between the function or class header and the 672That is the region between the function or class header and the
673beginning of the block. E.g.: 673beginning of the block. E.g.:
@@ -836,7 +836,7 @@ arglist-cont-nonempty."
836 836
837 (vector col)))))) 837 (vector col))))))
838 838
839(defun c-lineup-string-cont (langelem) 839(defun c-lineup-string-cont (_langelem)
840 "Line up a continued string under the one it continues. 840 "Line up a continued string under the one it continues.
841A continued string in this sense is where a string literal follows 841A continued string in this sense is where a string literal follows
842directly after another one. E.g.: 842directly after another one. E.g.:
@@ -861,7 +861,7 @@ arglist-cont-nonempty."
861 (goto-char pos) 861 (goto-char pos)
862 (vector (current-column))))))) 862 (vector (current-column)))))))
863 863
864(defun c-lineup-template-args (langelem) 864(defun c-lineup-template-args (_langelem)
865 "Line up template argument lines under the first argument. 865 "Line up template argument lines under the first argument.
866To allow this function to be used in a list expression, nil is 866To allow this function to be used in a list expression, nil is
867returned if there's no template argument on the first line. 867returned if there's no template argument on the first line.
@@ -992,7 +992,7 @@ Works with: objc-method-args-cont."
992 (+ curcol (- prev-col-column (current-column))) 992 (+ curcol (- prev-col-column (current-column)))
993 c-basic-offset))))) 993 c-basic-offset)))))
994 994
995(defun c-lineup-inexpr-block (langelem) 995(defun c-lineup-inexpr-block (_langelem)
996 "Line up the block for constructs that use a block inside an expression, 996 "Line up the block for constructs that use a block inside an expression,
997e.g. anonymous classes in Java and lambda functions in Pike. The body 997e.g. anonymous classes in Java and lambda functions in Pike. The body
998is aligned with the start of the header, e.g. with the \"new\" or 998is aligned with the start of the header, e.g. with the \"new\" or
@@ -1020,7 +1020,7 @@ Works with: inlambda, inexpr-statement, inexpr-class."
1020 (goto-char (cdr res)) 1020 (goto-char (cdr res))
1021 (vector (current-column)))))) 1021 (vector (current-column))))))
1022 1022
1023(defun c-lineup-whitesmith-in-block (langelem) 1023(defun c-lineup-whitesmith-in-block (_langelem)
1024 "Line up lines inside a block in Whitesmith style. 1024 "Line up lines inside a block in Whitesmith style.
1025It's done in a way that works both when the opening brace hangs and 1025It's done in a way that works both when the opening brace hangs and
1026when it doesn't. E.g.: 1026when it doesn't. E.g.:
@@ -1084,7 +1084,7 @@ arglist-cont."
1084 (vector (+ (current-column) c-basic-offset)))) 1084 (vector (+ (current-column) c-basic-offset))))
1085 (vector 0))))) 1085 (vector 0)))))
1086 1086
1087(defun c-lineup-cpp-define (langelem) 1087(defun c-lineup-cpp-define (_langelem)
1088 "Line up macro continuation lines according to the indentation of 1088 "Line up macro continuation lines according to the indentation of
1089the construct preceding the macro. E.g.: 1089the construct preceding the macro. E.g.:
1090 1090
@@ -1233,7 +1233,7 @@ Works with: Any syntactic symbol which has an anchor position."
1233 (vector (current-column)))) 1233 (vector (current-column))))
1234 1234
1235 1235
1236(defun c-lineup-dont-change (langelem) 1236(defun c-lineup-dont-change (_langelem)
1237 "Do not change the indentation of the current line. 1237 "Do not change the indentation of the current line.
1238 1238
1239Works with: Any syntactic symbol." 1239Works with: Any syntactic symbol."
@@ -1241,7 +1241,7 @@ Works with: Any syntactic symbol."
1241 (back-to-indentation) 1241 (back-to-indentation)
1242 (vector (current-column)))) 1242 (vector (current-column))))
1243 1243
1244(defun c-lineup-respect-col-0 (langelem) 1244(defun c-lineup-respect-col-0 (_langelem)
1245 "If the current line starts at column 0, return [0]. Otherwise return nil. 1245 "If the current line starts at column 0, return [0]. Otherwise return nil.
1246 1246
1247This can be used for comments (in conjunction with, say, 1247This can be used for comments (in conjunction with, say,
@@ -1254,7 +1254,7 @@ anchored there, but reindent other comments."
1254 nil))) 1254 nil)))
1255 1255
1256 1256
1257(defun c-snug-do-while (syntax pos) 1257(defun c-snug-do-while (syntax _pos)
1258 "Dynamically calculate brace hanginess for do-while statements. 1258 "Dynamically calculate brace hanginess for do-while statements.
1259Using this function, `while' clauses that end a `do-while' block will 1259Using this function, `while' clauses that end a `do-while' block will
1260remain on the same line as the brace that closes that block. 1260remain on the same line as the brace that closes that block.
@@ -1272,7 +1272,7 @@ ACTION associated with `block-close' syntax."
1272 '(before) 1272 '(before)
1273 '(before after))))) 1273 '(before after)))))
1274 1274
1275(defun c-snug-1line-defun-close (syntax pos) 1275(defun c-snug-1line-defun-close (_syntax pos)
1276 "Determine the brace hanginess for an AWK defun-close. 1276 "Determine the brace hanginess for an AWK defun-close.
1277If the action/function being closed is a one-liner, keep it so. Otherwise put 1277If the action/function being closed is a one-liner, keep it so. Otherwise put
1278the closing brace on its own line." 1278the closing brace on its own line."