Commit Graph

1585 Commits

Author SHA1 Message Date
ToruNiina
499be3c177 doc: update example tag/version v4.3.0 2025-01-13 19:50:06 +09:00
ToruNiina
df089a82e5 feat [skip ci]: update single_include 2025-01-13 10:46:54 +00:00
ToruNiina
5396847979 chore: bump version 2025-01-13 19:46:24 +09:00
ToruNiina
9b83842948 docs: update CHANGELOG 2025-01-13 18:28:50 +09:00
ToruNiina
02d1f0b9e0 doc: update std::visit arguments 2025-01-13 18:28:08 +09:00
ToruNiina
1e7bea87b6 doc: update acknowledgement 2025-01-13 18:15:56 +09:00
ToruNiina
b09d02a921 feat [skip ci]: update single_include 2025-01-12 17:05:53 +00:00
ToruNiina
f69f7ae9f4 feat: Merge branch 'visit-multi' 2025-01-13 02:05:22 +09:00
ToruNiina
7fd0f39e4d feat [skip ci]: update single_include 2025-01-12 15:49:02 +00:00
ToruNiina
844e8fd4e0 fix(#279): fix compilation with older msvc
by avoiding known SFINAE problem in msvc 2017
2025-01-13 00:47:58 +09:00
ToruNiina
04c55d0b0f feat: toml::visit takes multiple values 2025-01-12 16:08:43 +09:00
ToruNiina
c9a00dea5c feat [skip ci]: update single_include 2025-01-05 11:15:45 +00:00
ToruNiina
0f6e08fe69 feat: Merge branch 'main' into find-optional 2025-01-05 18:34:52 +09:00
ToruNiina
0468b76bdc feat: merge branch 'check-source-location-file-name-result' 2025-01-05 18:34:14 +09:00
ToruNiina
12be4e7983 doc: update hugo-book
to avoid deprecation warning
2025-01-05 15:42:41 +09:00
ToruNiina
e781d37c05 feat [skip ci]: update single_include 2025-01-05 06:39:01 +00:00
ToruNiina
5bea3508c6 feat: Merge branch 'main' into check-source-location-file-name-result 2025-01-05 15:38:28 +09:00
ToruNiina
f042b38a23 feat: merge branch 'main' into issue278 2025-01-05 15:01:36 +09:00
ToruNiina
93428f295a doc: add find<optional> to docs 2025-01-05 14:50:17 +09:00
ToruNiina
d13ca04041 test: add test_find<optional<T>> 2025-01-05 14:27:26 +09:00
ToruNiina
7bfbfcab95 feat: add find<optional<T>> 2025-01-05 14:27:09 +09:00
ToruNiina
247796c8f6 chore: Merge branch 'main' 2024-11-27 02:53:57 +09:00
ToruNiina
c7717b6d70 ci: remove deprecated os and duplicated os 2024-11-27 01:51:29 +09:00
ToruNiina
8fcb759694 fix: check std::source_location::file_name result
encountered an error with nullptr from std::source_location::file_name
2024-11-26 02:42:51 +09:00
ToruNiina
869fdbdf8f feat: reduce memory consumption with long line
source_location stores the whole line. In case of short range in a long
line like:
```
array = [1, 2, 3, ... , 100, 101, ..., 10000]
                        ^^^- the region
```
It save the whole line as a `std::stirng`. It consumes a lot of memory
and slows down everything. We can omit most of the part of the line
because we only need the region, `100` here.
2024-10-21 03:03:13 +09:00
ToruNiina
42a2628924 feat: save column_number in location
instead of calculating it every time
2024-10-19 00:04:08 +09:00
ToruNiina
befe379241 refactor: restrict retrace dist == 1
to simplify the implementation
2024-10-18 02:24:11 +09:00
ToruNiina
f06ad06ad7 refactor: rm argument(same as default) of retrace 2024-10-18 02:21:38 +09:00
ToruNiina
5fbb86d989 refactor: rename adv_line_num -> adv_impl 2024-10-18 02:08:22 +09:00
ToruNiina
1ba90bc505 refactor: remove set_location 2024-10-18 00:35:13 +09:00
ToruNiina
7f6c574ff5 doc: update CPM in README with OPTIONS 2024-10-14 20:25:53 +09:00
Toru Niina
f925e7f287 Merge pull request #277 from oldoldtea/fix-readme 2024-09-30 21:14:01 +09:00
somebody
5445905e5e Update README.md
Co-authored-by: Toru Niina <niina.toru.68u@gmail.com>
2024-09-30 11:04:57 +08:00
lz
576a71aa0e update README.md 2024-09-29 15:27:07 +08:00
lz
2c96a2059f 🐞 fix(README.md): fix syntax errors 2024-09-29 15:25:57 +08:00
ToruNiina
d050c6b137 feat [skip ci]: update single_include 2024-09-23 13:44:01 +00:00
Toru Niina
9cda72d308 Merge pull request #276 from hayt/main
fix: prevent size_t-max length string allocation
2024-09-23 22:43:28 +09:00
hayt
b0d9e81d85 fix: prevent size_t-max length string allocation
prevent an issue, where a string was created with size_t(0)-1 length.

When creating underlines for error output, the current column sometimes had cases
where it was set to 0 caused an underflow.
2024-09-22 10:15:47 +02:00
Toru Niina
4b74012723 Merge pull request #271 from SeverinLeonhardt/CMP0127
Fix use with CMake 3.21 and older
2024-08-29 21:30:14 +09:00
Severin Leonhardt
5e786476dd Fix use with CMake 3.21 and older
The minimum required CMake version is 3.16 but CMP0127 was only
introduced in 3.22. This results in errors with versions 3.16 - 3.21:

```
CMake Error at CMakeLists.txt:28 (cmake_policy):

  Policy "CMP0127" is not known to this version of CMake.
```

Fixed by only setting the policy when it's actually available.
2024-08-27 09:40:48 +02:00
ToruNiina
26d403e461 feat [skip ci]: update single_include 2024-08-19 14:10:59 +00:00
Toru Niina
f40f4d7770 Merge pull request #268 from kontura/zero-init
fix: add missing zero initialization to region
2024-08-19 23:10:35 +09:00
Aleš Matěj
9c7cef94a5 fix: add missing zero initialization to region 2024-08-19 14:18:29 +02:00
ToruNiina
cc0bee4fd4 feat: bump version v4.2.0 2024-08-12 12:47:30 +09:00
ToruNiina
b415dd81ed doc: update changelog 2024-08-12 12:47:09 +09:00
ToruNiina
0c833452e4 Merge branch 'main' of github.com:ToruNiina/toml11 2024-08-12 00:24:30 +09:00
ToruNiina
070fa825e4 doc: update README 2024-08-12 00:23:59 +09:00
ToruNiina
a2e8d68c95 doc: update doc for thread-local colorization 2024-08-12 00:23:17 +09:00
ToruNiina
b90b5bdb35 feat [skip ci]: update single_include 2024-08-10 09:35:38 +00:00
ToruNiina
9b58c7e321 Merge branch 'find-or-deep-nest' 2024-08-10 18:35:10 +09:00