This patch fixes an edge case in the SpacesInSquareBrackets option where an initial &ref lambda parameter is not padded with an initial space.
int foo = [&bar ]() {} is fixed to give int foo = [ &bar ]() {}
Differential D69649
[clang-format] Fix SpacesInSquareBrackets for Lambdas with Initial "&ref" Parameter mitchell-stellar on Oct 30 2019, 4:03 PM. Authored by
Details This patch fixes an edge case in the SpacesInSquareBrackets option where an initial &ref lambda parameter is not padded with an initial space. int foo = [&bar ]() {} is fixed to give int foo = [ &bar ]() {}
Diff Detail
Event TimelineComment Actions Thanks. Would you mind committing this on my behalf? It seems I wasn't migrated from SVN access to git access. It may take some time to sort out. |