Skip to content

Commit ea539ed

Browse files
committed
clang-format reverted code - must be reverted in future as well
1 parent 9e204fd commit ea539ed

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/ansi-c/c_typecheck_type.cpp

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -609,27 +609,26 @@ void c_typecheck_baset::typecheck_array_type(array_typet &type)
609609
}
610610

611611
// Need to pull out! We insert new symbol.
612-
unsigned count=0;
612+
unsigned count = 0;
613613
irep_idt temp_identifier;
614614
std::string suffix;
615615

616616
do
617617
{
618-
suffix="$array_size"+std::to_string(count);
619-
temp_identifier=id2string(current_symbol.name)+suffix;
618+
suffix = "$array_size" + std::to_string(count);
619+
temp_identifier = id2string(current_symbol.name) + suffix;
620620
count++;
621-
}
622-
while(symbol_table.symbols.find(temp_identifier)!=
623-
symbol_table.symbols.end());
621+
} while(symbol_table.symbols.find(temp_identifier) !=
622+
symbol_table.symbols.end());
624623

625624
// add the symbol to symbol table
626625
auxiliary_symbolt new_symbol;
627-
new_symbol.name=temp_identifier;
628-
new_symbol.pretty_name=id2string(current_symbol.pretty_name)+suffix;
629-
new_symbol.base_name=id2string(current_symbol.base_name)+suffix;
630-
new_symbol.type=size.type();
626+
new_symbol.name = temp_identifier;
627+
new_symbol.pretty_name = id2string(current_symbol.pretty_name) + suffix;
628+
new_symbol.base_name = id2string(current_symbol.base_name) + suffix;
629+
new_symbol.type = size.type();
631630
new_symbol.type.set(ID_C_constant, true);
632-
new_symbol.value=size;
631+
new_symbol.value = size;
633632
new_symbol.location = size_source_location;
634633
new_symbol.mode = mode;
635634

@@ -638,14 +637,14 @@ void c_typecheck_baset::typecheck_array_type(array_typet &type)
638637
// produce the code that declares and initializes the symbol
639638
symbol_exprt symbol_expr;
640639
symbol_expr.set_identifier(temp_identifier);
641-
symbol_expr.type()=new_symbol.type;
640+
symbol_expr.type() = new_symbol.type;
642641

643642
code_declt declaration(symbol_expr);
644643
declaration.add_source_location() = size_source_location;
645644

646645
code_assignt assignment;
647646
assignment.lhs()=symbol_expr;
648-
assignment.rhs()=size;
647+
assignment.rhs() = size;
649648
assignment.add_source_location() = size_source_location;
650649

651650
// store the code

0 commit comments

Comments
 (0)