Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Feat/more clang tidy #1724

Merged
merged 12 commits into from
Jul 15, 2020
Merged

Feat/more clang tidy #1724

merged 12 commits into from
Jul 15, 2020

Conversation

pattivacek
Copy link
Collaborator

I've enabled more clang-tidy checks and cleaned up a lot of related cruft. Note that this currently includes #1720.

@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2020

Codecov Report

Merging #1724 into master will increase coverage by 0.19%.
The diff coverage is 83.54%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1724      +/-   ##
==========================================
+ Coverage   76.25%   76.44%   +0.19%     
==========================================
  Files         185      185              
  Lines       13439    13404      -35     
==========================================
- Hits        10248    10247       -1     
+ Misses       3191     3157      -34     
Impacted Files Coverage Δ
src/aktualizr_lite/ostree_mock.cc 58.33% <ø> (-41.67%) ⬇️
src/aktualizr_primary/secondary.cc 71.72% <0.00%> (-21.14%) ⬇️
src/aktualizr_secondary/aktualizr_secondary.h 100.00% <ø> (ø)
...aktualizr_secondary/aktualizr_secondary_metadata.h 100.00% <ø> (ø)
src/cert_provider/main.cc 63.72% <ø> (ø)
src/libaktualizr-isotp/isotp_allocate.cc 0.00% <ø> (ø)
src/libaktualizr-isotp/isotp_conn.cc 0.00% <0.00%> (ø)
src/libaktualizr-isotp/isotpsecondary.cc 0.00% <0.00%> (ø)
src/libaktualizr-posix/ipuptanesecondary.h 81.81% <ø> (ø)
src/libaktualizr/bootstrap/bootstrap.cc 57.77% <ø> (ø)
... and 49 more

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 6091708...809e14e. Read the comment docs.

Not a lot of changes, but a few functions have been made const or
static.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Debian Buster (labeled as "testing") hasn't done anything special for us
in a long time, and we tend to prefer Ubuntu as our baseline in
practice anyway.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
This was easy to fix. Also added readability-redundant-declaration, but
that didn't require any changes.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Both were easy to fix.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Again, easy to fix.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Some annoying false positives but seems like a good thing to check for.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
No fixes required.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Several items were deprecated or renamed anyway, so most of this was
trivial.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Many are redundant, and there are some false positives, but again, it
seems like good stuff to be checking.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Many were obsolete and most were duplicates of sensible defaults. I've
left ones were I was more confident that the specified value was the
right choice.

readability-identifier-naming looks like a lot of unnecessary repitition
but I don't want to accidentally break that.

Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
Copy link
Contributor

@eu-siemann eu-siemann left a comment

Choose a reason for hiding this comment

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

Nice! Shall we just merge this and close #1720?

@pattivacek
Copy link
Collaborator Author

Nice! Shall we just merge this and close #1720?

Either way is fine with me. Might depend on which one finishes the tests first. :)

@pattivacek pattivacek merged commit 8316765 into master Jul 15, 2020
@pattivacek pattivacek deleted the feat/more-clang-tidy branch July 15, 2020 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants