diff --git a/CHANGELOG.md b/CHANGELOG.md
index ff3a7e4..e36ce9f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,14 @@ template:
- fixed error in README (#195) (@andrewkcorcoran)
- fixed compiler error when using NVCC (#198) (@thompsonnoahe)
+#### Changes:
+
+- renamed header files to have `.hpp` extension (`toml.h` is still present for backwards-compatibility)
+
+#### Build system:
+
+- fixed meson builds with `-Ddefault_library=static` having hidden symbols on GNU compilers (#201) (@vlad0x00)
+
## v3.3.0
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f117016..f8b241f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -3,21 +3,21 @@
Contributions are very welcome! Either by [reporting issues] or submitting pull requests.
If you wish to submit a PR, please be aware that:
-- The single-header file `toml.hpp` is generated by a script; make your changes in the files in
- `include`, **not** in `toml.hpp`.
+- The single-header `toml.hpp` at the repository root is generated by a script, so don't change it directly; make your
+ changes in the files in `include`.
- Your changes should compile warning-free on at least one of:
- GCC 8 or higher
- Clang 8 or higher
- MSVC 19.2X (Visual Studio 2019) or higher
-- You should regenerate the single-header file as part of your PR (a CI check will fail if you don't).
+- You should regenerate the single-header version of `toml.hpp` as part of your PR (a CI check will fail if you don't).
-## Regenerating toml.hpp
+## Regenerating the single-header toml.hpp
1. Make your changes as necessary
- If you've added a new header file that isn't going to be transitively included by one of the
- others, add an include directive to `include/toml++/toml.h`
+ others, add an include directive to `include/toml++/toml.hpp`
2. Install the prerequisite python packages: `pip3 install -r tools/requirements.txt`
3. Run `tools/generate_single_header.py`
diff --git a/README.md b/README.md
index 4fa63f7..b66d140 100644
--- a/README.md
+++ b/README.md
@@ -19,23 +19,23 @@
## Library features
-- Header-only (optional!)
-- Supports the latest [TOML] release ([v1.0.0]), plus optional support for some unreleased TOML features
-- Passes all tests in the [toml-test](https://github.com/BurntSushi/toml-test) suite
-- Supports serializing to JSON and YAML
-- Proper UTF-8 handling (incl. BOM)
-- C++17 (plus some C++20 features where available, e.g. experimental support for [char8_t] strings)
-- Doesn't require RTTI
-- Works with or without exceptions
-- Tested on Clang (6+), GCC (7+) and MSVC (VS2019)
-- Tested on x64, x86 and ARM
+- Header-only (optional!)
+- Supports the latest [TOML] release ([v1.0.0]), plus optional support for some unreleased TOML features
+- Passes all tests in the [toml-test](https://github.com/BurntSushi/toml-test) suite
+- Supports serializing to JSON and YAML
+- Proper UTF-8 handling (incl. BOM)
+- C++17 (plus some C++20 features where available, e.g. experimental support for [char8_t] strings)
+- Doesn't require RTTI
+- Works with or without exceptions
+- Tested on Clang (6+), GCC (7+) and MSVC (VS2019)
+- Tested on x64, x86 and ARM
## Basic usage
-> ℹ️ _The following example favours brevity. If you'd prefer full API documentation and lots of specific code snippets
-instead, visit the project [homepage]_
+> ℹ️ _The following example favours brevity. If you'd prefer full API documentation and lots of specific code
+> snippets instead, visit the project [homepage]_
Given a [TOML] file `configuration.toml` containing the following:
@@ -98,7 +98,7 @@ You'll find some more code examples in the `examples` directory, and plenty more
## Adding toml++ to your project
-`toml++` comes in two flavours: Single-header and Regular. The API is the same for both.
+`toml++` comes in two flavours: Single-header and Regular. The API is the same for both.
### 🍦️ Single-header flavour
@@ -109,7 +109,7 @@ You'll find some more code examples in the `examples` directory, and plenty more
1. Clone the repository
2. Add `tomlplusplus/include` to your include paths
-3. `#include `
+3. `#include `
### Conan
@@ -133,7 +133,7 @@ depends: [
```json
{
- "marzer/tomlplusplus": { }
+ "marzer/tomlplusplus": {}
}
```
@@ -199,29 +199,29 @@ See [CONTRIBUTING] for information.
A number of configurable options are exposed in the form of preprocessor `#defines` Most likely you
won't need to mess with these at all, but if you do, set them before including toml++.
-| Option | Type | Description | Default |
-|-----------------------------------|:--------------:|----------------------------------------------------------------------------------------------------------|------------------------|
-| `TOML_ASSERT(expr)` | function macro | Sets the assert function used by the library. | `assert()` |
-| `TOML_CALLCONV` | define | Calling convention to apply to exported free/static functions. | undefined |
-| `TOML_CONFIG_HEADER` | string literal | Includes the given header file before the rest of the library. | undefined |
-| `TOML_ENABLE_FORMATTERS` | boolean | Enables the formatters. Set to `0` if you don't need them to improve compile times and binary size. | `1` |
-| `TOML_ENABLE_FLOAT16` | boolean | Enables support for the built-in `_Float16` type. | per compiler settings |
-| `TOML_ENABLE_PARSER` | boolean | Enables the parser. Set to `0` if you don't need it to improve compile times and binary size. | `1` |
-| `TOML_ENABLE_UNRELEASED_FEATURES` | boolean | Enables support for [unreleased TOML language features]. | `0` |
-| `TOML_ENABLE_WINDOWS_COMPAT` | boolean | Enables support for transparent conversion between wide and narrow strings. | `1` on Windows |
-| `TOML_EXCEPTIONS` | boolean | Sets whether the library uses exceptions. | per compiler settings |
-| `TOML_EXPORTED_CLASS` | define | API export annotation to add to classes. | undefined |
-| `TOML_EXPORTED_MEMBER_FUNCTION` | define | API export annotation to add to non-static class member functions. | undefined |
-| `TOML_EXPORTED_FREE_FUNCTION` | define | API export annotation to add to free functions. | undefined |
-| `TOML_EXPORTED_STATIC_FUNCTION` | define | API export annotation to add to static functions. | undefined |
-| `TOML_HEADER_ONLY` | boolean | Disable this to explicitly control where toml++'s implementation is compiled (e.g. as part of a library).| `1` |
-| `TOML_IMPLEMENTATION` | define | Define this to enable compilation of the library's implementation when `TOML_HEADER_ONLY` == `0`. | undefined |
-| `TOML_OPTIONAL_TYPE` | type name | Overrides the `optional` type used by the library if you need [something better than std::optional]. | undefined |
-| `TOML_SMALL_FLOAT_TYPE` | type name | If your codebase has a custom 'small float' type (e.g. half-precision), this tells toml++ about it. | undefined |
-| `TOML_SMALL_INT_TYPE` | type name | If your codebase has a custom 'small integer' type (e.g. 24-bits), this tells toml++ about it. | undefined |
+| Option | Type | Description | Default |
+| --------------------------------- | :------------: | --------------------------------------------------------------------------------------------------------- | --------------------- |
+| `TOML_ASSERT(expr)` | function macro | Sets the assert function used by the library. | `assert()` |
+| `TOML_CALLCONV` | define | Calling convention to apply to exported free/static functions. | undefined |
+| `TOML_CONFIG_HEADER` | string literal | Includes the given header file before the rest of the library. | undefined |
+| `TOML_ENABLE_FORMATTERS` | boolean | Enables the formatters. Set to `0` if you don't need them to improve compile times and binary size. | `1` |
+| `TOML_ENABLE_FLOAT16` | boolean | Enables support for the built-in `_Float16` type. | per compiler settings |
+| `TOML_ENABLE_PARSER` | boolean | Enables the parser. Set to `0` if you don't need it to improve compile times and binary size. | `1` |
+| `TOML_ENABLE_UNRELEASED_FEATURES` | boolean | Enables support for [unreleased TOML language features]. | `0` |
+| `TOML_ENABLE_WINDOWS_COMPAT` | boolean | Enables support for transparent conversion between wide and narrow strings. | `1` on Windows |
+| `TOML_EXCEPTIONS` | boolean | Sets whether the library uses exceptions. | per compiler settings |
+| `TOML_EXPORTED_CLASS` | define | API export annotation to add to classes. | undefined |
+| `TOML_EXPORTED_MEMBER_FUNCTION` | define | API export annotation to add to non-static class member functions. | undefined |
+| `TOML_EXPORTED_FREE_FUNCTION` | define | API export annotation to add to free functions. | undefined |
+| `TOML_EXPORTED_STATIC_FUNCTION` | define | API export annotation to add to static functions. | undefined |
+| `TOML_HEADER_ONLY` | boolean | Disable this to explicitly control where toml++'s implementation is compiled (e.g. as part of a library). | `1` |
+| `TOML_IMPLEMENTATION` | define | Define this to enable compilation of the library's implementation when `TOML_HEADER_ONLY` == `0`. | undefined |
+| `TOML_OPTIONAL_TYPE` | type name | Overrides the `optional` type used by the library if you need [something better than std::optional]. | undefined |
+| `TOML_SMALL_FLOAT_TYPE` | type name | If your codebase has a custom 'small float' type (e.g. half-precision), this tells toml++ about it. | undefined |
+| `TOML_SMALL_INT_TYPE` | type name | If your codebase has a custom 'small integer' type (e.g. 24-bits), this tells toml++ about it. | undefined |
> ℹ️ _A number of these have ABI implications; the library uses inline namespaces to prevent you from accidentally
-linking incompatible combinations together._
+> linking incompatible combinations together._
@@ -236,14 +236,14 @@ defines `TOML_LANG_MAJOR`, `TOML_LANG_MINOR` and `TOML_LANG_PATCH`.
### **Unreleased language features:**
-- [#516]: Allow newlines and trailing commas in inline tables
-- [#562]: Allow hex floating-point values
-- [#644]: Support `+` in key names
-- [#671]: Local time of day format should support `09:30` as opposed to `09:30:00`
-- [#687]: Relax bare key restrictions to allow additional unicode characters
-- [#790]: Include an `\e` escape code sequence (shorthand for `\u001B`)
-- [#796]: Include an `\xHH` escape code sequence
-- [#891]: Allow non-English scripts for unquoted keys
+- [#516]: Allow newlines and trailing commas in inline tables
+- [#562]: Allow hex floating-point values
+- [#644]: Support `+` in key names
+- [#671]: Local time of day format should support `09:30` as opposed to `09:30:00`
+- [#687]: Relax bare key restrictions to allow additional unicode characters
+- [#790]: Include an `\e` escape code sequence (shorthand for `\u001B`)
+- [#796]: Include an `\xHH` escape code sequence
+- [#891]: Allow non-English scripts for unquoted keys
> ℹ️ _`#define TOML_ENABLE_UNRELEASED_FEATURES 1` to enable these features (see [Configuration](#Configuration))._
@@ -251,11 +251,11 @@ defines `TOML_LANG_MAJOR`, `TOML_LANG_MINOR` and `TOML_LANG_PATCH`.
All features supported, including:
-- [#356]: Allow leading zeros in the exponent part of a float
-- [#567]: Control characters are not permitted in comments
-- [#571]: Allow raw tabs inside strings
-- [#665]: Make arrays heterogeneous
-- [#766]: Allow comments before commas in arrays
+- [#356]: Allow leading zeros in the exponent part of a float
+- [#567]: Control characters are not permitted in comments
+- [#571]: Allow raw tabs inside strings
+- [#665]: Make arrays heterogeneous
+- [#766]: Allow comments before commas in arrays
### 🔹️ **TOML v0.5.0:**
@@ -278,30 +278,30 @@ UTF-8 decoding is performed using a state machine based on Bjoern Hoehrmann's '[
### With thanks to:
-- **[@beastle9end](https://github.com/beastle9end)** - Made Windows.h include bypass
-- **[@bjadamson](https://github.com/bjadamson)** - Reported some bugs and helped design a new feature
-- **[@bobfang1992](https://github.com/bobfang1992)** - Reported a bug and created a [wrapper in python](https://github.com/bobfang1992/pytomlpp)
-- **[@GiulioRomualdi](https://github.com/GiulioRomualdi)** - Added cmake+meson support
-- **[@jonestristand](https://github.com/jonestristand)** - Designed and implemented the `toml::path`s feature
-- **[@kcsaul](https://github.com/kcsaul)** - Fixed a bug
-- **[@levicki](https://github.com/levicki)** - Helped design some new features
-- **[@moorereason](https://github.com/moorereason)** - Reported a whole bunch of bugs
-- **[@mosra](https://github.com/mosra)** - Created the awesome [m.css] used to generate the API docs
-- **[@ned14](https://github.com/ned14)** - Reported a bunch of bugs and helped design some new features
-- **[@okureta](https://github.com/okureta)** - Reported a bug
-- **[@prince-chrismc](https://github.com/prince-chrismc)** - Added toml++ to ConanCenter, and fixed some typos
-- **[@rbrugo](https://github.com/rbrugo)** - Helped design a new feature
-- **[@Reedbeta](https://github.com/Reedbeta)** - Fixed a bug and added additional Visual Studio debugger native visualizers
-- **[@Ryan-rsm-McKenzie](https://github.com/Ryan-rsm-McKenzie)** - Add natvis file to cmake install script
-- **[@shdnx](https://github.com/shdnx)** - Fixed a bug on GCC 8.2.0 and some meson config issues
-- **[@sneves](https://github.com/sneves)** - Helped fix a number of parser bugs
-- **[@sobczyk](https://github.com/sobczyk)** - Reported some bugs
-- **[@std-any-emplace](https://github.com/std-any-emplace)** - Reported some bugs
-- **[@Tachi107](https://github.com/Tachi107)** - Made some tweaks to meson.build, added compile_library build option
-- **[@traversaro](https://github.com/traversaro)** - Added vcpkg support and reported a bunch of bugs
-- **[@whiterabbit963](https://github.com/whiterabbit963)** - Fixed a bug with value_or conversions
-- **[@ximion](https://github.com/ximion)** - Added support for installation with meson
-- **[@a-is](https://github.com/a-is)** - Fixed a bug
+- **[@beastle9end](https://github.com/beastle9end)** - Made Windows.h include bypass
+- **[@bjadamson](https://github.com/bjadamson)** - Reported some bugs and helped design a new feature
+- **[@bobfang1992](https://github.com/bobfang1992)** - Reported a bug and created a [wrapper in python](https://github.com/bobfang1992/pytomlpp)
+- **[@GiulioRomualdi](https://github.com/GiulioRomualdi)** - Added cmake+meson support
+- **[@jonestristand](https://github.com/jonestristand)** - Designed and implemented the `toml::path`s feature
+- **[@kcsaul](https://github.com/kcsaul)** - Fixed a bug
+- **[@levicki](https://github.com/levicki)** - Helped design some new features
+- **[@moorereason](https://github.com/moorereason)** - Reported a whole bunch of bugs
+- **[@mosra](https://github.com/mosra)** - Created the awesome [m.css] used to generate the API docs
+- **[@ned14](https://github.com/ned14)** - Reported a bunch of bugs and helped design some new features
+- **[@okureta](https://github.com/okureta)** - Reported a bug
+- **[@prince-chrismc](https://github.com/prince-chrismc)** - Added toml++ to ConanCenter, and fixed some typos
+- **[@rbrugo](https://github.com/rbrugo)** - Helped design a new feature
+- **[@Reedbeta](https://github.com/Reedbeta)** - Fixed a bug and added additional Visual Studio debugger native visualizers
+- **[@Ryan-rsm-McKenzie](https://github.com/Ryan-rsm-McKenzie)** - Add natvis file to cmake install script
+- **[@shdnx](https://github.com/shdnx)** - Fixed a bug on GCC 8.2.0 and some meson config issues
+- **[@sneves](https://github.com/sneves)** - Helped fix a number of parser bugs
+- **[@sobczyk](https://github.com/sobczyk)** - Reported some bugs
+- **[@std-any-emplace](https://github.com/std-any-emplace)** - Reported some bugs
+- **[@Tachi107](https://github.com/Tachi107)** - Made some tweaks to meson.build, added compile_library build option
+- **[@traversaro](https://github.com/traversaro)** - Added vcpkg support and reported a bunch of bugs
+- **[@whiterabbit963](https://github.com/whiterabbit963)** - Fixed a bug with value_or conversions
+- **[@ximion](https://github.com/ximion)** - Added support for installation with meson
+- **[@a-is](https://github.com/a-is)** - Fixed a bug
@@ -310,11 +310,11 @@ UTF-8 decoding is performed using a state machine based on Bjoern Hoehrmann's '[
For bug reports and feature requests please consider using the [issues] system here on GitHub. For anything else
though you're welcome to reach out via other means. In order of likely response time:
-- Gitter: [marzer/tomlplusplus](https://gitter.im/marzer/tomlplusplus) ("Discord for repos")
-- Twitter: [marzer8789](https://twitter.com/marzer8789)
-- Email: [mark.gillard@outlook.com.au](mailto:mark.gillard@outlook.com.au)
-- Facebook: [marzer](https://www.facebook.com/marzer)
-- LinkedIn: [marzer](https://www.linkedin.com/in/marzer/)
+- Gitter: [marzer/tomlplusplus](https://gitter.im/marzer/tomlplusplus) ("Discord for repos")
+- Twitter: [marzer8789](https://twitter.com/marzer8789)
+- Email: [mark.gillard@outlook.com.au](mailto:mark.gillard@outlook.com.au)
+- Facebook: [marzer](https://www.facebook.com/marzer)
+- LinkedIn: [marzer](https://www.linkedin.com/in/marzer/)
[API documentation]: https://marzer.github.io/tomlplusplus/
[homepage]: https://marzer.github.io/tomlplusplus/
diff --git a/docs/pages/main_page.dox b/docs/pages/main_page.md
similarity index 72%
rename from docs/pages/main_page.dox
rename to docs/pages/main_page.md
index 184b36b..061fe8c 100644
--- a/docs/pages/main_page.dox
+++ b/docs/pages/main_page.md
@@ -1,12 +1,11 @@
-/*!
+@mainpage toml++
+@image html banner.svg width=1280px
+@tableofcontents
-\mainpage toml++
-\image html banner.svg width=1280px
-\tableofcontents
+
+@section mainpage-features Features
-
-\section mainpage-features Features
- Header-only (optional!)
- Supports the latest [TOML](https://toml.io/) release ([v1.0.0](https://toml.io/en/v1.0.0)), plus
optional support for some unreleased TOML features
@@ -19,24 +18,25 @@
- Tested on Clang (6+), GCC (7+) and MSVC (VS2019)
- Tested on x64, x86 and ARM
+
+@section mainpage-api-documentation API documentation
-\section mainpage-api-documentation API documentation
You're looking at it! Browse the docs using the links at the top of the page.
You can search from anywhere by pressing the TAB key.
+
+@section mainpage-example Basic examples
-\section mainpage-example Basic examples
+
-
-
-\subsection mainpage-example-parsing-files Parsing files
+@subsection mainpage-example-parsing-files Parsing files
Call toml::parse_file() and work with the toml::table you get back, or handle any toml::parse_error that gets thrown:
-\cpp
+@cpp
#include
-#include
+#include
int main(int argc, char** argv)
{
@@ -55,25 +55,25 @@ int main(int argc, char** argv)
return 0;
}
-\endcpp
+@endcpp
-\see
+@see
- toml::parse_file()
- toml::table
- toml::parse_error
+
-
-\subsection mainpage-example-parsing-strings Parsing strings and iostreams
+@subsection mainpage-example-parsing-strings Parsing strings and iostreams
Call toml::parse() and work with the toml::table you get back, or handle any toml::parse_error that gets thrown:
-\godbolt{NsR-xf}
+@godbolt{NsR-xf}
-\cpp
+@cpp
#include
#include
-#include
+#include
using namespace std::string_view_literals;
int main()
@@ -108,9 +108,9 @@ int main()
return 0;
}
-\endcpp
+@endcpp
-\out
+@out
[library]
authors = [ 'Mark Gillard ' ]
cpp = 17
@@ -120,25 +120,26 @@ name = 'toml++'
authors = [ 'Mark Gillard ' ]
cpp = 17
name = 'toml++'
-\endout
+@endout
-\see
+@see
- toml::parse_file()
- toml::table
- toml::parse_error
+
+@subsection mainpage-example-parsing-without-exceptions Handling errors without exceptions
-\subsection mainpage-example-parsing-without-exceptions Handling errors without exceptions
Can't (or won't) use exceptions? That's fine too. You can disable exceptions in your compiler flags and/or
explicitly disable the library's use of them by setting the option #TOML_EXCEPTIONS to `0`. In either case,
the parsing functions return a toml::parse_result instead of a toml::table:
-\cpp
+@cpp
#include
#define TOML_EXCEPTIONS 0 // only necessary if you've left them enabled in your compiler
-#include
+#include
int main()
{
@@ -152,22 +153,23 @@ int main()
do_stuff_with_your_config(std::move(result).table()); // 'steal' the table from the result
return 0;
}
-\endcpp
+@endcpp
+
+@subsection mainpage-example-custom-error-formatting Custom error formatting
-\subsection mainpage-example-custom-error-formatting Custom error formatting
The examples above use an overloaded `operator<<` with ostreams to print basic error messages, and look like this:
-\out
+@out
Error while parsing key: expected bare key starting character or string delimiter, saw '?'
(error occurred at line 2, column 5)
-\endout
+@endout
The library doesn't natively support error colouring in TTY environments, but instead provides the requisite information
for you to build that and any other custom error handling yourself if necessary via toml::parse_error's source()
and description() members:
-\cpp
+@cpp
toml::table tbl;
try
{
@@ -181,25 +183,26 @@ catch (const toml::parse_error& err)
<< "\n (" << err.source().begin << ")\n";
return 1;
}
-\endcpp
+@endcpp
-\see
+@see
- toml::parse_error
- toml::source_region
- toml::source_position
+
+@subsection mainpage-example-manipulations Working with TOML data
-\subsection mainpage-example-manipulations Working with TOML data
A TOML document is a tree of values, arrays and tables, represented as the toml::value, toml::array
and toml::table, respectively. All three inherit from toml::node, and can be easily accessed via
the toml::node_view:
-\godbolt{TnevafTKd}
+@godbolt{TnevafTKd}
-\cpp
+@cpp
#include
-#include
+#include
using namespace std::string_view_literals;
int main()
@@ -267,9 +270,9 @@ int main()
return 0;
}
-\endcpp
+@endcpp
-\out
+@out
hello world
hello world
hello world
@@ -281,27 +284,28 @@ numbers: [ 2, 3, 4, 'five', 6.0, 7, [ 8, 9 ] ]
cats: [ 'tiger', 'lion', 'puma' ]
fish[1]: 'trout'
dinosaurs:
-\endout
+@endout
-\see
+@see
- toml::node
- toml::node_view
- toml::value
- toml::array
- toml::table
+
+@subsection mainpage-example-serialization Serializing as TOML, JSON and YAML
-\subsection mainpage-example-serialization Serializing as TOML, JSON and YAML
All toml++ data types have overloaded `operator<<` for ostreams, so 'serializing' a set of TOML data to actual
TOML is done just by printing it to an ostream. Converting it to JSON and YAML is done in much the same way,
but via a toml::json_formatter and toml::yaml_formatter.
-\godbolt{srdfoWMq6}
+@godbolt{srdfoWMq6}
-\cpp
+@cpp
#include
-#include
+#include
int main()
{
@@ -332,9 +336,9 @@ int main()
return 0;
}
-\endcpp
+@endcpp
-\out
+@out
###### TOML ######
cpp = [ 17, 20, 'and beyond' ]
@@ -383,16 +387,17 @@ repo: 'https://github.com/marzer/tomlplusplus/'
toml:
- '1.0.0'
- 'and beyond'
-\endout
+@endout
-\see
+@see
- toml::toml_formatter
- toml::json_formatter
- toml::yaml_formatter
+
+@subsection mainpage-example-speed-up-compilation Speeding up compilation
-\subsection mainpage-example-speed-up-compilation Speeding up compilation
Because toml++ is a header-only library of nontrivial size you might find that compilation times noticeably
increase after you add it to your project, especially if you add the library's header somewhere that's visible from
a large number of translation units. You can counter this by disabling header-only mode and explicitly controlling
@@ -402,21 +407,21 @@ where the library's implementation is compiled.
This must be the same everywhere, so either set it as a global `#define` in your build system, or
do it manually before including toml++ in some global header that's used everywhere in your project:
-\cpp
+@cpp
// global_header_that_includes_toml++.h
#define TOML_HEADER_ONLY 0
#include
-\endcpp
+@endcpp
Step 2: Define #TOML_IMPLEMENTATION before including toml++ in one specific translation unit
-\cpp
+@cpp
// some_code_file.cpp
#define TOML_IMPLEMENTATION
#include "global_header_that_includes_toml++.h"
-\endcpp
+@endcpp
Bonus Step: Disable any library features you don't need
@@ -425,22 +430,21 @@ For example, if all you need to do is serialize some code-generated TOML and don
set #TOML_ENABLE_PARSER to `0` to disable the parser altogether. This can yield fairly significant compilation
speedups since the parser accounts for a good chunk of the library's code.
+@see @ref configuration
-\see \ref configuration
+
+@section mainpage-adding-lib Adding toml++ to your project
+
-\section mainpage-adding-lib Adding toml++ to your project
+@subsection mainpage-adding-lib-old-school "The old fashioned way"
-\m_class{m-note m-default}
+@m_class{m-note m-default}
The library comes in two flavours, [emoji icecream] Single-header
and [emoji sundae] Regular. The API is the same for both.
-
-
-\subsection mainpage-adding-lib-old-school "The old fashioned way"
-
[emoji icecream] Single-header flavour
1. Drop [toml.hpp](https://raw.githubusercontent.com/marzer/tomlplusplus/master/toml.hpp) wherever you like in your source tree
2. There is no step two
@@ -448,61 +452,70 @@ and [emoji sundae] Regular. The API is the same for both.
[emoji sundae] Regular flavour
1. Clone \github{marzer/tomlplusplus, the repository} from GitHub
2. Add `tomlplusplus/include` to your include paths
-3. `#include `
+3. `#include `
+
+
+@subsection mainpage-adding-lib-conan Conan
-\subsection mainpage-adding-lib-conan Conan
Add `tomlplusplus/3.3.0` to your conanfile.
+
-
-\subsection mainpage-adding-lib-dds DDS
+@subsection mainpage-adding-lib-dds DDS
Add `tomlpp` to your `package.json5`, e.g.:
-\json
+@json
depends: [
'tomlpp^3.3.0',
]
-\endjson
+@endjson
-\see [What is DDS?](https://dds.pizza/)
+@see [What is DDS?](https://dds.pizza/)
+
-
-\subsection mainpage-adding-lib-meson Meson
+@subsection mainpage-adding-lib-meson Meson
You can install the wrap with:
-\shell
+@shell
meson wrap install tomlplusplus
-\endshell
+@endshell
After that, you can use it like a regular dependency:
-\meson
+@meson
tomlplusplus_dep = dependency('tomlplusplus')
-\endmeson
+@endmeson
You can also add it as a subproject directly.
-\subsection mainpage-adding-lib-tipi Tipi.build
+
+
+@subsection mainpage-adding-lib-tipi Tipi.build
`tomlplusplus` can be easily used in [tipi.build](https://tipi.build) projects by adding the following entry to your `.tipi/deps`:
-\json
+@json
{
"marzer/tomlplusplus": { }
}
-\endjson
+@endjson
-\subsection mainpage-adding-lib-vcpkg Vcpkg
-\shell
+
+
+@subsection mainpage-adding-lib-vcpkg Vcpkg
+
+@shell
vcpkg install tomlplusplus
-\endshell
+@endshell
+
-\subsection mainpage-adding-lib-cmake-fetch-content CMake FetchContent
-\cmake
+@subsection mainpage-adding-lib-cmake-fetch-content CMake FetchContent
+
+@cmake
include(FetchContent)
FetchContent_Declare(
tomlplusplus
@@ -510,32 +523,34 @@ FetchContent_Declare(
GIT_TAG v3.3.0
)
FetchContent_MakeAvailable(tomlplusplus)
-\endcmake
+@endcmake
-\see [What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)
+@see [What is FetchContent?](https://cmake.org/cmake/help/latest/module/FetchContent.html)
+
-
-\subsection mainpage-adding-lib-git-submodules Git submodules
-\shell
+@subsection mainpage-adding-lib-git-submodules Git submodules
+@shell
git submodule add --depth 1 https://github.com/marzer/tomlplusplus.git tomlplusplus
-\endshell
+@endshell
+
+@subsection mainpage-adding-lib-other Other environments and package managers
-\subsection mainpage-adding-lib-other Other environments and package managers
The C++ tooling ecosystem is a fractal nightmare of unbridled chaos so naturally I'm not up-to-speed with all of the
available packaging and integration options. I'm always happy to see new ones supported, though! If there's some
integration you'd like to see and have the technical know-how to make it happen, feel free to make a pull request.
+
+@subsection mainpage-adding-lib-python Special mention: Python
-\subsection mainpage-adding-lib-python Special mention: Python
There exists a python wrapper library built around toml++ called
\github{bobfang1992/pytomlpp, pytomlpp} which is, at the time of writing, one of only two natively-compiled
TOML libraries available for python, and thus one of the fastest options available:
-\out
+@out
Parsing data.toml 5000 times:
pytomlpp: 0.694 s
rtoml: 0.871 s ( 1.25x)
@@ -543,53 +558,54 @@ Parsing data.toml 5000 times:
toml: 5.642 s ( 8.12x)
qtoml: 7.760 s (11.17x)
tomlkit: 32.708 s (47.09x)
-\endout
+@endout
Install it using `pip`:
-\shell
+@shell
pip install pytomlpp
-\endshell
+@endshell
Note that I'm not the owner of that project, so if you wish to report a bug relating to the python
implementation please do so at their repository, not on the main toml++ one.
+
+@section mainpage-configuration Library configuration options
-\section mainpage-configuration Library configuration options
The library exposes a number of configuration options in the form of compiler `#defines`. Things like
changing the `optional` type, disabling header-only mode, et cetera. The full list of
-configurables can be found on the \ref configuration page.
+configurables can be found on the @ref configuration page.
-\see \ref configuration
+@see @ref configuration
+
+@section mainpage-contributing Contributing
-\section mainpage-contributing Contributing
Contributions are very welcome! Either by \github{marzer/tomlplusplus/issues, reporting issues}
or submitting pull requests. If you wish to submit a pull request,
please see \github{marzer/tomlplusplus/blob/master/CONTRIBUTING.md, CONTRIBUTING}
for all the details you need to get going.
+
-
-\section mainpage-license License
+@section mainpage-license License
toml++ is licensed under the terms of the MIT license - see
[LICENSE](https://github.com/marzer/tomlplusplus/blob/master/LICENSE).
-\m_class{m-note m-default}
+@m_class{m-note m-default}
If you're using the single-header version of the library you don't need to explicitly distribute the license file;
it is embedded in the preamble at the top of the header.
+
+@section mainpage-contact Contacting the author
-\section mainpage-contact Contacting the author
For bug reports and feature requests please use the \github{marzer/tomlplusplus/issues, Github Issues}
system. For anything else you're welcome to reach out via other means. In order of likely response speed:
- Twitter: [marzer8789](https://twitter.com/marzer8789)
- Gitter: [marzer/tomlplusplus](https://gitter.im/marzer/tomlplusplus) ("Discord for repos")
- Email: [mark.gillard@outlook.com.au](mailto:mark.gillard@outlook.com.au)
-
-*/
diff --git a/docs/poxy.toml b/docs/poxy.toml
index cfefecb..a310727 100644
--- a/docs/poxy.toml
+++ b/docs/poxy.toml
@@ -35,8 +35,8 @@ undocumented = true
[sources]
paths = [ 'pages' ]
recursive_paths = [ '../include' ]
-patterns = [ '*.h', '*.dox' ]
-strip_paths = [ '../include' ]
+patterns = [ '*.h', '*.hpp', '*.dox', '*.md' ]
+strip_paths = [ '../include', 'pages' ]
diff --git a/examples/error_printer.cpp b/examples/error_printer.cpp
index 9c5430f..d8f9a52 100644
--- a/examples/error_printer.cpp
+++ b/examples/error_printer.cpp
@@ -6,8 +6,8 @@
// This example shows the error messages the library produces by forcing a set of specific parsing
// failures and printing their results.
-#include "examples.h"
-#include
+#include "examples.hpp"
+#include
using namespace std::string_view_literals;
diff --git a/examples/error_printer.vcxproj b/examples/error_printer.vcxproj
index a7ad5b6..d866aa5 100644
--- a/examples/error_printer.vcxproj
+++ b/examples/error_printer.vcxproj
@@ -55,7 +55,7 @@
-
+
\ No newline at end of file
diff --git a/examples/examples.h b/examples/examples.hpp
similarity index 100%
rename from examples/examples.h
rename to examples/examples.hpp
diff --git a/examples/parse_benchmark.cpp b/examples/parse_benchmark.cpp
index 6d97471..8c2b53d 100644
--- a/examples/parse_benchmark.cpp
+++ b/examples/parse_benchmark.cpp
@@ -5,8 +5,8 @@
// This example is just a short-n-shiny benchmark.
-#include "examples.h"
-#include
+#include "examples.hpp"
+#include
using namespace std::string_view_literals;
diff --git a/examples/parse_benchmark.vcxproj b/examples/parse_benchmark.vcxproj
index 927aa4e..6beec67 100644
--- a/examples/parse_benchmark.vcxproj
+++ b/examples/parse_benchmark.vcxproj
@@ -56,7 +56,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/examples/simple_parser.cpp b/examples/simple_parser.cpp
index ec77111..f45202e 100644
--- a/examples/simple_parser.cpp
+++ b/examples/simple_parser.cpp
@@ -5,8 +5,8 @@
// This example demonstrates how to parse TOML from a file or stdin and re-serialize it (print it out) to stdout.
-#include "examples.h"
-#include
+#include "examples.hpp"
+#include
using namespace std::string_view_literals;
diff --git a/examples/simple_parser.vcxproj b/examples/simple_parser.vcxproj
index 14d2b0f..8b90d44 100644
--- a/examples/simple_parser.vcxproj
+++ b/examples/simple_parser.vcxproj
@@ -56,7 +56,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/examples/toml_generator.cpp b/examples/toml_generator.cpp
index 5a51d77..c8230db 100644
--- a/examples/toml_generator.cpp
+++ b/examples/toml_generator.cpp
@@ -5,8 +5,8 @@
// This example demonstrates the use of some more advanced features to generate a tree of random TOML data.
-#include "examples.h"
-#include
+#include "examples.hpp"
+#include
using namespace std::string_view_literals;
diff --git a/examples/toml_generator.vcxproj b/examples/toml_generator.vcxproj
index 3b4e0b2..4a7bdfe 100644
--- a/examples/toml_generator.vcxproj
+++ b/examples/toml_generator.vcxproj
@@ -56,7 +56,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/examples/toml_merger.cpp b/examples/toml_merger.cpp
index 99bcde2..5835b81 100644
--- a/examples/toml_merger.cpp
+++ b/examples/toml_merger.cpp
@@ -5,8 +5,8 @@
// This example demonstrates a method of merging one TOML data tree into another.
-#include "examples.h"
-#include
+#include "examples.hpp"
+#include
using namespace std::string_view_literals;
diff --git a/examples/toml_merger.vcxproj b/examples/toml_merger.vcxproj
index cb93dbb..13cb3c3 100644
--- a/examples/toml_merger.vcxproj
+++ b/examples/toml_merger.vcxproj
@@ -57,7 +57,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/examples/toml_to_json_transcoder.cpp b/examples/toml_to_json_transcoder.cpp
index 881bcd5..f47143b 100644
--- a/examples/toml_to_json_transcoder.cpp
+++ b/examples/toml_to_json_transcoder.cpp
@@ -5,8 +5,8 @@
// This example demonstrates how to use the toml::json_formatter to re-serialize TOML data as JSON.
-#include "examples.h"
-#include
+#include "examples.hpp"
+#include
using namespace std::string_view_literals;
diff --git a/examples/toml_to_json_transcoder.vcxproj b/examples/toml_to_json_transcoder.vcxproj
index 6ff8538..3faf4ba 100644
--- a/examples/toml_to_json_transcoder.vcxproj
+++ b/examples/toml_to_json_transcoder.vcxproj
@@ -56,7 +56,7 @@
-
+
-
\ No newline at end of file
+
diff --git a/include/toml++/impl/array.h b/include/toml++/impl/array.hpp
similarity index 99%
rename from include/toml++/impl/array.h
rename to include/toml++/impl/array.hpp
index dd217c7..b7fd96a 100644
--- a/include/toml++/impl/array.h
+++ b/include/toml++/impl/array.hpp
@@ -4,12 +4,12 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "std_utility.h"
-#include "std_vector.h"
-#include "std_initializer_list.h"
-#include "value.h"
-#include "make_node.h"
-#include "header_start.h"
+#include "std_utility.hpp"
+#include "std_vector.hpp"
+#include "std_initializer_list.hpp"
+#include "value.hpp"
+#include "make_node.hpp"
+#include "header_start.hpp"
/// \cond
TOML_IMPL_NAMESPACE_START
@@ -1724,4 +1724,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/array.inl b/include/toml++/impl/array.inl
index b35ca85..a3c6243 100644
--- a/include/toml++/impl/array.inl
+++ b/include/toml++/impl/array.inl
@@ -5,14 +5,14 @@
#pragma once
//# {{
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if !TOML_IMPLEMENTATION
#error This is an implementation-only header.
#endif
//# }}
-#include "array.h"
-#include "header_start.h"
+#include "array.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -379,4 +379,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/at_path.h b/include/toml++/impl/at_path.hpp
similarity index 98%
rename from include/toml++/impl/at_path.h
rename to include/toml++/impl/at_path.hpp
index 349014b..e351e6b 100644
--- a/include/toml++/impl/at_path.h
+++ b/include/toml++/impl/at_path.hpp
@@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "forward_declarations.h"
+#include "forward_declarations.hpp"
/// \cond
TOML_IMPL_NAMESPACE_START
diff --git a/include/toml++/impl/at_path.inl b/include/toml++/impl/at_path.inl
index 189d115..976c813 100644
--- a/include/toml++/impl/at_path.inl
+++ b/include/toml++/impl/at_path.inl
@@ -5,15 +5,15 @@
#pragma once
//# {{
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if !TOML_IMPLEMENTATION
#error This is an implementation-only header.
#endif
//# }}
-#include "at_path.h"
-#include "array.h"
-#include "table.h"
+#include "at_path.hpp"
+#include "array.hpp"
+#include "table.hpp"
TOML_DISABLE_WARNINGS;
#if TOML_INT_CHARCONV
#include
@@ -21,7 +21,7 @@ TOML_DISABLE_WARNINGS;
#include
#endif
TOML_ENABLE_WARNINGS;
-#include "header_start.h"
+#include "header_start.hpp"
TOML_IMPL_NAMESPACE_START
{
@@ -287,4 +287,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/date_time.h b/include/toml++/impl/date_time.hpp
similarity index 99%
rename from include/toml++/impl/date_time.h
rename to include/toml++/impl/date_time.hpp
index 4bd1de7..8957ad3 100644
--- a/include/toml++/impl/date_time.h
+++ b/include/toml++/impl/date_time.hpp
@@ -4,9 +4,9 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "forward_declarations.h"
-#include "print_to_stream.h"
-#include "header_start.h"
+#include "forward_declarations.hpp"
+#include "print_to_stream.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -465,4 +465,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/formatter.h b/include/toml++/impl/formatter.hpp
similarity index 96%
rename from include/toml++/impl/formatter.h
rename to include/toml++/impl/formatter.hpp
index 20f3d5d..a4174d3 100644
--- a/include/toml++/impl/formatter.h
+++ b/include/toml++/impl/formatter.hpp
@@ -4,12 +4,12 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if TOML_ENABLE_FORMATTERS
-#include "forward_declarations.h"
-#include "print_to_stream.h"
-#include "header_start.h"
+#include "forward_declarations.hpp"
+#include "print_to_stream.hpp"
+#include "header_start.hpp"
/// \cond
TOML_IMPL_NAMESPACE_START
@@ -187,5 +187,5 @@ TOML_IMPL_NAMESPACE_START
TOML_IMPL_NAMESPACE_END;
/// \endcond
-#include "header_end.h"
+#include "header_end.hpp"
#endif // TOML_ENABLE_FORMATTERS
diff --git a/include/toml++/impl/formatter.inl b/include/toml++/impl/formatter.inl
index 3603685..a9b6bfb 100644
--- a/include/toml++/impl/formatter.inl
+++ b/include/toml++/impl/formatter.inl
@@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
//# {{
#if !TOML_IMPLEMENTATION
#error This is an implementation-only header.
@@ -12,14 +12,14 @@
//# }}
#if TOML_ENABLE_FORMATTERS
-#include "formatter.h"
-#include "print_to_stream.h"
-#include "value.h"
-#include "table.h"
-#include "array.h"
-#include "unicode.h"
-#include "parse_result.h"
-#include "header_start.h"
+#include "formatter.hpp"
+#include "print_to_stream.hpp"
+#include "value.hpp"
+#include "table.hpp"
+#include "array.hpp"
+#include "unicode.hpp"
+#include "parse_result.hpp"
+#include "header_start.hpp"
TOML_IMPL_NAMESPACE_START
{
@@ -509,5 +509,5 @@ TOML_IMPL_NAMESPACE_START
}
TOML_IMPL_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
#endif // TOML_ENABLE_FORMATTERS
diff --git a/include/toml++/impl/forward_declarations.h b/include/toml++/impl/forward_declarations.hpp
similarity index 99%
rename from include/toml++/impl/forward_declarations.h
rename to include/toml++/impl/forward_declarations.hpp
index 7ffc99d..d9162ad 100644
--- a/include/toml++/impl/forward_declarations.h
+++ b/include/toml++/impl/forward_declarations.hpp
@@ -4,8 +4,8 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "std_string.h"
-#include "std_new.h"
+#include "std_string.hpp"
+#include "std_new.hpp"
TOML_DISABLE_WARNINGS;
#include
#include
@@ -18,7 +18,7 @@ TOML_DISABLE_WARNINGS;
#include
#include
TOML_ENABLE_WARNINGS;
-#include "header_start.h"
+#include "header_start.hpp"
//#---------------------------------------------------------------------------------------------------------------------
//# ENVIRONMENT GROUND-TRUTHS
@@ -119,7 +119,7 @@ TOML_IMPL_NAMESPACE_START
class parser;
TOML_ABI_NAMESPACE_END; // TOML_EXCEPTIONS
- // clang-format off
+ // clang-format off
inline constexpr std::string_view control_char_escapes[] =
{
@@ -203,7 +203,7 @@ TOML_NAMESPACE_START // abi namespace
/// \detail This namespace exists so you can safely hoist the toml++ literal operators into another scope
/// without dragging in everything from the toml namespace: \cpp
///
- /// #include
+ /// #include
/// using namespace toml::literals;
///
/// int main()
@@ -620,8 +620,8 @@ TOML_IMPL_NAMESPACE_START
&& digits <= 53 // DBL_MANT_DIG
&& digits10 <= 15; // DBL_DIG
- static constexpr bool can_represent_native = digits >= 53 // DBL_MANT_DIG
- && digits10 >= 15; // DBL_DIG
+ static constexpr bool can_represent_native = digits >= 53 // DBL_MANT_DIG
+ && digits10 >= 15; // DBL_DIG
static constexpr bool can_partially_represent_native = digits > 0 && digits10 > 0;
};
@@ -1055,4 +1055,4 @@ TOML_IMPL_NAMESPACE_START
TOML_IMPL_NAMESPACE_END;
/// \endcond
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/header_end.h b/include/toml++/impl/header_end.hpp
similarity index 87%
rename from include/toml++/impl/header_end.h
rename to include/toml++/impl/header_end.hpp
index 698d99d..ff0462d 100644
--- a/include/toml++/impl/header_end.h
+++ b/include/toml++/impl/header_end.hpp
@@ -1,6 +1,6 @@
//# {{
#ifdef __INTELLISENSE__
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#endif
//# }}
#ifdef _MSC_VER
diff --git a/include/toml++/impl/header_start.h b/include/toml++/impl/header_start.hpp
similarity index 88%
rename from include/toml++/impl/header_start.h
rename to include/toml++/impl/header_start.hpp
index 646c752..6e1bb41 100644
--- a/include/toml++/impl/header_start.h
+++ b/include/toml++/impl/header_start.hpp
@@ -1,6 +1,6 @@
//# {{
#ifdef __INTELLISENSE__
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#endif
//# }}
TOML_PUSH_WARNINGS;
diff --git a/include/toml++/impl/json_formatter.h b/include/toml++/impl/json_formatter.hpp
similarity index 97%
rename from include/toml++/impl/json_formatter.h
rename to include/toml++/impl/json_formatter.hpp
index f070194..ca3776a 100644
--- a/include/toml++/impl/json_formatter.h
+++ b/include/toml++/impl/json_formatter.hpp
@@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if TOML_ENABLE_FORMATTERS
-#include "formatter.h"
-#include "header_start.h"
+#include "formatter.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -138,5 +138,5 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
#endif // TOML_ENABLE_FORMATTERS
diff --git a/include/toml++/impl/json_formatter.inl b/include/toml++/impl/json_formatter.inl
index 156efb9..ceffbd4 100644
--- a/include/toml++/impl/json_formatter.inl
+++ b/include/toml++/impl/json_formatter.inl
@@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
//# {{
#if !TOML_IMPLEMENTATION
#error This is an implementation-only header.
@@ -12,11 +12,11 @@
//# }}
#if TOML_ENABLE_FORMATTERS
-#include "json_formatter.h"
-#include "print_to_stream.h"
-#include "table.h"
-#include "array.h"
-#include "header_start.h"
+#include "json_formatter.hpp"
+#include "print_to_stream.hpp"
+#include "table.hpp"
+#include "array.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -117,5 +117,5 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
#endif // TOML_ENABLE_FORMATTERS
diff --git a/include/toml++/impl/key.h b/include/toml++/impl/key.hpp
similarity index 98%
rename from include/toml++/impl/key.h
rename to include/toml++/impl/key.hpp
index d94d7e8..575017a 100644
--- a/include/toml++/impl/key.h
+++ b/include/toml++/impl/key.hpp
@@ -4,10 +4,10 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "source_region.h"
-#include "std_utility.h"
-#include "print_to_stream.h"
-#include "header_start.h"
+#include "source_region.hpp"
+#include "std_utility.hpp"
+#include "print_to_stream.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -332,4 +332,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/make_node.h b/include/toml++/impl/make_node.hpp
similarity index 98%
rename from include/toml++/impl/make_node.h
rename to include/toml++/impl/make_node.hpp
index 88199a5..c4a1210 100644
--- a/include/toml++/impl/make_node.h
+++ b/include/toml++/impl/make_node.hpp
@@ -4,8 +4,8 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "forward_declarations.h"
-#include "header_start.h"
+#include "forward_declarations.hpp"
+#include "header_start.hpp"
/// \cond
TOML_IMPL_NAMESPACE_START
@@ -179,4 +179,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/node.h b/include/toml++/impl/node.hpp
similarity index 99%
rename from include/toml++/impl/node.h
rename to include/toml++/impl/node.hpp
index 125ae5c..e4e316a 100644
--- a/include/toml++/impl/node.h
+++ b/include/toml++/impl/node.hpp
@@ -4,10 +4,10 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "std_utility.h"
-#include "forward_declarations.h"
-#include "source_region.h"
-#include "header_start.h"
+#include "std_utility.hpp"
+#include "forward_declarations.hpp"
+#include "source_region.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -1112,4 +1112,4 @@ TOML_IMPL_NAMESPACE_START
TOML_IMPL_NAMESPACE_END;
/// \endcond
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/node.inl b/include/toml++/impl/node.inl
index e97356a..171e05d 100644
--- a/include/toml++/impl/node.inl
+++ b/include/toml++/impl/node.inl
@@ -5,19 +5,19 @@
#pragma once
//# {{
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if !TOML_IMPLEMENTATION
#error This is an implementation-only header.
#endif
//# }}
-#include "node.h"
-#include "node_view.h"
-#include "at_path.h"
-#include "table.h"
-#include "array.h"
-#include "value.h"
-#include "header_start.h"
+#include "node.hpp"
+#include "node_view.hpp"
+#include "at_path.hpp"
+#include "table.hpp"
+#include "array.hpp"
+#include "value.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -138,4 +138,4 @@ TOML_IMPL_NAMESPACE_START
}
TOML_IMPL_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/node_view.h b/include/toml++/impl/node_view.hpp
similarity index 99%
rename from include/toml++/impl/node_view.h
rename to include/toml++/impl/node_view.hpp
index 8e07001..296ae53 100644
--- a/include/toml++/impl/node_view.h
+++ b/include/toml++/impl/node_view.hpp
@@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "std_vector.h"
-#include "std_initializer_list.h"
-#include "print_to_stream.h"
-#include "node.h"
-#include "header_start.h"
+#include "std_vector.hpp"
+#include "std_initializer_list.hpp"
+#include "print_to_stream.hpp"
+#include "node.hpp"
+#include "header_start.hpp"
TOML_DISABLE_ARITHMETIC_WARNINGS;
TOML_NAMESPACE_START
@@ -836,4 +836,4 @@ TOML_NAMESPACE_START
TOML_NAMESPACE_END;
/// \endcond
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/parse_error.h b/include/toml++/impl/parse_error.hpp
similarity index 95%
rename from include/toml++/impl/parse_error.h
rename to include/toml++/impl/parse_error.hpp
index 0a6041e..05f2b6d 100644
--- a/include/toml++/impl/parse_error.h
+++ b/include/toml++/impl/parse_error.hpp
@@ -4,13 +4,13 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if TOML_ENABLE_PARSER
-#include "std_except.h"
-#include "source_region.h"
-#include "print_to_stream.h"
-#include "header_start.h"
+#include "std_except.hpp"
+#include "source_region.hpp"
+#include "print_to_stream.hpp"
+#include "header_start.hpp"
#if TOML_DOXYGEN || !TOML_EXCEPTIONS
#define TOML_PARSE_ERROR_BASE
@@ -135,5 +135,5 @@ TOML_NAMESPACE_END;
#undef TOML_PARSE_ERROR_BASE
-#include "header_end.h"
+#include "header_end.hpp"
#endif // TOML_ENABLE_PARSER
diff --git a/include/toml++/impl/parse_result.h b/include/toml++/impl/parse_result.hpp
similarity index 99%
rename from include/toml++/impl/parse_result.h
rename to include/toml++/impl/parse_result.hpp
index 3292e8d..25743f4 100644
--- a/include/toml++/impl/parse_result.h
+++ b/include/toml++/impl/parse_result.hpp
@@ -4,12 +4,12 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if TOML_DOXYGEN || (TOML_ENABLE_PARSER && !TOML_EXCEPTIONS)
-#include "table.h"
-#include "parse_error.h"
-#include "header_start.h"
+#include "table.hpp"
+#include "parse_error.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -495,5 +495,5 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
#endif // TOML_ENABLE_PARSER && !TOML_EXCEPTIONS
diff --git a/include/toml++/impl/parser.h b/include/toml++/impl/parser.hpp
similarity index 98%
rename from include/toml++/impl/parser.h
rename to include/toml++/impl/parser.hpp
index 78b030b..fbdd65e 100644
--- a/include/toml++/impl/parser.h
+++ b/include/toml++/impl/parser.hpp
@@ -4,12 +4,12 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if TOML_ENABLE_PARSER
-#include "table.h"
-#include "parse_result.h"
-#include "header_start.h"
+#include "table.hpp"
+#include "parse_result.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -386,5 +386,5 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
#endif // TOML_ENABLE_PARSER
diff --git a/include/toml++/impl/parser.inl b/include/toml++/impl/parser.inl
index ef9cfde..a5135d0 100644
--- a/include/toml++/impl/parser.inl
+++ b/include/toml++/impl/parser.inl
@@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
//# {{
#if !TOML_IMPLEMENTATION
#error This is an implementation-only header.
@@ -12,15 +12,15 @@
//# }}
#if TOML_ENABLE_PARSER
-#include "parser.h"
-#include "std_optional.h"
-#include "source_region.h"
-#include "parse_error.h"
-#include "date_time.h"
-#include "value.h"
-#include "array.h"
-#include "table.h"
-#include "unicode.h"
+#include "parser.hpp"
+#include "std_optional.hpp"
+#include "source_region.hpp"
+#include "parse_error.hpp"
+#include "date_time.hpp"
+#include "value.hpp"
+#include "array.hpp"
+#include "table.hpp"
+#include "unicode.hpp"
TOML_DISABLE_WARNINGS;
#include
#include
@@ -34,7 +34,7 @@ TOML_DISABLE_WARNINGS;
#include
#endif
TOML_ENABLE_WARNINGS;
-#include "header_start.h"
+#include "header_start.hpp"
//#---------------------------------------------------------------------------------------------------------------------
//# UTF8 STREAMS
@@ -3913,5 +3913,5 @@ TOML_NAMESPACE_START
TOML_NAMESPACE_END;
#undef TOML_OVERALIGNED
-#include "header_end.h"
+#include "header_end.hpp"
#endif // TOML_ENABLE_PARSER
diff --git a/include/toml++/impl/path.h b/include/toml++/impl/path.hpp
similarity index 99%
rename from include/toml++/impl/path.h
rename to include/toml++/impl/path.hpp
index 2a40cc7..5bd0ef3 100644
--- a/include/toml++/impl/path.h
+++ b/include/toml++/impl/path.hpp
@@ -4,9 +4,9 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "forward_declarations.h"
-#include "std_vector.h"
-#include "header_start.h"
+#include "forward_declarations.hpp"
+#include "std_vector.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -848,4 +848,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/path.inl b/include/toml++/impl/path.inl
index 1c82c67..999d651 100644
--- a/include/toml++/impl/path.inl
+++ b/include/toml++/impl/path.inl
@@ -5,22 +5,22 @@
#pragma once
//# {{
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if !TOML_IMPLEMENTATION
#error This is an implementation-only header.
#endif
//# }}
-#include "path.h"
-#include "at_path.h"
-#include "print_to_stream.h"
+#include "path.hpp"
+#include "at_path.hpp"
+#include "print_to_stream.hpp"
TOML_DISABLE_WARNINGS;
#if TOML_INT_CHARCONV
#include
#endif
#include
TOML_ENABLE_WARNINGS;
-#include "header_start.h"
+#include "header_start.hpp"
//#=====================================================================================================================
//# toml::path_component
@@ -520,4 +520,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/preprocessor.h b/include/toml++/impl/preprocessor.hpp
similarity index 99%
rename from include/toml++/impl/preprocessor.h
rename to include/toml++/impl/preprocessor.hpp
index 6336ac8..bd27f41 100644
--- a/include/toml++/impl/preprocessor.h
+++ b/include/toml++/impl/preprocessor.hpp
@@ -1131,7 +1131,7 @@ TOML_ENABLE_WARNINGS;
//#====================================================================================================================
// clang-format off
-#include "version.h"
+#include "version.hpp"
#define TOML_LIB_SINGLE_HEADER 0
diff --git a/include/toml++/impl/print_to_stream.h b/include/toml++/impl/print_to_stream.hpp
similarity index 97%
rename from include/toml++/impl/print_to_stream.h
rename to include/toml++/impl/print_to_stream.hpp
index f0ce700..b6a4895 100644
--- a/include/toml++/impl/print_to_stream.h
+++ b/include/toml++/impl/print_to_stream.hpp
@@ -4,9 +4,9 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "std_string.h"
-#include "forward_declarations.h"
-#include "header_start.h"
+#include "std_string.hpp"
+#include "forward_declarations.hpp"
+#include "header_start.hpp"
TOML_IMPL_NAMESPACE_START
{
@@ -126,4 +126,4 @@ TOML_IMPL_NAMESPACE_START
}
TOML_IMPL_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/print_to_stream.inl b/include/toml++/impl/print_to_stream.inl
index 2a4b741..57dbf76 100644
--- a/include/toml++/impl/print_to_stream.inl
+++ b/include/toml++/impl/print_to_stream.inl
@@ -5,19 +5,19 @@
#pragma once
//# {{
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if !TOML_IMPLEMENTATION
#error This is an implementation-only header.
#endif
//# }}
-#include "print_to_stream.h"
-#include "source_region.h"
-#include "date_time.h"
-#include "toml_formatter.h"
-#include "value.h"
-#include "array.h"
-#include "table.h"
+#include "print_to_stream.hpp"
+#include "source_region.hpp"
+#include "date_time.hpp"
+#include "toml_formatter.hpp"
+#include "value.hpp"
+#include "array.hpp"
+#include "table.hpp"
TOML_DISABLE_WARNINGS;
#include
#if TOML_INT_CHARCONV || TOML_FLOAT_CHARCONV
@@ -30,7 +30,7 @@ TOML_DISABLE_WARNINGS;
#include
#endif
TOML_ENABLE_WARNINGS;
-#include "header_start.h"
+#include "header_start.hpp"
TOML_ANON_NAMESPACE_START
{
@@ -487,4 +487,4 @@ TOML_IMPL_NAMESPACE_START
}
TOML_IMPL_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/simd.h b/include/toml++/impl/simd.hpp
similarity index 97%
rename from include/toml++/impl/simd.h
rename to include/toml++/impl/simd.hpp
index c0fa57b..ef66d66 100644
--- a/include/toml++/impl/simd.h
+++ b/include/toml++/impl/simd.hpp
@@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
#if TOML_ENABLE_SIMD
#if defined(__SSE2__) \
diff --git a/include/toml++/impl/source_region.h b/include/toml++/impl/source_region.hpp
similarity index 97%
rename from include/toml++/impl/source_region.h
rename to include/toml++/impl/source_region.hpp
index 6c7bb15..82a6d4b 100644
--- a/include/toml++/impl/source_region.h
+++ b/include/toml++/impl/source_region.hpp
@@ -4,11 +4,11 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "std_optional.h"
-#include "std_string.h"
-#include "forward_declarations.h"
-#include "print_to_stream.h"
-#include "header_start.h"
+#include "std_optional.hpp"
+#include "std_string.hpp"
+#include "forward_declarations.hpp"
+#include "print_to_stream.hpp"
+#include "header_start.hpp"
TOML_NAMESPACE_START
{
@@ -220,4 +220,4 @@ TOML_NAMESPACE_START
}
TOML_NAMESPACE_END;
-#include "header_end.h"
+#include "header_end.hpp"
diff --git a/include/toml++/impl/std_except.h b/include/toml++/impl/std_except.hpp
similarity index 93%
rename from include/toml++/impl/std_except.h
rename to include/toml++/impl/std_except.hpp
index b964f90..9ea1479 100644
--- a/include/toml++/impl/std_except.h
+++ b/include/toml++/impl/std_except.hpp
@@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
TOML_DISABLE_WARNINGS;
#if TOML_EXCEPTIONS
#include
diff --git a/include/toml++/impl/std_initializer_list.h b/include/toml++/impl/std_initializer_list.hpp
similarity index 92%
rename from include/toml++/impl/std_initializer_list.h
rename to include/toml++/impl/std_initializer_list.hpp
index 510d1fe..e1ba61d 100644
--- a/include/toml++/impl/std_initializer_list.h
+++ b/include/toml++/impl/std_initializer_list.hpp
@@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
TOML_DISABLE_WARNINGS;
#include
TOML_ENABLE_WARNINGS;
diff --git a/include/toml++/impl/std_map.h b/include/toml++/impl/std_map.hpp
similarity index 92%
rename from include/toml++/impl/std_map.h
rename to include/toml++/impl/std_map.hpp
index e01bdf8..8f97330 100644
--- a/include/toml++/impl/std_map.h
+++ b/include/toml++/impl/std_map.hpp
@@ -4,7 +4,7 @@
// SPDX-License-Identifier: MIT
#pragma once
-#include "preprocessor.h"
+#include "preprocessor.hpp"
TOML_DISABLE_WARNINGS;
#include