Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 VA Outline broken on function macros w/2 args
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tiancovici
New Member

7 Posts

Posted - Jul 04 2020 :  10:54:11 AM  Show Profile  Reply with Quote
VA Outline breaks on function macros with more than one macro

Issue occurs on Build 2382, not on Build 2375






MACRO is from CppUTest Framework
https://cpputest.github.io/







#define TEST(testGroup, testName) /* External declarations for strict compilers */ class TEST_##testGroup##_##testName##_TestShell; extern TEST_##testGroup##_##testName##_TestShell TEST_##testGroup##_##testName##_TestShell_instance; class TEST_##testGroup##_##testName##_Test : public TEST_GROUP_##CppUTestGroup##testGroup { public: TEST_##testGroup##_##testName##_Test () : TEST_GROUP_##CppUTestGroup##testGroup () {} void testBody(); }; class TEST_##testGroup##_##testName##_TestShell : public UtestShell { virtual Utest* createTest() _override { return new TEST_##testGroup##_##testName##_Test; } } TEST_##testGroup##_##testName##_TestShell_instance; static TestInstaller TEST_##testGroup##_##testName##_Installer(TEST_##testGroup##_##testName##_TestShell_instance, #testGroup, #testName, __FILE__,__LINE__); void TEST_##testGroup##_##testName##_Test::testBody()

Edited by - tiancovici on Jul 04 2020 10:57:45 AM

feline
Whole Tomato Software

United Kingdom
16778 Posts

Posted - Jul 04 2020 :  11:16:12 AM  Show Profile  Reply with Quote
The macro on its own does not trigger any problems here.

Can you post, or email me some test code, I assume code using the macro, that triggers this problem?

If email is better please send me the files via email:

support@wholetomato.com

including this thread ID or URL in the description, so we can match it up.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000