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

Fix internal header include paths. #475

Merged
merged 2 commits into from
Jun 14, 2020

Conversation

samhocevar
Copy link
Contributor

The extra leading "CLI/" part of include directives prevents the inclusion
of CLI.hpp from a relative directory without an extra -I or /I compiler
directive.

The extra leading "CLI/" part of include directives prevents the inclusion
of CLI.hpp from a relative directory without an extra -I or /I compiler
directive.
Files included with "" should be relative to the header file location first.
@codecov
Copy link

codecov bot commented Jun 10, 2020

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #475   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines         3724      3724           
=========================================
  Hits          3724      3724           
Impacted Files Coverage Δ
include/CLI/App.hpp 100.00% <ø> (ø)
include/CLI/Config.hpp 100.00% <ø> (ø)
include/CLI/ConfigFwd.hpp 100.00% <ø> (ø)
include/CLI/Error.hpp 100.00% <ø> (ø)
include/CLI/Formatter.hpp 100.00% <ø> (ø)
include/CLI/FormatterFwd.hpp 100.00% <ø> (ø)
include/CLI/Option.hpp 100.00% <ø> (ø)
include/CLI/Split.hpp 100.00% <ø> (ø)
include/CLI/Validators.hpp 100.00% <ø> (ø)

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 5925f94...5b2c30b. Read the comment docs.

@henryiii
Copy link
Collaborator

I think this looks fine to me. Probably can be back ported to 1.9.1.

@henryiii henryiii added the patch Can target the last released version label Jun 14, 2020
@henryiii henryiii merged commit 2337bbf into CLIUtils:master Jun 14, 2020
henryiii pushed a commit that referenced this pull request Jun 14, 2020
* Fix internal header include paths.

The extra leading "CLI/" part of include directives prevents the inclusion
of CLI.hpp from a relative directory without an extra -I or /I compiler
directive.

* Fix single header generation script.

Files included with "" should be relative to the header file location first.
@henryiii
Copy link
Collaborator

Backported.

nksanthosh added a commit to EOSIO/eos that referenced this pull request Aug 3, 2020
This CLI11 update from v1.9.0 to v1.9.1 provides the following improvements: 
- Support relative inclusion [#475](CLIUtils/CLI11#475)
- Fix cases where spaces in paths could break CMake support [#471](CLIUtils/CLI11#471)
- Fix an issue with string conversion [#421](CLIUtils/CLI11#421)
- Cross-compiling improvement for Conan.io [#430](CLIUtils/CLI11#430)
- Fix option group default propagation [#450](CLIUtils/CLI11#450)
- Fix for C++20 [#459](CLIUtils/CLI11#459)
- Support compiling with RTTI off [#461](CLIUtils/CLI11#461)
@nksanthosh nksanthosh mentioned this pull request Aug 3, 2020
7 tasks
dimas1185 pushed a commit to EOSIO/eos that referenced this pull request Aug 4, 2020
This CLI11 update from v1.9.0 to v1.9.1 provides the following improvements: 
- Support relative inclusion [#475](CLIUtils/CLI11#475)
- Fix cases where spaces in paths could break CMake support [#471](CLIUtils/CLI11#471)
- Fix an issue with string conversion [#421](CLIUtils/CLI11#421)
- Cross-compiling improvement for Conan.io [#430](CLIUtils/CLI11#430)
- Fix option group default propagation [#450](CLIUtils/CLI11#450)
- Fix for C++20 [#459](CLIUtils/CLI11#459)
- Support compiling with RTTI off [#461](CLIUtils/CLI11#461)
samhocevar added a commit to lolengine/ext-cli11 that referenced this pull request Feb 21, 2024
The extra leading "CLI/" part of include directives prevents the inclusion
of CLI.hpp from a relative directory without an extra -I or /I compiler
directive, and makes it harder to make CLI11 part of a larger codebase.

This is a regression of CLIUtils#475.
phlptp pushed a commit that referenced this pull request Mar 11, 2024
The extra leading `"CLI/"` part of include directives prevents the
inclusion of `CLI.hpp` from a relative directory without an extra `-I`
or `/I` compiler directive, and makes it harder to make CLI11 part of a
larger codebase.

This is a regression of #475.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Can target the last released version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants