|
@@ -5863,14 +5863,20 @@ macro _CPP_STYLE(EXCLUDE[], Files...) {
|
|
|
ADD_LINTER_CHECK(cpp_style tools/cpp_style_checker/cpp_style_checker DEPENDS contrib/libs/clang16/tools/clang-format EXCLUDE $EXCLUDE FILES $Files CONFIGS devtools/ya/handlers/style/style_config)
|
|
|
}
|
|
|
|
|
|
+# tag:internal
|
|
|
+# A convenient proxy
|
|
|
+macro _STYLE_CPP(CONFIG) {
|
|
|
+ SET(USE_ALL_SRCS yes)
|
|
|
+ HEADERS(.)
|
|
|
+ _ADD_LINTER_CHECK(cpp_style tools/cpp_style_checker/cpp_style_checker DEPENDS contrib/libs/clang16/tools/clang-format CONFIGS $CONFIG)
|
|
|
+}
|
|
|
+
|
|
|
#tag:test
|
|
|
### @usage STYLE_CPP()
|
|
|
###
|
|
|
-### Run clang-format test on all cpp sources of current module
|
|
|
+### Run 'ya tool clang-format' test on all cpp sources and headers of the current module
|
|
|
macro STYLE_CPP() {
|
|
|
- SET(USE_ALL_SRCS yes)
|
|
|
- HEADERS(.)
|
|
|
- _ADD_LINTER_CHECK(cpp_style tools/cpp_style_checker/cpp_style_checker DEPENDS contrib/libs/clang16/tools/clang-format CONFIGS build/config/tests/cpp_style/config.clang-format)
|
|
|
+ _STYLE_CPP("build/config/tests/cpp_style/config.clang-format")
|
|
|
}
|
|
|
|
|
|
### @usage: HEADERS([Dir1 Dir2 ...])
|