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

Add clang-tidy mode #936

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add clang-tidy mode #936

wants to merge 6 commits into from

Conversation

pudelkoM
Copy link
Member

@pudelkoM pudelkoM commented Mar 19, 2022

This PR adds a clang-tidy Bazel config (--config=clang-tidy) to run said tool on C/C++ code. Additionally, we add a CI check for a small set of already compliant source files.

@pudelkoM pudelkoM changed the base branch from main to bazel-4.2.2 March 19, 2022 20:58
Base automatically changed from bazel-4.2.2 to main March 21, 2022 17:10
@codecov
Copy link

codecov bot commented Mar 21, 2022

Codecov Report

Merging #936 (f37ddb4) into main (9b2dc9a) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #936   +/-   ##
=======================================
  Coverage   79.20%   79.20%           
=======================================
  Files         339      339           
  Lines       30928    30928           
=======================================
+ Hits        24495    24496    +1     
+ Misses       6433     6432    -1     
Impacted Files Coverage Δ
stratum/p4c_backends/fpm/parser_field_mapper.cc 92.02% <0.00%> (+0.26%) ⬆️

@pudelkoM pudelkoM marked this pull request as draft March 21, 2022 17:45
@pudelkoM pudelkoM marked this pull request as ready for review March 21, 2022 21:37
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.

None yet

1 participant