Fix trailing whitespace
My editor keeps on changing this and I keep having to revert it.
This commit is contained in:
parent
8f354711ae
commit
121d51dc83
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue