Skip to content

Commit 90b0e64

Browse files
tautschnigandreast271
authored andcommitted
Whitespace cleanup, comment type fixed
1 parent 1d65f09 commit 90b0e64

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

src/cpp/cpp_constructor.cpp

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

src/cpp/cpp_declarator_converter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ symbolt &cpp_declarator_convertert::convert(
5050
typet type;
5151
type.swap(declarator.name().get_sub().back());
5252
declarator.type().subtype()=type;
53-
std::string tmp;
5453
cpp_typecheck.typecheck_type(type);
5554
irept name(ID_name);
5655
name.set(ID_identifier, "("+cpp_type2name(type)+")");

src/cpp/cpp_instantiate_template.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const symbolt &cpp_typecheckt::instantiate_template(
227227
const typet &specialization)
228228
{
229229
#ifdef DEBUG
230-
std::cout << "instantiate_template: " << template_symbol.name << std::endl;
230+
std::cout << "instantiate_template: " << template_symbol.name << '\n';
231231
#endif
232232

233233
if(instantiation_stack.size()==MAX_DEPTH)
@@ -388,7 +388,7 @@ const symbolt &cpp_typecheckt::instantiate_template(
388388
}
389389

390390
#ifdef DEBUG
391-
std::cout << "CLASS MAP:" << std::endl;
391+
std::cout << "CLASS MAP:\n";
392392
template_map.print(std::cout);
393393
#endif
394394

@@ -447,7 +447,7 @@ const symbolt &cpp_typecheckt::instantiate_template(
447447
// mapping from template arguments to values/types
448448
template_map.build(method_type, specialization_template_args);
449449
#ifdef DEBUG
450-
std::cout << "METHOD MAP:" << std::endl;
450+
std::cout << "METHOD MAP:\n";
451451
template_map.print(std::cout);
452452
#endif
453453

@@ -466,8 +466,8 @@ const symbolt &cpp_typecheckt::instantiate_template(
466466
new_symb.type.set(ID_C_template_arguments, specialization_template_args);
467467

468468
#ifdef DEBUG
469-
std::cout << "instance symbol: " << new_symb.name << std::endl << std::endl;
470-
std::cout << "template type: " << template_type << std::endl << std::endl;
469+
std::cout << "instance symbol: " << new_symb.name << "\n\n";
470+
std::cout << "template type: " << template_type << "\n\n";
471471
#endif
472472

473473
return new_symb;

src/cpp/cpp_typecheck_compound_type.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -890,15 +890,15 @@ void cpp_typecheckt::typecheck_friend_declaration(
890890
// Do the declarators.
891891

892892
#ifdef DEBUG
893-
std::cout << "friend declaration: " << declaration.pretty() << std::endl;
893+
std::cout << "friend declaration: " << declaration.pretty() << '\n';
894894
#endif
895895

896896
for(auto &sub_it : declaration.declarators())
897897
{
898898
#ifdef DEBUG
899899
std::cout << "decl: " << sub_it->pretty() << "\n with value "
900-
<< sub_it->value().pretty() << std::endl;
901-
std::cout << " scope: " << cpp_scopes.current_scope().prefix << std::endl;
900+
<< sub_it->value().pretty() << '\n';
901+
std::cout << " scope: " << cpp_scopes.current_scope().prefix << '\n';
902902
#endif
903903
// In which scope are we going to typecheck this?
904904
#if 0

src/cpp/cpp_typecheck_resolve.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ void cpp_typecheck_resolvet::disambiguate_functions(
511511

512512
if(it1->type().id()!=ID_code)
513513
{
514-
identifiers.push_back(*it1);
515-
continue;
514+
identifiers.push_back(*it1);
515+
continue;
516516
}
517517

518518
const code_typet &f1=

0 commit comments

Comments
 (0)