[libc++][NFC] Fix minor errors and inconsistencies in the test suite

This commit is contained in:
Louis Dionne 2021-08-20 12:09:41 -04:00
parent 64a9957bf7
commit 02d11757c1
55 changed files with 38 additions and 46 deletions

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// Test the set of C++11 features that Clang provides as an extension in C++03 mode.
// The language features we expect are:
//

View File

@ -9,7 +9,7 @@
// Before Clang 9.0, <float.h> does not define FLT_HAS_SUBNORM & friends in C++.
// XFAIL: clang-4, clang-5, clang-6, clang-7, clang-8
// test cfloat
// test <cfloat>
#include <cfloat>

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr const _CharT& front();

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr const _CharT* data() const noexcept;

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr const _CharT& back();

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr const _CharT& operator[](size_type _pos) const;

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// [string.view.capacity], capacity

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits>
// constexpr bool operator==(basic_string_view<charT,traits> lhs, const charT* rhs);

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// bool operator==(const charT* lhs, const basic_string<charT,traits> rhs);

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// constexpr bool operator>=(const charT* lhs, basic_string_view<charT,traits> rhs);

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// bool operator>=(const basic_string<charT,traits,Allocator>& lhs,

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits>
// constexpr bool operator>=(basic_string_view<charT,traits> lhs,

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// constexpr template<class charT, class traits, class Allocator>
// bool operator>(const charT* lhs, basic_string_view<charT,traits> rhs);

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// bool operator>(const basic_string<charT,traits,Allocator>& lhs,

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits>
// constexpr bool operator>(basic_string_view<charT,traits> lhs,

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// constexpr bool operator<=(const charT* lhs, basic_string_view<charT,traits> rhs);

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// bool operator<=(const basic_string<charT,traits,Allocator>& lhs,

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits>
// constexpr bool operator<=(basic_string_view<charT,traits> lhs,

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// constexpr bool operator<(const charT* lhs, basic_string_view<charT,traits> rhs);

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// bool operator<(const basic_string<charT,traits,Allocator>& lhs,

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits>
// constexpr bool operator<(basic_string_view<charT,traits> lhs,

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits>
// constexpr bool operator!=(basic_string_view<charT,traits> lhs, const charT* rhs);

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// bool operator!=(const basic_string<charT, traits, Allocator> &lhs, basic_string_view<charT,traits> rhs);

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr basic_string_view& operator=(const basic_string_view &) noexcept = default;

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr basic_string_view () noexcept;

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr basic_string_view(const _CharT* _s)

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr basic_string_view(const _CharT* _s, size_type _len)

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// template<class Allocator>

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// template<class Allocator>

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// template<class Allocator>

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// constexpr size_type find_first_of(charT c, size_type pos = 0) const;

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// constexpr size_type find_first_of(const charT* s, size_type pos = 0) const;

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// constexpr size_type find_first_of(const charT* s, size_type pos, size_type n) const;

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// size_type find_first_of(const basic_string_view& str, size_type pos = 0) const;

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// constexpr size_type find_last_not_of(const charT* s, size_type pos, size_type n) const;

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// constexpr size_type find(const charT* s, size_type pos = 0) const;

View File

@ -6,10 +6,9 @@
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03
// <string>
// <string_view>
// Test that hash specializations for <string_view> require "char_traits<_CharT>" not just any "_Trait".

View File

@ -8,7 +8,7 @@
// UNSUPPORTED: libcpp-has-no-localization
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// basic_ostream<charT, traits>&

View File

@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
// <string>
// <string_view>
// template<class charT, class traits, class Allocator>
// basic_ostream<charT, traits>&

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// void remove_prefix(size_type _n)

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// void remove_suffix(size_type _n)

View File

@ -6,7 +6,6 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// void swap(basic_string_view& _other) noexcept

View File

@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
// <string_view>
// constexpr int compare(basic_string_view str) const noexcept;
#include <string_view>

View File

@ -8,8 +8,6 @@
#include <string_view>
#include "test_macros.h"
int main(int, char**) {
return 0;
}

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// <string_view>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// <string>

View File

@ -5,6 +5,7 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// UNSUPPORTED: c++03, c++11, c++14, c++17
// <string>