This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Lower clang-tidy pluging build requirements.
AbandonedPublicDraft

Authored by Mordante on Jun 15 2023, 10:20 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Summary

The clang-tidy plugin is build with the system C++ Standard libary. This
has some issues:

  • old versions of Clang do not work with modern libstdc++. This happened in D151814 where Clang 15 failed with libstdc++13.
  • not all users have a C++20 capable system libraries. This can happen on Linux distributions. Updating libstdc++ might be quite a hassle for users.

To avoid these issues lower the requirements of the Standard library
with LLVM's general C++ version requirement of C++17.

Diff Detail

Event Timeline

Mordante created this revision.Jun 15 2023, 10:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2023, 10:20 AM
Mordante added inline comments.Jun 15 2023, 10:23 AM
libcxx/test/tools/clang_tidy_checks/uglify_attributes.cpp
29–31

Note this transition has been there for multiple weeks so I expect ToT clang users to have a clang 17 that works.

Mordante updated this revision to Diff 532173.Jun 16 2023, 8:45 AM

CI fixes.

Mordante abandoned this revision.Aug 31 2023, 10:49 AM

Not sure whether I'll pursue this, for now I move it to GH.

Herald added a project: Restricted Project. · View Herald TranscriptAug 31 2023, 10:49 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript