This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Allow nested [] in C# attributes
ClosedPublic

Authored by jbcoe on Mar 2 2020, 6:58 AM.

Details

Summary

Keep track of unpaired [] when identifying C# attribute lines

Diff Detail

Event Timeline

jbcoe created this revision.Mar 2 2020, 6:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2020, 6:58 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
krasimir accepted this revision.Mar 3 2020, 5:02 AM

That's a bit of a hack (we probably need to hook up full-fledged argument list parsing for complete handling), but this seems like a good trade-off between heuristics and results right now.

This revision is now accepted and ready to land.Mar 3 2020, 5:02 AM
This revision was automatically updated to reflect the committed changes.