Automatically add spaces to binary operators (<<)

command:

sed -E "s/([[:alnum:]]) << ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<< ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <<([[:alnum:]])/\1 << \2/g" -i **/*.d
This commit is contained in:
Sebastian Wilzbach 2017-02-23 00:50:14 +01:00
parent d905ef53b1
commit ef7be4b60d
11 changed files with 132 additions and 132 deletions

View file

@ -2327,7 +2327,7 @@ private template TimSortImpl(alias pred, R)
size_t minRunLength()(size_t n)
{
immutable shift = bsr(n)-5;
auto result = (n>>shift) + !!(n & ~((1<<shift)-1));
auto result = (n>>shift) + !!(n & ~((1 << shift)-1));
return result;
}