summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-12-16 09:37:55 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-12-16 09:37:55 +0000
commitdb21f4c187816b03d7b30d0d238f71cbd8a0a9a7 (patch)
tree9e352c55e973769644b3589a76dc53a250556722 /unittests
parenta602aec8696708d46d57a74546fa5996c51abd5b (diff)
downloadllvm-db21f4c187816b03d7b30d0d238f71cbd8a0a9a7.tar.gz
llvm-db21f4c187816b03d7b30d0d238f71cbd8a0a9a7.tar.bz2
llvm-db21f4c187816b03d7b30d0d238f71cbd8a0a9a7.tar.xz
Put the '*' in the right place in the unit test. Forgot to fix up this
bit of style, sorry. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146733 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/VariadicFunctionTest.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/unittests/ADT/VariadicFunctionTest.cpp b/unittests/ADT/VariadicFunctionTest.cpp
index 8e6f5b48cb..3cd63d277b 100644
--- a/unittests/ADT/VariadicFunctionTest.cpp
+++ b/unittests/ADT/VariadicFunctionTest.cpp
@@ -16,7 +16,7 @@ namespace {
// Defines a variadic function StringCat() to join strings.
// StringCat()'s arguments and return value have class types.
-std::string StringCatImpl(ArrayRef<const std::string*> Args) {
+std::string StringCatImpl(ArrayRef<const std::string *> Args) {
std::string S;
for (unsigned i = 0, e = Args.size(); i < e; ++i)
S += *Args[i];
@@ -39,7 +39,7 @@ TEST(VariadicFunctionTest, WorksForClassTypes) {
// have primitive types.
// The return type of SumImp() is deliberately different from its
// argument type, as we want to test that this works.
-long SumImpl(ArrayRef<const int*> Args) {
+long SumImpl(ArrayRef<const int *> Args) {
long Result = 0;
for (unsigned i = 0, e = Args.size(); i < e; ++i)
Result += *Args[i];
@@ -56,7 +56,7 @@ TEST(VariadicFunctionTest, WorksForPrimitiveTypes) {
// Appends an array of strings to dest and returns the number of
// characters appended.
-int StringAppendImpl(std::string* Dest, ArrayRef<const std::string*> Args) {
+int StringAppendImpl(std::string *Dest, ArrayRef<const std::string *> Args) {
int Chars = 0;
for (unsigned i = 0, e = Args.size(); i < e; ++i) {
Chars += Args[i]->size();
@@ -64,7 +64,7 @@ int StringAppendImpl(std::string* Dest, ArrayRef<const std::string*> Args) {
}
return Chars;
}
-const VariadicFunction1<int, std::string*, std::string,
+const VariadicFunction1<int, std::string *, std::string,
StringAppendImpl> StringAppend;
TEST(VariadicFunction1Test, Works) {
@@ -85,14 +85,14 @@ TEST(VariadicFunction1Test, Works) {
// Counts how many optional arguments fall in the given range.
// Returns the result in *num_in_range. We make the return type void
// as we want to test that VariadicFunction* can handle it.
-void CountInRangeImpl(int* NumInRange, int Low, int High,
- ArrayRef<const int*> Args) {
+void CountInRangeImpl(int *NumInRange, int Low, int High,
+ ArrayRef<const int *> Args) {
*NumInRange = 0;
for (unsigned i = 0, e = Args.size(); i < e; ++i)
if (Low <= *Args[i] && *Args[i] <= High)
++(*NumInRange);
}
-const VariadicFunction3<void, int*, int, int, int,
+const VariadicFunction3<void, int *, int, int, int,
CountInRangeImpl> CountInRange;
TEST(VariadicFunction3Test, Works) {