diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /build | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'build')
-rw-r--r-- | build/rules/contrib_restricted.policy | 2 | ||||
-rwxr-xr-x | build/scripts/build_mn.py | 12 | ||||
-rw-r--r-- | build/scripts/gen_mx_table.py | 2 | ||||
-rw-r--r-- | build/stdafx.hpp | 4 | ||||
-rw-r--r-- | build/ymake.core.conf | 28 | ||||
-rwxr-xr-x | build/ymake_conf.py | 4 |
6 files changed, 26 insertions, 26 deletions
diff --git a/build/rules/contrib_restricted.policy b/build/rules/contrib_restricted.policy index c64704c71f..a83ead1904 100644 --- a/build/rules/contrib_restricted.policy +++ b/build/rules/contrib_restricted.policy @@ -190,4 +190,4 @@ ALLOW yandex_io -> contrib/restricted/patched/hostap_client # All peerdirs to contrib/restricted from outside are prohibited # ALLOW contrib -> contrib/restricted -DENY .* -> contrib/restricted +DENY .* -> contrib/restricted diff --git a/build/scripts/build_mn.py b/build/scripts/build_mn.py index 66594dfaa0..5bb03c247c 100755 --- a/build/scripts/build_mn.py +++ b/build/scripts/build_mn.py @@ -113,12 +113,12 @@ class BuildMns(BuildMnBase): self.mnrankingSuffix = mnrankingSuffix self.mnlistname = listname + mnrankingSuffix self.mnlistelem = "const NMatrixnet::TMnSsePtr*" - mnlisttype = "TMap< TString, {0} >".format(self.mnlistelem) + mnlisttype = "TMap< TString, {0} >".format(self.mnlistelem) self.mnlist = "const {0} {1}".format(mnlisttype, self.mnlistname) self.mnmultilistname = "{0}{1}Multi".format(listname, self.mnrankingSuffix) self.mnmultilistelem = "const NMatrixnet::TMnMultiCategPtr*" - mnmultilisttype = "TMap< TString, {0} >".format(self.mnmultilistelem) + mnmultilisttype = "TMap< TString, {0} >".format(self.mnmultilistelem) self.mnmultilist = "const {0} {1}".format(mnmultilisttype, self.mnmultilistname) def InitForAll(self, argv): @@ -264,10 +264,10 @@ class BuildMns(BuildMnBase): if mnnames: mndata = self.mnlistname + "_data" - tmpSrcFile.write("static const std::pair< TString, {0} > {1}[] = {{\n".format(self.mnlistelem, mndata)) + tmpSrcFile.write("static const std::pair< TString, {0} > {1}[] = {{\n".format(self.mnlistelem, mndata)) for item in mnnames: mnname = re.sub("[^-a-zA-Z0-9_]", "_", item) - tmpSrcFile.write(" std::make_pair(TString(\"{0}\"), &staticMn{1}{2}Ptr),\n".format(item, self.mnrankingSuffix, mnname)) + tmpSrcFile.write(" std::make_pair(TString(\"{0}\"), &staticMn{1}{2}Ptr),\n".format(item, self.mnrankingSuffix, mnname)) tmpSrcFile.write("};\n") tmpSrcFile.write("{0}({1},{1} + sizeof({1}) / sizeof({1}[0]));\n\n".format(self.mnlist, mndata)) else: @@ -275,10 +275,10 @@ class BuildMns(BuildMnBase): if mnmultinames: mnmultidata = self.mnmultilistname + "_data" - tmpSrcFile.write("static const std::pair< TString, {0} > {1}[] = {{\n".format(self.mnmultilistelem, mnmultidata)) + tmpSrcFile.write("static const std::pair< TString, {0} > {1}[] = {{\n".format(self.mnmultilistelem, mnmultidata)) for item in mnmultinames: mnname = re.sub("[^-a-zA-Z0-9_]", "_", item) - tmpSrcFile.write(" std::make_pair(TString(\"{0}\"), &staticMnMulti{1}{2}Ptr),\n".format(item, self.mnrankingSuffix, mnname)) + tmpSrcFile.write(" std::make_pair(TString(\"{0}\"), &staticMnMulti{1}{2}Ptr),\n".format(item, self.mnrankingSuffix, mnname)) tmpSrcFile.write("};\n") tmpSrcFile.write("{0}({1},{1} + sizeof({1}) / sizeof({1}[0]));\n".format(self.mnmultilist, mnmultidata)) else: diff --git a/build/scripts/gen_mx_table.py b/build/scripts/gen_mx_table.py index 3a83ce3d94..187c21c539 100644 --- a/build/scripts/gen_mx_table.py +++ b/build/scripts/gen_mx_table.py @@ -28,7 +28,7 @@ namespace { } }; - struct TFormulas: public THashMap<size_t, TAutoPtr<TFml>> { + struct TFormulas: public THashMap<size_t, TAutoPtr<TFml>> { inline TFormulas() { TBlob b = TBlob::NoCopy(MxFormulas, MxFormulasSize); TArchiveReader ar(b); diff --git a/build/stdafx.hpp b/build/stdafx.hpp index 5c00eaf416..98b15adda0 100644 --- a/build/stdafx.hpp +++ b/build/stdafx.hpp @@ -132,7 +132,7 @@ #include <util/system/fstat.h> #include <util/system/madvise.h> #include <util/system/valgrind.h> -#include <util/system/shmat.h> +#include <util/system/shmat.h> #include <util/system/rusage.h> #include <util/system/yassert.h> #include <util/system/tempfile.h> @@ -236,7 +236,7 @@ #include <util/generic/function.h> #include <util/generic/flags.h> #include <util/generic/strfcpy.h> -#include <util/generic/string.h> +#include <util/generic/string.h> #include <util/generic/fastqueue.h> #include <util/generic/explicit_type.h> #include <util/generic/queue.h> diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 4d08923b19..081833998b 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -1027,7 +1027,7 @@ macro GRPC() { # Java JAVA_PROTO_PLUGIN(grpc_java contrib/tools/protoc/plugins/grpc_java DEPS $JAVA_GRPC_STUB $JAVA_GRPC_PROTOBUF) -} +} # tag:fbs FLATC_FLAGS_VALUE= @@ -2034,7 +2034,7 @@ macro DISABLE_DATA_VALIDATION() { TEST_DATA_VALUE= ### @usage: DATA([path...]) ### -### Specifies the path to the data necessary test. +### Specifies the path to the data necessary test. ### Valid values are: arcadia/<path> , arcadia_tests_data/<path> and sbr://<resource_id>. ### In the latter case resource will be brought to the working directory of the test before it is started ### @@ -4694,7 +4694,7 @@ macro ANNOTATION_PROCESSOR(Args...) { EXCLUDE_VALUE= ### EXCLUDE(prefixes) ### -### The macro is in development. +### The macro is in development. ### Specifies which libraries should be excluded from the classpath. macro EXCLUDE(Args...) { SET_APPEND(EXCLUDE_VALUE $ARGS_DELIM $Args) @@ -4709,7 +4709,7 @@ JAVA_SRCS_VALUE= ### 1. X SRCDIR - specify the directory x is performed relatively to search the source code for these patterns. If there is no SRCDIR, the source will be searched relative to the module directory. ### 2. PACKAGE_PREFIX x - use if source paths relative to the SRCDIR does not coincide with the full class names. For example, if all sources of module are in the same package, you can create a directory package/name , and just put the source code in the SRCDIR and specify PACKAGE_PREFIX package.name. ### -### @example: +### @example: ### - example/ya.make ### ### JAVA_PROGRAM() @@ -6398,7 +6398,7 @@ macro _PY3_COMPILE_BYTECODE(SrcX, Src, Dst) { ### @usage: ARCHIVE_ASM(NAME archive_name files...) ### ### Similar to the macro ARCHIVE, but: -### 1. works faster and it is better to use for large files. +### 1. works faster and it is better to use for large files. ### 2. Different syntax (see examples in codesearch or users/pg/tests/archive_test) macro ARCHIVE_ASM(NAME="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Files...) { .CMD=$ARCH_TOOL -q $DONTCOMPRESS ${input;join=\: :Files}: -o ${output;chksum;suf=$OBJ_SUF.rodata:NAME} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p AR"} ${kv;hide:"pc light-cyan"} @@ -6618,7 +6618,7 @@ macro NO_COMPILER_WARNINGS() { ### @usage: WERROR() ### Consider warnings as errors in the current module. -### In the bright future will be removed, since WERROR is the default. +### In the bright future will be removed, since WERROR is the default. ### Priorities: NO_COMPILER_WARNINGS > NO_WERROR > WERROR_MODE > WERROR. macro WERROR() { ENABLE(WERROR) @@ -6635,8 +6635,8 @@ macro NO_WERROR() { ### Disable C++ shadowing warnings. macro NO_WSHADOW() { ENABLE(NO_WSHADOW) -} - +} + # tag:internal ### @usage: NO_PLATFORM_RESOURCES() # internal ### Exclude dependency on platform resources libraries. @@ -6813,7 +6813,7 @@ macro GENERATE_ENUM_SERIALIZATION(File) { .CMD=$ENUM_PARSER_TOOL ${input:File} --include-path ${input;rootrel:File} --output ${output;chksum;suf=_serialized.cpp:File} ${output_include;hide:File} ${output_include;hide:"util/generic/serialized_enum.h"} ${kv;hide:"p EN"} ${kv;hide:"pc yellow"} .SEM=generate_enum_serilization ${input:File} ${output;hide;suf=_serialized.o:File} INCLUDE_HEADERS ${input;rootrel:File} ${tool;hide:"tools/enum_parser/enum_parser/bin"} PEERDIR(tools/enum_parser/enum_serialization_runtime) -} +} ### @usage: GENERATE_ENUM_SERIALIZATION_WITH_HEADER(File.h) ### @@ -6941,17 +6941,17 @@ SCHEEME2_STRUCT_INFO_FLAGS=-f "const static ui32 RecordSig" -u "RecordSig" --gcc ### ### Generates a C++ description for structure(contains the field RecordSig) in the specified file (and connected). ### -### 1. ${scheeme_name}.inc - the name of the generated file. +### 1. ${scheeme_name}.inc - the name of the generated file. ### 2. Use an environment variable - DATAWORK_SCHEEME_EXPORT_FLAGS that allows to specify flags to tools/structparser ### -### @example: +### @example: ### ### SET(DATAWORK_SCHEEME_EXPORT_FLAGS --final_only -m "::") ### ### all options are passed to structparser (in this example --final_only - do not export heirs with public base that contains the required field,,- m "::" only from the root namespace) -### sets in extra option +### sets in extra option ### -### @example: +### @example: ### ### SET(EXTRACT_STRUCT_INFO_FLAGS -f \"const static ui32 RecordSig\" ### -u \"RecordSig\" -n${scheeme_name}SchemeInfo ----gcc44_no_typename no_complex_overloaded_func_export @@ -7266,7 +7266,7 @@ TOUCH_JAVA_UNIT=$YMAKE_PYTHON ${input:"build/scripts/touch.py"} ${kv;hide:"java NO_CHECK_IMPORTS_FOR_VALUE=None ### @usage: NO_CHECK_IMPORTS([patterns]) ### -### Do not run checks on imports of Python modules. +### Do not run checks on imports of Python modules. ### Optional parameter mask patterns describes the names of the modules that do not need to check. macro NO_CHECK_IMPORTS(Masks...) { SET(NO_CHECK_IMPORTS_FOR_VALUE $Masks) diff --git a/build/ymake_conf.py b/build/ymake_conf.py index f8e6491892..30219eb85e 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -1394,7 +1394,7 @@ class GnuCompiler(Compiler): self.c_defines.append('-D_YNDX_LIBUNWIND_ENABLE_EXCEPTION_BACKTRACE') if self.target.is_ios: - self.c_defines.extend(['-D_XOPEN_SOURCE', '-D_DARWIN_C_SOURCE']) + self.c_defines.extend(['-D_XOPEN_SOURCE', '-D_DARWIN_C_SOURCE']) if preset('MAPSMOBI_BUILD_TARGET') and self.target.is_arm: self.c_foptions.append('-fembed-bitcode') @@ -1524,7 +1524,7 @@ class GnuCompiler(Compiler): emit('CXX_COMPILER', '${quo:CXX_COMPILER_UNQUOTED}') emit('NOGCCSTACKCHECK', 'yes') emit('SFDL_FLAG', self.sfdl_flags, '-o', '$SFDL_TMP_OUT') - emit('WERROR_FLAG', '-Werror') + emit('WERROR_FLAG', '-Werror') # TODO(somov): Убрать чтение настройки из os.environ emit('USE_ARC_PROFILE', 'yes' if preset('USE_ARC_PROFILE') or os.environ.get('USE_ARC_PROFILE') else 'no') emit('DEBUG_INFO_FLAGS', self.debug_info_flags) |