This is an archive of the discontinued LLVM Phabricator instance.

[Testing] Drop clangTesting from clang's public library interface
ClosedPublic

Authored by sammccall on Apr 12 2022, 7:27 AM.

Details

Summary

This was probably not particularly intended to be public, and disallows deps
on gtest which are useful in test helpers.

https://discourse.llvm.org/t/stop-exporting-clangtesting-library/61672

Diff Detail

Event Timeline

sammccall created this revision.Apr 12 2022, 7:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2022, 7:27 AM
Herald added a subscriber: mgorny. · View Herald Transcript
sammccall requested review of this revision.Apr 12 2022, 7:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2022, 7:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Apr 12 2022, 12:14 PM

The change makes sense to me.

clang/lib/Testing/CMakeLists.txt
6

OOO, what is clang_TLL?

7

no related to this patch, I think clangTestingSupport is a better name (also align with the LLVM one).

This revision is now accepted and ready to land.Apr 12 2022, 12:14 PM
sammccall added inline comments.Apr 20 2022, 4:11 AM
clang/lib/Testing/CMakeLists.txt
6

clang_target_link_libraries, spelled it out

7

The LLVM one is called that because it's in llvm/Testing/Support, because it's associated with llvm/Support (but not all the parts are!).
There's nothing else in llvm/Testing, I think it should probably be flattened out instead.

This revision was landed with ongoing or failed builds.Apr 20 2022, 4:29 AM
This revision was automatically updated to reflect the committed changes.