89d198659c
Currently, the format enforces single lines when possible, but does
not enforce readable column-based alignment (and, moreover, *removes*
such manually added alignment:
switch( m_orientation )
{
case PIN_RIGHT: m_orientation = PIN_UP; break;
case PIN_UP: m_orientation = PIN_LEFT; break;
}
Change this to multi-line by default:
switch( m_orientation )
{
case PIN_RIGHT:
m_orientation = PIN_UP;
break;
case PIN_UP:
m_orientation = PIN_LEFT;
break;
}
If the developer wishes for column-aligned single-line cases, this
is permitted, but much be done manually:
switch( m_orientation )
{
case PIN_RIGHT: m_orientation = PIN_DOWN; break;
case PIN_UP: m_orientation = PIN_RIGHT; break;
}
CHANGE: the _clang-format file to reflect this, and add note about
manual override in the dev docs.
(cherry picked from commit
|
||
---|---|---|
.. | ||
Doxyfile | ||
coding-style-policy.md | ||
commit-message-format.md | ||
compiling.md | ||
config-strings.md | ||
pcbnew-plugins.md | ||
road-map-r5.md | ||
road-map-r6.md | ||
road-map.md | ||
stable-release-policy.md | ||
testing.md | ||
tool-framework.md | ||
ui-policy.md |