Indentation is incorrect in C/C++, adds too many spaces sometimes
This can be observed in both C and C++ projects.
For example, open mesa's nir_gather_info.c
- here is a link to its latest revision at the time of writing. Then go to gather_intrinsic_info
, go to the end of line 238 and press enter.
Expected result:
if (shader->info.stage == MESA_SHADER_VERTEX &&
...) {
/* omitted for brevity */
}
/* correct indentation */
Actual result:
if (shader->info.stage == MESA_SHADER_VERTEX &&
...) {
/* omitted for brevity */
}
/* incorrect indentation here */