clang_format: fix of fail of parsing the data
Initially formatter was checking for changed lines, arranging them into blocks of consecutive line numbers, and the changed blocks were parsed within formatted blocks. This logic fails when only few lines in changed blocks actually don't have proper formatting. For this, an intersection of sets of changed and formatted line numbers must be found. Then those lines are grouped if consecutive, and then checked with formatted blocks.