Skip to content

Commit bd70881

Browse files
author
martin
committed
Fix pre-existing linting errors.
1 parent 8b08259 commit bd70881

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/pointer-analysis/value_set_analysis_fivr.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,16 @@ bool value_set_analysis_fivrt::check_type(const typet &type)
258258
{
259259
if(type.id()==ID_pointer)
260260
{
261-
switch(track_options) {
261+
switch(track_options)
262+
{
262263
case TRACK_ALL_POINTERS:
263264
{ return true; break; }
264265
case TRACK_FUNCTION_POINTERS:
265266
{
266267
if(type.id()==ID_pointer)
267268
{
268269
const typet *t = &type;
269-
while (t->id()==ID_pointer) t = &(t->subtype());
270+
while(t->id()==ID_pointer) t = &(t->subtype());
270271

271272
return (t->id()==ID_code);
272273
}
@@ -290,7 +291,8 @@ bool value_set_analysis_fivrt::check_type(const typet &type)
290291
it!=components.end();
291292
it++)
292293
{
293-
if(check_type(it->type())) return true;
294+
if(check_type(it->type()))
295+
return true;
294296
}
295297
}
296298
else if(type.id()==ID_array)

src/pointer-analysis/value_set_analysis_fivrns.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,16 @@ bool value_set_analysis_fivrnst::check_type(const typet &type)
258258
{
259259
if(type.id()==ID_pointer)
260260
{
261-
switch(track_options) {
261+
switch(track_options)
262+
{
262263
case TRACK_ALL_POINTERS:
263264
{ return true; break; }
264265
case TRACK_FUNCTION_POINTERS:
265266
{
266267
if(type.id()==ID_pointer)
267268
{
268269
const typet *t = &type;
269-
while (t->id()==ID_pointer) t = &(t->subtype());
270+
while(t->id()==ID_pointer) t = &(t->subtype());
270271

271272
return (t->id()==ID_code);
272273
}
@@ -290,7 +291,8 @@ bool value_set_analysis_fivrnst::check_type(const typet &type)
290291
it!=components.end();
291292
it++)
292293
{
293-
if(check_type(it->type())) return true;
294+
if(check_type(it->type()))
295+
return true;
294296
}
295297
}
296298
else if(type.id()==ID_array)

0 commit comments

Comments
 (0)