2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00
Files
build/hacking.txt
Vladimir Prus 6c444b6022 Added developer guidelines.
[SVN r14310]
2002-07-05 16:08:03 +00:00

43 lines
900 B
Plaintext

--------------------------------
Boost.Build developer guidelines
--------------------------------
CODING CONVENTIONS.
1. All names of rules and variables are lowercase with "-" to separate
words.
rule call-me-ishmael ( ) ...
2. Names with dots in them are "intended globals". Ordinary globals use
a dot prefix:
.foobar
$(.foobar)
3. Pseudofunctions or associations are <parameter>.<property>:
$(argument).name = hello ;
$($(argument).name)
4. Class attribute names are prefixed with "self.":
self.x
$(self.x)
5. Builtin rules are called via their ALL_UPPERCASE_NAMES:
DEPENDS $(target) : $(sources) ;
6. Opening and closing braces go on separate lines:
if $(a)
{
#
}
else
{
#
}