Commit dab61c0107911b4626c64376e920d6d13f0401ff
Committed by
Henry Schreiner
1 parent
225492f6
Fix for single file include order
Showing
2 changed files
with
4 additions
and
9 deletions
include/CLI/Macros.hpp
| @@ -3,12 +3,9 @@ | @@ -3,12 +3,9 @@ | ||
| 3 | // Distributed under the 3-Clause BSD License. See accompanying | 3 | // Distributed under the 3-Clause BSD License. See accompanying |
| 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | ||
| 6 | -namespace CLI { | ||
| 7 | - | ||
| 8 | -// Note that all code in CLI11 must be in a namespace, even if it just a define. | 6 | +// [CLI11:verbatim] |
| 9 | 7 | ||
| 10 | // The following version macro is very similar to the one in PyBind11 | 8 | // The following version macro is very similar to the one in PyBind11 |
| 11 | - | ||
| 12 | #if !(defined(_MSC_VER) && __cplusplus == 199711L) && !defined(__INTEL_COMPILER) | 9 | #if !(defined(_MSC_VER) && __cplusplus == 199711L) && !defined(__INTEL_COMPILER) |
| 13 | #if __cplusplus >= 201402L | 10 | #if __cplusplus >= 201402L |
| 14 | #define CLI11_CPP14 | 11 | #define CLI11_CPP14 |
| @@ -41,4 +38,4 @@ namespace CLI { | @@ -41,4 +38,4 @@ namespace CLI { | ||
| 41 | #define CLI11_DEPRECATED(reason) __attribute__((deprecated(reason))) | 38 | #define CLI11_DEPRECATED(reason) __attribute__((deprecated(reason))) |
| 42 | #endif | 39 | #endif |
| 43 | 40 | ||
| 44 | -} // namespace CLI | 41 | +// [CLI11:verbatim] |
include/CLI/Version.hpp
| @@ -3,13 +3,11 @@ | @@ -3,13 +3,11 @@ | ||
| 3 | // Distributed under the 3-Clause BSD License. See accompanying | 3 | // Distributed under the 3-Clause BSD License. See accompanying |
| 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. | 4 | // file LICENSE or https://github.com/CLIUtils/CLI11 for details. |
| 5 | 5 | ||
| 6 | -namespace CLI { | ||
| 7 | - | ||
| 8 | -// Note that all code in CLI11 must be in a namespace, even if it just a define. | 6 | +// [CLI11:verbatim] |
| 9 | 7 | ||
| 10 | #define CLI11_VERSION_MAJOR 1 | 8 | #define CLI11_VERSION_MAJOR 1 |
| 11 | #define CLI11_VERSION_MINOR 5 | 9 | #define CLI11_VERSION_MINOR 5 |
| 12 | #define CLI11_VERSION_PATCH 3 | 10 | #define CLI11_VERSION_PATCH 3 |
| 13 | #define CLI11_VERSION "1.5.3" | 11 | #define CLI11_VERSION "1.5.3" |
| 14 | 12 | ||
| 15 | -} // namespace CLI | 13 | +// [CLI11:verbatim] |