使用Boost.Test宏预定义用于doxygen的内容

问题描述 投票:0回答:1

Boost.Test框架测试宏令人困惑。有没有办法用BOOST_TEST_*BOOST_AUTO_TEST_*宏帮助doxygen更好地工作? ref api page

c++ doxygen boost-test
1个回答
0
投票

我遇到了这个PREDEFINED设置的doxygen似乎有帮助:

PREDEFINED             = "BOOST_AUTO_TEST_CASE(name)=void name()" \
                         "BOOST_AUTO_TEST_SUITE(name)=namespace BoostTest { class name {public:" \
                         "BOOST_FIXTURE_TEST_SUITE(name,data)=namespace BoostTest { class name {public:" \
                         "BOOST_AUTO_TEST_SUITE_END()=};}" \
                         "BOOST_CONCEPT_REQUIRES(req,type)=type " \
                         "BOOST_CONCEPT_ASSERT(req)= "
© www.soinside.com 2019 - 2024. All rights reserved.