This is an archive of the discontinued LLVM Phabricator instance.

[clang-format] Support TypeScript satisfies operator
Needs ReviewPublic

Authored by taymonbeal on Mar 16 2023, 10:54 AM.

Details

Summary

The satisfies operator was added in TypeScript 4.9.

Diff Detail

Event Timeline

taymonbeal created this revision.Mar 16 2023, 10:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2023, 10:54 AM
taymonbeal requested review of this revision.Mar 16 2023, 10:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2023, 10:54 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

I would like to see an annotator test just to be sure its getting annotated correctly.

apart from that it looks pretty good, would you add this to the release notes please?

clang/unittests/Format/FormatTestJS.cpp
2186

would you take say this example and add it as an annotator test

Add release notes and unit test in TokenAnnotatorTest.cpp

taymonbeal marked an inline comment as done.Mar 17 2023, 11:41 AM

I don't have commit access; can someone who does commit this?

  1. your diff is messed up
  2. you have to get an accept before anyone will commit for you.
MyDeveloperDay added a project: Restricted Project.

Can you add a github issue and reference it here

clang/unittests/Format/TokenAnnotatorTest.cpp
1445 ↗(On Diff #506153)

I'd like to personally see this become a TT_JsSatisfies