Skip to content

Commit bc9233e

Browse files
committed
Revert "clang-format reverted code - must be reverted in future as well"
This reverts commit ea539ed.
1 parent d9e27b2 commit bc9233e

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

src/ansi-c/c_typecheck_type.cpp

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -615,26 +615,27 @@ void c_typecheck_baset::typecheck_array_type(array_typet &type)
615615
}
616616

617617
// Need to pull out! We insert new symbol.
618-
unsigned count = 0;
618+
unsigned count=0;
619619
irep_idt temp_identifier;
620620
std::string suffix;
621621

622622
do
623623
{
624-
suffix = "$array_size" + std::to_string(count);
625-
temp_identifier = id2string(current_symbol.name) + suffix;
624+
suffix="$array_size"+std::to_string(count);
625+
temp_identifier=id2string(current_symbol.name)+suffix;
626626
count++;
627-
} while(symbol_table.symbols.find(temp_identifier) !=
628-
symbol_table.symbols.end());
627+
}
628+
while(symbol_table.symbols.find(temp_identifier)!=
629+
symbol_table.symbols.end());
629630

630631
// add the symbol to symbol table
631632
auxiliary_symbolt new_symbol;
632-
new_symbol.name = temp_identifier;
633-
new_symbol.pretty_name = id2string(current_symbol.pretty_name) + suffix;
634-
new_symbol.base_name = id2string(current_symbol.base_name) + suffix;
635-
new_symbol.type = size.type();
633+
new_symbol.name=temp_identifier;
634+
new_symbol.pretty_name=id2string(current_symbol.pretty_name)+suffix;
635+
new_symbol.base_name=id2string(current_symbol.base_name)+suffix;
636+
new_symbol.type=size.type();
636637
new_symbol.type.set(ID_C_constant, true);
637-
new_symbol.value = size;
638+
new_symbol.value=size;
638639
new_symbol.location = size_source_location;
639640
new_symbol.mode = mode;
640641

@@ -648,7 +649,7 @@ void c_typecheck_baset::typecheck_array_type(array_typet &type)
648649

649650
code_assignt assignment;
650651
assignment.lhs()=symbol_expr;
651-
assignment.rhs() = size;
652+
assignment.rhs()=size;
652653
assignment.add_source_location() = size_source_location;
653654

654655
// store the code

0 commit comments

Comments
 (0)