Permalink
Browse files

Indent an initializer block after an = sign

  • Loading branch information...
petya2164 committed Sep 29, 2016
1 parent 7ff42a4 commit bd2b2d8dd259d48d813ff240a807f3156013fb32
Showing with 10 additions and 10 deletions.
  1. +1 −1 src/ASBeautifier.cpp
  2. +9 −9 test/correct_style.cpp
View
@@ -2910,7 +2910,7 @@ void ASBeautifier::parseCurrentLine(const string& line)
{
bool initializerBlock =
(prevNonSpaceCh == ',' || prevNonSpaceCh == '('
|| prevNonSpaceCh == '{');
|| prevNonSpaceCh == '{' || prevNonSpaceCh == '=');
// Purge the inStatementIndentStack if the line begins with '{'
// and this is not a possible initializer block in a statement,
View
@@ -494,14 +494,14 @@ class my_class
fifi::binary, fifi::binary4, fifi::binary8>;
uint8_t constant_matrix[3][3] =
{
{1, 2, 3},
{5, 6, 7},
{53, 71, 42}
};
{
{1, 2, 3},
{5, 6, 7},
{53, 71, 42}
};
expected_coefficients =
{ 95, 203, 243, 46, 187, 199, 153, 152, 39, 114 };
{ 95, 203, 243, 46, 187, 199, 153, 152, 39, 114 };
EXXXXXXXXECT_EQ(1u, stack.m_send.calls()) <<
"Only one packet be send as " <<
@@ -785,9 +785,9 @@ int main(int argc, const char* argv[])
std::vector<int> v = {0, 1, 2, 3, 4, 5};
std::vector<uint8_t> data =
{
0x67, 0x42, 0x00, 0x0A, 0xF8, 0x41, 0xA2
};
{
0x67, 0x42, 0x00, 0x0A, 0xF8, 0x41, 0xA2
};
// insert code here...
std::cout << "This is a very loooooooooong line for this Hello World! "

0 comments on commit bd2b2d8

Please sign in to comment.