diff options
author | Richard Levitte <levitte@openssl.org> | 2018-06-22 09:33:29 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2018-06-23 07:59:06 +0200 |
commit | 8973112884e67feb46384b573db14e62ad18d4cb (patch) | |
tree | 543f73f38f06cdade8a60c4cf26282ae644e8588 /doc/openssl-c-indent.el | |
parent | ecdsa_ossl: address coverity nit (diff) | |
download | openssl-8973112884e67feb46384b573db14e62ad18d4cb.tar.xz openssl-8973112884e67feb46384b573db14e62ad18d4cb.zip |
OpenSSL-II style for emacs: don't indent because of extern block
We don't want an indentation step inside a 'extern "C" {' .. '}'
block. Apparently, cc-mode has a c-offsets-alist keyword to allow
exactly this.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/6557)
Diffstat (limited to 'doc/openssl-c-indent.el')
-rw-r--r-- | doc/openssl-c-indent.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/openssl-c-indent.el b/doc/openssl-c-indent.el index 38e7a4f39d..59dec44580 100644 --- a/doc/openssl-c-indent.el +++ b/doc/openssl-c-indent.el @@ -54,6 +54,7 @@ (arglist-close . c-lineup-arglist) ; From "gnu" style (inline-open . 0) ; From "gnu" style (brace-list-open . +) ; From "gnu" style + (inextern-lang . 0) ; Don't indent inside extern block (topmost-intro-cont first c-lineup-topmost-intro-cont c-lineup-gnu-DEFUN-intro-cont) ; From "gnu" style ) |