しゃある通信

#12-05 [PC]indent
なんかいろんなところで indent style の話が出てるなあ。ヲレは GNU indent 1.9.1 用の .indent.pro でこう設定してる。

--blank-lines-after-procedures
--braces-on-if-line
--comment-indentation 1
--continuation-indentation 2
--continue-at-parentheses
--cuddle-else
--declaration-indentation 1
--dont-format-comments
--dont-format-first-column-comments
--indent-level 2
--line-length 94
--no-blank-lines-after-declarations
--no-space-after-casts
--no-space-after-function-call-names
--parameter-indentation 0

これで M-x indent-buffer ってやるとどんな汚いソース(笑)もヲレ流になるのですっげー便利。

GNU indent は C++ に対応する、っていってたけど、どうなったんだろう…。



マクロミルへ登録

© 1998 Kazuya 'Sharl' Masuda
(C)Willoo Entertainment Inc. (C)Konami Digital Entertainment 株式会社ウィローエンターテイメント及び株式会社コナミデジタルエンタテインメントの著作権を侵害する行為は禁止されています。 0.004142 cached