Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[tidy] Run clang-tidy checks for platform-specific code #5349

Closed

Description

@brunoabinader

Follow-up for #5341 - there are some platform-specific code not being verified by the clang-tidy bot because it doesn't get compiled for Linux.

To address that, we'd need to run clang-tidy checks for each supported platform (Android, iOS, Node, Qt, Linux, macOS...). While it seems like a lot of extra effort, the runtime for platform-specific checks would be quite low because we'd only need to scan platform/*.cpp for each of these platforms.

My idea is to add an extra step on each of the build bots we have for this, and have a separate clang-tidy bot that only checks src/mbgl/*.cpp & test/*.cpp.

Thoughts?

👀 @jfirebaugh @kkaefer

Activity

  1. jfirebaugh commented on Jun 14, 2016

    @jfirebaugh
    Contributor

    Is there a way to integrate the clang tidy checks in the normal compile process? Ideally they just work like other compiler warnings/errors:

    • No duplicated parsing / analyzing work
    • All existing clang builds are tidied
    • Integrated in normal development workflow -- e.g. errors show up in Xcode, no need to wait for CI
  2. brunoabinader commented on Jun 22, 2016

    @brunoabinader
    ContributorAuthor

    @jfirebaugh I am proposing a lintcheck target that can be integrated with regular build process in #5411.

  3. added
    CoreThe cross-platform C++ core, aka mbgl
    on May 30, 2017
  4. stale commented on Nov 29, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreThe cross-platform C++ core, aka mbglarchivedArchived because of inactivitybuild

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions