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

Ignore generated files#585

Merged
jviszlai merged 1 commit intomasterfrom
bug/clang_tidy_generated_files
Nov 22, 2019
Merged

Ignore generated files#585
jviszlai merged 1 commit intomasterfrom
bug/clang_tidy_generated_files

Conversation

@oswinso
Copy link
Contributor

@oswinso oswinso commented Nov 6, 2019

Description

After changing the protobuf files in #583, CI was failing because the generated files weren't weren't passing the clang-tidy lint.

This PR does the following:

  • Excludes generated files (for now implemented by a negative regex) from clang-tidy

Fixes #584

Testing steps (If relevant)

Test clang-tidy

  1. Make some change to igvc.pb.h
  2. Run clang-tidy: .circleci/utils/tidy.sh

Expectation: Even though igvc.pb.h was modified, because of the negative regex it says No changed cpp files!

Self Checklist

  • I have formatted my code using make format
  • I have tested that the new behaviour works

@oswinso oswinso added type ➤ bug Bugs to existing features that need to be fixed. area ➤ CI Issues relating to CI labels Nov 6, 2019
Copy link
Contributor

@jviszlai jviszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jviszlai jviszlai merged commit 58ea54c into master Nov 22, 2019
@oswinso oswinso deleted the bug/clang_tidy_generated_files branch January 16, 2020 00:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area ➤ CI Issues relating to CI type ➤ bug Bugs to existing features that need to be fixed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clang-tidy runs on generated files

2 participants