Skip to content

Commit 26b56b5

Browse files
committed
Clang format updates
1 parent efd8e0d commit 26b56b5

File tree

4 files changed

+14
-21
lines changed

4 files changed

+14
-21
lines changed

src/java_bytecode/java_bytecode_parser.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,9 +1687,8 @@ void java_bytecode_parsert::rmethod(classt &parsed_class)
16871687
rmethod_attribute(method);
16881688
}
16891689

1690-
optionalt<class java_bytecode_parse_treet> java_bytecode_parse(
1691-
std::istream &istream,
1692-
message_handlert &message_handler)
1690+
optionalt<class java_bytecode_parse_treet>
1691+
java_bytecode_parse(std::istream &istream, message_handlert &message_handler)
16931692
{
16941693
java_bytecode_parsert java_bytecode_parser;
16951694
java_bytecode_parser.in=&istream;
@@ -1705,9 +1704,8 @@ optionalt<class java_bytecode_parse_treet> java_bytecode_parse(
17051704
return java_bytecode_parser.parse_tree;
17061705
}
17071706

1708-
optionalt<class java_bytecode_parse_treet> java_bytecode_parse(
1709-
const std::string &file,
1710-
message_handlert &message_handler)
1707+
optionalt<class java_bytecode_parse_treet>
1708+
java_bytecode_parse(const std::string &file, message_handlert &message_handler)
17111709
{
17121710
std::ifstream in(file, std::ios::binary);
17131711

src/java_bytecode/java_bytecode_parser.h

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ Author: Daniel Kroening, [email protected]
1414
#include <string>
1515
#include <util/optional.h>
1616

17-
optionalt<class java_bytecode_parse_treet> java_bytecode_parse(
18-
const std::string &file,
19-
class message_handlert &);
17+
optionalt<class java_bytecode_parse_treet>
18+
java_bytecode_parse(const std::string &file, class message_handlert &);
2019

21-
optionalt<class java_bytecode_parse_treet> java_bytecode_parse(
22-
std::istream &,
23-
class message_handlert &);
20+
optionalt<class java_bytecode_parse_treet>
21+
java_bytecode_parse(std::istream &, class message_handlert &);
2422

2523
#endif // CPROVER_JAVA_BYTECODE_JAVA_BYTECODE_PARSER_H

src/java_bytecode/java_class_loader.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ java_class_loadert::get_parse_tree(
189189
debug()
190190
<< "Getting class `" << class_name << "' from file " << full_path
191191
<< eom;
192-
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse(full_path, get_message_handler());
192+
optionalt<java_bytecode_parse_treet> parse_tree =
193+
java_bytecode_parse(full_path, get_message_handler());
193194
if(parse_tree)
194195
parse_trees.push_back(std::move(*parse_tree));
195196
}

unit/java_bytecode/java_bytecode_parse_lambdas/java_bytecode_parse_lambda_method_table.cpp

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ SCENARIO(
3333
GIVEN(
3434
"A class with a static lambda variables from " + compiler + " compiler.")
3535
{
36-
optionalt<java_bytecode_parse_treet> parse_tree =
37-
java_bytecode_parse(
36+
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse(
3837
"./java_bytecode/java_bytecode_parse_lambdas/lambda_examples/" +
3938
compiler + "_classes/StaticLambdas.class",
4039
message_handler);
@@ -345,8 +344,7 @@ SCENARIO(
345344
null_message_handlert message_handler;
346345
GIVEN("A method with local lambdas from " + compiler + " compiler.")
347346
{
348-
optionalt<java_bytecode_parse_treet> parse_tree =
349-
java_bytecode_parse(
347+
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse(
350348
"./java_bytecode/java_bytecode_parse_lambdas/lambda_examples/" +
351349
compiler + "_classes/LocalLambdas.class",
352350
message_handler);
@@ -655,8 +653,7 @@ SCENARIO(
655653
"A class that has lambdas as member variables from " + compiler +
656654
" compiler.")
657655
{
658-
optionalt<java_bytecode_parse_treet> parse_tree =
659-
java_bytecode_parse(
656+
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse(
660657
"./java_bytecode/java_bytecode_parse_lambdas/lambda_examples/" +
661658
compiler + "_classes/MemberLambdas.class",
662659
message_handler);
@@ -991,8 +988,7 @@ SCENARIO(
991988
"variables from " +
992989
compiler + " compiler.")
993990
{
994-
optionalt<java_bytecode_parse_treet> parse_tree =
995-
java_bytecode_parse(
991+
optionalt<java_bytecode_parse_treet> parse_tree = java_bytecode_parse(
996992
"./java_bytecode/java_bytecode_parse_lambdas/lambda_examples/" +
997993
compiler + "_classes/OuterMemberLambdas$Inner.class",
998994
message_handler);

0 commit comments

Comments
 (0)