Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tools] Add initial support for clang-tidy #303

Merged
merged 1 commit into from
Mar 20, 2020
Merged

Conversation

VivekPanyam
Copy link
Collaborator

Initial support for running clang-tidy locally. It will be enabled in CI once all reported issues are fixed.

@codecov
Copy link

codecov bot commented Mar 19, 2020

Codecov Report

Merging #303 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #303   +/-   ##
=======================================
  Coverage   90.44%   90.44%           
=======================================
  Files          63       63           
  Lines        3788     3788           
=======================================
  Hits         3426     3426           
  Misses        362      362           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b0a9e5...cad5d8e. Read the comment docs.


echo "Generating compile commands..."

mkdir -p /tmp/bazel-compdb
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider using a random temporary directory - so multiple runs could co-exist. Might be helpful in some scenarios?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We want that directory to persist so we don't have to redownload the tool on every invocation. The directory just stores the bazel-compdb tool so it should be fine for multiple instances of the repo to use the same directory

@VivekPanyam VivekPanyam merged commit 23ac5ea into master Mar 20, 2020
@VivekPanyam VivekPanyam deleted the clang-tidy branch March 20, 2020 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants