Enable Clang Tidy #1586

Closed
NickGerleman wants to merge 1 commits from export-D54461054 into main
NickGerleman commented 2024-03-02 23:13:54 -08:00 (Migrated from github.com)

Summary:
X-link: https://github.com/facebook/react-native/pull/43299

Add the React Clang Tidy config to Yoga, run the auto fixes (with some mechanical manual tweaks). Notably, the automatic changes to the infra for generating a Yoga tree from JSON capture make it 70% faster.

Before:
{F1463947076}

After:
{F1463946802}

This also cleans up all the no-op shallow const parameters in headers.

{F1463943386}

Not all checks are available in all environments, but that is okay, as Clang Tidy will gracefully skip them.

Changelog: [Internal]

Differential Revision: D54461054

Summary: X-link: https://github.com/facebook/react-native/pull/43299 Add the React Clang Tidy config to Yoga, run the auto fixes (with some mechanical manual tweaks). Notably, the automatic changes to the infra for generating a Yoga tree from JSON capture make it 70% faster. Before: {F1463947076} After: {F1463946802} This also cleans up all the no-op shallow const parameters in headers. {F1463943386} Not all checks are available in all environments, but that is okay, as Clang Tidy will gracefully skip them. Changelog: [Internal] Differential Revision: D54461054
vercel[bot] commented 2024-03-02 23:13:59 -08:00 (Migrated from github.com)

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yoga-website-next Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2024 7:16am
[vc]: #IIgdBkcrl0tZsahk9A70A1VvnGmT/HhY/QVu24cxYV4=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJ5b2dhLXdlYnNpdGUtbmV4dCIsInJvb3REaXJlY3RvcnkiOiJ3ZWJzaXRlLW5leHQiLCJpbnNwZWN0b3JVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vZmJvcGVuc291cmNlL3lvZ2Etd2Vic2l0ZS1uZXh0L0ZKbnJhYVFmaGkyaTVRajZCSERweEtSMWtYMUoiLCJwcmV2aWV3VXJsIjoieW9nYS13ZWJzaXRlLW5leHQtZ2l0LWZvcmstbmlja2dlcmxlbWFuLWV4cC02ZTY3YmItZmJvcGVuc291cmNlLnZlcmNlbC5hcHAiLCJuZXh0Q29tbWl0U3RhdHVzIjoiREVQTE9ZRUQiLCJsaXZlRmVlZGJhY2siOnsicmVzb2x2ZWQiOjAsInVucmVzb2x2ZWQiOjAsInRvdGFsIjowLCJsaW5rIjoieW9nYS13ZWJzaXRlLW5leHQtZ2l0LWZvcmstbmlja2dlcmxlbWFuLWV4cC02ZTY3YmItZmJvcGVuc291cmNlLnZlcmNlbC5hcHAifX1dfQ== **The latest updates on your projects**. Learn more about [Vercel for Git ↗︎](https://vercel.link/github-learn-more) | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **yoga-website-next** | ✅ Ready ([Inspect](https://vercel.com/fbopensource/yoga-website-next/FJnraaQfhi2i5Qj6BHDpxKR1kX1J)) | [Visit Preview](https://vercel.live/open-feedback/yoga-website-next-git-fork-nickgerleman-exp-6e67bb-fbopensource.vercel.app?via=pr-comment-visit-preview-link&passThrough=1) | 💬 [**Add feedback**](https://vercel.live/open-feedback/yoga-website-next-git-fork-nickgerleman-exp-6e67bb-fbopensource.vercel.app?via=pr-comment-feedback-link) | Mar 3, 2024 7:16am |
facebook-github-bot commented 2024-03-02 23:14:22 -08:00 (Migrated from github.com)

This pull request was exported from Phabricator. Differential Revision: D54461054

This pull request was **exported** from Phabricator. Differential Revision: [D54461054](https://www.internalfb.com/diff/D54461054)
facebook-github-bot commented 2024-03-04 02:33:45 -08:00 (Migrated from github.com)

This pull request has been merged in facebook/yoga@b959c79a2a.

This pull request has been merged in facebook/yoga@b959c79a2acd3a6fae1225228ea3490ee62e2ae6.

Pull request closed

Sign in to join this conversation.
No description provided.