Skip to content

Commit fe8ef6d

Browse files
committed
Whitespace cleanup, comment type fixed
1 parent 5bb13db commit fe8ef6d

4 files changed

+3
-5
lines changed

src/cpp/cpp_constructor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ codet cpp_typecheckt::cpp_constructor(
4141
{
4242
// We allow only one operand and it must be tagged with '#array_ini'.
4343
// Note that the operand is an array that is used for copy-initialization.
44-
// In the general case, a program is not allow to use this form of
44+
// In the general case, a program is not allowed to use this form of
4545
// construct. This way of initializing an array is used internally only.
4646
// The purpose of the tag #array_ini is to rule out ill-formed
4747
// programs.

src/cpp/cpp_declarator_converter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ symbolt &cpp_declarator_convertert::convert(
4444
typet type;
4545
type.swap(declarator.name().get_sub().back());
4646
declarator.type().subtype()=type;
47-
std::string tmp;
4847
cpp_typecheck.typecheck_type(type);
4948
irept name(ID_name);
5049
name.set(ID_identifier, "("+cpp_type2name(type)+")");

src/cpp/cpp_instantiate_template.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,8 +443,7 @@ const symbolt &cpp_typecheckt::instantiate_template(
443443
convert(method_decl);
444444
}
445445

446-
const symbolt &new_symb=
447-
lookup(new_decl.type().get(ID_identifier));
446+
const symbolt &new_symb = lookup(new_decl.type().get(ID_identifier));
448447

449448
return new_symb;
450449
}

src/cpp/cpp_typecheck_compound_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ void cpp_typecheckt::typecheck_friend_declaration(
884884

885885
for(auto &sub_it : declaration.declarators())
886886
{
887-
bool has_value=sub_it.value().is_not_nil();
887+
bool has_value = sub_it.value().is_not_nil();
888888

889889
if(!has_value)
890890
{

0 commit comments

Comments
 (0)