Nikita Kniazev
877c778ed9
X3.Tests: rule_separate_tu: Fix static initialization order fiasco
2019-11-03 21:01:58 +03:00
Joel de Guzman
792515ba91
Merge pull request #549 from Kojoley/x3-fix-parse_rule-defined-check
...
X3: Fix `parse_rule` definition check
2019-10-19 08:25:21 +08:00
Nikita Kniazev
10d027fd5c
X3: Fix parse_rule
definition check
...
Regressed in #457
2019-10-18 21:43:06 +03:00
Joel de Guzman
d144f5facc
Merge pull request #545 from Lastique/add_missing_include_assert_hpp
...
Add missing includes of assert.hpp
2019-10-14 22:31:16 +08:00
Andrey Semashev
3a7bf08d7f
Add missing includes of assert.hpp.
...
This fixes a regression introduced by 5a217a5e03
.
2019-10-14 10:20:22 +03:00
djowel
53d4bca0b1
Bring back https://github.com/boostorg/spirit/pull/536
2019-10-13 08:58:07 +08:00
djowel
f10cf8a80f
Fix for https://github.com/boostorg/spirit/pull/543 + test
2019-10-12 11:24:21 +08:00
djowel
5a217a5e03
Bring back the asserts, but do it properly this time.
2019-10-12 11:20:33 +08:00
Nikita Kniazev
df93125a6d
Merge pull request #541 from Kojoley/fix-msvc-c4127-warnings
...
Fix MSVC C4127 warnings
2019-09-30 14:08:34 +03:00
Nikita Kniazev
7771d20cc7
Fix MSVC C4127 warnings
2019-09-30 01:29:29 +03:00
Nikita Kniazev
3fd6fa685f
CI: Disable MSVC C4701 warning due to false positives
2019-09-29 01:37:34 +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
d6fb1feccd
CI: Actually run MSVC with /W4
2019-09-28 17:12:00 +03:00
Nikita Kniazev
5cb2193662
CI: Run MSVC with /W4
2019-09-27 22:20:04 +03:00
Joel de Guzman
3e661bbec5
Merge pull request #536 from Kojoley/x3-remove-bool-char-bool-conversion
...
X3: Remove bool->char->bool conversion
2019-09-21 08:34:32 +08:00
Nikita Kniazev
f34e5a0dd5
X3: Removed bool->char->bool conversion
...
MSVC barfs on implicit conversion to `bool` here, and it is indeed suspicious.
I have no idea why `in_set` return type is a char type, the method name itself
suggests that it returns boolean value. The only used template parameter type
seems to be `basic_set` and its `test` method returns `bool`. The usages of
`in_set` method also seem to expect a boolean value from it.
2019-09-21 00:22:31 +03:00
Nikita Kniazev
9cf7a3ef73
Fix CI fail
2019-09-20 22:51:38 +03:00
Joel de Guzman
4fc68a1201
Merge pull request #535 from stefan301/stefan301-patch-1
...
Update escape_char.ipp
2019-09-15 02:30:35 +08:00
stefan301
ecfe4b52f8
Update escape_char.ipp
2019-09-14 19:19:48 +02: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
Michael Caisse
49e83e75bb
force libraries.json change
2019-09-02 16:26:36 -07:00
Michael Caisse
adbeee3b32
force libraries.json change
2019-09-02 16:25:47 -07:00
Michael Caisse
737a7de986
force libraries.json change
2019-09-02 12:23:35 -07:00
Michael Caisse
3691c178a6
force libraries.json change
2019-09-02 12:23:08 -07:00
Michael Caisse
b6e3576c39
Mod libraries.json to force doc update.
2019-09-01 08:13:12 -07:00
Michael Caisse
edaad80004
insignificant change to force bot test
2019-08-29 12:49:32 -07:00
djowel
16159fb335
add invalid ascii tests + fix
2019-08-26 10:24:20 +08:00
djowel
dd2731ffa1
Remove checks for char size; the char parsers should allow different char sizes.
2019-08-26 08:19:59 +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
djowel
a27e00cad9
Remove asserts. The parser should fail, not assert.
2019-08-26 08:17:21 +08:00
Joel de Guzman
fd6b53c2c9
Merge pull request #528 from LeonineKing1199/unicode-fuzz-fixes
...
Unicode out-of-bounds category lookup fixes
2019-08-26 07:59:55 +08:00
LeonineKing1199
9733fc2321
Added tests for upper/lower category lookups
2019-08-25 11:19:42 -07:00
LeonineKing1199
6c1592f90e
Fix bug in boolean logic
2019-08-25 11:14:43 -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
Joel de Guzman
726f19f028
Merge pull request #521 from sehe/develop
...
Fix for #520 any_char accepts outside encoding
2019-07-09 07:15:30 +08:00
sehe
9d30d97b66
Fix for #520 any_char accepts outside encoding
...
The following assert fails:
int main() {
namespace x3 = boost::spirit::x3;
char const* input = "\x80";
assert(!x3::parse(input, input+1, x3::ascii::char_));
}
The assert should pass because char_encoding::ascii::test disallows
non-7bit ASCII, so "\x80" is outside the encoding.
The corresponding Qi test case DOES pass:
int main() {
namespace qi = boost::spirit::qi;
char const* input = "\x80";
assert(!qi::parse(input, input+1, qi::ascii::char_));
}
This simple fix requires the encoding's `ischar` to return true always,
making the behavior as specified and consistent with Qi and docs.
2019-07-07 16:53:46 +02:00
djowel
885d3ac013
Test for https://github.com/boostorg/spirit/issues/511 , removing static_assert
2019-07-02 20:41:11 +08:00
Joel de Guzman
bd4ddd2aed
Merge pull request #516 from rockonedege/develop
...
added x3 example of wrapping multiple attributes using std::tuple
2019-06-19 06:26:02 +08:00
ttan
d3ab9a709e
added x3 example of wrapping multiple attributes using std::tuple
2019-06-18 14:54:03 +08:00
Joel de Guzman
96cfe50992
Merge pull request #510 from Lastique/update_typeinfo
...
Port to Boost.Core typeinfo.hpp to avoid deprecated warnings
2019-05-26 07:09:01 +08:00
Andrey Semashev
5eaeda9977
Ported to Boost.Core typeinfo.hpp to avoid deprecated warnings.
2019-05-25 18:47:03 +03: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
Joel de Guzman
2f9de2690d
Proper MSVC warning/error fix.
2019-05-09 08:41:33 +08:00