Skip to content

Commit 80a439d

Browse files
author
thk123
committed
Apply clang-format
1 parent 6edaaa0 commit 80a439d

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

+14-13
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,12 @@ const exprt java_bytecode_convert_methodt::variable(
252252
/// message handler to collect warnings
253253
/// \return
254254
/// the constructed member type
255-
code_typet member_type_lazy(const std::string &descriptor,
256-
const optionalt<std::string> &signature,
257-
const std::string &class_name,
258-
const std::string &method_name,
259-
message_handlert &message_handler)
255+
code_typet member_type_lazy(
256+
const std::string &descriptor,
257+
const optionalt<std::string> &signature,
258+
const std::string &class_name,
259+
const std::string &method_name,
260+
message_handlert &message_handler)
260261
{
261262
// In order to construct the method type, we can either use signature or
262263
// descriptor. Since only signature contains the generics info, we want to
@@ -320,7 +321,7 @@ void java_bytecode_convert_method_lazy(
320321
{
321322
symbolt method_symbol;
322323

323-
code_typet member_type=member_type_lazy(
324+
code_typet member_type = member_type_lazy(
324325
m.descriptor,
325326
m.signature,
326327
id2string(class_symbol.name),
@@ -356,7 +357,7 @@ void java_bytecode_convert_method_lazy(
356357
// do we need to add 'this' as a parameter?
357358
if(!m.is_static)
358359
{
359-
code_typet::parameterst &parameters=member_type.parameters();
360+
code_typet::parameterst &parameters = member_type.parameters();
360361
code_typet::parametert this_p;
361362
const reference_typet object_ref_type=
362363
java_reference_type(symbol_typet(class_symbol.name));
@@ -386,7 +387,7 @@ void java_bytecode_convert_methodt::convert(
386387
// Obtain a std::vector of code_typet::parametert objects from the
387388
// (function) type of the symbol
388389

389-
code_typet code_type=to_code_type(method_symbol.type);
390+
code_typet code_type = to_code_type(method_symbol.type);
390391
code_type.set(ID_C_class, class_symbol.name);
391392
method_return_type=code_type.return_type();
392393
code_typet::parameterst &parameters=code_type.parameters();
@@ -516,10 +517,10 @@ void java_bytecode_convert_methodt::convert(
516517

517518
// Check the fields that can't change are valid
518519
INVARIANT(
519-
method_symbol.name==method_identifier,
520+
method_symbol.name == method_identifier,
520521
"Name of method symbol shouldn't change");
521522
INVARIANT(
522-
method_symbol.base_name==m.base_name,
523+
method_symbol.base_name == m.base_name,
523524
"Base name of method symbol shouldn't change");
524525
INVARIANT(
525526
method_symbol.module.empty(),
@@ -543,11 +544,11 @@ void java_bytecode_convert_methodt::convert(
543544
}
544545
else
545546
{
546-
method_symbol.pretty_name = id2string(class_symbol.pretty_name) + "." +
547-
id2string(m.base_name) + "()";
547+
method_symbol.pretty_name =
548+
id2string(class_symbol.pretty_name) + "." + id2string(m.base_name) + "()";
548549
}
549550

550-
method_symbol.type=code_type;
551+
method_symbol.type = code_type;
551552

552553
current_method=method_symbol.name;
553554
method_has_this=code_type.has_this();

0 commit comments

Comments
 (0)