Update cpp grammar to handle macros (#80974)

This commit is contained in:
Alex Ross
2019-09-16 12:27:51 +02:00
committed by GitHub
parent 1c01ce84b5
commit 8601a47040
9 changed files with 17672 additions and 212 deletions

View File

@@ -0,0 +1,13 @@
#define DOCTEST_IMPLEMENT_FIXTURE(der, base, func, decorators) \
namespace { \
struct der : public base \
{ \
void f(); \
}; \
static void func() { \
der v; \
v.f(); \
} \
DOCTEST_REGISTER_FUNCTION(DOCTEST_EMPTY, func, decorators) \
} \
inline DOCTEST_NOINLINE void der::f()