diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2013-08-07 19:39:48 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2013-08-07 19:39:48 +0000 |
| commit | d098713aaf902ea7d4729b73f83af461dac45a0d (patch) | |
| tree | 41fdfd9bfdea111c80febb2d08c27fb31fd44085 /libcxx/include | |
| parent | c5582b57c60e25ab2c2108f2c48e18c0b122bb6d (diff) | |
| download | bcm5719-llvm-d098713aaf902ea7d4729b73f83af461dac45a0d.tar.gz bcm5719-llvm-d098713aaf902ea7d4729b73f83af461dac45a0d.zip | |
War on tabs
llvm-svn: 187906
Diffstat (limited to 'libcxx/include')
| -rw-r--r-- | libcxx/include/chrono | 128 | ||||
| -rw-r--r-- | libcxx/include/string | 46 |
2 files changed, 87 insertions, 87 deletions
diff --git a/libcxx/include/chrono b/libcxx/include/chrono index fb26fb824ad..da550498b45 100644 --- a/libcxx/include/chrono +++ b/libcxx/include/chrono @@ -920,70 +920,70 @@ namespace literals inline namespace chrono_literals { - constexpr chrono::hours operator"" h(unsigned long long __h) - { - return chrono::hours(static_cast<chrono::hours::rep>(__h)); - } - - constexpr chrono::duration<long double, ratio<3600,1>> operator"" h(long double __h) - { - return chrono::duration<long double, ratio<3600,1>>(__h); - } - - - constexpr chrono::minutes operator"" min(unsigned long long __m) - { - return chrono::minutes(static_cast<chrono::minutes::rep>(__m)); - } - - constexpr chrono::duration<long double, ratio<60,1>> operator"" min(long double __m) - { - return chrono::duration<long double, ratio<60,1>> (__m); - } - - - constexpr chrono::seconds operator"" s(unsigned long long __s) - { - return chrono::seconds(static_cast<chrono::seconds::rep>(__s)); - } - - constexpr chrono::duration<long double> operator"" s(long double __s) - { - return chrono::duration<long double> (__s); - } - - - constexpr chrono::milliseconds operator"" ms(unsigned long long __ms) - { - return chrono::milliseconds(static_cast<chrono::milliseconds::rep>(__ms)); - } - - constexpr chrono::duration<long double, milli> operator"" ms(long double __ms) - { - return chrono::duration<long double, milli>(__ms); - } - - - constexpr chrono::microseconds operator"" us(unsigned long long __us) - { - return chrono::microseconds(static_cast<chrono::microseconds::rep>(__us)); - } - - constexpr chrono::duration<long double, micro> operator"" us(long double __us) - { - return chrono::duration<long double, micro> (__us); - } - - - constexpr chrono::nanoseconds operator"" ns(unsigned long long __ns) - { - return chrono::nanoseconds(static_cast<chrono::nanoseconds::rep>(__ns)); - } - - constexpr chrono::duration<long double, nano> operator"" ns(long double __ns) - { - return chrono::duration<long double, nano> (__ns); - } + constexpr chrono::hours operator"" h(unsigned long long __h) + { + return chrono::hours(static_cast<chrono::hours::rep>(__h)); + } + + constexpr chrono::duration<long double, ratio<3600,1>> operator"" h(long double __h) + { + return chrono::duration<long double, ratio<3600,1>>(__h); + } + + + constexpr chrono::minutes operator"" min(unsigned long long __m) + { + return chrono::minutes(static_cast<chrono::minutes::rep>(__m)); + } + + constexpr chrono::duration<long double, ratio<60,1>> operator"" min(long double __m) + { + return chrono::duration<long double, ratio<60,1>> (__m); + } + + + constexpr chrono::seconds operator"" s(unsigned long long __s) + { + return chrono::seconds(static_cast<chrono::seconds::rep>(__s)); + } + + constexpr chrono::duration<long double> operator"" s(long double __s) + { + return chrono::duration<long double> (__s); + } + + + constexpr chrono::milliseconds operator"" ms(unsigned long long __ms) + { + return chrono::milliseconds(static_cast<chrono::milliseconds::rep>(__ms)); + } + + constexpr chrono::duration<long double, milli> operator"" ms(long double __ms) + { + return chrono::duration<long double, milli>(__ms); + } + + + constexpr chrono::microseconds operator"" us(unsigned long long __us) + { + return chrono::microseconds(static_cast<chrono::microseconds::rep>(__us)); + } + + constexpr chrono::duration<long double, micro> operator"" us(long double __us) + { + return chrono::duration<long double, micro> (__us); + } + + + constexpr chrono::nanoseconds operator"" ns(unsigned long long __ns) + { + return chrono::nanoseconds(static_cast<chrono::nanoseconds::rep>(__ns)); + } + + constexpr chrono::duration<long double, nano> operator"" ns(long double __ns) + { + return chrono::duration<long double, nano> (__ns); + } }} #endif diff --git a/libcxx/include/string b/libcxx/include/string index 283be3a35bc..83dc53a1097 100644 --- a/libcxx/include/string +++ b/libcxx/include/string @@ -4111,29 +4111,29 @@ namespace literals { inline namespace string_literals { - inline _LIBCPP_INLINE_VISIBILITY - basic_string<char> operator "" s( const char *__str, size_t __len ) - { - return basic_string<char> (__str, __len); - } - - inline _LIBCPP_INLINE_VISIBILITY - basic_string<wchar_t> operator "" s( const wchar_t *__str, size_t __len ) - { - return basic_string<wchar_t> (__str, __len); - } - - inline _LIBCPP_INLINE_VISIBILITY - basic_string<char16_t> operator "" s( const char16_t *__str, size_t __len ) - { - return basic_string<char16_t> (__str, __len); - } - - inline _LIBCPP_INLINE_VISIBILITY - basic_string<char32_t> operator "" s( const char32_t *__str, size_t __len ) - { - return basic_string<char32_t> (__str, __len); - } + inline _LIBCPP_INLINE_VISIBILITY + basic_string<char> operator "" s( const char *__str, size_t __len ) + { + return basic_string<char> (__str, __len); + } + + inline _LIBCPP_INLINE_VISIBILITY + basic_string<wchar_t> operator "" s( const wchar_t *__str, size_t __len ) + { + return basic_string<wchar_t> (__str, __len); + } + + inline _LIBCPP_INLINE_VISIBILITY + basic_string<char16_t> operator "" s( const char16_t *__str, size_t __len ) + { + return basic_string<char16_t> (__str, __len); + } + + inline _LIBCPP_INLINE_VISIBILITY + basic_string<char32_t> operator "" s( const char32_t *__str, size_t __len ) + { + return basic_string<char32_t> (__str, __len); + } } } #endif |

