Browse Source

intermediate changes
ref:4635f4dd763168c3fa295f87727595c785b4d5a4

arcadia-devtools 3 years ago
parent
commit
5c64b97bb7

+ 14 - 14
build/conf/opensource.conf

@@ -1,14 +1,14 @@
-when ($CATBOOST_OPENSOURCE == "yes") {
-    OPENSOURCE=yes
-}
-
-when ($OPENSOURCE) {
-    LOCAL_YDB_DOCKER_PUBLIC_BUILD=yes
-    CATBOOST_OPENSOURCE=yes
-    USE_DYNAMIC_IDN=yes
-    USE_DYNAMIC_AIO=yes
-    USE_DYNAMIC_ICONV=yes
-    USE_ASMLIB=no
-    SO_OUTPUTS=yes
-    UDF_NO_PROBE=yes
-}
+when ($CATBOOST_OPENSOURCE == "yes") {
+    OPENSOURCE=yes
+}
+
+when ($OPENSOURCE) {
+    LOCAL_YDB_DOCKER_PUBLIC_BUILD=yes
+    CATBOOST_OPENSOURCE=yes
+    USE_DYNAMIC_IDN=yes
+    USE_DYNAMIC_AIO=yes
+    USE_DYNAMIC_ICONV=yes
+    USE_ASMLIB=no
+    SO_OUTPUTS=yes
+    UDF_NO_PROBE=yes
+}

+ 7 - 7
build/plugins/lib/ya.make

@@ -1,7 +1,7 @@
-OWNER(g:ymake)
-
-PY23_LIBRARY()
-    PY_SRCS(
-       _metric_resolvers.py
-    )
-END()
+OWNER(g:ymake)
+
+PY23_LIBRARY()
+    PY_SRCS(
+       _metric_resolvers.py
+    )
+END()

+ 8 - 8
build/rules/py2_deprecation/readme.md

@@ -1,9 +1,9 @@
-# Python 2 в Аркадии deprecated 
-
-Arcadia мигрирует на Python 3 и код на Python 2 [объявлен deprecated](https://clubs.at.yandex-team.ru/arcadia/23044)
-
-Чтобы не перегружать большими портянками предупреждений консоль все такие ошибки по умолчанию выводятся через этот модуль и потому фигурирут одной строкой.
-
-Чтобы увидеть все ошибки достаточно запустить вашу сборку с дополнительным флагом `-DFAIL_PY2`. Это вызовет configure-ошибки во всех стартовых Python2-only модулях:
-программах - `PY2_PROGRAM`, тестах (`PY2TEST`) и Sandbox-задачах (`SANDBOX_TASK`). `PY2_LIBRARY` на данный момент не вызывает ошибок, потому что достаточно сложно
+# Python 2 в Аркадии deprecated 
+
+Arcadia мигрирует на Python 3 и код на Python 2 [объявлен deprecated](https://clubs.at.yandex-team.ru/arcadia/23044)
+
+Чтобы не перегружать большими портянками предупреждений консоль все такие ошибки по умолчанию выводятся через этот модуль и потому фигурирут одной строкой.
+
+Чтобы увидеть все ошибки достаточно запустить вашу сборку с дополнительным флагом `-DFAIL_PY2`. Это вызовет configure-ошибки во всех стартовых Python2-only модулях:
+программах - `PY2_PROGRAM`, тестах (`PY2TEST`) и Sandbox-задачах (`SANDBOX_TASK`). `PY2_LIBRARY` на данный момент не вызывает ошибок, потому что достаточно сложно
 отследить зависимости на них из разрешённых `PY23_LIBRARY` и `PY23_TEST`.

+ 33 - 33
build/scripts/process_command_files.py

@@ -1,33 +1,33 @@
-import sys
-
-
-def is_cmdfile_arg(arg):
-    return arg.startswith('@')
-
-def cmdfile_path(arg):
-    return arg[1:]
-
-def read_from_command_file(arg):
-    with open(arg) as afile:
-        return afile.read().splitlines()
-
-def skip_markers(args):
-    res = []
-    for arg in args:
-        if arg == '--ya-start-command-file' or arg == '--ya-end-command-file':
-            continue
-        res.append(arg)
-    return res
-
-def iter_args(args):
-    for arg in args:
-        if not is_cmdfile_arg(arg):
-            if arg == '--ya-start-command-file' or arg == '--ya-end-command-file':
-                continue
-            yield arg
-        else:
-            for cmdfile_arg in read_from_command_file(cmdfile_path(arg)):
-                yield cmdfile_arg
-
-def get_args(args):
-    return list(iter_args(args))
+import sys
+
+
+def is_cmdfile_arg(arg):
+    return arg.startswith('@')
+
+def cmdfile_path(arg):
+    return arg[1:]
+
+def read_from_command_file(arg):
+    with open(arg) as afile:
+        return afile.read().splitlines()
+
+def skip_markers(args):
+    res = []
+    for arg in args:
+        if arg == '--ya-start-command-file' or arg == '--ya-end-command-file':
+            continue
+        res.append(arg)
+    return res
+
+def iter_args(args):
+    for arg in args:
+        if not is_cmdfile_arg(arg):
+            if arg == '--ya-start-command-file' or arg == '--ya-end-command-file':
+                continue
+            yield arg
+        else:
+            for cmdfile_arg in read_from_command_file(cmdfile_path(arg)):
+                yield cmdfile_arg
+
+def get_args(args):
+    return list(iter_args(args))

+ 1 - 1
build/ymake.core.conf

@@ -9,7 +9,7 @@
 FAKEID=3141592653
 
 SANDBOX_FAKEID=${FAKEID}.7600000
-CPP_FAKEID=9107927
+CPP_FAKEID=9111117
 GO_FAKEID=9056219
 ANDROID_FAKEID=8821472
 CLANG_TIDY_FAKEID=8625699

+ 2 - 1
contrib/libs/cxxsupp/libcxx/.clang-format

@@ -2,7 +2,8 @@ BasedOnStyle: LLVM
 
 ---
 Language: Cpp
-Standard: Cpp03
+Standard: c++20
+SpacesInAngles: Leave
 
 AlwaysBreakTemplateDeclarations: true
 PointerAlignment: Left

+ 1 - 1
contrib/libs/cxxsupp/libcxx/import

@@ -1,6 +1,6 @@
 #!/bin/sh -e
 
-rev=968e2739
+rev=dce5fc56
 output_dir="libcxx-r$rev"
 if [ -z $1 ] ; then
     git clone https://github.com/llvm/llvm-project.git --no-checkout "$output_dir/tmp"

+ 20 - 13
contrib/libs/cxxsupp/libcxx/include/__format/format_context.h

@@ -70,9 +70,28 @@ __format_context_create(
 }
 #endif
 
+// TODO FMT Implement [format.context]/4
+// [Note 1: For a given type charT, implementations are encouraged to provide a
+// single instantiation of basic_format_context for appending to
+// basic_string<charT>, vector<charT>, or any other container with contiguous
+// storage by wrapping those in temporary objects with a uniform interface
+// (such as a span<charT>) and polymorphic reallocation. - end note]
+
+using format_context = basic_format_context<back_insert_iterator<string>, char>;
+#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+using wformat_context = basic_format_context<back_insert_iterator<wstring>, wchar_t>;
+#endif
+
 template <class _OutIt, class _CharT>
 requires output_iterator<_OutIt, const _CharT&>
-class _LIBCPP_TEMPLATE_VIS _LIBCPP_AVAILABILITY_FORMAT basic_format_context {
+class
+    // clang-format off
+    _LIBCPP_TEMPLATE_VIS
+    _LIBCPP_AVAILABILITY_FORMAT
+    _LIBCPP_PREFERRED_NAME(format_context)
+    _LIBCPP_IF_WIDE_CHARACTERS(_LIBCPP_PREFERRED_NAME(wformat_context))
+    // clang-format on
+    basic_format_context {
 public:
   using iterator = _OutIt;
   using char_type = _CharT;
@@ -138,18 +157,6 @@ private:
 #endif
 };
 
-// TODO FMT Implement [format.context]/4
-// [Note 1: For a given type charT, implementations are encouraged to provide a
-// single instantiation of basic_format_context for appending to
-// basic_string<charT>, vector<charT>, or any other container with contiguous
-// storage by wrapping those in temporary objects with a uniform interface
-// (such as a span<charT>) and polymorphic reallocation. - end note]
-
-using format_context = basic_format_context<back_insert_iterator<string>, char>;
-#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
-using wformat_context = basic_format_context<back_insert_iterator<wstring>, wchar_t>;
-#endif
-
 #endif // !defined(_LIBCPP_HAS_NO_CONCEPTS)
 
 #endif //_LIBCPP_STD_VER > 17

+ 3 - 3
contrib/libs/cxxsupp/libcxx/include/__format/parser_std_format_spec.h

@@ -303,7 +303,7 @@ protected:
     return __r.__ptr;
   }
 
-  void _LIBCPP_HIDE_FROM_ABI constexpr __substitute_width_arg_id(auto __arg) {
+  _LIBCPP_HIDE_FROM_ABI constexpr void __substitute_width_arg_id(auto __arg) {
     _LIBCPP_ASSERT(__width_as_arg == 1,
                    "Substitute width called when no substitution is required");
 
@@ -395,7 +395,7 @@ protected:
     return __r.__ptr;
   }
 
-  void _LIBCPP_HIDE_FROM_ABI constexpr __substitute_precision_arg_id(
+  _LIBCPP_HIDE_FROM_ABI constexpr void __substitute_precision_arg_id(
       auto __arg) {
     _LIBCPP_ASSERT(
         __precision_as_arg == 1 && __precision != __format::__number_max,
@@ -576,7 +576,7 @@ private:
   }
 
   /** Processes the parsed std-format-spec based on the parsed display type. */
-  void _LIBCPP_HIDE_FROM_ABI constexpr __process_display_type() {
+  _LIBCPP_HIDE_FROM_ABI constexpr void __process_display_type() {
     switch (this->__type) {
     case _Flags::_Type::__default:
     case _Flags::_Type::__string:

+ 7 - 6
contrib/libs/cxxsupp/libcxx/include/__iterator/wrap_iter.h

@@ -13,6 +13,7 @@
 #include <__config>
 #include <__debug>
 #include <__iterator/iterator_traits.h>
+#include <__memory/addressof.h>
 #include <__memory/pointer_traits.h>
 #include <type_traits>
 
@@ -54,7 +55,7 @@ public:
             : __i(__u.base())
     {
 #if _LIBCPP_DEBUG_LEVEL == 2
-        __get_db()->__iterator_copy(this, &__u);
+        __get_db()->__iterator_copy(this, _VSTD::addressof(__u));
 #endif
     }
 #if _LIBCPP_DEBUG_LEVEL == 2
@@ -62,14 +63,14 @@ public:
     __wrap_iter(const __wrap_iter& __x)
         : __i(__x.base())
     {
-        __get_db()->__iterator_copy(this, &__x);
+        __get_db()->__iterator_copy(this, _VSTD::addressof(__x));
     }
     _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_IF_NODEBUG
     __wrap_iter& operator=(const __wrap_iter& __x)
     {
-        if (this != &__x)
+        if (this != _VSTD::addressof(__x))
         {
-            __get_db()->__iterator_copy(this, &__x);
+            __get_db()->__iterator_copy(this, _VSTD::addressof(__x));
             __i = __x.__i;
         }
         return *this;
@@ -180,7 +181,7 @@ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_IF_NODEBUG
 bool operator<(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter1>& __y) _NOEXCEPT
 {
 #if _LIBCPP_DEBUG_LEVEL == 2
-    _LIBCPP_ASSERT(__get_const_db()->__less_than_comparable(&__x, &__y),
+    _LIBCPP_ASSERT(__get_const_db()->__less_than_comparable(_VSTD::addressof(__x), _VSTD::addressof(__y)),
                    "Attempted to compare incomparable iterators");
 #endif
     return __x.base() < __y.base();
@@ -264,7 +265,7 @@ operator-(const __wrap_iter<_Iter1>& __x, const __wrap_iter<_Iter2>& __y) _NOEXC
 #endif // C++03
 {
 #if _LIBCPP_DEBUG_LEVEL == 2
-    _LIBCPP_ASSERT(__get_const_db()->__less_than_comparable(&__x, &__y),
+    _LIBCPP_ASSERT(__get_const_db()->__less_than_comparable(_VSTD::addressof(__x), _VSTD::addressof(__y)),
                    "Attempted to subtract incompatible iterators");
 #endif
     return __x.base() - __y.base();

Some files were not shown because too many files changed in this diff