tkomatsu/webserv

Use spaces not tabs

Closed this issue · 3 comments

fkymy commented

概要

Makefile以外はインデントは2つか4つのスペースで統一したい

背景

参考

https://google.github.io/styleguide/cppguide.html#Spaces_vs._Tabs
https://github.com/facebook/hhvm/blob/master/hphp/doc/coding-conventions.md#general-rules
https://webkit.org/code-style-guidelines/

スペース2つがコードも見やすくなって良さそう。
タブを使うのはNormの影響なだけなので、スペースにするのに賛成です!
Normもなくコードの書き方にばらつきが出そうなので、併せてGoogleのコード規約に則って書くようにするといい気がします。

fkymy commented

ですね。
C++歴が浅いので特にこだわりはないです。いつもは脳死でclang-formatに通しているので、googleに合わせていました。なのでなんでもいいので個人的には.clang-formatがあるとありがたいです。

比較:
https://github.com/motine/cppstylelineup

自分もこだわりないのですがclang-format賛成です。