Skip to content

Commit 8c9f5a9

Browse files
committed
cpplint
1 parent 55492c9 commit 8c9f5a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/taint-slicer/instrumentation_props.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static std::string parse_return_type_from_function_name(
3838
switch(raw_type[0])
3939
{
4040
case 'L':
41-
result="java::"+raw_type.substr(1UL,raw_type.size()-2UL);
41+
result="java::"+raw_type.substr(1UL, raw_type.size()-2UL);
4242
std::replace(result.begin(), result.end(), '/', '.');
4343
return result;
4444
case 'C':
@@ -52,7 +52,8 @@ static std::string parse_return_type_from_function_name(
5252

5353
bool is_primitive_type_name(const std::string &datatype)
5454
{
55-
static const std::set<std::string> names={
55+
static const std::set<std::string> names=
56+
{
5657
as_string(ID_bool),
5758
as_string(ID_byte),
5859
as_string(ID_char),
@@ -81,8 +82,7 @@ bool does_instrumentation_of_type_require_subclass(const std::string &datatype)
8182
{
8283
return is_primitive_type_name(datatype) ||
8384
is_java_array_type_name(datatype)
84-
|| datatype=="java::java.lang.Object"
85-
;
85+
|| datatype=="java::java.lang.Object";
8686
}
8787

8888

@@ -215,7 +215,7 @@ taint_instrumentation_propst::taint_instrumentation_propst(
215215
location_props.push_back(chains.get_nodes().at(nid));
216216
}
217217

218-
build_map_from_typenames_to_tokennames(chains,program);
218+
build_map_from_typenames_to_tokennames(chains, program);
219219
}
220220

221221

@@ -260,7 +260,7 @@ void taint_instrumentation_propst::build_map_from_typenames_to_tokennames(
260260
assert(arg_token.get_argidx()!=
261261
taint_tokens_propagation_grapht::get_void_loc());
262262
std::string datatype;
263-
if (arg_token.get_argidx()==-1) // Return value
263+
if(arg_token.get_argidx()==-1) // Return value
264264
datatype=parse_return_type_from_function_name(callee_ident);
265265
else
266266
{

0 commit comments

Comments
 (0)