diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-04-23 22:36:36 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-04-24 09:43:42 +0200 |
commit | d7b15f03e0b956d23854806f35636ab4acfb1296 (patch) | |
tree | 872390532334fa1fa204b3d6fdc141a4ca0b51c6 /cpp.hint | |
parent | d984836834e67b5bcd618ebd5d1633138985a881 (diff) |
Add some entries into cpp.hint
Improves VS integration: allows to find CPP unit tests defined using
DECLARE_SW_ROUNDTRIP_TEST and friends.
The macros are stripped down to the minimum to allow IntelliSense
do its job.
Change-Id: I5325cb5ac424e3b08cd64b265d5d4924fbadcfcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166571
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cpp.hint')
-rw-r--r-- | cpp.hint | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -46,3 +46,18 @@ void TestBody(); \ }; \ void TestName::TestBody() + +// From sw/qa/inc/swmodeltestbase.hxx +// To allow searching for the test names, where they are defined using the macros +#define DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, password, BaseClass) \ + class TestName : public BaseClass { \ + public: \ + void verify() override; \ + }; \ + void TestName::verify() + +#define DECLARE_OOXMLEXPORT_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, nullptr, Test) +#define DECLARE_RTFEXPORT_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, nullptr, Test) +#define DECLARE_ODFEXPORT_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, nullptr, Test) +#define DECLARE_FODFEXPORT_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, nullptr, Test) +#define DECLARE_WW8EXPORT_TEST(TestName, filename) DECLARE_SW_ROUNDTRIP_TEST(TestName, filename, nullptr, Test) |