Fix trailing whitespace

My editor keeps on changing this and I keep having to revert it.
This commit is contained in:
Stephen Kelly 2020-11-09 18:59:00 +00:00
parent 8f354711ae
commit 121d51dc83
1 changed files with 6 additions and 6 deletions

View File

@ -3807,24 +3807,24 @@ TEST(CXXNewExpr, PlacementArgs) {
StatementMatcher IsPlacementNew = cxxNewExpr(hasAnyPlacementArg(anything()));
EXPECT_TRUE(matches(R"(
void* operator new(decltype(sizeof(void*)), void*);
void* operator new(decltype(sizeof(void*)), void*);
int *foo(void* Storage) {
return new (Storage) int;
return new (Storage) int;
})",
IsPlacementNew));
EXPECT_TRUE(matches(R"(
void* operator new(decltype(sizeof(void*)), void*, unsigned);
void* operator new(decltype(sizeof(void*)), void*, unsigned);
int *foo(void* Storage) {
return new (Storage, 16) int;
return new (Storage, 16) int;
})",
cxxNewExpr(hasPlacementArg(
1, ignoringImpCasts(integerLiteral(equals(16)))))));
EXPECT_TRUE(notMatches(R"(
void* operator new(decltype(sizeof(void*)), void*);
void* operator new(decltype(sizeof(void*)), void*);
int *foo(void* Storage) {
return new int;
return new int;
})",
IsPlacementNew));
}