@@ -38,7 +38,7 @@ static std::string parse_return_type_from_function_name(
38
38
switch (raw_type[0 ])
39
39
{
40
40
case ' L' :
41
- result=" java::" +raw_type.substr (1UL ,raw_type.size ()-2UL );
41
+ result=" java::" +raw_type.substr (1UL , raw_type.size ()-2UL );
42
42
std::replace (result.begin (), result.end (), ' /' , ' .' );
43
43
return result;
44
44
case ' C' :
@@ -52,7 +52,8 @@ static std::string parse_return_type_from_function_name(
52
52
53
53
bool is_primitive_type_name (const std::string &datatype)
54
54
{
55
- static const std::set<std::string> names={
55
+ static const std::set<std::string> names=
56
+ {
56
57
as_string (ID_bool),
57
58
as_string (ID_byte),
58
59
as_string (ID_char),
@@ -81,8 +82,7 @@ bool does_instrumentation_of_type_require_subclass(const std::string &datatype)
81
82
{
82
83
return is_primitive_type_name (datatype) ||
83
84
is_java_array_type_name (datatype)
84
- || datatype==" java::java.lang.Object"
85
- ;
85
+ || datatype==" java::java.lang.Object" ;
86
86
}
87
87
88
88
@@ -215,7 +215,7 @@ taint_instrumentation_propst::taint_instrumentation_propst(
215
215
location_props.push_back (chains.get_nodes ().at (nid));
216
216
}
217
217
218
- build_map_from_typenames_to_tokennames (chains,program);
218
+ build_map_from_typenames_to_tokennames (chains, program);
219
219
}
220
220
221
221
@@ -260,7 +260,7 @@ void taint_instrumentation_propst::build_map_from_typenames_to_tokennames(
260
260
assert (arg_token.get_argidx ()!=
261
261
taint_tokens_propagation_grapht::get_void_loc ());
262
262
std::string datatype;
263
- if (arg_token.get_argidx ()==-1 ) // Return value
263
+ if (arg_token.get_argidx ()==-1 ) // Return value
264
264
datatype=parse_return_type_from_function_name (callee_ident);
265
265
else
266
266
{
0 commit comments