Commit Graph

901 Commits

Author SHA1 Message Date
Nikita Kniazev
877c778ed9 X3.Tests: rule_separate_tu: Fix static initialization order fiasco 2019-11-03 21:01:58 +03:00
Nikita Kniazev
10d027fd5c X3: Fix parse_rule definition check
Regressed in #457
2019-10-18 21:43:06 +03:00
djowel
f10cf8a80f Fix for https://github.com/boostorg/spirit/pull/543 + test 2019-10-12 11:24:21 +08:00
Nikita Kniazev
7771d20cc7 Fix MSVC C4127 warnings 2019-09-30 01:29:29 +03:00
Nikita Kniazev
75f66ccc0f Suppress bogus MSVC C4428 warning 2019-09-29 01:36:26 +03:00
Nikita Kniazev
f474ee6b54 Lex: regression_wide suppress signed with unsigned comparison warning
Instead of actual token type Lex internally uses `std::size_t` and passes the
token value to semantic actions as-is. Revert the commit once it is fixed.
2019-09-28 21:51:02 +03:00
Nikita Kniazev
db5799558d Fix MSVC C4189 warnings 2019-09-28 19:10:10 +03:00
Nikita Kniazev
9cf7a3ef73 Fix CI fail 2019-09-20 22:51:38 +03:00
Joel de Guzman
1fc5359fd9
Merge pull request #534 from duzy/master
Add handling with `optional<Source>` for `boost::spirit::x3::traits::…
2019-09-11 14:48:57 +08:00
Duzy Chan
7207225dbe Add handling with optional<Source> for boost::spirit::x3::traits::move_to,
so that optional ast node will work. See also test/x3/optional_ast_node.cpp for
the case.

Addressed at https://github.com/boostorg/spirit/issues/533
2019-09-11 11:32:30 +08:00
djowel
16159fb335 add invalid ascii tests + fix 2019-08-26 10:24:20 +08:00
djowel
894c60adee remove unwanted tests 2019-08-26 08:18:13 +08:00
djowel
730b35be1f add invalid ascii tests 2019-08-26 08:17:53 +08:00
LeonineKing1199
9733fc2321 Added tests for upper/lower category lookups 2019-08-25 11:19:42 -07:00
LeonineKing1199
3db2c1d2f4 Added invalid Unicode test case 2019-08-25 11:14:27 -07:00
LeonineKing1199
e554022b4c Fixed typo in test_failure 2019-08-25 09:39:39 -07:00
LeonineKing1199
355007d571 Added overload of test_failure for string views 2019-08-25 09:14:47 -07:00
djowel
885d3ac013 Test for https://github.com/boostorg/spirit/issues/511, removing static_assert 2019-07-02 20:41:11 +08:00
djowel
ded2c2127c More fixes and tests for https://github.com/boostorg/spirit/issues/509 2019-05-16 09:15:46 +08:00
djowel
fc331f5a4d Fix for https://github.com/boostorg/spirit/issues/509 2019-05-15 22:33:36 +08:00
LeonineKing1199
017478bd29 Updated tests 2019-05-06 20:56:32 -07:00
Joel de Guzman
80bb2a9fab Fix for https://github.com/boostorg/spirit/issues/503. Float compariso is tricky. eps for comparision is wrong in some cases. 2019-05-05 03:18:19 +08:00
djowel
3c4e83c8ba not needed anymore (for x3) 2019-05-04 17:47:31 +08:00
djowel
7cfc21f866 Basic test for float_ double_ and long_double 2019-05-04 17:47:31 +08:00
djowel
747f7ebc41 deal with long double compares 2019-05-04 17:47:31 +08:00
djowel
949fe02a1f Working fix for https://svn.boost.org/trac10/ticket/11608
Added similar tests to x3
2019-04-25 19:40:40 +08:00
djowel
be7640bd69 Fix for https://github.com/boostorg/spirit/issues/421
WIP: https://svn.boost.org/trac10/ticket/11608
2019-04-25 18:12:45 +08:00
djowel
8a236c4bdf Correct fix for negative exponents; should probably port Qi's compensate_roundoff as well, but we'll do that next time. 2019-04-24 16:00:15 +08:00
djowel
def07a9956 Fix for https://github.com/boostorg/spirit/issues/495 2019-04-24 09:13:25 +08:00
Nikita Kniazev
de67862b5b Support.Tests: unused_type: used the wrong operator 2019-04-19 04:25:14 +03:00
Nikita Kniazev
d8916bf4c3 unused_type: added usage tests 2019-04-19 01:49:25 +03:00
Nikita Kniazev
f65d7a8013 unused_type: trivial on C++11+ 2019-04-19 01:45:37 +03:00
Nikita Kniazev
ef8d59c626 Fix self-assignment warning in unused_type test 2019-04-17 18:21:08 +03:00
Nikita Kniazev
55aa6f7556 unused_type: Added basic tests 2019-04-17 16:49:31 +03:00
Romain Geissler
295ad6710a Explicitly delete all non implemented assignment operators.
Commit (almost) automatically generated with the following sed command:
sed -i -ne '1h;1!H;${g;s|\n[[:blank:]]*private:\n\([[:blank:]]*\)// silence MSVC warning C4512: assignment operator could not be generated\n\([[:blank:]]*\)\([^\n]\+\);\n|\n\1// silence MSVC warning C4512: assignment operator could not be generated\n\2BOOST_DELETED_FUNCTION(\3);\n|g;p}' $(git ls-files)

Then all files in the x3 subfolder were reverted to HEAD, and manually
updated to use " = delete" instead of BOOST_DELETED_FUNCTION.
2019-04-16 22:35:52 +00:00
Nikita Kniazev
e92f491a54 Qi.Tests: Suppress -Wuninitialized in direct initialization test 2019-03-06 21:10:54 +03:00
Nikita Kniazev
e2d96079e1 Tests: move_only: Add default constructor
In C++20 such types will no longer be brace constructible.
2019-03-06 02:40:42 +03:00
Nikita Kniazev
fc39ec12c9 Qi.Tests: rule1: Fixed -Wuninitialized warning
libs/spirit/test/qi/rule1.cpp:75:47: warning: variable 'start' is uninitialized when used within its own initialization [-Wuninitialized]
2019-03-04 00:27:36 +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
63a16b76dd X3.Tests: Fixed extra semicolon warnings 2019-03-01 01:12:01 +03:00
Nikita Kniazev
7b3939f133 Tests: Fix some of maybe uninitialized warnings 2019-03-01 01:12:00 +03:00
Nikita Kniazev
0694cfb0da X3.Tests: alternative: Fix unreachable code warning 2019-03-01 01:12:00 +03:00
Nikita Kniazev
666fed425e X3.Tests: Fix unused argument warnings 2019-03-01 01:11:59 +03:00
Nikita Kniazev
5d80257f61 X3.Tests: MSVC14.0 have problems with variable templates 2019-02-27 16:16:16 +03:00
Nikita Kniazev
660d8ac3c1 X3.Tests: Fix odd temporary attribute creation 2019-02-26 21:23:43 +03:00
Nikita Kniazev
793d89619c X3: Move only types with optional 2019-02-26 21:23:43 +03:00
Nikita Kniazev
8bd9b6ece4 X3: Fixed container of move only types with sequence 2019-02-26 21:23:43 +03:00
Nikita Kniazev
f371ccf6d0 X3: push_back has to forward actual reference type
Added tests for move only types in kleene, plus, list, and repeat parsers
2019-02-26 21:23:43 +03:00
Nikita Kniazev
eb8eeb2fbc extract_uint: Fixed IgnoreOverflowDigits=true problem at overflow
The IgnoreOverflowDigits=true parser always succeeds and because of that it
expects from the digits parser that a number passed as inout argument will be
changed only on success.

Changed negative_accumulator and X3 for consistency.
2019-02-22 15:13:02 +03:00