This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Add clang-tidy to the list of possible substitutions for %{clang-tidy}
ClosedPublic

Authored by philnik on Jan 8 2023, 4:40 PM.

Details

Summary

Most people don't have a versioned clang-tidy locally. This allows them to still run the clang-tidy test if they have a suitable version.

Diff Detail

Event Timeline

philnik created this revision.Jan 8 2023, 4:40 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: arichardson. · View Herald Transcript
philnik requested review of this revision.Jan 8 2023, 4:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 8 2023, 4:40 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Thanks for working on this! I hadn't gotten around this myself.

libcxx/utils/libcxx/test/features.py
164

Can you do a similar change for clang-query in this patch?

philnik added inline comments.Jan 9 2023, 8:36 AM
libcxx/utils/libcxx/test/features.py
164

I haven't updated clang-query because I plan to move the checks to clang-tidy soon anyways, so I don't think it makes a lot of sense when it's removed in a few weeks anyways.

ldionne accepted this revision.Jan 12 2023, 10:30 AM
ldionne added inline comments.
libcxx/utils/libcxx/test/features.py
23–24
33
160–161
This revision is now accepted and ready to land.Jan 12 2023, 10:30 AM
philnik updated this revision to Diff 488763.Jan 12 2023, 1:41 PM
philnik marked 3 inline comments as done.

Address comments

This revision was landed with ongoing or failed builds.Jan 12 2023, 3:16 PM
This revision was automatically updated to reflect the committed changes.