aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriaz1607 <iaz1607@yandex-team.com>2024-04-03 14:26:58 +0300
committeriaz1607 <iaz1607@yandex-team.com>2024-04-03 14:45:03 +0300
commitc54a70807c9984ac7ea3eeca993a1202b5e9c71b (patch)
treef04a218dd0d6cc33e67014a7248755fd1c091db1
parent281d516d4fe9b53e42e62d216bfbd0d39d3b5b80 (diff)
downloadydb-c54a70807c9984ac7ea3eeca993a1202b5e9c71b.tar.gz
Fix tidy graph generation
d73e9d9d44959cde8441e9d1fca4068504282b2e
-rw-r--r--build/conf/python.conf10
-rw-r--r--build/ymake.core.conf20
2 files changed, 26 insertions, 4 deletions
diff --git a/build/conf/python.conf b/build/conf/python.conf
index 72bcec2db7..2df0e3e47e 100644
--- a/build/conf/python.conf
+++ b/build/conf/python.conf
@@ -551,7 +551,12 @@ module PY2_LIBRARY: _LIBRARY {
PY_PROTO_MYPY_PLUGIN_INTERNAL=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=__intpy2___pb2.pyi:File} ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__intpy2___pb2.pyi:File} ${nopath;noext;suf=_pb2.pyi:File}"})
}
SET(MODULE_LANG PY2)
+
ADD_CLANG_TIDY()
+ when ($TIDY_ENABLED == "yes") {
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_project_map.json
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_default_map.json
+ }
}
@@ -592,7 +597,12 @@ module PY3_LIBRARY: _LIBRARY {
PY_PROTO_MYPY_PLUGIN_INTERNAL=$PY_PROTO_MYPY_PLUGIN_BASE ${output;hide;noauto;norel;nopath;noext;suf=__intpy3___pb2.pyi:File} ${hide;kv:"ext_out_name_for_${nopath;noext;suf=__intpy3___pb2.pyi:File} ${nopath;noext;suf=_pb2.pyi:File}"})
}
SET(MODULE_LANG PY3)
+
ADD_CLANG_TIDY()
+ when ($TIDY_ENABLED == "yes") {
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_project_map.json
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_default_map.json
+ }
}
diff --git a/build/ymake.core.conf b/build/ymake.core.conf
index fd1bb1e8c4..160cd249ed 100644
--- a/build/ymake.core.conf
+++ b/build/ymake.core.conf
@@ -1117,10 +1117,6 @@ MODULE_TYPE=UNKNOWN
macro ADD_CLANG_TIDY() {
ADD_YTEST($MODULE_PREFIX$REALPRJNAME clang_tidy)
- when ($TIDY_ENABLED == "yes") {
- _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_project_map.json
- _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_default_map.json
- }
}
# tag:internal
@@ -1229,7 +1225,14 @@ module PROGRAM: _BASE_PROGRAM {
.ALIASES=EXTRALIBS=PY_EXTRALIBS
ADD_YTEST($MODULE_PREFIX$REALPRJNAME coverage.extractor)
+
ADD_CLANG_TIDY()
+
+ when ($TIDY_ENABLED == "yes") {
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_project_map.json
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_default_map.json
+ }
+
_DONT_REQUIRE_LICENSE()
}
@@ -1890,6 +1893,10 @@ module LIBRARY: _LIBRARY {
SET(MODULE_LANG CPP)
ADD_CLANG_TIDY()
+ when ($TIDY_ENABLED == "yes") {
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_project_map.json
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_default_map.json
+ }
}
# tag:internal
@@ -2081,7 +2088,12 @@ module DLL_UNIT: _LINK_UNIT {
SET(MODULE_TYPE DLL)
SET(MODULE_TAG DLL)
SET(MODULE_LANG CPP)
+
ADD_CLANG_TIDY()
+ when ($TIDY_ENABLED == "yes") {
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_project_map.json
+ _MAKEFILE_INCLUDE_LIKE_DEPS+=${ARCADIA_ROOT}/build/yandex_specific/config/clang_tidy/tidy_default_map.json
+ }
when ($EXPORTS_FILE) {
_EXPORT_SCRIPT_SEM=&& use_export_script ${input:EXPORTS_FILE}