diff options
author | Alexander Smirnov <[email protected]> | 2025-01-29 00:51:30 +0000 |
---|---|---|
committer | Alexander Smirnov <[email protected]> | 2025-01-29 00:51:30 +0000 |
commit | 8ff0f7baba855d1e4b09946cc83a74e57033a9c5 (patch) | |
tree | f6cc7c0a7521379ca66ec6a52dc79407507b3547 /tools/cpp_style_checker/__main__.py | |
parent | a084e85adde4c3d5b408625be14338f47b7a23d9 (diff) | |
parent | f562d654c2fe8cfc407e8a6e596474c3975a2204 (diff) |
Merge branch 'rightlib' into merge-libs-250129-0050
Diffstat (limited to 'tools/cpp_style_checker/__main__.py')
-rw-r--r-- | tools/cpp_style_checker/__main__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/cpp_style_checker/__main__.py b/tools/cpp_style_checker/__main__.py index abaa32ee19c..ab8534a0ad4 100644 --- a/tools/cpp_style_checker/__main__.py +++ b/tools/cpp_style_checker/__main__.py @@ -13,7 +13,12 @@ from library.python.testing.style import rules def main(): params = linter_params.get_params() - clang_format_binary = os.path.join(params.global_resources[CLANG_FORMAT_RESOURCE], 'clang-format') + if 'clang_format_bin' in params.extra_params: + # custom clang-format + clang_format_binary = params.depends[params.extra_params['clang_format_bin']] + else: + clang_format_binary = os.path.join(params.global_resources[CLANG_FORMAT_RESOURCE], 'clang-format') + style_config_path = params.configs[0] with open(style_config_path) as f: |