Skip to content
  • Roman Stratiienko's avatar
    drm_hwcomposer: CI: Upgrade clang-* to v12 · d26619b5
    Roman Stratiienko authored
    - Enabling readability-ientifier-naming tidy check does require to specify
    MacroDefinitionIgnoredRegexp key, which is available only in clang-tidy-12.
    - Clang-12 isn't available on ubuntu 20.10, therefore upgrade to 21.04.
    - "DEBIAN_FRONTEND: noninteractive" is required to prevent ubuntu 21.04
    from hanging, presumably due to waiting for the user input.
    - A positive side effect of upgrading to clang-12 is new clang-tidy-12,
    which exposed new issues in the code which is also fixed by this commit,
        Failed cppcoreguidelines-narrowing-conversions check with error:
        error: narrowing conversion from 'uint32_t' (aka 'unsigned int') to 'float'
    require explicit casting to pass the check, while some of such fails are caused
    by incorrect variable type and fixed by changing the type to correct one.
    Signed-off-by: default avatarRoman Stratiienko <>