Latest Posts

Topic: Tabs or Spaces

stonerl
Avatar
Joined: 2018-07-30, 00:03
Posts: 95
Ranking
Likes to be here
Location: Earth
Posted at: 2018-08-19, 21:44

Looking through the files I noticed that the lua files use 3 spaces for indentation, while the c++ part uses a 3 spaced tab. But some files use a mix of tabs and spaces; launch_mpg.cc for example.

The Contribute Site references the Google Style Code, but there it says no tabs only 2 spaces...


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 2626
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2018-08-20, 09:52

SirVer and I didn't really agree on this - I prefer tabs, he prefers spaces. SO, there was never any consensus.

Lua should definitely use spaces now, because we have a script for fixing the indentation that depends on it.

I'm surprised that clang-format doesn't unify matters for C++ though - we run it on every merge to trunk.


Busy indexing nil values

Top Quote