diff options
| author | alevitskii <[email protected]> | 2025-03-07 20:10:03 +0300 |
|---|---|---|
| committer | alevitskii <[email protected]> | 2025-03-07 20:30:16 +0300 |
| commit | 7eee4fb7ae7031d07abc0834fbfb528ebb377e12 (patch) | |
| tree | faf1641bc8b05c91ca37bcf93cd329477e863379 /build/plugins/_dart_fields.py | |
| parent | c49489fab07af7d2cf8e7fdcd67e838a54f75b8e (diff) | |
More generic custom clang-format delivery to wrapper mechanism
Wider custom clang-format delivery to wrapper mechanism
commit_hash:a3b4f93090e386cb7a24afa302fd947cca0c090a
Diffstat (limited to 'build/plugins/_dart_fields.py')
| -rw-r--r-- | build/plugins/_dart_fields.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/plugins/_dart_fields.py b/build/plugins/_dart_fields.py index 8d2c471e539..e36c416dcee 100644 --- a/build/plugins/_dart_fields.py +++ b/build/plugins/_dart_fields.py @@ -670,7 +670,7 @@ class LintConfigs: class LintExtraParams: KEY = 'LINT-EXTRA-PARAMS' - _CUSTOM_CLANG_FORMAT_BIN_ALLOWED_PATHS = ('ads', 'bigrt', 'grut', 'yabs') + _CUSTOM_CLANG_FORMAT_ALLOWED_PATHS = ('ads', 'bigrt', 'grut', 'yabs') @classmethod def from_macro_args(cls, unit, flat_args, spec_args): @@ -680,9 +680,9 @@ class LintExtraParams: message = 'Wrong EXTRA_PARAMS value: "{}". Values must have format "name=value".'.format(arg) ymake.report_configure_error(message) raise DartValueError() - if 'clang_format_bin' in arg: + if 'custom_clang_format' in arg: upath = unit.path()[3:] - if not upath.startswith(cls._CUSTOM_CLANG_FORMAT_BIN_ALLOWED_PATHS): + if not upath.startswith(cls._CUSTOM_CLANG_FORMAT_ALLOWED_PATHS): message = f'Custom clang-format is not allowed in upath: {upath}' ymake.report_configure_error(message) raise DartValueError() |
