diff options
author | Devtools Arcadia <arcadia-devtools@yandex-team.ru> | 2022-02-07 18:08:42 +0300 |
---|---|---|
committer | Devtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net> | 2022-02-07 18:08:42 +0300 |
commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /build/plugins/cpp_style.py | |
download | ydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'build/plugins/cpp_style.py')
-rw-r--r-- | build/plugins/cpp_style.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/build/plugins/cpp_style.py b/build/plugins/cpp_style.py new file mode 100644 index 0000000000..3ab78b7320 --- /dev/null +++ b/build/plugins/cpp_style.py @@ -0,0 +1,19 @@ +import os + +from _common import sort_by_keywords + + +def on_style(unit, *args): + def it(): + yield 'DONT_PARSE' + + for f in args: + f = f[len('${ARCADIA_ROOT}') + 1:] + + if '/generated/' in f: + continue + + yield f + yield '/cpp_style/files/' + f + + unit.onresource(list(it())) |