Fixing whitespace problems

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111763 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant 2010-08-22 00:45:01 +00:00
parent 0e20cae1a5
commit bbd8086ee3
21 changed files with 65 additions and 67 deletions

View File

@ -274,4 +274,4 @@ operator-(const random_access_iterator<T>& x, const random_access_iterator<U>& y
return x.base() - y.base();
}
#endif
#endif // ITERATORS_H

View File

@ -691,7 +691,6 @@ int main()
assert(m.str(0) == s);
}
{
std::wcmatch m;
assert(!std::regex_match(L"a", m, std::wregex()));

View File

@ -781,7 +781,6 @@ int main()
assert(m.str(0) == s);
}
{
std::wcmatch m;
assert(!std::regex_search(L"a", m, std::wregex()));

View File

@ -60,5 +60,5 @@ int main()
++i;
assert(i == std::cregex_token_iterator());
}
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -29,5 +29,5 @@ int main()
r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex::extended);
assert(r2.flags() == std::regex::extended);
assert(r2.mark_count() == 2);
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -23,5 +23,5 @@ int main()
r2 = {'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'};
assert(r2.flags() == std::regex::ECMAScript);
assert(r2.mark_count() == 2);
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -27,7 +27,7 @@ test(std::initializer_list<char> il, std::regex_constants::syntax_option_type f,
assert(r.mark_count() == mc);
}
#endif
#endif // _LIBCPP_MOVE
int main()
{
@ -66,5 +66,5 @@ int main()
test({'\\', '(', 'a', '[', 'b', 'c', ']', '\\', ')'}, std::regex_constants::egrep, 0);
test({'\\', '(', 'a', '\\', '(', '[', 'b', 'c', ']', '\\', ')', '\\', ')'}, std::regex_constants::egrep, 0);
test({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex_constants::egrep, 2);
#endif
#endif // _LIBCPP_MOVE
}

View File

@ -248,4 +248,4 @@ operator-(const random_access_iterator<T>& x, const random_access_iterator<U>& y
return x.base() - y.base();
}
#endif
#endif // ITERATORS_H

View File

@ -62,7 +62,7 @@ public:
#ifdef _LIBCPP_MOVE
void construct(pointer p, T&& val)
{::new(p) T(std::move(val));}
#endif
#endif // _LIBCPP_MOVE
void destroy(pointer p) {p->~T();}
friend bool operator==(const test_allocator& x, const test_allocator& y)
@ -105,8 +105,8 @@ public:
#ifdef _LIBCPP_HAS_NO_ADVANCED_SFINAE
std::size_t max_size() const
{return UINT_MAX / sizeof(T);}
#endif
#endif // _LIBCPP_HAS_NO_ADVANCED_SFINAE
};
#endif
#endif // TEST_ALLOCATOR_H