ToruNiina
1c82c7a1dc
fix: move cmake option to toplevel cmakelists
2022-03-16 22:40:42 +09:00
ToruNiina
dde351ea40
feat: add escape sequence of ESC
...
as an unreleased feature
2022-03-16 22:39:52 +09:00
ToruNiina
dcfe39a783
chore: update version number
2022-03-13 01:44:29 +09:00
ToruNiina
2f07030d43
doc: update the list of contributors
2022-03-13 01:40:43 +09:00
ToruNiina
97cc0ef62b
fix #166 : reorder local/gmtime wrapper for MSVC
2022-03-13 00:20:00 +09:00
ToruNiina
0e80cabe65
Merge branch 'check-specialized-conversion'
2022-03-12 19:00:29 +09:00
ToruNiina
cd97dfcec1
Merge branch 'insertion-to-table-defined-by-dotted-key'
2022-03-12 19:00:07 +09:00
ToruNiina
e60442c6db
fix: check if re-open dotkey by a table
...
like:
```
a.b.c = "foo"
[a.b] # this is invalid
d = "bar"
```
2022-03-12 18:22:01 +09:00
Toru Niina
d39fd88a17
Merge pull request #185 from ax3l/topic-installEmbed
...
CMake: Optional Install if Embedded
2022-03-07 23:12:33 +09:00
Axel Huebl
7fb8b84143
CMake: Optional Install if Embedded
...
When adding this library as embedded library with private
"target link", e.g., only used inside private source files, the
library does not need to be installed when the main project gets
installed.
This adds an additional option `toml11_INSTALL` similar to the
test-build control switch in order to skip installing headers and
CMake config files if requested.
Avoids using
```cmake
add_subdirectory(path/to/toml11 EXCLUDE_FROM_ALL)
```
which has further side-effects:
https://cmake.org/cmake/help/v3.0/command/add_subdirectory.html
2022-03-03 18:55:55 -08:00
ToruNiina
03259e2003
fix #177 : check specific conversion function
...
when converting toml::value to array-like
2021-12-25 14:08:55 +09:00
ToruNiina
bf2384d8da
fix #182 : Merge branch 'workaround-msvc-cplusplus-macro'
2021-12-18 15:41:43 +09:00
ToruNiina
8ebf9c984b
ci: check if it works w/o /Zc:__cplusplus
2021-12-18 14:23:58 +09:00
ToruNiina
7354e91924
fix: Allow MSVC to have old version
2021-12-18 00:36:20 +09:00
ToruNiina
4522070391
ci: check if MSVC 14 2015 (19.0.24241.7) (1900)
...
passes ci build if we skip _MSVC_LANG
2021-12-18 00:21:55 +09:00
ToruNiina
02fd8a577b
feat: workaround __cplusplus problem on MSVC
2021-12-17 22:29:57 +09:00
ToruNiina
40777070ad
fix: disallow dotkey and inline table migration
2021-12-16 22:16:24 +09:00
ToruNiina
cc1cc27613
fix: disallow merging dotted key and inline table
...
current code mistakenly allows the following TOML file.
```toml
a.b = 42 # table "a" is defined here, implicitly
a = {c = 3.14} # table "a" is overwritten here
```
But we need to allow the following (structually similar) TOML file.
```toml
a.b = 42 # table "a" is defined here, implicitly
a.c = 3.14 # table "a" is merged with {c = 3.14}
```
To distinguish those, we check whether the current table is defined as
an inline table or via dotted key. If the table we are inserting is
defined via dotted key, we accept it and merge the table. If the table
being inserted is defined as an inline table, then we report an error.
2021-12-16 01:11:47 +09:00
ToruNiina
75e297eb47
fix: Merge branch 'check-datetime'
...
Briefly check if a given date and time is valid
2021-12-15 22:35:56 +09:00
ToruNiina
0d0605e290
fix #181 : Merge branch 'no-null-char'
2021-12-15 22:35:31 +09:00
ToruNiina
23f6c931e5
test: add valid/invalid datetime cases
2021-12-15 00:51:07 +09:00
ToruNiina
518e6d4ae2
feat: check date and time are valid or not
2021-12-15 00:31:41 +09:00
ToruNiina
db2aa55d20
fix: disallow null char at the end of input
...
since std::string and ""_toml literal actually does not include null
char, we don't need to check if the last char is null or not
2021-12-14 22:33:58 +09:00
ToruNiina
1b5107e5e3
fix #180 : Merge branch 'linefeed-at-eof'
2021-12-11 23:13:42 +09:00
ToruNiina
2152c85cd1
test: add test_file_ends_without_lf
2021-12-10 23:46:47 +09:00
ToruNiina
2e4c7fb95e
fix: line-feed is not required at the EOF
2021-12-10 23:39:54 +09:00
ToruNiina
2ddcfb4b61
doc: update constributors in README
2021-12-08 21:50:09 +09:00
Toru Niina
3f233d57be
Merge pull request #178 from marascio/lrm-resolve-173-free-nonheap-object
...
Resolve g++ warning: free-nonheap-object
2021-12-05 19:46:38 +09:00
Louis R. Marascio
21732fce45
Resolve g++ warning: free-nonheap-object
...
As described in issue #173 , this warning is raised on various platforms
and in various build types. For example, g++ 11 in release mode will
cause this warning to be raised. This change fixes this warning.
2021-12-01 14:43:43 -06:00
Toru Niina
1dc09d0332
Merge pull request #176 from GMLC-TDC/fix_warnings
...
Fix warnings
2021-11-25 00:13:36 +09:00
Philip Top
9c1708c988
Update toml/traits.hpp
...
Co-authored-by: Toru Niina <niina.toru.68u@gmail.com>
2021-11-24 06:40:09 -08:00
Philip Top
84f61f7dc8
match the cmake condition to upstream
2021-11-23 16:16:16 -08:00
Philip Top
eef7106fbe
fix more warnings
2021-11-19 10:22:37 -08:00
Philip Top
a919190490
tweak the cmake a little
2021-11-19 08:47:18 -08:00
Philip Top
7f98740c9c
update from changes in cmake standard
2021-11-19 08:43:04 -08:00
Philip Top
e08c579e36
fix a change in the key_value name from upstream merge
2021-11-19 08:43:03 -08:00
Philip Top
6dd44dc672
fix project issue with cmake
2021-11-19 08:41:24 -08:00
Philip Top
99e483c447
[ci skip] use a policy in the CMakeLists.txt for toml11 fix some more string_view errors
2021-11-19 08:41:00 -08:00
Philip Top
26a066ad07
skip ci
...
ci skip
update another string_view issue
2021-11-19 08:39:00 -08:00
Philip Top
acad8b1a61
add additional check for invocability
2021-11-19 08:37:02 -08:00
Philip Top
605cd8ef4a
fix shadow and some undef warnings
2021-11-19 08:37:01 -08:00
ToruNiina
bcee9f25a2
fix: check if subtable key conflicts
2021-10-10 20:58:28 +09:00
Toru Niina
f2f2b44d87
Merge pull request #172 from estshorter/fix_readme
...
fix a compile error in a code example
2021-10-10 14:44:00 +09:00
estshorter
e40dfc28eb
fix a compile error in a code example
2021-10-10 14:07:34 +09:00
Toru Niina
24284c70ee
Merge pull request #171 from estshorter/issue_170
...
fix a compile warning C26478
2021-10-10 13:29:37 +09:00
estshorter
dced71224d
fix a compile warning C26478
2021-10-09 11:12:58 +09:00
Toru Niina
177c09f43d
Merge pull request #169 from ohdarling/fix_force_inline
...
fix: serializer has wrong constructor params order when format root object
2021-09-24 00:29:14 +09:00
ohdarling
e434c96b7f
fix: serializer has wrong constructor params order when format root object
2021-09-22 11:38:42 +08:00
Toru Niina
fda0a2b9ab
Merge pull request #167 from karl-nilsson/spelling
...
Spelling fixes
2021-08-30 01:01:27 +09:00
Karl Nilsson
3eee515ce1
Spelling fixes
2021-08-27 19:52:45 -04:00