Skip to content

Commit 02d1175

Browse files
committed
[libc++][NFC] Fix minor errors and inconsistencies in the test suite
1 parent 64a9957 commit 02d1175

File tree

55 files changed

+38
-46
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+38
-46
lines changed

libcxx/test/libcxx/minimal_cxx11_configuration.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// Test the set of C++11 features that Clang provides as an extension in C++03 mode.
1110
// The language features we expect are:
1211
//

libcxx/test/std/language.support/support.limits/c.limits/cfloat.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// Before Clang 9.0, <float.h> does not define FLT_HAS_SUBNORM & friends in C++.
1010
// XFAIL: clang-4, clang-5, clang-6, clang-7, clang-8
1111

12-
// test cfloat
12+
// test <cfloat>
1313

1414
#include <cfloat>
1515

libcxx/test/std/strings/string.view/string.view.access/back.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// constexpr const _CharT& front();

libcxx/test/std/strings/string.view/string.view.access/data.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// constexpr const _CharT* data() const noexcept;

libcxx/test/std/strings/string.view/string.view.access/front.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// constexpr const _CharT& back();

libcxx/test/std/strings/string.view/string.view.access/index.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// constexpr const _CharT& operator[](size_type _pos) const;

libcxx/test/std/strings/string.view/string.view.capacity/capacity.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// [string.view.capacity], capacity

libcxx/test/std/strings/string.view/string.view.comparison/opeq.string_view.pointer.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits>
1212
// constexpr bool operator==(basic_string_view<charT,traits> lhs, const charT* rhs);

libcxx/test/std/strings/string.view/string.view.comparison/opeq.string_view.string.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// bool operator==(const charT* lhs, const basic_string<charT,traits> rhs);

libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.pointer.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// constexpr bool operator>=(const charT* lhs, basic_string_view<charT,traits> rhs);

libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.string.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// bool operator>=(const basic_string<charT,traits,Allocator>& lhs,

libcxx/test/std/strings/string.view/string.view.comparison/opge.string_view.string_view.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits>
1212
// constexpr bool operator>=(basic_string_view<charT,traits> lhs,

libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.pointer.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// constexpr template<class charT, class traits, class Allocator>
1212
// bool operator>(const charT* lhs, basic_string_view<charT,traits> rhs);

libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.string.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// bool operator>(const basic_string<charT,traits,Allocator>& lhs,

libcxx/test/std/strings/string.view/string.view.comparison/opgt.string_view.string_view.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits>
1212
// constexpr bool operator>(basic_string_view<charT,traits> lhs,

libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.pointer.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// constexpr bool operator<=(const charT* lhs, basic_string_view<charT,traits> rhs);

libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.string.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// bool operator<=(const basic_string<charT,traits,Allocator>& lhs,

libcxx/test/std/strings/string.view/string.view.comparison/ople.string_view.string_view.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits>
1212
// constexpr bool operator<=(basic_string_view<charT,traits> lhs,

libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.pointer.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// constexpr bool operator<(const charT* lhs, basic_string_view<charT,traits> rhs);

libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.string.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// bool operator<(const basic_string<charT,traits,Allocator>& lhs,

libcxx/test/std/strings/string.view/string.view.comparison/oplt.string_view.string_view.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits>
1212
// constexpr bool operator<(basic_string_view<charT,traits> lhs,

libcxx/test/std/strings/string.view/string.view.comparison/opne.string_view.pointer.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits>
1212
// constexpr bool operator!=(basic_string_view<charT,traits> lhs, const charT* rhs);

libcxx/test/std/strings/string.view/string.view.comparison/opne.string_view.string.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// bool operator!=(const basic_string<charT, traits, Allocator> &lhs, basic_string_view<charT,traits> rhs);

libcxx/test/std/strings/string.view/string.view.cons/assign.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// constexpr basic_string_view& operator=(const basic_string_view &) noexcept = default;

libcxx/test/std/strings/string.view/string.view.cons/default.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// constexpr basic_string_view () noexcept;

libcxx/test/std/strings/string.view/string.view.cons/from_literal.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// constexpr basic_string_view(const _CharT* _s)

libcxx/test/std/strings/string.view/string.view.cons/from_ptr_len.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// constexpr basic_string_view(const _CharT* _s, size_type _len)

libcxx/test/std/strings/string.view/string.view.cons/from_string.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// template<class Allocator>

libcxx/test/std/strings/string.view/string.view.cons/from_string1.compile.fail.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// template<class Allocator>

libcxx/test/std/strings/string.view/string.view.cons/from_string2.compile.fail.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// template<class Allocator>

libcxx/test/std/strings/string.view/string.view.find/find_first_of_char_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// constexpr size_type find_first_of(charT c, size_type pos = 0) const;
1212

libcxx/test/std/strings/string.view/string.view.find/find_first_of_pointer_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// constexpr size_type find_first_of(const charT* s, size_type pos = 0) const;
1212

libcxx/test/std/strings/string.view/string.view.find/find_first_of_pointer_size_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// constexpr size_type find_first_of(const charT* s, size_type pos, size_type n) const;
1212

libcxx/test/std/strings/string.view/string.view.find/find_first_of_string_view_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// size_type find_first_of(const basic_string_view& str, size_type pos = 0) const;
1212

libcxx/test/std/strings/string.view/string.view.find/find_last_not_of_pointer_size_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// constexpr size_type find_last_not_of(const charT* s, size_type pos, size_type n) const;
1212

libcxx/test/std/strings/string.view/string.view.find/find_pointer_size.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// constexpr size_type find(const charT* s, size_type pos = 0) const;
1212

libcxx/test/std/strings/string.view/string.view.hash/char_type.hash.fail.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// UNSUPPORTED: c++03
1110

12-
// <string>
11+
// <string_view>
1312

1413
// Test that hash specializations for <string_view> require "char_traits<_CharT>" not just any "_Trait".
1514

libcxx/test/std/strings/string.view/string.view.io/stream_insert.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// UNSUPPORTED: libcpp-has-no-localization
1010

11-
// <string>
11+
// <string_view>
1212

1313
// template<class charT, class traits, class Allocator>
1414
// basic_ostream<charT, traits>&

libcxx/test/std/strings/string.view/string.view.io/stream_insert_decl_present.compile.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// <string>
9+
// <string_view>
1010

1111
// template<class charT, class traits, class Allocator>
1212
// basic_ostream<charT, traits>&

libcxx/test/std/strings/string.view/string.view.modifiers/remove_prefix.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// void remove_prefix(size_type _n)

libcxx/test/std/strings/string.view/string.view.modifiers/remove_suffix.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// void remove_suffix(size_type _n)

libcxx/test/std/strings/string.view/string.view.modifiers/swap.pass.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
1110

1211
// void swap(basic_string_view& _other) noexcept

libcxx/test/std/strings/string.view/string.view.ops/compare.sv.pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
109
// <string_view>
10+
1111
// constexpr int compare(basic_string_view str) const noexcept;
1212

1313
#include <string_view>

libcxx/test/std/strings/string.view/string.view.synop/nothing_to_do.pass.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
#include <string_view>
1010

11-
#include "test_macros.h"
12-
1311
int main(int, char**) {
1412
return 0;
1513
}

libcxx/test/std/strings/string.view/string.view.template/contains.char.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8+
89
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
910

1011
// <string_view>

libcxx/test/std/strings/string.view/string.view.template/contains.ptr.pass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8+
89
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
910

1011
// <string_view>

0 commit comments

Comments
 (0)