2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

236 Commits

Author SHA1 Message Date
Sergiu Deitsch
b80d6489c5 Karma: fix broken real_generator output for long double
Eliminate Boost 1.90.0 regression introduced in e6fbdf615b.
2025-12-20 15:54:15 +01:00
sigbjorn
e6fbdf615b Adding proposed fix, with tests, resolves #792 (#793)
Co-authored-by: Nana Sakisaka <1901813+saki7@users.noreply.github.com>
2025-05-09 16:43:41 +09:00
Rene Rivera
d85a0f485a Change math dep real target math/tr1. 2024-08-11 09:23:25 -05:00
Rene Rivera
c31939d691 Make the library modular usable. 2024-03-11 08:38:16 -05:00
Nikita Kniazev
d4d4b8e9d8 Tests: Boost.Math drops MSVC 14.0 support 2024-02-23 07:42:12 +03:00
Nikita Kniazev
250e78ad0d Tests: fix missing sstream includes (more) 2023-03-18 22:41:52 +03:00
Nikita Kniazev
bda34254dc Tests: fix missing sstream includes 2023-03-18 18:06:07 +03:00
Nikita Kniazev
fe3675ea09 Tests: Suppress C++03 deprecation warnings from other libraries 2023-03-17 22:50:13 +03:00
Nikita Kniazev
859fd9cf85 Karma: real generator off by a magnitude due to log10 rounding up 2022-09-23 00:05:16 +03:00
Nikita Kniazev
30ed090a15 Tests: Boost.Math will require C++14 soon 2022-06-27 21:55:59 +03:00
Nikita Kniazev
abd946b00d Tests: Limit -Wno-deprecated-copy to GCC 9-11
To avoid 'unrecognized command line option "-Wno-maybe-uninitialized"' warning
2021-12-17 22:19:40 +03:00
Nikita Kniazev
551d4b6d79 Rework known warning suppression 2021-12-17 04:21:28 +03:00
Roel Standaert
e4092c6f3b Karma: fix off by factor 10 error when rounding to integer
This fixes issue #688. There's some code that divides the integer part
by 10 and increases dim to compensate for it. This code is not
applicable to fixed notation, however, since dim is disregarded in that
case, causing the result to be off by a factor 10.

We can fix this by checking if we're not using fixed notation first,
before doing the division.

Added a few tests to check for this regression.
2021-12-17 01:12:53 +03:00
Nikita Kniazev
4ea7e3a7b7 Deprecate Phoenix transition headers
There is no purpose in these transition headers, Phoenix V2 was removed 8 years ago.
2021-09-28 22:24:57 +03:00
Nikita Kniazev
0821b0d877 Improve headers self-sufficiency
Closes #695
2021-08-28 23:43:28 +03:00
Nikita Kniazev
f44479bcd3 Remove boost/config/warning_disable.hpp usage
It is better to manage warnings on our side to know what warnings we need to fix or suppress, and the only thing that header does is disabling deprecation warnings on MSVC and ICC which we would prefer to not show to users.
2021-08-24 03:14:12 +03:00
Nikita Kniazev
bbb020e221 Remove unused boost/mpl/print.hpp includes 2021-08-23 22:35:47 +03:00
Nikita Kniazev
6a7c758376 Switch to the new location of lightweight test
Old location had been deprecated for a long time already.
2021-08-23 21:45:17 +03:00
Nikita Kniazev
62dd237c61 Cease dependence on Foreach
I have not touch examples because they are not affecting Spirit usage and testing dependencies, and modernizing them also seems like a waste of time when we encourage to start new projects with X3 instead of Qi.
2021-06-20 23:04:34 +03:00
Nikita Kniazev
705954734d Workaround bogus MSVC C4709 warning
It has been 10+ years since the false-positive was reported to MSVC developers, but still it is not fixed. My bug report in the new MSVC bug tracker https://developercommunity.visualstudio.com/t/buggy-warning-c4709/471956 seen no motion in two years.
2021-05-30 23:46:56 +03:00
Nikita Kniazev
0e15dd13bb Fix MSVC C4456 2021-05-17 03:01:58 +03:00
Nikita Kniazev
dd1359cb42 Remove pointless self version check 2021-04-11 18:01:39 +03:00
Nikita Kniazev
9a9bbcfb2e Disable Boost.Math real_concept on C++03 (it now requires C++11) 2021-02-09 01:02:12 +03:00
Hartmut Kaiser
9b126fa865 Fixing problems related to formatting numbers 2020-11-21 16:08:21 -06:00
Nikita Kniazev
ffe9bbc59d Karma.Tests: int2: warning C4310: cast truncates constant value 2020-07-22 23:41:48 +03:00
Nikita Kniazev
81db036c6d Karma.Tests: int2: char type is not always signed 2020-07-22 23:41:35 +03:00
Nikita Kniazev
ce34303926 Karma.Tests: print_if_failed: Hexencode non-ASCII printable
Fixes noisy C4244 warning.
2020-07-20 01:40:41 +03:00
Nikita Kniazev
657c40e30f Karma.Tests: rule_fail: Remove unused and deprecated include 2020-05-05 20:28:47 +03:00
Nikita Kniazev
475877a3da Fix -Wdeprecated-comma-subscript 2020-04-12 22:13:32 +03:00
Nikita Kniazev
273a4effad Fixed unused parameter warnings 2020-04-06 01:46:34 +03:00
Nikita Kniazev
ee9c7214c4 Port to B2 forced-include feature 2020-04-04 15:30:21 +03:00
Nikita Kniazev
fb52246a00 Remove deprecated Boost.Bind global placeholders usage 2020-03-30 20:28:10 +03:00
Brian Wignall
5bdefe59a7 Fix typos 2019-12-27 21:49:15 -05:00
Nikita Kniazev
a0f1b2259d Cease dependence on LexicalCast
Some examples still use it. I see updating them to C++11 a better option.
2019-11-30 01:58:20 +03:00
Nikita Kniazev
156bd18d17 Narrow Proto and Phoenix inclusion
Include needed parts at place where they are needed instead of including the
whole Proto library and significant parts of Phoenix in a few places.

Parsing time reported by Clang 9 with default (C++14) std:

was |now |gain|include
----|----|----|----------
4.45|4.22|5.2%|qi
4.52|4.23|7.5%|karma
4.37|3.99|9.7%|lex
3.75|3.47|7.5%|qi_numeric

There were phoenix/limits.hpp inclusion before every Proto inclusion to override
Proto limits with Phoenix limits values. It has no value in C++11+ world, and
poisons code too much as the number of places where Proto headers now included
increased, so I did not replicate it.
2019-11-29 03:20:30 +03:00
Nikita Kniazev
7771d20cc7 Fix MSVC C4127 warnings 2019-09-30 01:29:29 +03:00
Nikita Kniazev
db5799558d Fix MSVC C4189 warnings 2019-09-28 19:10:10 +03:00
Nikita Kniazev
0ab06abfc6 Annotate, clean up, and group extended ASCII tests 2019-03-01 22:50:15 +03:00
Nikita Kniazev
ddd4619987 Hexencode extended ASCII characters
There is no other portable way to deal with extended ASCII in source code.
2019-03-01 22:50:15 +03:00
Nikita Kniazev
e46e58f4cd Tests: Added precompiled headers
Not intrusive. Significantly speeds up tests on MSVC (for about 3 times).
Finally solves exceeding build time limits on CI with MSVC compilers.

Did not set up PCH for X3, it is fast as-is (tooks only about 2 minutes).
Repository tests reuse PCH from Qi/Karma tests.
2019-01-21 02:59:45 +03:00
Nikita Kniazev
e07ce69363 Removed unused lexical_cast includes 2018-12-27 19:36:51 +03:00
Nikita Kniazev
304a10ff33 Karma.Tests: real.hpp: Fixed typo in comments
https://svn.boost.org/trac10/ticket/8440
2018-11-22 18:27:58 +03:00
Nikita Kniazev
5e4ab36170 Tests: Include less headers 2018-10-01 02:16:04 +03:00
Nikita Kniazev
b3ae790e2b Use endian macros from Predef
The `boost/detail/endian.hpp` header is deprecated.
2018-09-15 18:19:49 +03:00
Nikita Kniazev
1d9aa696bf Karma: Fixed use after scope bug if ADT getter returns by value
The `extract_from_attribute` returns a reference to a temporary
value produced by calling Fusion ADT adapted sequence getter that
returns by value.

Was reported 6 years ago https://svn.boost.org/trac10/ticket/6126
2018-03-15 18:50:17 +03:00
Nikita Kniazev
7fdc4d2460 Merge pull request #333 from Kojoley/fix-karma-binary2-overflow
Karma.Tests: Fixed overflow in binary tests
2017-12-18 18:51:02 +03:00
Nikita Kniazev
2104d5f063 Karma.Tests: Fixed overflow in binary tests 2017-12-18 00:10:16 +03:00
octopus-prime
cf769b145f Trigger appveyor 2017-12-17 13:14:04 +01:00
octopus-prime
6a4547ca43 Added fix and test from trac # 5983 2017-12-15 11:29:46 +01:00
Nikita Kniazev
0917fca9fd Tests: Improve tests
- Split Spirit v2 tests
  - Readd missing v2 tests
  - Run X3 tests
  - Remove `-p3` suffix
  - Use `<c++-template-depth>`
  - Automatic adding of subproject name prefix
  - Flatten tests declaration
2017-11-28 03:10:20 +03:00