This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Fix SpacesInSquareBrackets for Lambdas with Initial "&ref" Parameter
ClosedPublic

Authored by mitchell-stellar on Oct 30 2019, 4:03 PM.

Details

Summary

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 Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 30 2019, 4:03 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MyDeveloperDay accepted this revision.Oct 31 2019, 3:27 AM

Thanks for the patch, sorry I must have missed this coming in. LGTM

This revision is now accepted and ready to land.Oct 31 2019, 3:27 AM

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.

Never mind, I got it resolved and pushed. Sorry for the noise.

This revision was automatically updated to reflect the committed changes.