Skip to content

Use clang-tidy instead of cpplint to autolint #67

@twsearle

Description

@twsearle

Description

It would be nice if the linter would just automatically apply a style so that we never have to think about our cpp style outside of discussions of the linter configuration.

clang-tidy seems like the standard tool for this. It supports the same google style options as cpplint and purports to be able to automatically detect and fix issues. Linting can be switched off using comments in the code for specific blocks if necessary.

Dependencies

  • It isn't worth even attempting this until we get our new computing infrastructure and can easily access modern compilers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions