Project

General

Profile

Actions

Bug #10478

closed

Respect intermixes of declarations and statements

Added by Evgeny Novikov over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Urgent
Category:
C back-end
Start date:
08/28/2020
Due date:
% Done:

0%

Estimated time:
Detected in build:
git
Platform:
Published in build:

Description

Sometimes developers intermix declarations and statements and sometimes it is not valid to reorder them. For instance, Pavel Andrianov revealed such the case:

mutex_lock(&ldv_lock);
char *ptr = gp;

(it is not valid to change the order of these two lines since a data race can arise).

Actions

Also available in: Atom PDF