This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] altera-id-dependent-backward-branch: refactor test
ClosedPublic

Authored by yeputons-gh on Mar 4 2023, 3:31 AM.

Details

Summary

This is a preparation for future fixes that need more tests.

  • Put all "Inferred Assignments" testing at the end
  • Group together ID-dependent variable/member testing
  • Group together unused inferred assignments
  • Use a literal instead of get_local_size which may have special meaning
  • Create a new struct for each variable because analysis is done per field, not per field per instance.

Depends on D145303

Diff Detail

Event Timeline

yeputons-gh created this revision.Mar 4 2023, 3:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2023, 3:31 AM
yeputons-gh requested review of this revision.Mar 4 2023, 3:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2023, 3:31 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
yeputons-gh edited the summary of this revision. (Show Details)Mar 4 2023, 3:31 AM
yeputons-gh retitled this revision from clang-tidy altera-id-dependent-backward-branch: refactor test to [clang-tidy] altera-id-dependent-backward-branch: refactor test.Mar 5 2023, 9:44 AM
This revision is now accepted and ready to land.Mar 5 2023, 9:55 AM

It seems I'm having trouble to download the patch with arcanist, would you mind rebasing on top of the main branch? Thanks!

Absolutely, give we few minutes. Maybe it conflicts with the previous revision that has already landed?

Rebased on top of the recent 'main'.

This revision was landed with ongoing or failed builds.Mar 5 2023, 10:23 AM
This revision was automatically updated to reflect the committed changes.

Absolutely, give we few minutes. Maybe it conflicts with the previous revision that has already landed?

I believe so. I'm quite new to arcanist so I might be missing some tricks to handled chained patches. Rebase worked and I pushed now thanks!