diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /contrib | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'contrib')
93 files changed, 509 insertions, 509 deletions
diff --git a/contrib/libs/antlr3_cpp_runtime/ya.make b/contrib/libs/antlr3_cpp_runtime/ya.make index 5c019aa396..1430ac95d1 100644 --- a/contrib/libs/antlr3_cpp_runtime/ya.make +++ b/contrib/libs/antlr3_cpp_runtime/ya.make @@ -10,7 +10,7 @@ VERSION(2016-03-31-a4d1928e03b2b3f74579e54a6211cd1d695001b9) LICENSE( BSD-3-Clause AND Unicode-Mappings -) +) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) diff --git a/contrib/libs/base64/avx2/ya.make b/contrib/libs/base64/avx2/ya.make index b0dc5ce772..4df2786b33 100644 --- a/contrib/libs/base64/avx2/ya.make +++ b/contrib/libs/base64/avx2/ya.make @@ -1,7 +1,7 @@ OWNER( yazevnul g:contrib - g:cpp-contrib + g:cpp-contrib ) LIBRARY() diff --git a/contrib/libs/base64/neon32/ya.make b/contrib/libs/base64/neon32/ya.make index 435b1127bb..a9efdd5054 100644 --- a/contrib/libs/base64/neon32/ya.make +++ b/contrib/libs/base64/neon32/ya.make @@ -1,7 +1,7 @@ OWNER( yazevnul g:contrib - g:cpp-contrib + g:cpp-contrib ) LIBRARY() diff --git a/contrib/libs/base64/neon64/ya.make b/contrib/libs/base64/neon64/ya.make index 82d821b4ee..5acb36a44d 100644 --- a/contrib/libs/base64/neon64/ya.make +++ b/contrib/libs/base64/neon64/ya.make @@ -1,7 +1,7 @@ OWNER( yazevnul g:contrib - g:cpp-contrib + g:cpp-contrib ) LIBRARY() diff --git a/contrib/libs/base64/plain32/ya.make b/contrib/libs/base64/plain32/ya.make index 1f5a9ad204..41d68a870d 100644 --- a/contrib/libs/base64/plain32/ya.make +++ b/contrib/libs/base64/plain32/ya.make @@ -1,7 +1,7 @@ OWNER( yazevnul g:contrib - g:cpp-contrib + g:cpp-contrib ) LIBRARY() diff --git a/contrib/libs/base64/plain64/ya.make b/contrib/libs/base64/plain64/ya.make index 1f5a9ad204..41d68a870d 100644 --- a/contrib/libs/base64/plain64/ya.make +++ b/contrib/libs/base64/plain64/ya.make @@ -1,7 +1,7 @@ OWNER( yazevnul g:contrib - g:cpp-contrib + g:cpp-contrib ) LIBRARY() diff --git a/contrib/libs/base64/ssse3/ya.make b/contrib/libs/base64/ssse3/ya.make index c9cf647001..bcf9b6267d 100644 --- a/contrib/libs/base64/ssse3/ya.make +++ b/contrib/libs/base64/ssse3/ya.make @@ -1,7 +1,7 @@ OWNER( yazevnul g:contrib - g:cpp-contrib + g:cpp-contrib ) LIBRARY() diff --git a/contrib/libs/base64/ya.make b/contrib/libs/base64/ya.make index 659983fe66..54726c4c33 100644 --- a/contrib/libs/base64/ya.make +++ b/contrib/libs/base64/ya.make @@ -1,7 +1,7 @@ OWNER( yazevnul g:contrib - g:cpp-contrib + g:cpp-contrib ) VERSION(0.3.0) diff --git a/contrib/libs/brotli/common/ya.make b/contrib/libs/brotli/common/ya.make index 6c4157831c..d3f1757090 100644 --- a/contrib/libs/brotli/common/ya.make +++ b/contrib/libs/brotli/common/ya.make @@ -4,11 +4,11 @@ LICENSE(MIT) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( +OWNER( pg g:contrib g:cpp-contrib -) +) NO_UTIL() diff --git a/contrib/libs/brotli/dec/ya.make b/contrib/libs/brotli/dec/ya.make index 0f482f36ed..4bc1504aea 100644 --- a/contrib/libs/brotli/dec/ya.make +++ b/contrib/libs/brotli/dec/ya.make @@ -4,11 +4,11 @@ LICENSE(MIT) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( +OWNER( pg g:contrib g:cpp-contrib -) +) NO_UTIL() diff --git a/contrib/libs/brotli/enc/ya.make b/contrib/libs/brotli/enc/ya.make index 67da82ec4d..b9c0665927 100644 --- a/contrib/libs/brotli/enc/ya.make +++ b/contrib/libs/brotli/enc/ya.make @@ -4,11 +4,11 @@ LICENSE(MIT) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( +OWNER( pg g:contrib g:cpp-contrib -) +) NO_UTIL() diff --git a/contrib/libs/cctz/test/ya.make b/contrib/libs/cctz/test/ya.make index 8815f9769d..f65dcfca16 100644 --- a/contrib/libs/cctz/test/ya.make +++ b/contrib/libs/cctz/test/ya.make @@ -4,10 +4,10 @@ LICENSE(Apache-2.0) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( +OWNER( dfyz petrk -) +) PEERDIR( contrib/libs/cctz diff --git a/contrib/libs/cctz/tzdata/ya.make b/contrib/libs/cctz/tzdata/ya.make index 3b9ff5cc67..f94958c2f0 100644 --- a/contrib/libs/cctz/tzdata/ya.make +++ b/contrib/libs/cctz/tzdata/ya.make @@ -4,10 +4,10 @@ WITHOUT_LICENSE_TEXTS() LICENSE(Apache-2.0) -OWNER( +OWNER( dfyz petrk -) +) PEERDIR( contrib/libs/cctz diff --git a/contrib/libs/crcutil/ya.make b/contrib/libs/crcutil/ya.make index 2da8ef940f..4e010a67a4 100644 --- a/contrib/libs/crcutil/ya.make +++ b/contrib/libs/crcutil/ya.make @@ -6,10 +6,10 @@ VERSION(1.0) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) NO_UTIL() diff --git a/contrib/libs/cxxsupp/builtins/ya.make b/contrib/libs/cxxsupp/builtins/ya.make index d2c319c927..7005a43c58 100644 --- a/contrib/libs/cxxsupp/builtins/ya.make +++ b/contrib/libs/cxxsupp/builtins/ya.make @@ -22,12 +22,12 @@ VERSION(2016-03-03-08f0372c351a57b01afee6c64066961203da28c5) ORIGINAL_SOURCE(https://github.com/llvm/llvm-project) -OWNER( +OWNER( pg somov g:contrib g:cpp-contrib -) +) # Check MUSL before NO_PLATFORM() disables it. IF (MUSL) diff --git a/contrib/libs/cxxsupp/libcxx/ya.make b/contrib/libs/cxxsupp/libcxx/ya.make index 15403fe6d5..2e2e00b262 100644 --- a/contrib/libs/cxxsupp/libcxx/ya.make +++ b/contrib/libs/cxxsupp/libcxx/ya.make @@ -12,12 +12,12 @@ LICENSE_TEXTS(.yandex_meta/licenses.list.txt) VERSION(2021-04-02-7959d59028dd126416cdf10dbbd22162922e1336) -OWNER( +OWNER( halyavin somov g:cpp-committee g:cpp-contrib -) +) ADDINCL( GLOBAL contrib/libs/cxxsupp/libcxx/include diff --git a/contrib/libs/cxxsupp/libcxxrt/ya.make b/contrib/libs/cxxsupp/libcxxrt/ya.make index 12dccbd505..bb6852d220 100644 --- a/contrib/libs/cxxsupp/libcxxrt/ya.make +++ b/contrib/libs/cxxsupp/libcxxrt/ya.make @@ -11,13 +11,13 @@ LICENSE( LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( +OWNER( pg setser somov g:cpp-committee g:cpp-contrib -) +) VERSION(2021-09-08-14bf5d5526056ae1cc16f03b7b8e96108a1e38d0) diff --git a/contrib/libs/cxxsupp/libsan/ya.make b/contrib/libs/cxxsupp/libsan/ya.make index 2fb16630be..9ed45cd816 100644 --- a/contrib/libs/cxxsupp/libsan/ya.make +++ b/contrib/libs/cxxsupp/libsan/ya.make @@ -15,7 +15,7 @@ OWNER(somov) PYTHON( generate_symbolizer.py ${CXX_COMPILER} STDOUT symbolizer.c -) +) CFLAGS(-fPIC) diff --git a/contrib/libs/cxxsupp/openmp/ya.make b/contrib/libs/cxxsupp/openmp/ya.make index 2c64468375..a0ccee456a 100644 --- a/contrib/libs/cxxsupp/openmp/ya.make +++ b/contrib/libs/cxxsupp/openmp/ya.make @@ -9,11 +9,11 @@ LICENSE_TEXTS(.yandex_meta/licenses.list.txt) VERSION(5.0) -OWNER( +OWNER( pg g:contrib g:cpp-contrib -) +) NO_UTIL() diff --git a/contrib/libs/cxxsupp/system_stl/include/ya.make b/contrib/libs/cxxsupp/system_stl/include/ya.make index 06f1a0286c..525fe3844d 100644 --- a/contrib/libs/cxxsupp/system_stl/include/ya.make +++ b/contrib/libs/cxxsupp/system_stl/include/ya.make @@ -1,4 +1,4 @@ -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) diff --git a/contrib/libs/cxxsupp/system_stl/ya.make b/contrib/libs/cxxsupp/system_stl/ya.make index 75317898ac..0531a90521 100644 --- a/contrib/libs/cxxsupp/system_stl/ya.make +++ b/contrib/libs/cxxsupp/system_stl/ya.make @@ -4,11 +4,11 @@ WITHOUT_LICENSE_TEXTS() LICENSE(YandexOpen) -OWNER( +OWNER( g:contrib g:cpp-contrib somov -) +) NO_PLATFORM() diff --git a/contrib/libs/cxxsupp/ya.make b/contrib/libs/cxxsupp/ya.make index 6cd299ac8a..10e5b4c0f1 100644 --- a/contrib/libs/cxxsupp/ya.make +++ b/contrib/libs/cxxsupp/ya.make @@ -5,10 +5,10 @@ WITHOUT_LICENSE_TEXTS() # Proxy library LICENSE(Not-Applicable) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) NO_PLATFORM() DISABLE(OPENSOURCE_EXPORT) diff --git a/contrib/libs/double-conversion/ya.make b/contrib/libs/double-conversion/ya.make index 52e59b0989..11db59678c 100644 --- a/contrib/libs/double-conversion/ya.make +++ b/contrib/libs/double-conversion/ya.make @@ -6,11 +6,11 @@ LICENSE(BSD-3-Clause) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( +OWNER( pg g:contrib g:cpp-contrib -) +) NO_COMPILER_WARNINGS() diff --git a/contrib/libs/farmhash/arch/ya.make b/contrib/libs/farmhash/arch/ya.make index 7e2e9835f5..7aad18465b 100644 --- a/contrib/libs/farmhash/arch/ya.make +++ b/contrib/libs/farmhash/arch/ya.make @@ -1,3 +1,3 @@ -OWNER( - somov -) +OWNER( + somov +) diff --git a/contrib/libs/farmhash/farmhash.cc b/contrib/libs/farmhash/farmhash.cc index 27b344fc65..2e2b29478d 100644 --- a/contrib/libs/farmhash/farmhash.cc +++ b/contrib/libs/farmhash/farmhash.cc @@ -20,7 +20,7 @@ // // FarmHash, by Geoff Pike -#include <util/system/compiler.h> +#include <util/system/compiler.h> #include "farmhash.h" // FARMHASH ASSUMPTIONS: Modify as needed, or use -DFARMHASH_ASSUME_SSE42 etc. // Note that if you use -DFARMHASH_ASSUME_SSE42 you likely need -msse42 @@ -1602,8 +1602,8 @@ STATIC_INLINE uint32_t Hash32Len5to12(const char *s, size_t len) { return fmix(Mur(c, Mur(b, Mur(a, d)))); } -Y_PRAGMA_DIAGNOSTIC_PUSH -Y_PRAGMA_NO_WSHADOW +Y_PRAGMA_DIAGNOSTIC_PUSH +Y_PRAGMA_NO_WSHADOW uint32_t Hash32(const char *s, size_t len) { if (len <= 24) { return len <= 12 ? @@ -1672,7 +1672,7 @@ uint32_t Hash32(const char *s, size_t len) { h = Rotate(h, 17) * c1; return h; } -Y_PRAGMA_DIAGNOSTIC_POP +Y_PRAGMA_DIAGNOSTIC_POP uint32_t Hash32WithSeed(const char *s, size_t len, uint32_t seed) { if (len <= 24) { diff --git a/contrib/libs/farmhash/ut/ya.make b/contrib/libs/farmhash/ut/ya.make index 94c6d15208..8d8cff9735 100644 --- a/contrib/libs/farmhash/ut/ya.make +++ b/contrib/libs/farmhash/ut/ya.make @@ -1,8 +1,8 @@ UNITTEST_FOR(contrib/libs/farmhash) -OWNER( - somov -) +OWNER( + somov +) NO_COMPILER_WARNINGS() diff --git a/contrib/libs/fastlz/ya.make b/contrib/libs/fastlz/ya.make index 7f31ac0bec..5addb7e8bc 100644 --- a/contrib/libs/fastlz/ya.make +++ b/contrib/libs/fastlz/ya.make @@ -6,10 +6,10 @@ LICENSE_TEXTS(.yandex_meta/licenses.list.txt) VERSION(0.1.0) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) NO_UTIL() diff --git a/contrib/libs/grpc/python/ya.make b/contrib/libs/grpc/python/ya.make index f22d3393fc..19b9f35935 100644 --- a/contrib/libs/grpc/python/ya.make +++ b/contrib/libs/grpc/python/ya.make @@ -4,11 +4,11 @@ WITHOUT_LICENSE_TEXTS() LICENSE(Apache-2.0) -OWNER( +OWNER( akastornov g:contrib g:cpp-contrib -) +) PEERDIR( contrib/libs/grpc/src/python/grpcio diff --git a/contrib/libs/grpc/src/compiler/generator_helpers.h b/contrib/libs/grpc/src/compiler/generator_helpers.h index 265713a16b..5edc180461 100644 --- a/contrib/libs/grpc/src/compiler/generator_helpers.h +++ b/contrib/libs/grpc/src/compiler/generator_helpers.h @@ -25,7 +25,7 @@ #include <util/generic/string.h> #include <vector> -#include <util/generic/string.h> +#include <util/generic/string.h> #include <util/string/split.h> #include <util/stream/str.h> @@ -181,8 +181,8 @@ inline void Split(const TStringType& s, char /*delim*/, } template <> -inline void Split(const TString &s, char delim, - std::vector<TString> *append_to) { +inline void Split(const TString &s, char delim, + std::vector<TString> *append_to) { TVector<TString> parts; Split(s, TString(1, delim), parts); for (auto& p : parts) { diff --git a/contrib/libs/grpc/src/proto/grpc/core/ya.make b/contrib/libs/grpc/src/proto/grpc/core/ya.make index 856c34ee53..760a8a6ed6 100644 --- a/contrib/libs/grpc/src/proto/grpc/core/ya.make +++ b/contrib/libs/grpc/src/proto/grpc/core/ya.make @@ -7,7 +7,7 @@ LICENSE_TEXTS(.yandex_meta/licenses.list.txt) OWNER( akastornov g:contrib - g:cpp-contrib + g:cpp-contrib ) PROTO_NAMESPACE( diff --git a/contrib/libs/grpc/src/proto/grpc/health/v1/ya.make b/contrib/libs/grpc/src/proto/grpc/health/v1/ya.make index 7bb8b0dff9..269d551e0d 100644 --- a/contrib/libs/grpc/src/proto/grpc/health/v1/ya.make +++ b/contrib/libs/grpc/src/proto/grpc/health/v1/ya.make @@ -7,7 +7,7 @@ LICENSE_TEXTS(.yandex_meta/licenses.list.txt) OWNER( akastornov g:contrib - g:cpp-contrib + g:cpp-contrib ) PROTO_NAMESPACE( diff --git a/contrib/libs/grpc/src/proto/grpc/testing/duplicate/ya.make b/contrib/libs/grpc/src/proto/grpc/testing/duplicate/ya.make index b94aa415f8..0a7650b3b8 100644 --- a/contrib/libs/grpc/src/proto/grpc/testing/duplicate/ya.make +++ b/contrib/libs/grpc/src/proto/grpc/testing/duplicate/ya.make @@ -7,7 +7,7 @@ LICENSE_TEXTS(.yandex_meta/licenses.list.txt) OWNER( akastornov g:contrib - g:cpp-contrib + g:cpp-contrib ) EXCLUDE_TAGS( diff --git a/contrib/libs/grpc/src/proto/grpc/testing/ya.make b/contrib/libs/grpc/src/proto/grpc/testing/ya.make index 2704585a37..e244033f23 100644 --- a/contrib/libs/grpc/src/proto/grpc/testing/ya.make +++ b/contrib/libs/grpc/src/proto/grpc/testing/ya.make @@ -7,7 +7,7 @@ LICENSE_TEXTS(.yandex_meta/licenses.list.txt) OWNER( akastornov g:contrib - g:cpp-contrib + g:cpp-contrib ) EXCLUDE_TAGS( diff --git a/contrib/libs/grpc/src/python/grpcio/ya.make b/contrib/libs/grpc/src/python/grpcio/ya.make index 5cdb0230c4..458277575e 100644 --- a/contrib/libs/grpc/src/python/grpcio/ya.make +++ b/contrib/libs/grpc/src/python/grpcio/ya.make @@ -4,11 +4,11 @@ LICENSE(Apache-2.0) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( +OWNER( akastornov g:contrib g:cpp-contrib -) +) PEERDIR( contrib/libs/grpc/grpc diff --git a/contrib/libs/grpc/ya.make b/contrib/libs/grpc/ya.make index 29848d23ea..8930d43624 100644 --- a/contrib/libs/grpc/ya.make +++ b/contrib/libs/grpc/ya.make @@ -9,11 +9,11 @@ VERSION(1.33.2) ORIGINAL_SOURCE(https://github.com/grpc/grpc) -OWNER( +OWNER( akastornov g:contrib g:cpp-contrib -) +) PEERDIR( contrib/libs/grpc/grpc diff --git a/contrib/libs/hdr_histogram/ya.make b/contrib/libs/hdr_histogram/ya.make index b20d977b57..ce9a9c6a90 100644 --- a/contrib/libs/hdr_histogram/ya.make +++ b/contrib/libs/hdr_histogram/ya.make @@ -12,7 +12,7 @@ VERSION(0.9.5) OWNER( jamel g:contrib - g:cpp-contrib + g:cpp-contrib ) NO_UTIL() diff --git a/contrib/libs/highwayhash/arch/ya.make b/contrib/libs/highwayhash/arch/ya.make index 7e2e9835f5..7aad18465b 100644 --- a/contrib/libs/highwayhash/arch/ya.make +++ b/contrib/libs/highwayhash/arch/ya.make @@ -1,3 +1,3 @@ -OWNER( - somov -) +OWNER( + somov +) diff --git a/contrib/libs/libaio/static/ya.make b/contrib/libs/libaio/static/ya.make index c4a7e200bb..94585b5db8 100644 --- a/contrib/libs/libaio/static/ya.make +++ b/contrib/libs/libaio/static/ya.make @@ -16,11 +16,11 @@ ENDIF() LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( +OWNER( vskipin g:contrib g:cpp-contrib -) +) NO_UTIL() diff --git a/contrib/libs/libaio/ya.make b/contrib/libs/libaio/ya.make index 3eb09b549b..52063065b9 100644 --- a/contrib/libs/libaio/ya.make +++ b/contrib/libs/libaio/ya.make @@ -9,10 +9,10 @@ WITHOUT_LICENSE_TEXTS() VERSION(2015-07-01-5a546a834c36070648158d19dd564762d59f8eb8) -OWNER( +OWNER( g:contrib g:cpp-contrib -) +) NO_RUNTIME() diff --git a/contrib/libs/libc_compat/memfd_create.c b/contrib/libs/libc_compat/memfd_create.c index 6805d807d6..a33a52209a 100644 --- a/contrib/libs/libc_compat/memfd_create.c +++ b/contrib/libs/libc_compat/memfd_create.c @@ -1,9 +1,9 @@ -#define _GNU_SOURCE 1 -#include <sys/mman.h> -#include "syscall.h" +#define _GNU_SOURCE 1 +#include <sys/mman.h> +#include "syscall.h" #include <linux/unistd.h> - -int memfd_create(const char *name, unsigned flags) -{ + +int memfd_create(const char *name, unsigned flags) +{ return syscall(__NR_memfd_create, name, flags); -} +} diff --git a/contrib/libs/libevent/ya.make b/contrib/libs/libevent/ya.make index acfe9868c6..e1f4d3f089 100644 --- a/contrib/libs/libevent/ya.make +++ b/contrib/libs/libevent/ya.make @@ -37,7 +37,7 @@ ADDINCL( NO_COMPILER_WARNINGS() NO_RUNTIME() - + CFLAGS( -DHAVE_CONFIG_H -DEVENT__HAVE_STRLCPY=1 diff --git a/contrib/libs/libiconv/dynamic/ya.make b/contrib/libs/libiconv/dynamic/ya.make index f3a979206c..6910aeb250 100644 --- a/contrib/libs/libiconv/dynamic/ya.make +++ b/contrib/libs/libiconv/dynamic/ya.make @@ -1,8 +1,8 @@ DYNAMIC_LIBRARY(iconv) -OWNER( +OWNER( g:contrib g:cpp-contrib -) +) VERSION(1.13) diff --git a/contrib/libs/libiconv/ya.make b/contrib/libs/libiconv/ya.make index e7c4e35e4c..9e8d15d9a4 100644 --- a/contrib/libs/libiconv/ya.make +++ b/contrib/libs/libiconv/ya.make @@ -1,7 +1,7 @@ -OWNER( +OWNER( g:contrib g:cpp-contrib -) +) LIBRARY() diff --git a/contrib/libs/libidn/dynamic/ya.make b/contrib/libs/libidn/dynamic/ya.make index c307c1950f..31be9babfb 100644 --- a/contrib/libs/libidn/dynamic/ya.make +++ b/contrib/libs/libidn/dynamic/ya.make @@ -1,7 +1,7 @@ -OWNER( +OWNER( g:contrib g:cpp-contrib -) +) DYNAMIC_LIBRARY(idn) diff --git a/contrib/libs/libxml/ya.make b/contrib/libs/libxml/ya.make index b7ee2eb058..a83e539885 100644 --- a/contrib/libs/libxml/ya.make +++ b/contrib/libs/libxml/ya.make @@ -28,7 +28,7 @@ ADDINCL( contrib/libs/libiconv/include contrib/libs/libxml ) - + NO_COMPILER_WARNINGS() CFLAGS( diff --git a/contrib/libs/linuxvdso/original/ya.make b/contrib/libs/linuxvdso/original/ya.make index c5b41c3586..2c0c8a707f 100644 --- a/contrib/libs/linuxvdso/original/ya.make +++ b/contrib/libs/linuxvdso/original/ya.make @@ -4,10 +4,10 @@ LICENSE(BSD-3-Clause) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) NO_UTIL() diff --git a/contrib/libs/linuxvdso/ya.make b/contrib/libs/linuxvdso/ya.make index 4da8d3d076..5d37dd59db 100644 --- a/contrib/libs/linuxvdso/ya.make +++ b/contrib/libs/linuxvdso/ya.make @@ -8,10 +8,10 @@ VERSION(2.0) ORIGINAL_SOURCE(https://github.com/gperftools/gperftools) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) NO_UTIL() diff --git a/contrib/libs/lz4/generated/ya.make b/contrib/libs/lz4/generated/ya.make index f37d13bddb..dfb50bd2e4 100644 --- a/contrib/libs/lz4/generated/ya.make +++ b/contrib/libs/lz4/generated/ya.make @@ -4,11 +4,11 @@ WITHOUT_LICENSE_TEXTS() LICENSE(BSD-2-Clause) -OWNER( +OWNER( orivej g:contrib g:cpp-contrib -) +) NO_UTIL() diff --git a/contrib/libs/lz4/lz4.h b/contrib/libs/lz4/lz4.h index 66b8547bbc..dbd6939cff 100644 --- a/contrib/libs/lz4/lz4.h +++ b/contrib/libs/lz4/lz4.h @@ -677,10 +677,10 @@ union LZ4_streamDecode_u { * before including the header file. */ -#ifndef LZ4_DISABLE_DEPRECATE_WARNINGS -# define LZ4_DISABLE_DEPRECATE_WARNINGS -#endif - +#ifndef LZ4_DISABLE_DEPRECATE_WARNINGS +# define LZ4_DISABLE_DEPRECATE_WARNINGS +#endif + #ifdef LZ4_DISABLE_DEPRECATE_WARNINGS # define LZ4_DEPRECATED(message) /* disable deprecation warnings */ #else diff --git a/contrib/libs/lz4/ya.make b/contrib/libs/lz4/ya.make index 282dfe3920..6b41cd5a1d 100644 --- a/contrib/libs/lz4/ya.make +++ b/contrib/libs/lz4/ya.make @@ -25,7 +25,7 @@ PEERDIR( ADDINCL( contrib/libs/xxhash ) - + NO_RUNTIME() SRCS( diff --git a/contrib/libs/lzmasdk/ya.make b/contrib/libs/lzmasdk/ya.make index db0a55788d..ed5c7ad53f 100644 --- a/contrib/libs/lzmasdk/ya.make +++ b/contrib/libs/lzmasdk/ya.make @@ -4,10 +4,10 @@ LICENSE(Public-Domain) LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) # https://www.7-zip.org/sdk.html VERSION(19.00) diff --git a/contrib/libs/nayuki_md5/ya.make b/contrib/libs/nayuki_md5/ya.make index 15a6141c7a..4d8a3de302 100644 --- a/contrib/libs/nayuki_md5/ya.make +++ b/contrib/libs/nayuki_md5/ya.make @@ -8,11 +8,11 @@ VERSION(2016) ORIGINAL_SOURCE(https://www.nayuki.io/page/fast-md5-hash-implementation-in-x86-assembly) -OWNER( +OWNER( pg g:contrib g:cpp-contrib -) +) IF (OS_LINUX AND ARCH_X86_64) SRCS( diff --git a/contrib/libs/openssl/dynamic/ya.make b/contrib/libs/openssl/dynamic/ya.make index d68bbe8c4c..d246d1f963 100644 --- a/contrib/libs/openssl/dynamic/ya.make +++ b/contrib/libs/openssl/dynamic/ya.make @@ -4,5 +4,5 @@ OWNER( somov elantsev g:contrib - g:cpp-contrib + g:cpp-contrib ) diff --git a/contrib/libs/pire/pire/classes.cpp b/contrib/libs/pire/pire/classes.cpp index bbf021737d..2a7b8f5a81 100644 --- a/contrib/libs/pire/pire/classes.cpp +++ b/contrib/libs/pire/pire/classes.cpp @@ -53,9 +53,9 @@ namespace { return r; } - TSet<wchar32> ToSet() const + TSet<wchar32> ToSet() const { - TSet<wchar32> ret; + TSet<wchar32> ret; for (auto&& bound : m_bounds) for (wchar32 c = bound.first; c <= bound.second; ++c) ret.insert(c); @@ -63,7 +63,7 @@ namespace { } private: - TVector<ypair<wchar32, wchar32> > m_bounds; + TVector<ypair<wchar32, wchar32> > m_bounds; }; public: @@ -72,7 +72,7 @@ namespace { return (m_classes.find(to_lower(wc & ~ControlMask)) != m_classes.end()); } - TSet<wchar32> Get(wchar32 wc) const + TSet<wchar32> Get(wchar32 wc) const { auto it = m_classes.find(to_lower(wc & ~ControlMask)); if (it == m_classes.end()) @@ -102,7 +102,7 @@ namespace { m_classes['t'] = CharClass('\t'); } - TMap<wchar32, CharClass> m_classes; + TMap<wchar32, CharClass> m_classes; }; class CharClassesImpl: public Feature { diff --git a/contrib/libs/pire/pire/determine.h b/contrib/libs/pire/pire/determine.h index fb48fdd0b3..61428ec501 100644 --- a/contrib/libs/pire/pire/determine.h +++ b/contrib/libs/pire/pire/determine.h @@ -48,7 +48,7 @@ namespace Pire { typedef Partition<char, ImplementationSpecific2> LettersTbl; /// A container used for storing map of states to thier indices. - typedef TMap<State, size_t> InvStates; + typedef TMap<State, size_t> InvStates; /// Should return used letters' partition. const LettersTbl& Letters() const; @@ -63,7 +63,7 @@ namespace Pire { bool IsRequired(const State& /*state*/) const { return true; } /// Called when the set of new states is closed. - void AcceptStates(const TVector<State>& newstates); + void AcceptStates(const TVector<State>& newstates); /// Called for each transition from one new state to another. void Connect(size_t from, size_t to, Char letter); @@ -94,12 +94,12 @@ namespace Pire { { typedef typename Task::State State; typedef typename Task::InvStates InvStates; - typedef TDeque< TVector<size_t> > TransitionTable; + typedef TDeque< TVector<size_t> > TransitionTable; - TVector<State> states; + TVector<State> states; InvStates invstates; TransitionTable transitions; - TVector<size_t> stateIndices; + TVector<size_t> stateIndices; states.push_back(task.Initial()); invstates.insert(typename InvStates::value_type(states[0], 0)); @@ -123,14 +123,14 @@ namespace Pire { stateIndices.push_back(stateIdx); } - TVector<Char> invletters(task.Letters().Size()); + TVector<Char> invletters(task.Letters().Size()); for (auto&& letter : task.Letters()) invletters[letter.second.first] = letter.first; task.AcceptStates(states); size_t from = 0; for (TransitionTable::iterator i = transitions.begin(), ie = transitions.end(); i != ie; ++i, ++from) { - TVector<Char>::iterator l = invletters.begin(); + TVector<Char>::iterator l = invletters.begin(); for (TransitionTable::value_type::iterator j = i->begin(), je = i->end(); j != je; ++j, ++l) task.Connect(stateIndices[from], *j, *l); } diff --git a/contrib/libs/pire/pire/easy.h b/contrib/libs/pire/pire/easy.h index c70e965353..d38145f331 100644 --- a/contrib/libs/pire/pire/easy.h +++ b/contrib/libs/pire/pire/easy.h @@ -196,7 +196,7 @@ private: void Init(ypair<const char*, const char*> rawPattern, Options options) { - TVector<wchar32> pattern; + TVector<wchar32> pattern; options.Encoding().FromLocal(rawPattern.first, rawPattern.second, std::back_inserter(pattern)); Lexer lexer(pattern); @@ -216,7 +216,7 @@ private: static bool BeginsWithCircumflex(const Fsm& fsm) { typedef Fsm::StatesSet Set; - TDeque<size_t> queue; + TDeque<size_t> queue; BitSet handled(fsm.Size()); queue.push_back(fsm.Initial()); @@ -231,7 +231,7 @@ private: } } - TSet<Char> lets = fsm.OutgoingLetters(queue.front()); + TSet<Char> lets = fsm.OutgoingLetters(queue.front()); lets.erase(SpecialChar::Epsilon); lets.erase(SpecialChar::BeginMark); if (!lets.empty()) diff --git a/contrib/libs/pire/pire/extra/count.cpp b/contrib/libs/pire/pire/extra/count.cpp index 468ff61d92..89ea43f0c7 100644 --- a/contrib/libs/pire/pire/extra/count.cpp +++ b/contrib/libs/pire/pire/extra/count.cpp @@ -766,15 +766,15 @@ CountingScanner::CountingScanner(const Fsm& re, const Fsm& sep) // Make a full Cartesian product of two sep_res sep_re.Determine(); sep_re.Unsparse(); - TSet<size_t> dead = sep_re.DeadStates(); + TSet<size_t> dead = sep_re.DeadStates(); PIRE_IFDEBUG(Cdbg << "=== Original FSM ===" << Endl << sep_re << ">>> " << sep_re.Size() << " states, dead: [" << Join(dead.begin(), dead.end(), ", ") << "]" << Endl); Fsm sq; typedef ypair<size_t, size_t> NewState; - TVector<NewState> states; - TMap<NewState, size_t> invstates; + TVector<NewState> states; + TMap<NewState, size_t> invstates; states.push_back(NewState(sep_re.Initial(), sep_re.Initial())); invstates.insert(ymake_pair(states.back(), states.size() - 1)); @@ -815,7 +815,7 @@ CountingScanner::CountingScanner(const Fsm& re, const Fsm& sep) PIRE_IFDEBUG(if (ns != savedNs) Cdbg << "Diverted transition to (" << savedNs.first << ", " << savedNs.second << ") on " << (char) letter << " to (" << ns.first << ", " << ns.second << ")" << dbgout << Endl); - TMap<NewState, size_t>::iterator nsi = invstates.find(ns); + TMap<NewState, size_t>::iterator nsi = invstates.find(ns); if (nsi == invstates.end()) { PIRE_IFDEBUG(Cdbg << "New state " << states.size() << " = (" << ns.first << ", " << ns.second << ")" << Endl); states.push_back(ns); @@ -823,7 +823,7 @@ CountingScanner::CountingScanner(const Fsm& re, const Fsm& sep) sq.Resize(states.size()); } - for (TVector<Char>::const_iterator li = lit->second.second.begin(), le = lit->second.second.end(); li != le; ++li) + for (TVector<Char>::const_iterator li = lit->second.second.begin(), le = lit->second.second.end(); li != le; ++li) sq.Connect(curstate, nsi->second, *li); if (outputs) sq.SetOutput(curstate, nsi->second, outputs); @@ -885,14 +885,14 @@ public: using typename ScannerGlueCommon<Scanner>::State; using TAction = typename Scanner::Action; using InternalState = typename Scanner::InternalState; - typedef TMap<State, size_t> InvStates; + typedef TMap<State, size_t> InvStates; CountingScannerGlueTask(const Scanner& lhs, const Scanner& rhs) : ScannerGlueCommon<Scanner>(lhs, rhs, LettersEquality<Scanner>(lhs.m_letters, rhs.m_letters)) { } - void AcceptStates(const TVector<State>& states) + void AcceptStates(const TVector<State>& states) { States = states; this->SetSc(THolder<Scanner>(new Scanner)); @@ -909,7 +909,7 @@ public: } protected: - TVector<State> States; + TVector<State> States; TAction Action(const Scanner& sc, InternalState state, Char letter) const { size_t state_index = sc.StateIdx(state); diff --git a/contrib/libs/pire/pire/extra/glyphs.cpp b/contrib/libs/pire/pire/extra/glyphs.cpp index a14d2baa56..cd4c8465b3 100644 --- a/contrib/libs/pire/pire/extra/glyphs.cpp +++ b/contrib/libs/pire/pire/extra/glyphs.cpp @@ -45,12 +45,12 @@ namespace { */ class GlyphTable { private: - TList< TVector<wchar32> > m_classes; - TMap<wchar32, TVector<wchar32>*> m_map; + TList< TVector<wchar32> > m_classes; + TMap<wchar32, TVector<wchar32>*> m_map; struct GlyphClass { - TVector<wchar32>* m_class; - TMap<wchar32, TVector<wchar32>*> *m_map; + TVector<wchar32>* m_class; + TMap<wchar32, TVector<wchar32>*> *m_map; GlyphClass& operator << (wchar32 c) { @@ -63,7 +63,7 @@ namespace { GlyphClass Class() { GlyphClass cl; - m_classes.push_back(TVector<wchar32>()); + m_classes.push_back(TVector<wchar32>()); cl.m_class = &m_classes.back(); cl.m_map = &m_map; return cl; @@ -71,13 +71,13 @@ namespace { public: - const TVector<wchar32>& Klass(wchar32 x) const + const TVector<wchar32>& Klass(wchar32 x) const { - TMap<wchar32, TVector<wchar32>*>::const_iterator i = m_map.find(x); + TMap<wchar32, TVector<wchar32>*>::const_iterator i = m_map.find(x); if (i != m_map.end()) return *i->second; else - return DefaultValue< TVector<wchar32> >(); + return DefaultValue< TVector<wchar32> >(); } GlyphTable() @@ -119,7 +119,7 @@ namespace { const CharSet& old = range.first; CharSet altered; for (auto&& i : old) { - const TVector<wchar32>* klass = 0; + const TVector<wchar32>* klass = 0; if (i.size() == 1 && !(klass = &m_table->Klass(i[0]))->empty()) for (auto&& j : *klass) altered.insert(Term::String(1, j)); diff --git a/contrib/libs/pire/pire/fsm.cpp b/contrib/libs/pire/pire/fsm.cpp index 984d708dfa..909de9e322 100644 --- a/contrib/libs/pire/pire/fsm.cpp +++ b/contrib/libs/pire/pire/fsm.cpp @@ -11,7 +11,7 @@ * it under the terms of the GNU Lesser Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * + * * Pire is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -42,7 +42,7 @@ #include "platform.h" namespace Pire { - + ystring CharDump(Char c) { char buf[8]; @@ -75,7 +75,7 @@ ystring CharDump(Char c) void Fsm::DumpState(yostream& s, size_t state) const { // Fill in a 'row': Q -> exp(V) (for current state) - TVector< ybitset<MaxChar> > row(Size()); + TVector< ybitset<MaxChar> > row(Size()); for (auto&& transition : m_transitions[state]) for (auto&& transitionState : transition.second) { if (transitionState >= Size()) { @@ -157,7 +157,7 @@ void Fsm::DumpState(yostream& s, size_t state) const if (oit2 == oit->second.end()) ; else { - TVector<int> payload; + TVector<int> payload; for (unsigned i = 0; i < sizeof(oit2->second) * 8; ++i) if (oit2->second & (1ul << i)) payload.push_back(i); @@ -236,9 +236,9 @@ const Fsm::StatesSet& Fsm::Destinations(size_t from, Char c) const return (i != m_transitions[from].end()) ? i->second : DefaultValue<StatesSet>(); } -TSet<Char> Fsm::OutgoingLetters(size_t state) const +TSet<Char> Fsm::OutgoingLetters(size_t state) const { - TSet<Char> ret; + TSet<Char> ret; for (auto&& i : m_transitions[state]) ret.insert(i.first); return ret; @@ -291,7 +291,7 @@ Fsm& Fsm::Append(char c) determined = false; return *this; } - + Fsm& Fsm::Append(const ystring& str) { for (auto&& i : str) @@ -309,7 +309,7 @@ Fsm& Fsm::AppendSpecial(Char c) return *this; } -Fsm& Fsm::AppendStrings(const TVector<ystring>& strings) +Fsm& Fsm::AppendStrings(const TVector<ystring>& strings) { for (auto&& i : strings) if (i.empty()) @@ -326,15 +326,15 @@ Fsm& Fsm::AppendStrings(const TVector<ystring>& strings) // state #0 cannot appear in LTRs. Thus we can use this // criteria to test whether a transition has been created or not. typedef ypair<size_t, char> Transition; - TMap<char, size_t> startLtr; - TMap<Transition, size_t> ltr; + TMap<char, size_t> startLtr; + TMap<Transition, size_t> ltr; // A presense of a transition in this set indicates that // a that transition already points somewhere (either to end // or somewhere else). Another attempt to create such transition // will clear `determined flag. - TSet<Transition> usedTransitions; - TSet<char> usedFirsts; + TSet<Transition> usedTransitions; + TSet<char> usedFirsts; for (const auto& str : strings) { if (str.size() > 1) { @@ -398,7 +398,7 @@ void Fsm::Import(const Fsm& rhs) auto dest = m_transitions.begin() + oldsize; for (auto outer = rhs.m_transitions.begin(), outerEnd = rhs.m_transitions.end(); outer != outerEnd; ++outer, ++dest) { for (auto&& inner : *outer) { - TSet<size_t> targets; + TSet<size_t> targets; std::transform(inner.second.begin(), inner.second.end(), std::inserter(targets, targets.begin()), std::bind2nd(std::plus<size_t>(), oldsize)); dest->insert(ymake_pair(inner.first, targets)); @@ -504,7 +504,7 @@ Fsm& Fsm::operator |= (const Fsm& rhs) Import(rhs); for (auto&& final : rhs.m_final) m_final.insert(final + lhsSize); - + if (!isAlternative && !rhs.isAlternative) { Resize(Size() + 1); Connect(Size() - 1, initial); @@ -598,40 +598,40 @@ void Fsm::MakeSuffix() Connect(initial, i); ClearHints(); } - + Fsm& Fsm::Reverse() -{ +{ Fsm out; out.Resize(Size() + 1); out.letters = Letters(); - + // Invert transitions for (size_t from = 0; from < Size(); ++from) for (auto&& i : m_transitions[from]) for (auto&& j : i.second) out.Connect(j, from, i.first); - + // Invert initial and final states out.m_final.clear(); out.SetFinal(initial, true); for (auto i : m_final) out.Connect(Size(), i, Epsilon); out.SetInitial(Size()); - + // Invert outputs for (auto&& i : outputs) for (auto&& j : i.second) out.SetOutput(j.first, i.first, j.second); - + // Preserve tags (although thier semantics are usually heavily broken at this point) out.tags = tags; - + // Apply Swap(out); return *this; } -TSet<size_t> Fsm::DeadStates() const +TSet<size_t> Fsm::DeadStates() const { TSet<size_t> res; @@ -697,7 +697,7 @@ void Fsm::RemoveDeadEnds() { PIRE_IFDEBUG(Cdbg << "Removing dead ends on:" << Endl << *this << Endl); - TSet<size_t> dead = DeadStates(); + TSet<size_t> dead = DeadStates(); // Erase all useless states for (auto&& i : dead) { PIRE_IFDEBUG(Cdbg << "Removing useless state " << i << Endl); @@ -726,7 +726,7 @@ void Fsm::MergeEpsilonConnection(size_t from, size_t to) // Merge transitions from 'to' state into transitions from 'from' state for (auto&& transition : m_transitions[to]) { - TSet<size_t> connStates; + TSet<size_t> connStates; std::copy(transition.second.begin(), transition.second.end(), std::inserter(m_transitions[from][transition.first], m_transitions[from][transition.first].end())); @@ -766,7 +766,7 @@ void Fsm::MergeEpsilonConnection(size_t from, size_t to) // finds all states which are Epsilon-reachable from 'thru' and connects // them directly to 'from' with Epsilon transition having proper output. // Updates inverse map of epsilon transitions as well. -void Fsm::ShortCutEpsilon(size_t from, size_t thru, TVector< TSet<size_t> >& inveps) +void Fsm::ShortCutEpsilon(size_t from, size_t thru, TVector< TSet<size_t> >& inveps) { PIRE_IFDEBUG(Cdbg << "In Fsm::ShortCutEpsilon(" << from << ", " << thru << ")\n"); const StatesSet& to = Destinations(thru, Epsilon); @@ -778,7 +778,7 @@ void Fsm::ShortCutEpsilon(size_t from, size_t thru, TVector< TSet<size_t> >& inv inveps[toElement].insert(from); if (outIt != outputs.end()) outIt->second[toElement] |= (fromThruOut | Output(thru, toElement)); - } + } } // Removes all Epsilon-connections by iterating though states and merging each Epsilon-connection @@ -786,15 +786,15 @@ void Fsm::ShortCutEpsilon(size_t from, size_t thru, TVector< TSet<size_t> >& inv void Fsm::RemoveEpsilons() { Unsparse(); - + // Build inverse map of epsilon transitions - TVector< TSet<size_t> > inveps(Size()); // We have to use TSet<> here since we want it sorted + TVector< TSet<size_t> > inveps(Size()); // We have to use TSet<> here since we want it sorted for (size_t from = 0; from != Size(); ++from) { const StatesSet& tos = Destinations(from, Epsilon); for (auto&& to : tos) inveps[to].insert(from); } - + // Make a transitive closure of all epsilon transitions (Floyd-Warshall algorithm) // (if there exists an epsilon-path between two states, epsilon-connect them directly) for (size_t thru = 0; thru != Size(); ++thru) @@ -802,9 +802,9 @@ void Fsm::RemoveEpsilons() // inveps[thru] may alter during loop body, hence we cannot cache ivneps[thru].end() if (from != thru) ShortCutEpsilon(from, thru, inveps); - + PIRE_IFDEBUG(Cdbg << "=== After epsilons shortcut\n" << *this << Endl); - + // Iterate through all epsilon-connected state pairs, merging states together for (size_t from = 0; from != Size(); ++from) { const StatesSet& to = Destinations(from, Epsilon); @@ -812,13 +812,13 @@ void Fsm::RemoveEpsilons() if (toElement != from) MergeEpsilonConnection(from, toElement); // it's a NOP if to == from, so don't waste time } - + PIRE_IFDEBUG(Cdbg << "=== After epsilons merged\n" << *this << Endl); - + // Drop all epsilon transitions for (auto&& i : m_transitions) i.erase(Epsilon); - + Sparse(); ClearHints(); } @@ -859,9 +859,9 @@ void Fsm::Unsparse() // Returns a set of 'terminal states', which are those of the final states, // from which a transition to themselves on any letter is possible. -TSet<size_t> Fsm::TerminalStates() const +TSet<size_t> Fsm::TerminalStates() const { - TSet<size_t> terminals; + TSet<size_t> terminals; for (auto&& final : m_final) { bool ok = true; for (auto&& letter : letters) { @@ -877,10 +877,10 @@ TSet<size_t> Fsm::TerminalStates() const namespace Impl { class FsmDetermineTask { public: - typedef TVector<size_t> State; + typedef TVector<size_t> State; typedef Fsm::LettersTbl LettersTbl; - typedef TMap<State, size_t> InvStates; - + typedef TMap<State, size_t> InvStates; + FsmDetermineTask(const Fsm& fsm) : mFsm(fsm) , mTerminals(fsm.TerminalStates()) @@ -888,7 +888,7 @@ public: PIRE_IFDEBUG(Cdbg << "Terminal states: [" << Join(mTerminals.begin(), mTerminals.end(), ", ") << "]" << Endl); } const LettersTbl& Letters() const { return mFsm.letters; } - + State Initial() const { return State(1, mFsm.initial); } bool IsRequired(const State& state) const { @@ -897,7 +897,7 @@ public: return false; return true; } - + State Next(const State& state, Char letter) const { State next; @@ -913,8 +913,8 @@ public: << "--> [" << Join(next.begin(), next.end(), ", ") << "]" << Endl); return next; } - - void AcceptStates(const TVector<State>& states) + + void AcceptStates(const TVector<State>& states) { mNewFsm.Resize(states.size()); mNewFsm.initial = 0; @@ -924,7 +924,7 @@ public: for (size_t ns = 0; ns < states.size(); ++ns) { PIRE_IFDEBUG(Cdbg << "State " << ns << " = [" << Join(states[ns].begin(), states[ns].end(), ", ") << "]" << Endl); for (auto&& j : states[ns]) { - + // If it was a terminal state, connect it to itself if (mTerminals.find(j) != mTerminals.end()) { for (auto&& letter : Letters()) @@ -943,7 +943,7 @@ public: // hence weve done with this state and got nothing more to do. break; } - + // Bitwise OR all tags in states auto ti = mFsm.tags.find(j); if (ti != mFsm.tags.end()) { @@ -953,12 +953,12 @@ public: } } // For each old state, prepare a list of new state it is contained in - typedef TMap< size_t, TVector<size_t> > Old2New; + typedef TMap< size_t, TVector<size_t> > Old2New; Old2New old2new; for (size_t ns = 0; ns < states.size(); ++ns) for (auto&& j : states[ns]) old2new[j].push_back(ns); - + // Copy all outputs for (auto&& i : mFsm.outputs) { for (auto&& j : i.second) { @@ -973,7 +973,7 @@ public: } PIRE_IFDEBUG(Cdbg << "New terminals = [" << Join(mNewTerminals.begin(), mNewTerminals.end(), ",") << "]" << Endl); } - + void Connect(size_t from, size_t to, Char letter) { PIRE_IFDEBUG(Cdbg << "Connecting " << from << " --" << letter << "--> " << to << Endl); @@ -1004,13 +1004,13 @@ public: } Result Failure() { return false; } - + Fsm& Output() { return mNewFsm; } private: const Fsm& mFsm; Fsm mNewFsm; - TSet<size_t> mTerminals; - TSet<size_t> mNewTerminals; + TSet<size_t> mTerminals; + TSet<size_t> mNewTerminals; }; } @@ -1021,10 +1021,10 @@ bool Fsm::Determine(size_t maxsize /* = 0 */) return true; PIRE_IFDEBUG(Cdbg << "=== Initial ===" << Endl << *this << Endl); - + RemoveEpsilons(); PIRE_IFDEBUG(Cdbg << "=== After all epsilons removed" << Endl << *this << Endl); - + Impl::FsmDetermineTask task(*this); if (Pire::Impl::Determine(task, maxsize ? maxsize : MaxSize)) { task.Output().Swap(*this); @@ -1162,7 +1162,7 @@ void Fsm::Minimize() Fsm& Fsm::Canonize(size_t maxSize /* = 0 */) { if (!IsDetermined()) { - if (!Determine(maxSize)) + if (!Determine(maxSize)) throw Error("regexp pattern too complicated"); } Minimize(); @@ -1175,7 +1175,7 @@ void Fsm::PrependAnything() Resize(Size() + 1); for (size_t letter = 0; letter < MaxChar; ++letter) Connect(newstate, newstate, letter); - + Connect(newstate, initial); initial = newstate; @@ -1188,7 +1188,7 @@ void Fsm::AppendAnything() Resize(Size() + 1); for (size_t letter = 0; letter < MaxChar; ++letter) Connect(newstate, newstate, letter); - + ConnectFinal(newstate); ClearFinal(); SetFinal(newstate, 1); diff --git a/contrib/libs/pire/pire/fsm.h b/contrib/libs/pire/pire/fsm.h index 4dad06ca06..dd1784377d 100644 --- a/contrib/libs/pire/pire/fsm.h +++ b/contrib/libs/pire/pire/fsm.h @@ -60,7 +60,7 @@ namespace Pire { /// and case-insensitive comparison of multibyte characters, /// when one string represents a lowercase variant of a character, /// while another string represents its uppercase variant. - Fsm& AppendStrings(const TVector<ystring>& strings); + Fsm& AppendStrings(const TVector<ystring>& strings); /// Appends a part matching a single byte (any). Fsm& AppendDot(); @@ -108,7 +108,7 @@ namespace Pire { Fsm& Reverse(); /// Returns a set of states from which no final states are reachable - TSet<size_t> DeadStates() const; + TSet<size_t> DeadStates() const; /// Removes all dead end paths from FSM void RemoveDeadEnds(); @@ -122,9 +122,9 @@ namespace Pire { void DumpState(yostream& s, size_t state) const; void DumpTo(yostream& s, const ystring& name = "") const; - typedef TSet<size_t> StatesSet; - typedef TMap<size_t, StatesSet> TransitionRow; - typedef TVector<TransitionRow> TransitionTable; + typedef TSet<size_t> StatesSet; + typedef TMap<size_t, StatesSet> TransitionRow; + typedef TVector<TransitionRow> TransitionTable; struct LettersEquality { LettersEquality(const Fsm::TransitionTable& tbl): m_tbl(&tbl) {} @@ -133,7 +133,7 @@ namespace Pire { const Fsm::TransitionTable* m_tbl; }; - typedef TSet<size_t> FinalTable; + typedef TSet<size_t> FinalTable; typedef Partition<Char, LettersEquality> LettersTbl; @@ -174,7 +174,7 @@ namespace Pire { bool Connected(size_t from, size_t to, Char c) const; /// Returns a set of letters on which a transition from the specified state exists - TSet<Char> OutgoingLetters(size_t state) const; + TSet<Char> OutgoingLetters(size_t state) const; /// Returns a set of states where a transition from the given state using the given letter is possible const StatesSet& Destinations(size_t from, Char letter) const; @@ -226,19 +226,19 @@ namespace Pire { bool determined; /// Output - typedef TMap< size_t, TMap<size_t, unsigned long> > Outputs; + typedef TMap< size_t, TMap<size_t, unsigned long> > Outputs; Outputs outputs; - typedef TMap<size_t, unsigned long> Tags; + typedef TMap<size_t, unsigned long> Tags; Tags tags; /// Heuristics hit: true iff this FSM is a union of two other FSMs bool isAlternative; - void ShortCutEpsilon(size_t from, size_t thru, TVector< TSet<size_t> >& inveps); ///< internal + void ShortCutEpsilon(size_t from, size_t thru, TVector< TSet<size_t> >& inveps); ///< internal void MergeEpsilonConnection(size_t from, size_t to); ///< internal - TSet<size_t> TerminalStates() const; + TSet<size_t> TerminalStates() const; Char Translate(Char c) const; @@ -252,7 +252,7 @@ namespace Pire { template<class Scanner> void BuildScanner(const Fsm& fsm, Scanner& r) { - TSet<size_t> dead; + TSet<size_t> dead; if (Scanner::DeadFlag) dead = fsm.DeadStates(); diff --git a/contrib/libs/pire/pire/glue.h b/contrib/libs/pire/pire/glue.h index bac086f2f0..96e8957feb 100644 --- a/contrib/libs/pire/pire/glue.h +++ b/contrib/libs/pire/pire/glue.h @@ -105,7 +105,7 @@ private: } TArrayHolder<value_type> mMap; - TVector<bool> mFilled; + TVector<bool> mFilled; // Noncopyable GluedStateLookupTable(const GluedStateLookupTable&); diff --git a/contrib/libs/pire/pire/inline.l b/contrib/libs/pire/pire/inline.l index a4d2e1a836..ba7eb7a839 100644 --- a/contrib/libs/pire/pire/inline.l +++ b/contrib/libs/pire/pire/inline.l @@ -37,7 +37,7 @@ ystring filename = ""; int line = 1; -TVector<ystring> args; +TVector<ystring> args; #ifdef _WIN32 #if _MCS_VER >= 1600 diff --git a/contrib/libs/pire/pire/partition.h b/contrib/libs/pire/pire/partition.h index 85a9af8863..fd9ae6f1aa 100644 --- a/contrib/libs/pire/pire/partition.h +++ b/contrib/libs/pire/pire/partition.h @@ -37,7 +37,7 @@ namespace Pire { template<class T, class Eq> class Partition { private: - typedef TMap< T, ypair< size_t, TVector<T> > > Set; + typedef TMap< T, ypair< size_t, TVector<T> > > Set; public: Partition(const Eq& eq) @@ -103,7 +103,7 @@ public: } /// Returns the whole equivalence class of @p t (i.e. item @p i /// is returned iff representative(i) == representative(t)). - const TVector<T>& Klass(const T& t) const + const TVector<T>& Klass(const T& t) const { auto it = m_inv.find(t); if (it == m_inv.end()) @@ -143,7 +143,7 @@ public: private: Eq m_eq; Set m_set; - TMap<T, T> m_inv; + TMap<T, T> m_inv; size_t m_maxidx; void DoAppend(Set& set, const T& t) @@ -159,7 +159,7 @@ private: if (it == end) { // Begin new set - TVector<T> v(1, t); + TVector<T> v(1, t); set.insert(ymake_pair(t, ymake_pair(m_maxidx++, v))); m_inv[t] = t; } diff --git a/contrib/libs/pire/pire/re_lexer.h b/contrib/libs/pire/pire/re_lexer.h index 5591c16d34..6873f89cda 100644 --- a/contrib/libs/pire/pire/re_lexer.h +++ b/contrib/libs/pire/pire/re_lexer.h @@ -74,8 +74,8 @@ enum { */ class Term { public: - typedef TVector<wchar32> String; - typedef TSet<String> Strings; + typedef TVector<wchar32> String; + typedef TSet<String> Strings; typedef ypair<int, int> RepetitionCount; typedef ypair<Strings, bool> CharacterRange; @@ -170,7 +170,7 @@ private: void InstallDefaultFeatures(); - TDeque<wchar32> m_input; + TDeque<wchar32> m_input; const Pire::Encoding* m_encoding; TVector<THolder<Feature>> m_features; Any m_retval; diff --git a/contrib/libs/pire/pire/re_parser.y b/contrib/libs/pire/pire/re_parser.y index dbad88e287..94c8fa7bdc 100644 --- a/contrib/libs/pire/pire/re_parser.y +++ b/contrib/libs/pire/pire/re_parser.y @@ -178,7 +178,7 @@ void yyerror(Pire::Lexer& rlex, const char* str) void AppendRange(const Encoding& encoding, Fsm& a, const Term::CharacterRange& cr) { - TVector<ystring> strings; + TVector<ystring> strings; for (auto&& i : cr.first) { ystring s; diff --git a/contrib/libs/pire/pire/scanner_io.cpp b/contrib/libs/pire/pire/scanner_io.cpp index 3956e3c6ed..aea6d387c7 100644 --- a/contrib/libs/pire/pire/scanner_io.cpp +++ b/contrib/libs/pire/pire/scanner_io.cpp @@ -206,7 +206,7 @@ void LoadedScanner::Load(yistream* s, ui32* type) Impl::AlignedLoadArray(s, sc.m_letters, MaxChar); Impl::AlignedLoadArray(s, sc.m_jumps, sc.m.statesCount * sc.m.lettersCount); if (header.Version == Header::RE_VERSION_WITH_MACTIONS) { - TVector<Action> actions(sc.m.statesCount * sc.m.lettersCount); + TVector<Action> actions(sc.m.statesCount * sc.m.lettersCount); Impl::AlignedLoadArray(s, actions.data(), actions.size()); } Impl::AlignedLoadArray(s, sc.m_tags, sc.m.statesCount); diff --git a/contrib/libs/pire/pire/scanners/multi.h b/contrib/libs/pire/pire/scanners/multi.h index 29679e416e..b3e8a72a67 100644 --- a/contrib/libs/pire/pire/scanners/multi.h +++ b/contrib/libs/pire/pire/scanners/multi.h @@ -402,7 +402,7 @@ protected: Y_ASSERT(m_buffer == nullptr); // Ensure that specializations of Scanner across different Relocations do not touch its Locals - static_assert(sizeof(m) == sizeof(s.m), "sizeof(m) == sizeof(s.m)"); + static_assert(sizeof(m) == sizeof(s.m), "sizeof(m) == sizeof(s.m)"); memcpy(&m, &s.m, sizeof(s.m)); m.relocationSignature = Relocation::Signature; m.shortcuttingSignature = Shortcutting::Signature; @@ -475,7 +475,7 @@ protected: Y_ASSERT(m_buffer); // Build the mapping from letter classes to characters - TVector< TVector<char> > letters(RowSize()); + TVector< TVector<char> > letters(RowSize()); for (unsigned ch = 0; ch != 1 << (sizeof(char)*8); ++ch) letters[m_letters[ch]].push_back(ch); @@ -1012,7 +1012,7 @@ public: { } - void AcceptStates(const TVector<State>& states) + void AcceptStates(const TVector<State>& states) { // Make up a new scanner and fill in the final table diff --git a/contrib/libs/pire/pire/scanners/slow.h b/contrib/libs/pire/pire/scanners/slow.h index 6adfcb8c1d..068779644d 100644 --- a/contrib/libs/pire/pire/scanners/slow.h +++ b/contrib/libs/pire/pire/scanners/slow.h @@ -62,7 +62,7 @@ public: }; struct State { - TVector<unsigned> states; + TVector<unsigned> states; BitSet flags; State() {} @@ -352,8 +352,8 @@ private: size_t* m_jumpPos; size_t* m_letters; - TVector<void*> m_pool; - TVector< TVector<unsigned> > m_vec, *m_vecptr; + TVector<void*> m_pool; + TVector< TVector<unsigned> > m_vec, *m_vecptr; bool need_actions; TVector<TVector<Action>> m_actionsvec; diff --git a/contrib/libs/pire/pire/stub/stl.h b/contrib/libs/pire/pire/stub/stl.h index 98ebd9f7c6..af708d9403 100644 --- a/contrib/libs/pire/pire/stub/stl.h +++ b/contrib/libs/pire/pire/stub/stl.h @@ -8,7 +8,7 @@ #include <utility> #include <memory> -#include <util/generic/string.h> +#include <util/generic/string.h> #include <util/generic/vector.h> #include <util/generic/deque.h> #include <util/generic/list.h> @@ -26,7 +26,7 @@ #include <util/string/vector.h> namespace Pire { - using ystring = TString; + using ystring = TString; template<size_t N> using ybitset = std::bitset<N>; template<typename T1, typename T2> using ypair = std::pair<T1, T2>; template<typename T> using yauto_ptr = std::auto_ptr<T>; @@ -60,7 +60,7 @@ namespace Pire { typedef IInputStream yistream; template<class Iter> - ystring Join(Iter begin, Iter end, const ystring& separator) { return JoinStrings(begin, end, separator); } + ystring Join(Iter begin, Iter end, const ystring& separator) { return JoinStrings(begin, end, separator); } } #endif diff --git a/contrib/libs/pire/pire/vbitset.h b/contrib/libs/pire/pire/vbitset.h index 69cb5aeba3..7d16976fa1 100644 --- a/contrib/libs/pire/pire/vbitset.h +++ b/contrib/libs/pire/pire/vbitset.h @@ -97,7 +97,7 @@ public: private: typedef unsigned char ContainerType; static const size_t ItemSize = sizeof(ContainerType) * 8; - TVector<ContainerType> m_data; + TVector<ContainerType> m_data; size_t m_size; static size_t RoundUp(size_t x) { return x / ItemSize + ((x % ItemSize) ? 1 : 0); } diff --git a/contrib/libs/protobuf/python/ya.make b/contrib/libs/protobuf/python/ya.make index 42bc625109..bb505722ac 100644 --- a/contrib/libs/protobuf/python/ya.make +++ b/contrib/libs/protobuf/python/ya.make @@ -4,10 +4,10 @@ WITHOUT_LICENSE_TEXTS() LICENSE(BSD-3-Clause) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) GENERATE_PY_PROTOS(contrib/libs/protobuf/src/google/protobuf/descriptor.proto) diff --git a/contrib/libs/protoc/src/google/protobuf/compiler/perlxs/perlxs_generator.cc b/contrib/libs/protoc/src/google/protobuf/compiler/perlxs/perlxs_generator.cc index 3ae4a39fd5..f823968823 100644 --- a/contrib/libs/protoc/src/google/protobuf/compiler/perlxs/perlxs_generator.cc +++ b/contrib/libs/protoc/src/google/protobuf/compiler/perlxs/perlxs_generator.cc @@ -961,7 +961,7 @@ PerlXSGenerator::GenerateMessageXSFieldAccessors(const FieldDescriptor* field, " STRLEN len;\n"); if ( type == FieldDescriptor::TYPE_STRING ) { printer.Print(vars, - " TString $value$;\n"); + " TString $value$;\n"); } printer.Print("\n" " CODE:\n"); @@ -1160,7 +1160,7 @@ PerlXSGenerator::GenerateMessageXSCommonMethods(const Descriptor* descriptor, "error_string(svTHIS)\n" " SV * svTHIS\n" " PREINIT:\n" - " TString estr;\n" + " TString estr;\n" "\n" " CODE:\n"); GenerateTypemapInput(descriptor, printer, "THIS"); @@ -1203,7 +1203,7 @@ PerlXSGenerator::GenerateMessageXSCommonMethods(const Descriptor* descriptor, "debug_string(svTHIS)\n" " SV * svTHIS\n" " PREINIT:\n" - " TString dstr;\n" + " TString dstr;\n" "\n" " CODE:\n"); GenerateTypemapInput(descriptor, printer, "THIS"); @@ -1225,7 +1225,7 @@ PerlXSGenerator::GenerateMessageXSCommonMethods(const Descriptor* descriptor, "short_debug_string(svTHIS)\n" " SV * svTHIS\n" " PREINIT:\n" - " TString dstr;\n" + " TString dstr;\n" "\n" " CODE:\n"); GenerateTypemapInput(descriptor, printer, "THIS"); @@ -1913,7 +1913,7 @@ PerlXSGenerator::FieldFromHashrefHelper(io::Printer& printer, "char * str;\n"); if ( field->type() == FieldDescriptor::TYPE_STRING ) { - printer.Print("TString sval;\n"); + printer.Print("TString sval;\n"); } printer.Print(vars, diff --git a/contrib/libs/rapidjson/ya.make b/contrib/libs/rapidjson/ya.make index 0b26c5cc64..88990f37ff 100644 --- a/contrib/libs/rapidjson/ya.make +++ b/contrib/libs/rapidjson/ya.make @@ -11,10 +11,10 @@ LICENSE_TEXTS(.yandex_meta/licenses.list.txt) VERSION(1.1.0) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) ADDINCL( contrib/libs/rapidjson/include diff --git a/contrib/libs/utf8proc/ya.make b/contrib/libs/utf8proc/ya.make index 5da2c75ea8..fbc5098e4b 100644 --- a/contrib/libs/utf8proc/ya.make +++ b/contrib/libs/utf8proc/ya.make @@ -7,10 +7,10 @@ LICENSE( LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) VERSION(2.1.1) diff --git a/contrib/libs/xz/common/ya.make b/contrib/libs/xz/common/ya.make index ce25e6a230..a536e76e8c 100644 --- a/contrib/libs/xz/common/ya.make +++ b/contrib/libs/xz/common/ya.make @@ -1,7 +1,7 @@ OWNER( thegeorg g:contrib - g:cpp-contrib + g:cpp-contrib ) # This is a part of xz utils package. Source can be downloaded from diff --git a/contrib/libs/xz/liblzma/ya.make b/contrib/libs/xz/liblzma/ya.make index d548283a2b..9d02ac3cb6 100644 --- a/contrib/libs/xz/liblzma/ya.make +++ b/contrib/libs/xz/liblzma/ya.make @@ -1,7 +1,7 @@ OWNER( thegeorg g:contrib - g:cpp-contrib + g:cpp-contrib ) # This is a part of xz utils package. Source can be downloaded from diff --git a/contrib/libs/xz/ya.make b/contrib/libs/xz/ya.make index 3448d44354..10d35fefbe 100644 --- a/contrib/libs/xz/ya.make +++ b/contrib/libs/xz/ya.make @@ -1,8 +1,8 @@ -OWNER( - g:contrib - g:cpp-contrib -) - +OWNER( + g:contrib + g:cpp-contrib +) + VERSION(5.2.4) RECURSE( diff --git a/contrib/libs/ya.make b/contrib/libs/ya.make index 9c4640fdcf..7b4d11f117 100644 --- a/contrib/libs/ya.make +++ b/contrib/libs/ya.make @@ -1,7 +1,7 @@ -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) RECURSE( afl diff --git a/contrib/libs/yaml-cpp/ya.make b/contrib/libs/yaml-cpp/ya.make index 058caf92fa..b5d4ea59f9 100644 --- a/contrib/libs/yaml-cpp/ya.make +++ b/contrib/libs/yaml-cpp/ya.make @@ -9,12 +9,12 @@ VERSION(0.5.3) OWNER( g:antiinfra g:contrib - g:cpp-contrib + g:cpp-contrib ) NO_UTIL() -NO_WSHADOW() +NO_WSHADOW() ADDINCL(GLOBAL contrib/libs/yaml-cpp/include) diff --git a/contrib/libs/zlib/dynamic/ya.make b/contrib/libs/zlib/dynamic/ya.make index e112ea9979..77cde174cb 100644 --- a/contrib/libs/zlib/dynamic/ya.make +++ b/contrib/libs/zlib/dynamic/ya.make @@ -1,5 +1,5 @@ -OWNER( - g:contrib - g:cpp-contrib -) +OWNER( + g:contrib + g:cpp-contrib +) DLL_FOR(contrib/libs/zlib) diff --git a/contrib/libs/zstd06/ya.make b/contrib/libs/zstd06/ya.make index e35f69f443..92fcb98367 100644 --- a/contrib/libs/zstd06/ya.make +++ b/contrib/libs/zstd06/ya.make @@ -9,11 +9,11 @@ LICENSE( LICENSE_TEXTS(.yandex_meta/licenses.list.txt) -OWNER( - pg - g:contrib - g:cpp-contrib -) +OWNER( + pg + g:contrib + g:cpp-contrib +) NO_UTIL() diff --git a/contrib/restricted/boost/boost/coroutine2/detail/pull_control_block_cc.ipp b/contrib/restricted/boost/boost/coroutine2/detail/pull_control_block_cc.ipp index 9240c4619a..7a41239f3b 100644 --- a/contrib/restricted/boost/boost/coroutine2/detail/pull_control_block_cc.ipp +++ b/contrib/restricted/boost/boost/coroutine2/detail/pull_control_block_cc.ipp @@ -21,11 +21,11 @@ #include <boost/coroutine2/detail/forced_unwind.hpp> #include <boost/coroutine2/detail/wrap.hpp> -#include <util/system/compiler.h> - -Y_PRAGMA_DIAGNOSTIC_PUSH -Y_PRAGMA_NO_WSHADOW - +#include <util/system/compiler.h> + +Y_PRAGMA_DIAGNOSTIC_PUSH +Y_PRAGMA_NO_WSHADOW + #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif @@ -419,6 +419,6 @@ pull_coroutine< void >::control_block::valid() const noexcept { # include BOOST_ABI_SUFFIX #endif -Y_PRAGMA_DIAGNOSTIC_POP - +Y_PRAGMA_DIAGNOSTIC_POP + #endif // BOOST_COROUTINES2_DETAIL_PULL_CONTROL_BLOCK_IPP diff --git a/contrib/restricted/boost/boost/coroutine2/detail/push_control_block_cc.ipp b/contrib/restricted/boost/boost/coroutine2/detail/push_control_block_cc.ipp index 8297dd1754..b2589e5c02 100644 --- a/contrib/restricted/boost/boost/coroutine2/detail/push_control_block_cc.ipp +++ b/contrib/restricted/boost/boost/coroutine2/detail/push_control_block_cc.ipp @@ -20,11 +20,11 @@ #include <boost/coroutine2/detail/forced_unwind.hpp> #include <boost/coroutine2/detail/wrap.hpp> -#include <util/system/compiler.h> - -Y_PRAGMA_DIAGNOSTIC_PUSH -Y_PRAGMA_NO_WSHADOW - +#include <util/system/compiler.h> + +Y_PRAGMA_DIAGNOSTIC_PUSH +Y_PRAGMA_NO_WSHADOW + #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif @@ -380,6 +380,6 @@ push_coroutine< void >::control_block::valid() const noexcept { # include BOOST_ABI_SUFFIX #endif -Y_PRAGMA_DIAGNOSTIC_POP - +Y_PRAGMA_DIAGNOSTIC_POP + #endif // BOOST_COROUTINES2_DETAIL_PUSH_CONTROL_BLOCK_IPP diff --git a/contrib/restricted/boost/boost/date_time/gregorian/gregorian_io.hpp b/contrib/restricted/boost/boost/date_time/gregorian/gregorian_io.hpp index 7da718f8a0..e45ac54d37 100644 --- a/contrib/restricted/boost/boost/date_time/gregorian/gregorian_io.hpp +++ b/contrib/restricted/boost/boost/date_time/gregorian/gregorian_io.hpp @@ -21,29 +21,29 @@ #include <boost/date_time/gregorian/gregorian_types.hpp> #include <boost/date_time/gregorian/conversion.hpp> // to_tm will be needed in the facets -#include <util/system/compiler.h> -Y_PRAGMA_DIAGNOSTIC_PUSH -Y_PRAGMA_NO_WSHADOW - +#include <util/system/compiler.h> +Y_PRAGMA_DIAGNOSTIC_PUSH +Y_PRAGMA_NO_WSHADOW + namespace boost { namespace gregorian { typedef boost::date_time::period_formatter<wchar_t> wperiod_formatter; typedef boost::date_time::period_formatter<char> period_formatter; - + typedef boost::date_time::date_facet<date,wchar_t> wdate_facet; typedef boost::date_time::date_facet<date,char> date_facet; typedef boost::date_time::period_parser<date,char> period_parser; typedef boost::date_time::period_parser<date,wchar_t> wperiod_parser; - - typedef boost::date_time::special_values_formatter<char> special_values_formatter; - typedef boost::date_time::special_values_formatter<wchar_t> wspecial_values_formatter; - - typedef boost::date_time::special_values_parser<date,char> special_values_parser; - typedef boost::date_time::special_values_parser<date,wchar_t> wspecial_values_parser; - + + typedef boost::date_time::special_values_formatter<char> special_values_formatter; + typedef boost::date_time::special_values_formatter<wchar_t> wspecial_values_formatter; + + typedef boost::date_time::special_values_parser<date,char> special_values_parser; + typedef boost::date_time::special_values_parser<date,wchar_t> wspecial_values_parser; + typedef boost::date_time::date_input_facet<date,char> date_input_facet; typedef boost::date_time::date_input_facet<date,wchar_t> wdate_input_facet; @@ -57,7 +57,7 @@ namespace gregorian { std::use_facet<custom_date_facet>(os.getloc()).put(output_itr, os, os.fill(), d); else { //instantiate a custom facet for dealing with dates since the user - //has not put one in the stream so far. This is for efficiency + //has not put one in the stream so far. This is for efficiency //since we would always need to reconstruct for every date //if the locale did not already exist. Of course this will be overridden //if the user imbues at some later point. With the default settings @@ -94,23 +94,23 @@ namespace gregorian { f->get(sit, str_end, is, d); } } - catch(...) { + catch(...) { // mask tells us what exceptions are turned on std::ios_base::iostate exception_mask = is.exceptions(); - // if the user wants exceptions on failbit, we'll rethrow our + // if the user wants exceptions on failbit, we'll rethrow our // date_time exception & set the failbit if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} // ignore this one throw; // rethrow original exception } else { // if the user want's to fail quietly, we simply set the failbit - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } - } + } return is; } @@ -155,17 +155,17 @@ namespace gregorian { f->get(sit, str_end, is, dd); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -181,7 +181,7 @@ namespace gregorian { std::use_facet<custom_date_facet>(os.getloc()).put(output_itr, os, os.fill(), dp); else { //instantiate a custom facet for dealing with date periods since the user - //has not put one in the stream so far. This is for efficiency + //has not put one in the stream so far. This is for efficiency //since we would always need to reconstruct for every time period //if the local did not already exist. Of course this will be overridden //if the user imbues at some later point. With the default settings @@ -196,14 +196,14 @@ namespace gregorian { return os; } - //! input operator for date_period + //! input operator for date_period template <class CharT, class Traits> inline std::basic_istream<CharT, Traits>& operator>>(std::basic_istream<CharT, Traits>& is, date_period& dp) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -219,24 +219,24 @@ namespace gregorian { f->get(sit, str_end, is, dp); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; } /********** small gregorian types **********/ - + template <class CharT, class TraitsT> inline std::basic_ostream<CharT, TraitsT>& operator<<(std::basic_ostream<CharT, TraitsT>& os, const boost::gregorian::greg_month& gm) { @@ -262,7 +262,7 @@ namespace gregorian { operator>>(std::basic_istream<CharT, Traits>& is, greg_month& m) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -278,17 +278,17 @@ namespace gregorian { f->get(sit, str_end, is, m); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -311,7 +311,7 @@ namespace gregorian { } return os; } - + //! input operator for greg_weekday template <class CharT, class Traits> inline @@ -319,7 +319,7 @@ namespace gregorian { operator>>(std::basic_istream<CharT, Traits>& is, greg_weekday& wd) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -335,17 +335,17 @@ namespace gregorian { f->get(sit, str_end, is, wd); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -360,7 +360,7 @@ namespace gregorian { operator>>(std::basic_istream<CharT, Traits>& is, greg_day& gd) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -376,17 +376,17 @@ namespace gregorian { f->get(sit, str_end, is, gd); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -401,7 +401,7 @@ namespace gregorian { operator>>(std::basic_istream<CharT, Traits>& is, greg_year& gy) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -417,24 +417,24 @@ namespace gregorian { f->get(sit, str_end, is, gy); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; } /********** date generator types **********/ - + template <class CharT, class TraitsT> inline std::basic_ostream<CharT, TraitsT>& operator<<(std::basic_ostream<CharT, TraitsT>& os, const boost::gregorian::partial_date& pd) { @@ -459,7 +459,7 @@ namespace gregorian { operator>>(std::basic_istream<CharT, Traits>& is, partial_date& pd) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -475,17 +475,17 @@ namespace gregorian { f->get(sit, str_end, is, pd); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -512,11 +512,11 @@ namespace gregorian { template <class CharT, class Traits> inline std::basic_istream<CharT, Traits>& - operator>>(std::basic_istream<CharT, Traits>& is, + operator>>(std::basic_istream<CharT, Traits>& is, nth_day_of_the_week_in_month& nday) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -532,17 +532,17 @@ namespace gregorian { f->get(sit, str_end, is, nday); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -570,11 +570,11 @@ namespace gregorian { template <class CharT, class Traits> inline std::basic_istream<CharT, Traits>& - operator>>(std::basic_istream<CharT, Traits>& is, + operator>>(std::basic_istream<CharT, Traits>& is, first_day_of_the_week_in_month& fkd) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -590,17 +590,17 @@ namespace gregorian { f->get(sit, str_end, is, fkd); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -628,11 +628,11 @@ namespace gregorian { template <class CharT, class Traits> inline std::basic_istream<CharT, Traits>& - operator>>(std::basic_istream<CharT, Traits>& is, + operator>>(std::basic_istream<CharT, Traits>& is, last_day_of_the_week_in_month& lkd) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -648,17 +648,17 @@ namespace gregorian { f->get(sit, str_end, is, lkd); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -673,7 +673,7 @@ namespace gregorian { std::ostreambuf_iterator<CharT> output_itr(os); if (std::has_facet<custom_date_facet>(os.getloc())) { std::use_facet<custom_date_facet>(os.getloc()).put(output_itr, os, os.fill(), fda); - } + } else { custom_date_facet* f = new custom_date_facet(); std::locale l = std::locale(os.getloc(), f); @@ -687,11 +687,11 @@ namespace gregorian { template <class CharT, class Traits> inline std::basic_istream<CharT, Traits>& - operator>>(std::basic_istream<CharT, Traits>& is, + operator>>(std::basic_istream<CharT, Traits>& is, first_day_of_the_week_after& fka) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -707,17 +707,17 @@ namespace gregorian { f->get(sit, str_end, is, fka); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; @@ -746,11 +746,11 @@ namespace gregorian { template <class CharT, class Traits> inline std::basic_istream<CharT, Traits>& - operator>>(std::basic_istream<CharT, Traits>& is, + operator>>(std::basic_istream<CharT, Traits>& is, first_day_of_the_week_before& fkb) { boost::io::ios_flags_saver iflags(is); - typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); if (strm_sentry) { try { typedef typename date_time::date_input_facet<date, CharT> date_input_facet_local; @@ -766,25 +766,25 @@ namespace gregorian { f->get(sit, str_end, is, fkb); } } - catch(...) { + catch(...) { std::ios_base::iostate exception_mask = is.exceptions(); if(std::ios_base::failbit & exception_mask) { - try { is.setstate(std::ios_base::failbit); } + try { is.setstate(std::ios_base::failbit); } catch(std::ios_base::failure&) {} throw; // rethrow original exception } else { - is.setstate(std::ios_base::failbit); - } - + is.setstate(std::ios_base::failbit); + } + } } return is; } - + } } // namespaces -Y_PRAGMA_DIAGNOSTIC_POP - +Y_PRAGMA_DIAGNOSTIC_POP + #endif // DATE_TIME_GREGORIAN_IO_HPP__ diff --git a/contrib/restricted/boost/boost/date_time/posix_time/posix_time_io.hpp b/contrib/restricted/boost/boost/date_time/posix_time/posix_time_io.hpp index 659253b825..e85ec55242 100644 --- a/contrib/restricted/boost/boost/date_time/posix_time/posix_time_io.hpp +++ b/contrib/restricted/boost/boost/date_time/posix_time/posix_time_io.hpp @@ -20,8 +20,8 @@ #include <boost/date_time/posix_time/posix_time_duration.hpp> #include <boost/date_time/posix_time/conversion.hpp> // to_tm will be needed in the facets -#include <util/system/compiler.h> - +#include <util/system/compiler.h> + namespace boost { namespace posix_time { @@ -54,7 +54,7 @@ namespace posix_time { std::use_facet<custom_ptime_facet>(os.getloc()).put(oitr, os, os.fill(), p); else { //instantiate a custom facet for dealing with times since the user - //has not put one in the stream so far. This is for efficiency + //has not put one in the stream so far. This is for efficiency //since we would always need to reconstruct for every time period //if the locale did not already exist. Of course this will be overridden //if the user imbues as some later point. @@ -73,23 +73,23 @@ namespace posix_time { operator>>(std::basic_istream<CharT, Traits>& is, ptime& pt) { boost::io::ios_flags_saver iflags(is); - - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); - - Y_PRAGMA_DIAGNOSTIC_POP - + + Y_PRAGMA_DIAGNOSTIC_POP + if (strm_sentry) { try { - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + typedef typename date_time::time_input_facet<ptime, CharT> time_input_facet_local; - - Y_PRAGMA_DIAGNOSTIC_POP - + + Y_PRAGMA_DIAGNOSTIC_POP + std::istreambuf_iterator<CharT,Traits> sit(is), str_end; if(std::has_facet<time_input_facet_local>(is.getloc())) { std::use_facet<time_input_facet_local>(is.getloc()).get(sit, str_end, is, pt); @@ -104,7 +104,7 @@ namespace posix_time { catch(...) { // mask tells us what exceptions are turned on std::ios_base::iostate exception_mask = is.exceptions(); - // if the user wants exceptions on failbit, we'll rethrow our + // if the user wants exceptions on failbit, we'll rethrow our // date_time exception & set the failbit if(std::ios_base::failbit & exception_mask) { try { is.setstate(std::ios_base::failbit); } @@ -122,7 +122,7 @@ namespace posix_time { template <class CharT, class TraitsT> - inline + inline std::basic_ostream<CharT, TraitsT>& operator<<(std::basic_ostream<CharT, TraitsT>& os, const boost::posix_time::time_period& p) { @@ -134,7 +134,7 @@ namespace posix_time { } else { //instantiate a custom facet for dealing with periods since the user - //has not put one in the stream so far. This is for efficiency + //has not put one in the stream so far. This is for efficiency //since we would always need to reconstruct for every time period //if the local did not already exist. Of course this will be overridden //if the user imbues as some later point. @@ -153,23 +153,23 @@ namespace posix_time { operator>>(std::basic_istream<CharT, Traits>& is, time_period& tp) { boost::io::ios_flags_saver iflags(is); - - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); - - Y_PRAGMA_DIAGNOSTIC_POP - + + Y_PRAGMA_DIAGNOSTIC_POP + if (strm_sentry) { try { - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + typedef typename date_time::time_input_facet<ptime, CharT> time_input_facet_local; - - Y_PRAGMA_DIAGNOSTIC_POP - + + Y_PRAGMA_DIAGNOSTIC_POP + std::istreambuf_iterator<CharT,Traits> sit(is), str_end; if(std::has_facet<time_input_facet_local>(is.getloc())) { std::use_facet<time_input_facet_local>(is.getloc()).get(sit, str_end, is, tp); @@ -197,7 +197,7 @@ namespace posix_time { } - //! ostream operator for posix_time::time_duration + //! ostream operator for posix_time::time_duration // todo fix to use facet -- place holder for now... template <class CharT, class Traits> inline @@ -211,7 +211,7 @@ namespace posix_time { std::use_facet<custom_ptime_facet>(os.getloc()).put(oitr, os, os.fill(), td); else { //instantiate a custom facet for dealing with times since the user - //has not put one in the stream so far. This is for efficiency + //has not put one in the stream so far. This is for efficiency //since we would always need to reconstruct for every time period //if the locale did not already exist. Of course this will be overridden //if the user imbues as some later point. @@ -230,23 +230,23 @@ namespace posix_time { operator>>(std::basic_istream<CharT, Traits>& is, time_duration& td) { boost::io::ios_flags_saver iflags(is); - - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + typename std::basic_istream<CharT, Traits>::sentry strm_sentry(is, false); - - Y_PRAGMA_DIAGNOSTIC_POP - + + Y_PRAGMA_DIAGNOSTIC_POP + if (strm_sentry) { try { - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + typedef typename date_time::time_input_facet<ptime, CharT> time_input_facet_local; - - Y_PRAGMA_DIAGNOSTIC_POP - + + Y_PRAGMA_DIAGNOSTIC_POP + std::istreambuf_iterator<CharT,Traits> sit(is), str_end; if(std::has_facet<time_input_facet_local>(is.getloc())) { std::use_facet<time_input_facet_local>(is.getloc()).get(sit, str_end, is, td); diff --git a/contrib/restricted/boost/boost/geometry/formulas/vincenty_inverse.hpp b/contrib/restricted/boost/boost/geometry/formulas/vincenty_inverse.hpp index e58ac66daf..a210759aa7 100644 --- a/contrib/restricted/boost/boost/geometry/formulas/vincenty_inverse.hpp +++ b/contrib/restricted/boost/boost/geometry/formulas/vincenty_inverse.hpp @@ -27,11 +27,11 @@ #include <boost/geometry/formulas/flattening.hpp> #include <boost/geometry/formulas/result_inverse.hpp> -#include <util/system/compiler.h> - -Y_PRAGMA_DIAGNOSTIC_PUSH -Y_PRAGMA_NO_WSHADOW +#include <util/system/compiler.h> +Y_PRAGMA_DIAGNOSTIC_PUSH +Y_PRAGMA_NO_WSHADOW + #ifndef BOOST_GEOMETRY_DETAIL_VINCENTY_MAX_STEPS #define BOOST_GEOMETRY_DETAIL_VINCENTY_MAX_STEPS 1000 #endif @@ -163,7 +163,7 @@ public: } while ( geometry::math::abs(previous_lambda - lambda) > c_e_12 && geometry::math::abs(lambda) < pi && counter < BOOST_GEOMETRY_DETAIL_VINCENTY_MAX_STEPS ); // robustness - + if ( BOOST_GEOMETRY_CONDITION(EnableDistance) ) { // Oops getting hard here @@ -192,7 +192,7 @@ public: result.distance = radius_b * A * (sigma - delta_sigma); // (19) } - + if ( BOOST_GEOMETRY_CONDITION(CalcAzimuths) ) { if (BOOST_GEOMETRY_CONDITION(CalcFwdAzimuth)) @@ -221,6 +221,6 @@ public: }}} // namespace boost::geometry::formula -Y_PRAGMA_DIAGNOSTIC_POP +Y_PRAGMA_DIAGNOSTIC_POP #endif // BOOST_GEOMETRY_FORMULAS_VINCENTY_INVERSE_HPP diff --git a/contrib/restricted/boost/boost/geometry/index/detail/rtree/pack_create.hpp b/contrib/restricted/boost/boost/geometry/index/detail/rtree/pack_create.hpp index eea5cf0707..1437571b3e 100644 --- a/contrib/restricted/boost/boost/geometry/index/detail/rtree/pack_create.hpp +++ b/contrib/restricted/boost/boost/geometry/index/detail/rtree/pack_create.hpp @@ -17,11 +17,11 @@ #include <boost/geometry/algorithms/detail/expand_by_epsilon.hpp> -#include <util/system/compiler.h> - -Y_PRAGMA_DIAGNOSTIC_PUSH -Y_PRAGMA_NO_WSHADOW - +#include <util/system/compiler.h> + +Y_PRAGMA_DIAGNOSTIC_PUSH +Y_PRAGMA_NO_WSHADOW + namespace boost { namespace geometry { namespace index { namespace detail { namespace rtree { namespace pack_utils { @@ -157,7 +157,7 @@ public: parameters_type const& parameters, Translator const& translator, Allocators & allocators) { typedef typename std::iterator_traits<InIt>::difference_type diff_type; - + diff_type diff = std::distance(first, last); if ( diff <= 0 ) return node_pointer(0); @@ -167,7 +167,7 @@ public: values_count = static_cast<size_type>(diff); entries.reserve(values_count); - + expandable_box<Box> hint_box; for ( ; first != last ; ++first ) { @@ -323,7 +323,7 @@ private: rtree::elements(in).reserve(nodes_count); // MAY THROW (A) // calculate values box and copy values expandable_box<Box> elements_box; - + per_level_packets(first, last, hint_box, values_count, subtree_counts, next_subtree_counts, rtree::elements(in), elements_box, parameters, translator, allocators); @@ -364,7 +364,7 @@ private: elements_box.expand(el.first); return; } - + std::size_t median_count = calculate_median_count(values_count, subtree_counts); EIt median = first + median_count; @@ -374,7 +374,7 @@ private: Box left, right; pack_utils::nth_element_and_half_boxes<0, dimension> ::apply(first, median, last, hint_box, left, right, greatest_dim_index); - + per_level_packets(first, median, left, median_count, subtree_counts, next_subtree_counts, elements, elements_box, @@ -467,6 +467,6 @@ private: }}}}} // namespace boost::geometry::index::detail::rtree -Y_PRAGMA_DIAGNOSTIC_POP - +Y_PRAGMA_DIAGNOSTIC_POP + #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_PACK_CREATE_HPP diff --git a/contrib/restricted/boost/boost/graph/detail/adjacency_list.hpp b/contrib/restricted/boost/boost/graph/detail/adjacency_list.hpp index 90ab0ae2c6..6cc588f7ed 100644 --- a/contrib/restricted/boost/boost/graph/detail/adjacency_list.hpp +++ b/contrib/restricted/boost/boost/graph/detail/adjacency_list.hpp @@ -38,8 +38,8 @@ #include <boost/static_assert.hpp> #include <boost/assert.hpp> -#include <util/system/compiler.h> - +#include <util/system/compiler.h> + #ifdef BOOST_NO_CXX11_RVALUE_REFERENCES #define BOOST_GRAPH_MOVE_IF_POSSIBLE(x) (x) #else @@ -269,7 +269,7 @@ namespace boost { : Base(static_cast< Base const& >(x)), m_property(const_cast<self&>(x).m_property) { } self& operator=(const self& x) { // NOTE: avoid 'Base::operator=(x);' broken on SGI MIPSpro (bug 55771 of Mozilla). - static_cast<Base&>(*this) = static_cast< Base const& >(x); + static_cast<Base&>(*this) = static_cast< Base const& >(x); m_property = const_cast<self&>(x).m_property; return *this; } @@ -279,7 +279,7 @@ namespace boost { : Base(static_cast< Base&& >(x)), m_property(std::move(x.m_property)) { } self& operator=(self&& x) { // NOTE: avoid 'Base::operator=(x);' broken on SGI MIPSpro (bug 55771 of Mozilla). - static_cast<Base&>(*this) = static_cast< Base&& >(x); + static_cast<Base&>(*this) = static_cast< Base&& >(x); m_property = std::move(x.m_property); return *this; } @@ -1258,9 +1258,9 @@ namespace boost { typedef typename Config::global_edgelist_selector EdgeListS; BOOST_STATIC_ASSERT((!is_same<EdgeListS, vecS>::value)); - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + typedef typename Config::graph_type graph_type; graph_type& g = static_cast<graph_type&>(*this); typename Config::edge_descriptor e = *iter; @@ -1271,8 +1271,8 @@ namespace boost { detail::remove_directed_edge_dispatch(*iter, iel, p); g.m_edges.erase(iter.base()->get_iter()); oel.erase(iter.base()); - - Y_PRAGMA_DIAGNOSTIC_POP + + Y_PRAGMA_DIAGNOSTIC_POP } }; diff --git a/contrib/restricted/boost/boost/graph/named_graph.hpp b/contrib/restricted/boost/boost/graph/named_graph.hpp index b5bcd7708d..67cea1dcd4 100644 --- a/contrib/restricted/boost/boost/graph/named_graph.hpp +++ b/contrib/restricted/boost/boost/graph/named_graph.hpp @@ -32,8 +32,8 @@ #include <stdexcept> // for std::runtime_error #include <utility> // for std::pair -#include <util/system/compiler.h> - +#include <util/system/compiler.h> + namespace boost { namespace graph { /******************************************************************* @@ -313,15 +313,15 @@ template<BGL_NAMED_GRAPH_PARAMS> template<typename VertexIterStability> inline void BGL_NAMED_GRAPH::removing_vertex(Vertex vertex, VertexIterStability) { - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + BOOST_STATIC_ASSERT_MSG ((boost::is_base_of<boost::graph_detail::stable_tag, VertexIterStability>::value), "Named graphs cannot use vecS as vertex container and remove vertices; the lack of vertex descriptor stability (which iterator stability is a proxy for) means that the name -> vertex mapping would need to be completely rebuilt after each deletion. See https://svn.boost.org/trac/boost/ticket/7863 for more information and a test case."); typedef typename BGL_NAMED_GRAPH::vertex_name_type vertex_name_type; const vertex_name_type& vertex_name = extract_name(derived()[vertex]); named_vertices.erase(vertex_name); - - Y_PRAGMA_DIAGNOSTIC_POP + + Y_PRAGMA_DIAGNOSTIC_POP } template<BGL_NAMED_GRAPH_PARAMS> diff --git a/contrib/restricted/boost/boost/interprocess/segment_manager.hpp b/contrib/restricted/boost/boost/interprocess/segment_manager.hpp index 7a297f934b..eabd3713fd 100644 --- a/contrib/restricted/boost/boost/interprocess/segment_manager.hpp +++ b/contrib/restricted/boost/boost/interprocess/segment_manager.hpp @@ -50,11 +50,11 @@ #include <exception> #endif -#include <util/system/compiler.h> - -Y_PRAGMA_DIAGNOSTIC_PUSH -Y_PRAGMA_NO_WSHADOW - +#include <util/system/compiler.h> + +Y_PRAGMA_DIAGNOSTIC_PUSH +Y_PRAGMA_NO_WSHADOW + //!\file //!Describes the object placed in a memory segment that provides //!named object allocation capabilities for single-segment and @@ -1061,7 +1061,7 @@ class segment_manager template<class CharT> void * priv_generic_named_construct (unsigned char type, const CharT *name, size_type num, bool try2find, - bool dothrow, ipcdetail::in_place_interface &table, + bool dothrow, ipcdetail::in_place_interface &table, IndexType<ipcdetail::index_config<CharT, MemoryAlgorithm> > &index, ipcdetail::true_ is_intrusive) { (void)is_intrusive; @@ -1186,7 +1186,7 @@ class segment_manager template<class CharT> void * priv_generic_named_construct (unsigned char type, const CharT *name, size_type num, bool try2find, bool dothrow, - ipcdetail::in_place_interface &table, + ipcdetail::in_place_interface &table, IndexType<ipcdetail::index_config<CharT, MemoryAlgorithm> > &index, ipcdetail::false_ is_intrusive) { (void)is_intrusive; @@ -1342,8 +1342,8 @@ class segment_manager }} //namespace boost { namespace interprocess -Y_PRAGMA_DIAGNOSTIC_POP - +Y_PRAGMA_DIAGNOSTIC_POP + #include <boost/interprocess/detail/config_end.hpp> #endif //#ifndef BOOST_INTERPROCESS_SEGMENT_MANAGER_HPP diff --git a/contrib/restricted/boost/boost/spirit/home/classic/core/non_terminal/subrule.hpp b/contrib/restricted/boost/boost/spirit/home/classic/core/non_terminal/subrule.hpp index 1f4bb048f9..4c8897f233 100644 --- a/contrib/restricted/boost/boost/spirit/home/classic/core/non_terminal/subrule.hpp +++ b/contrib/restricted/boost/boost/spirit/home/classic/core/non_terminal/subrule.hpp @@ -22,8 +22,8 @@ #include <boost/spirit/home/classic/core/non_terminal/subrule_fwd.hpp> #include <boost/spirit/home/classic/core/non_terminal/impl/subrule.ipp> -#include <util/system/compiler.h> - +#include <util/system/compiler.h> + namespace boost { namespace spirit { BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN @@ -209,9 +209,9 @@ BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN return start.parse(g_arg); } - Y_PRAGMA_DIAGNOSTIC_PUSH - Y_PRAGMA_NO_WSHADOW - + Y_PRAGMA_DIAGNOSTIC_PUSH + Y_PRAGMA_NO_WSHADOW + template <int ID2, typename DefT2, typename ContextT2> inline subrule_list< self_t, @@ -231,8 +231,8 @@ BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN rhs, nil_t())); } - Y_PRAGMA_DIAGNOSTIC_POP - + Y_PRAGMA_DIAGNOSTIC_POP + typename DefT::embed_t rhs; subrule_t const& start; }; diff --git a/contrib/tools/cython/Cython/Compiler/PyrexTypes.py b/contrib/tools/cython/Cython/Compiler/PyrexTypes.py index 3d4931cea6..9465fe270a 100644 --- a/contrib/tools/cython/Cython/Compiler/PyrexTypes.py +++ b/contrib/tools/cython/Cython/Compiler/PyrexTypes.py @@ -3496,7 +3496,7 @@ builtin_cpp_conversions = { "std::complex": 1, # arcadia_cpp_conversions "TMaybe": 1, - "TVector": 1, + "TVector": 1, "THashMap": 2, "TMap": 2, } diff --git a/contrib/tools/cython/Cython/Utility/CppConvert.pyx b/contrib/tools/cython/Cython/Utility/CppConvert.pyx index 5f7859dd0e..080a5abae2 100644 --- a/contrib/tools/cython/Cython/Utility/CppConvert.pyx +++ b/contrib/tools/cython/Cython/Utility/CppConvert.pyx @@ -266,56 +266,56 @@ cdef object {{cname}}(const TMaybe[X]& s): return None -#################### arcadia_TVector.from_py #################### +#################### arcadia_TVector.from_py #################### cdef extern from *: - cdef cppclass TVector [T]: + cdef cppclass TVector [T]: void push_back(T&) @cname("{{cname}}") -cdef TVector[X] {{cname}}(object o) except *: - cdef TVector[X] v +cdef TVector[X] {{cname}}(object o) except *: + cdef TVector[X] v for item in o: v.push_back(<X>item) return v -#################### arcadia_TVector.to_py #################### +#################### arcadia_TVector.to_py #################### cdef extern from *: - cdef cppclass TVector [T]: + cdef cppclass TVector [T]: size_t size() T& operator[](size_t) @cname("{{cname}}") -cdef object {{cname}}(const TVector[X]& v): +cdef object {{cname}}(const TVector[X]& v): return [v[i] for i in range(v.size())] -#################### arcadia_THashMap.from_py #################### +#################### arcadia_THashMap.from_py #################### cdef extern from *: cdef cppclass pair "std::pair" [T, U]: pair(T&, U&) - cdef cppclass THashMap [T, U]: + cdef cppclass THashMap [T, U]: void insert(pair[T, U]&) @cname("{{cname}}") -cdef THashMap[X,Y] {{cname}}(object o) except *: +cdef THashMap[X,Y] {{cname}}(object o) except *: cdef dict d = o - cdef THashMap[X,Y] m + cdef THashMap[X,Y] m for key, value in d.iteritems(): m.insert(pair[X,Y](<X>key, <Y>value)) return m -#################### arcadia_THashMap.to_py #################### +#################### arcadia_THashMap.to_py #################### cimport cython cdef extern from *: - cdef cppclass THashMap [T, U]: + cdef cppclass THashMap [T, U]: cppclass value_type: T first U second @@ -327,10 +327,10 @@ cdef extern from *: const_iterator end() @cname("{{cname}}") -cdef dict {{cname}}(const THashMap[X,Y]& s): +cdef dict {{cname}}(const THashMap[X,Y]& s): cdef dict result = {} - cdef const THashMap[X,Y].value_type *key_value - cdef THashMap[X,Y].const_iterator iter = s.begin() + cdef const THashMap[X,Y].value_type *key_value + cdef THashMap[X,Y].const_iterator iter = s.begin() while iter != s.end(): key_value = &cython.operator.dereference(iter) result[key_value.first] = key_value.second |