X Tutup
Skip to content

Travis iwyu#208

Merged
etr merged 40 commits intomasterfrom
travis-iwyu
Aug 27, 2020
Merged

Travis iwyu#208
etr merged 40 commits intomasterfrom
travis-iwyu

Conversation

@etr
Copy link
Copy Markdown
Owner

@etr etr commented Aug 27, 2020

Identify the Bug

Include and fwd declarations were inconsistent and often not present when needed (derived from upstream) or redundant.

Description of the Change

This change adds checks to travis using IWYU (see: https://include-what-you-use.org/ ) preventing this problems from happening transparently. It also fixes the current problems.

Alternate Designs

N/D. Leave as is.

Possible Drawbacks

Potential issues on less tested systems (currently no FreeBSD test on travis, nor Cygwin on Windows). Can be covered in the future with more testing through CI/CD.

Verification Process

Travis runs and Appveyor runs.

Release Notes

Added checks using IWYU (see: https://include-what-you-use.org/ ) to cleanup includes within the library.

Notes

The large number of commits is due to travis that forces a push for every test (to verify) and an issue with how clang/iwyu are packetized within ubuntu (which forced a tricky compilation within the travis script).
These changes will be squashed once moved to master.

@etr etr added the build-system Related to the build system. label Aug 27, 2020
@etr etr self-assigned this Aug 27, 2020
@etr
Copy link
Copy Markdown
Owner Author

etr commented Aug 27, 2020

The change is not applied (currently) to tests and examples.

This PR effectively supersedes: #185 and is related to #177 .

The related PR will be closed accordingly.

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 27, 2020

Codecov Report

Merging #208 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #208   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files          35       35           
  Lines        3233     3233           
=======================================
  Hits         3091     3091           
  Misses        142      142           
Impacted Files Coverage Δ
src/basic_auth_fail_response.cpp 100.00% <ø> (ø)
src/deferred_response.cpp 100.00% <ø> (ø)
src/details/http_endpoint.cpp 97.01% <ø> (ø)
src/digest_auth_fail_response.cpp 100.00% <ø> (ø)
src/file_response.cpp 83.33% <ø> (ø)
src/http_request.cpp 96.69% <ø> (ø)
src/http_resource.cpp 84.61% <ø> (ø)
src/http_response.cpp 85.71% <ø> (ø)
src/http_utils.cpp 99.17% <ø> (ø)
src/httpserver/basic_auth_fail_response.hpp 100.00% <ø> (ø)
... and 11 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 b7a7245...287812e. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-system Related to the build system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

X Tutup