aboutsummaryrefslogtreecommitdiff
path: root/libcxx
diff options
context:
space:
mode:
authorMark de Wever <koraq@xs4all.nl>2024-02-09 17:29:02 +0100
committerGitHub <noreply@github.com>2024-02-09 17:29:02 +0100
commita5cc1dc82d61c156f75edc72eccacdb6776bf3f1 (patch)
tree6e2100493306320295e0c2eefc53ea17e29367ec /libcxx
parent4f423e4989056316f9d807abb92c14b188490e30 (diff)
downloadllvm-a5cc1dc82d61c156f75edc72eccacdb6776bf3f1.zip
llvm-a5cc1dc82d61c156f75edc72eccacdb6776bf3f1.tar.gz
llvm-a5cc1dc82d61c156f75edc72eccacdb6776bf3f1.tar.bz2
[NFC][libc++] Removes obsolete compiler support. (#80481)
These work-arounds were slated for removal in LLVM-18, but missed the deadline.
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp b/libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
index 5157a45..0a48f85 100644
--- a/libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
+++ b/libcxx/test/tools/clang_tidy_checks/header_exportable_declarations.cpp
@@ -69,50 +69,18 @@ header_exportable_declarations::header_exportable_declarations(
}
std::optional<llvm::StringRef> list = Options.get("SkipDeclarations");
- // TODO(LLVM-17) Remove clang 15 work-around.
-#if defined(__clang_major__) && __clang_major__ < 16
- if (list) {
- std::string_view s = *list;
- auto b = s.begin();
- auto e = std::find(b, s.end(), ' ');
- while (b != e) {
- skip_decls_.emplace(b, e);
- if (e == s.end())
- break;
- b = e + 1;
- e = std::find(b, s.end(), ' ');
- }
- }
-#else // defined(__clang_major__) && __clang_major__ < 16
if (list)
for (auto decl : std::views::split(*list, ' ')) {
std::string s;
std::ranges::copy(decl, std::back_inserter(s)); // use range based constructor
skip_decls_.emplace(std::move(s));
}
-#endif // defined(__clang_major__) && __clang_major__ < 16
decls_ = skip_decls_;
list = Options.get("ExtraDeclarations");
- // TODO(LLVM-17) Remove clang 15 work-around.
-#if defined(__clang_major__) && __clang_major__ < 16
- if (list) {
- std::string_view s = *list;
- auto b = s.begin();
- auto e = std::find(b, s.end(), ' ');
- while (b != e) {
- std::cout << "using ::" << std::string_view{b, e} << ";\n";
- if (e == s.end())
- break;
- b = e + 1;
- e = std::find(b, s.end(), ' ');
- }
- }
-#else // defined(__clang_major__) && __clang_major__ < 16
if (list)
for (auto decl : std::views::split(*list, ' '))
std::cout << "using ::" << std::string_view{decl.data(), decl.size()} << ";\n";
-#endif // defined(__clang_major__) && __clang_major__ < 16
}
header_exportable_declarations::~header_exportable_declarations() {