Просмотр исходного кода

STYLE_CPP macro
ce51bc27ba721a7aaebfe399c3468b94b8203499

egovol 10 месяцев назад
Родитель
Сommit
f2d47d896f
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      build/ymake.core.conf

+ 8 - 0
build/ymake.core.conf

@@ -5815,6 +5815,14 @@ 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:test
+### @usage STYLE_CPP()
+###
+### Run clang-format test on all cpp sources of current module
+macro STYLE_CPP() {
+    _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)
+}
+
 ### @usage: CLANG_EMIT_AST_CXX_RUN_TOOL(Tool Args... [SOURCES ...] [OPTS ...] [IN ...] [IN_NOPARSE ...] [TOOL ...] [OUTPUT_INCLUDES ...] [INDUCED_DEPS ...] [IN_DEPS ...] [STDOUT out-file-name] [STDOUT_NOAUTO out-file-name] [CWD cwd])
 ###
 ### Emit Clang ASTs from .cpp files listed in SOURCES parameter (CXXFLAGS and LLVM_OPTS are passed in, while CFLAGS and C_FLAGS_PLATFORM are not) and run tool Tool with Args... .