[libc++] Qualifies uint32_t and friends.
This has been done using the following command
find libcxx/test -type f -exec perl -pi -e 's|^([^/]+?)((?<!::)(?<!::u)u?int(_[a-z]+)?[0-9]{1,2}_t)|\1std::\2|' \{} \;
And manually removed some false positives in std/depr/depr.c.headers.
Reviewed By: ldionne, #libc
Differential Revision: https://reviews.llvm.org/D145880
This commit is contained in:
@@ -154,7 +154,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
|
||||
|
||||
{ // test appending a different type
|
||||
typedef std::string S;
|
||||
const uint8_t p[] = "ABCD";
|
||||
const std::uint8_t p[] = "ABCD";
|
||||
|
||||
S s;
|
||||
s.append(p, p + 4);
|
||||
|
||||
@@ -155,7 +155,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
|
||||
|
||||
{ // test assigning a different type
|
||||
typedef std::string S;
|
||||
const uint8_t p[] = "ABCD";
|
||||
const std::uint8_t p[] = "ABCD";
|
||||
|
||||
S s;
|
||||
s.assign(p, p + 4);
|
||||
|
||||
@@ -145,7 +145,7 @@ TEST_CONSTEXPR_CXX20 bool test() {
|
||||
|
||||
{ // test assigning a different type
|
||||
typedef std::string S;
|
||||
const uint8_t p[] = "ABCD";
|
||||
const std::uint8_t p[] = "ABCD";
|
||||
|
||||
S s;
|
||||
s.insert(s.begin(), p, p + 4);
|
||||
|
||||
@@ -1028,8 +1028,8 @@ TEST_CONSTEXPR_CXX20 bool test9() {
|
||||
}
|
||||
|
||||
{ // test assigning a different type
|
||||
const uint8_t pc[] = "ABCD";
|
||||
uint8_t p[] = "EFGH";
|
||||
const std::uint8_t pc[] = "ABCD";
|
||||
std::uint8_t p[] = "EFGH";
|
||||
|
||||
S s;
|
||||
s.replace(s.begin(), s.end(), pc, pc + 4);
|
||||
|
||||
Reference in New Issue
Block a user