diff options
author | egovol <egovol@yandex-team.com> | 2024-05-08 19:05:59 +0300 |
---|---|---|
committer | egovol <egovol@yandex-team.com> | 2024-05-08 19:16:49 +0300 |
commit | f2d47d896f4913ff5da2f328149322516fbadde6 (patch) | |
tree | b4e54cb8ae8ec4709c10dd4176190d5662bb61d3 | |
parent | 45e12594141ec0e789b509528ab211dfd3734bfe (diff) | |
download | ydb-f2d47d896f4913ff5da2f328149322516fbadde6.tar.gz |
STYLE_CPP macro
ce51bc27ba721a7aaebfe399c3468b94b8203499
-rw-r--r-- | build/ymake.core.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 7394c4cd60..b40ced38b7 100644 --- a/build/ymake.core.conf +++ b/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... . |