Skip to content

Enable clang-tidy on cross-compilation-exclusive files#83

Description

@matthew-reynolds

馃悰 Bug Report

clang-tidy relies on the compile_commands.json files outputted by cmake during compilation. Unfortunately, this means that

a) code must always be compiled before running clang-tidy
b) code that is not compiled (For example, files specific to real HW) are not analyzed

In addition, simply cross-compiling and then running the clang-tidy script causes the tool to get confused by the cross-compilation and report tons of irrelevant errors as well as misreporting true errors.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions