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
 Parse CPPUNIT preprocessor macros
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

[email protected]
New Member

Germany
7 Posts

Posted - Dec 08 2019 :  06:12:56 AM  Show Profile  Reply with Quote
Hello,
When using VaX with CPPUNIT projects, VaX doesn't recognize the CPPUNIT macros. I tried to activate the enhanced macro parsing in the registry and using the va_stdafx.h file. But without success.

Any ideas how to resolve the issue?

Rasmus

VA_X.dll file version 10.9.2353.0 built 2019.11.07
DevEnv.exe version 16.4.29519.181 Professional
msenv.dll version 16.0.29519.181
Comctl32.dll version 6.10.18362.476
Windows 10 10.0 1909 Build 18363.476
8 processors (x86-64, WOW64)

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 08 2019 :  7:51:14 PM  Show Profile  Reply with Quote
Visual Assist needs to parse a file in order to understand its contents. The easiest ways would be to make it happen is to add TestAssert.h (or where the macros are defined) to the project. VA parses every files in a project when you open them.

Does this help?

Edited by - accord on Dec 08 2019 7:52:26 PM
Go to Top of Page

[email protected]
New Member

Germany
7 Posts

Posted - Dec 12 2019 :  4:36:25 PM  Show Profile  Reply with Quote
The includes for the macros are part of the project - they are part of the stdafx.h.
But I'm not sure any more if the problem is caused by VA. The squiggles are green and this is not a VA color but an IntelliSense color.

Rasmus
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 13 2019 :  04:43:25 AM  Show Profile  Reply with Quote
If you hover the mouse over the underline, do you get any form of tooltip explaining why the underlining is there? If this is from the IDE then I would expect some form of feedback.

If you try disabling VA via:

VAssistX -> Enable/Disable Visual Assist X

does this have any effect on this underlining? If this has no effect on the underlining then this would tend to show it is from the IDE, and nothing to do with VA.

zen is the art of being at one with the two'ness
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 13 2019 :  06:11:45 AM  Show Profile  Reply with Quote
VA only uses red underlines, not green ones. But intellisense can also use red underlines.
Go to Top of Page

[email protected]
New Member

Germany
7 Posts

Posted - Dec 15 2019 :  2:52:11 PM  Show Profile  Reply with Quote
I disabled VA and the underlines are still there. So it seems to be intellisense.

Sorry for the confusion and thanks for your support.
Rasmus
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 16 2019 :  05:27:39 AM  Show Profile  Reply with Quote
A silly question, but does your solution compile without errors and warnings? Unless the IDE intellisense parser is confused, which can happen, the underlining should indicate something that the compiler will have a problem with.

zen is the art of being at one with the two'ness
Go to Top of Page

[email protected]
New Member

Germany
7 Posts

Posted - Dec 18 2019 :  04:11:49 AM  Show Profile  Reply with Quote
The solution compiles without errors - but there are warnings.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Dec 18 2019 :  07:59:37 AM  Show Profile  Reply with Quote
Are any of the warnings related to the underlining? If you hover the mouse over the underlines does the IDE give you any tooltip or other feedback to explain why they are there?

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:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000