This smells like a bug in clang-format. Could also be worth opening an issue at https://github.com/llvm/llvm-project
Best regards, Jacob Faibussowitsch (Jacob Fai - booss - oh - vitch) > On Aug 21, 2022, at 19:27, Barry Smith <bsm...@petsc.dev> wrote: > > > > > if (xxx) { > /* greetings */ > } > > if (xxx) { /* greetings */ } > > if (xxx) { /* greetings */ > } > > > Happens only in a few places in PETSc where people have commented out code > inside the {} instead of real code, I suppose I can delete that dead code to > resolve the problem? > > >