Coding Standard: Add TAB stop requirement
This commit is contained in:
parent
e7042df19c
commit
e9d116ef14
@ -813,9 +813,8 @@ int animals(int animal)
|
|||||||
<h2>1.5 <a name="indentation">Indentation</b></h2>
|
<h2>1.5 <a name="indentation">Indentation</b></h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>Indentation Unit</b>
|
<b>Indentation Unit</b>.
|
||||||
Indentation is in units of two spaces; Each indentation level is twos spaces further to the right than the preceding identation levels.
|
Indentation is in units of two spaces; Each indentation level is twos spaces further to the right than the preceding identation levels.
|
||||||
The use of TAB characters for indentation is prohibited in C source and header files (they may be appropriate in make files and some scripts, however).
|
|
||||||
</p>
|
</p>
|
||||||
<center><table width="60%" border=1>
|
<center><table width="60%" border=1>
|
||||||
<tr><td bgcolor="white">
|
<tr><td bgcolor="white">
|
||||||
@ -841,6 +840,13 @@ int animals(int animal)
|
|||||||
</td></tr>
|
</td></tr>
|
||||||
</table></center>
|
</table></center>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<b>Use of TAB Characters</b>.
|
||||||
|
The use of TAB characters for indentation is prohibited in C source and header files.
|
||||||
|
TAB characters are, however, used in make files, assembly language source files, Kconfig files and some script files.
|
||||||
|
When TAB characters are used in these files, spaces may not be used for indentation.
|
||||||
|
The correct TAB setting is 4 spaces (not 8) in these cases.
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<b>Alignment of Braces</b>.
|
<b>Alignment of Braces</b>.
|
||||||
Note that since braces must be on a separate line (see above), this indentation by two spaces has an interesting property:
|
Note that since braces must be on a separate line (see above), this indentation by two spaces has an interesting property:
|
||||||
|
Loading…
Reference in New Issue
Block a user