Commit Graph

43 Commits

Author SHA1 Message Date
Zach Laine
c2d27e58df Define BOOST_NO_AUTO_PTR for all the Travis tests. 2018-10-24 22:59:15 -05:00
Zach Laine
97fca5f741 check -> yap_check. If a "check" target exists, give it a dependency on
yap_check. Add a custom target check that depends on yap_check otherwise.
2018-10-24 22:59:15 -05:00
Zach Laine
ba3d943559 Simplify if_else so that it no longer requires linking to unit_test_framework. 2018-03-04 12:41:00 -06:00
Zach Laine
8cbd7c70c2 Fix CMake build. 2018-03-04 12:23:08 -06:00
Zach Laine
26ff6ece8c Add compile-fail tests for functions in algorithm.hpp.
Fixes #54.
2018-03-03 22:28:11 -06:00
Zach Laine
71e983a0f6 Add code coverage build mode. 2018-03-03 20:54:50 -06:00
Zach Laine
47ad8c1a9c Prohibit use of assign with BOOST_YAP_BINARY_MEMBER_OPERATOR(), and create a
new macro BOOST_YAP_USER_ASSIGN_OPERATOR_MEMBER() that guards against
assignment ambiguity.

Fixes #58.
2018-02-25 22:04:51 -06:00
Zach Laine
0dbd7592b8 Fix transform() in the case that a default-handled nonterminal does not come
from an expression template; as_expr_result -> minimal_expr.

Fixes #60.
2018-02-25 14:58:52 -06:00
Zach Laine
36fdafaf38 Changes based on Part 3 of Steven Watanabe's review. 2018-02-20 01:02:41 -06:00
Zach Laine
7d4b56e4ab Add test to verify that if_else evaluates only one of its alternatives.
Fixes #35
2018-02-14 21:27:06 -06:00
Zach Laine
63e88fe713 Add test of comma operator order of evaluation and ability to return void.
Fixes #34
2018-02-14 21:10:38 -06:00
Zach Laine
2adaeb8813 Remove customization point-based and their implicit tranformations,
evaluate_as(), and BOOST_YAP_CONVERSION_OPERATOR_TEMPLATE.

Fixes #29
Fixes #30
2018-02-14 20:32:00 -06:00
Zach Laine
1b2ca8744b Make make_expression_function() follow the expression operand handling rules
used in operators.
2017-04-06 20:38:17 -05:00
Zach Laine
ed1fb70939 Add a test of nested expression evaluation. 2016-12-21 20:11:37 -06:00
Louis Dionne
c23c06e509 [CMake] Pull the setting up of dependencies into its own file
Also, properly define link/header dependencies between targets.
2016-12-18 17:49:23 -06:00
Zach Laine
d6e3a4186c Add vector_alloc_test. 2016-12-12 14:32:43 -06:00
Zach Laine
1e3f6fb667 Add GCC support to CMake build. 2016-12-09 22:36:21 -06:00
Zach Laine
0be3b9795d Add a test that exercises all the unary operators. 2016-12-07 20:01:26 -06:00
Zach Laine
51d542e2d6 Add a test based on the lazy_vector example. 2016-12-07 20:01:26 -06:00
Zach Laine
09057b9912 Split call_expr test into disjoint parts, which reveals that the test was masking an error. 2016-12-07 20:01:25 -06:00
Zach Laine
31b81ddfc0 Add right() test. 2016-12-07 20:01:23 -06:00
Zach Laine
89cc602e69 Add left() test. 2016-12-07 20:01:23 -06:00
Zach Laine
a57e2692f6 Add value() test. 2016-12-07 20:01:23 -06:00
Zach Laine
c615f2034d Add deref() test. 2016-12-07 20:01:22 -06:00
Zach Laine
dbea6d3ed5 Fix compile_tests link. 2016-12-07 20:01:20 -06:00
Zach Laine
5e845452bf Change is_expr to accept the Expr concept instead of just an expression<>. 2016-12-07 20:01:19 -06:00
Zach Laine
e8eae00afe Add -Wall; fix warnings. 2016-12-07 20:01:18 -06:00
Zach Laine
96927a994c Support moves in transform(). 2016-12-07 20:01:18 -06:00
Zach Laine
316da24c25 Add naive transform(). 2016-12-07 20:01:18 -06:00
Zach Laine
e5872cfaf4 code_gen_samples to new perf directory. 2016-12-07 20:01:17 -06:00
Zach Laine
5805e55f8d Add a code-gen sample, useful for getting the assembly generated for proto17 vs. straight c++ expressions. 2016-12-07 20:01:17 -06:00
Zach Laine
9563d58153 depth_stress_test -> depth_stress_test_{left,right} 2016-12-07 20:01:17 -06:00
Zach Laine
7cb4405c08 Update CMakeLists.txt files for Linux builds. 2016-12-07 20:01:17 -06:00
Zach Laine
1fbc68f611 Add test of templated transform_expression. 2016-12-07 20:01:17 -06:00
Zach Laine
df97a1bcc1 Fix roken user_eval_expression_as test. 2016-12-07 20:01:16 -06:00
Zach Laine
42af863c4d Move last bits of sketch.cpp to standalone compile test. 2016-12-07 20:01:16 -06:00
Zach Laine
ddd5ceaca3 Move all compile-only test code to a standalone compile test. 2016-12-07 20:01:16 -06:00
Zach Laine
274b39ba86 Move more test code to standalone tests. 2016-12-07 20:01:16 -06:00
Zach Laine
9206d77b72 Move user_expression_transform to a standalone test. 2016-12-07 20:01:16 -06:00
Zach Laine
7e9e17b844 Move placeholder testing code to a standalone test. 2016-12-07 20:01:16 -06:00
Zach Laine
8d320d8caf Move call_expr() and reference_returns() into standalone tests. 2016-12-07 20:01:16 -06:00
Zach Laine
c720fd0088 Move depth stress test code to standalone test. 2016-12-07 20:01:16 -06:00
Zach Laine
d65099c75b Add first real standalone test, of print(). 2016-12-07 20:01:15 -06:00