Browse Source

Restoring authorship annotation for <getsiu@yandex-team.ru>. Commit 2 of 2.

getsiu 3 years ago
parent
commit
5c1eb9f48f

+ 32 - 32
build/plugins/lj_archive.py

@@ -1,44 +1,44 @@
-def onlj_archive(unit, *args): 
+def onlj_archive(unit, *args):
     """
         @usage: LJ_ARCHIVE(NAME Name LuaFiles...)
         Precompile .lua files using LuaJIT and archive both sources and results using sources names as keys
     """
-    def iter_luas(l): 
-        for a in l: 
-            if a.endswith('.lua'): 
-                yield a 
- 
-    def iter_objs(l): 
-        for a in l: 
-            s = a[:-3] + 'raw' 
+    def iter_luas(l):
+        for a in l:
+            if a.endswith('.lua'):
+                yield a
+
+    def iter_objs(l):
+        for a in l:
+            s = a[:-3] + 'raw'
             unit.on_luajit_objdump(['OUT', s, a])
-            yield s 
- 
-    luas = list(iter_luas(args)) 
-    objs = list(iter_objs(luas)) 
- 
+            yield s
+
+    luas = list(iter_luas(args))
+    objs = list(iter_objs(luas))
+
     unit.onarchive_by_keys(['DONTCOMPRESS', 'NAME', 'LuaScripts.inc', 'KEYS', ':'.join(luas)] + objs)
     unit.onarchive_by_keys(['DONTCOMPRESS', 'NAME', 'LuaSources.inc', 'KEYS', ':'.join(luas)] + luas)
- 
-def onlj_21_archive(unit, *args): 
+
+def onlj_21_archive(unit, *args):
     """
         @usage: LJ_21_ARCHIVE(NAME Name LuaFiles...) # deprecated
         Precompile .lua files using LuaJIT 2.1 and archive both sources and results using sources names as keys
     """
-    def iter_luas(l): 
-        for a in l: 
-            if a.endswith('.lua'): 
-                yield a 
- 
-    def iter_objs(l): 
-        for a in l: 
-            s = a[:-3] + 'raw' 
+    def iter_luas(l):
+        for a in l:
+            if a.endswith('.lua'):
+                yield a
+
+    def iter_objs(l):
+        for a in l:
+            s = a[:-3] + 'raw'
             unit.on_luajit_21_objdump(['OUT', s, a])
-            yield s 
- 
-    luas = list(iter_luas(args)) 
-    objs = list(iter_objs(luas)) 
- 
-    unit.onarchive_by_keys(['DONTCOMPRESS', 'NAME', 'LuaScripts.inc', 'KEYS', ':'.join(luas)] + objs) 
-    unit.onarchive_by_keys(['DONTCOMPRESS', 'NAME', 'LuaSources.inc', 'KEYS', ':'.join(luas)] + luas) 
- 
+            yield s
+
+    luas = list(iter_luas(args))
+    objs = list(iter_objs(luas))
+
+    unit.onarchive_by_keys(['DONTCOMPRESS', 'NAME', 'LuaScripts.inc', 'KEYS', ':'.join(luas)] + objs)
+    unit.onarchive_by_keys(['DONTCOMPRESS', 'NAME', 'LuaSources.inc', 'KEYS', ':'.join(luas)] + luas)
+

+ 1 - 1
build/sanitize-blacklist.txt

@@ -1,4 +1,4 @@
 src:*contrib/tools/python/src*
 src:*contrib/tools/python3/src*
-src:*contrib/libs/luajit* 
+src:*contrib/libs/luajit*
 type:std::__*::locale::id=init

+ 7 - 7
build/ymake.core.conf

@@ -6423,8 +6423,8 @@ macro PIRE_INLINE(FILES...) {
 ### Example: https://wiki.yandex-team.ru/yatool/howtowriteyamakefiles/#a1ispolzujjtekomanduarchive
 macro ARCHIVE(NAME="", DONTCOMPRESS?"-p":"", REQUIREMENTS[], Files...) {
     .CMD=$ARCH_TOOL -q -x $DONTCOMPRESS ${input;join=\: :Files}: -o ${output;chksum;addincl;noauto:NAME} ${requirements;hide:REQUIREMENTS} ${kv;hide:"p AR"} ${kv;hide:"pc light-red"}
-} 
- 
+}
+
 ### @usage: ARCHIVE_BY_KEYS(archive_name key [DONT_COMPRESS] files...)
 ###
 ### Add arbitrary data to a module be accessible by specified key.
@@ -6776,14 +6776,14 @@ macro NO_CYTHON_COVERAGE() {
 LUAJIT_PATH=${ARCADIA_ROOT}/contrib/libs/luajit
 macro _LUAJIT_OBJDUMP(Src, OUT="") {
    .CMD=${cwd:LUAJIT_PATH} ${tool:"contrib/libs/luajit/compiler"} -b -g ${input:Src} ${output;noauto:OUT} ${kv;hide:"p LJ"} ${kv;hide:"pc light-cyan"}
-} 
- 
+}
+
 # tag:lua-specific
 LUAJIT_21_PATH=${ARCADIA_ROOT}/contrib/libs/luajit_21
 macro _LUAJIT_21_OBJDUMP(Src, OUT="") {
-   .CMD=${cwd:LUAJIT_21_PATH} ${tool:"contrib/libs/luajit_21/compiler"} -b -g ${input:Src} ${output;noauto:OUT} ${kv;hide:"p LJ"} ${kv;hide:"pc light-cyan"} 
-} 
- 
+   .CMD=${cwd:LUAJIT_21_PATH} ${tool:"contrib/libs/luajit_21/compiler"} -b -g ${input:Src} ${output;noauto:OUT} ${kv;hide:"p LJ"} ${kv;hide:"pc light-cyan"}
+}
+
 macro _MX_BIN_TO_INFO(Src) {
     .CMD=${tool:"tools/mx_bin2info"} ${input:Src} ${output;nopath;noext;noauto:Src.info} ${kv;hide:"p MX"} ${kv;hide:"pc yellow"}
 }

+ 1 - 1
contrib/libs/ya.make

@@ -394,7 +394,7 @@ IF (OS_LINUX)
         ibdrv/ut
         proc
         luajit
-        luajit_21 
+        luajit_21
         libaio
         libcap
         libmnl

+ 1 - 1
library/cpp/yson_pull/consumer.h

@@ -3,7 +3,7 @@
 #include "event.h"
 
 #include <util/generic/strbuf.h>
-#include <util/system/types.h> 
+#include <util/system/types.h>
 
 namespace NYsonPull {
     class IConsumer {

+ 1 - 1
library/cpp/yson_pull/detail/cescape_encode.h

@@ -1,6 +1,6 @@
 #pragma once
 
-#include <util/system/types.h> 
+#include <util/system/types.h>
 
 // Whether to ensure strict ASCII compatibility
 // Turns UTF-8 strings into unreadable garbage for no known reason

+ 1 - 1
library/cpp/yson_pull/detail/number.h

@@ -1,6 +1,6 @@
 #pragma once
 
-#include <util/system/types.h> 
+#include <util/system/types.h>
 
 namespace NYsonPull {
     namespace NDetail {

+ 1 - 1
library/cpp/yson_pull/detail/reader.h

@@ -75,7 +75,7 @@ namespace NYsonPull {
             none = 3 + (5 << 2),    // = 10111b
         };
 
-#define CHAR_SUBCLASS(x) (static_cast<ui8>(x) >> 2) 
+#define CHAR_SUBCLASS(x) (static_cast<ui8>(x) >> 2)
 
         inline char_class get_char_class(ui8 ch) {
 #define NN char_class::none

+ 2 - 2
library/cpp/yson_pull/detail/symbols.h

@@ -1,12 +1,12 @@
 #pragma once
 
 #include <util/generic/strbuf.h>
-#include <util/system/types.h> 
+#include <util/system/types.h>
 
 namespace NYsonPull {
     namespace NDetail {
         namespace NSymbol {
-#define SYM(name, value) constexpr ui8 name = value 
+#define SYM(name, value) constexpr ui8 name = value
 
             //! Indicates the beginning of a list.
             SYM(begin_list, '[');

+ 1 - 1
library/cpp/yson_pull/position_info.h

@@ -1,7 +1,7 @@
 #pragma once
 
 #include <util/generic/maybe.h>
-#include <util/system/types.h> 
+#include <util/system/types.h>
 
 namespace NYsonPull {
     struct TPositionInfo {

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