This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] don't break between function and function name in JS
ClosedPublic

Authored by krasimir on Aug 2 2021, 5:26 AM.

Details

Summary

The patch https://reviews.llvm.org/D105964 (https://github.com/llvm/llvm-project/commit/58494c856a15f5b0e886c7baf5d505ac6c05dfe5)
updated detection of function declaration names. It had the unfortunate
consequence that it started breaking between function and the function
name in some cases in JavaScript code.

This patch addresses this.

Diff Detail

Event Timeline

krasimir requested review of this revision.Aug 2 2021, 5:26 AM
krasimir created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2021, 5:26 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
krasimir edited the summary of this revision. (Show Details)Aug 2 2021, 5:28 AM
krasimir added a reviewer: MyDeveloperDay.
This revision is now accepted and ready to land.Aug 2 2021, 8:02 AM
owenpan accepted this revision.Aug 3 2021, 12:48 AM

Thanks!

owenpan added a project: Restricted Project.Aug 12 2021, 1:52 PM