[clang] 121d51d - Fix trailing whitespace
Stephen Kelly via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 9 11:28:38 PST 2020
Author: Stephen Kelly
Date: 2020-11-09T19:12:38Z
New Revision: 121d51dc835bf9db363f3f90c042f939076b23d3
URL: https://github.com/llvm/llvm-project/commit/121d51dc835bf9db363f3f90c042f939076b23d3
DIFF: https://github.com/llvm/llvm-project/commit/121d51dc835bf9db363f3f90c042f939076b23d3.diff
LOG: Fix trailing whitespace
My editor keeps on changing this and I keep having to revert it.
Added:
Modified:
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp b/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
index a0d460cce66ed..c7ce63c5784aa 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
+++ b/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
@@ -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));
}
More information about the cfe-commits
mailing list