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
 Symbols not recognized: VC2008
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

brusch
New Member

Germany
6 Posts

Posted - Aug 17 2018 :  05:29:16 AM  Show Profile  Reply with Quote
Installed newest version but many symbols are not recognized, examples:

//* Symbol 'i' not recognized:
for(size_t i=0; i<m_visibles.added.size(); ++i) CDL1(" added ")(m_visibles.added[i].name)(' ')(m_visibles.added[i].s);

//* Symbols 'now', 'ev', 'v', 'dir', 'ea' 'ace' not recognized:
void Cxx::onEvent(double now, Event * ev) {
FNCNAME("Cxx::onEvent: ");
switch(ev->number()) {
case E1::nbr:
{
double v = ((E1*)ev)->speed();
long dir = ((E1*)ev)->dire();
CDL1("got E1 v ")(v)(" dir ")(dir);
if (dir == DIR_REV) v = -v;
break;
}
case E2::nbr:
{
E2 const & ace(*reinterpret_cast<E2*>(ev));
...

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Aug 17 2018 :  06:51:09 AM  Show Profile  Reply with Quote
Were these symbols recognised in an older version of VA? If so, do you have any idea which version of VA you were using before?

Can you please make or open a new, empty .cpp file and paste the following test code into it, I have simply matched up the brackets in your code sample, and provided a couple of hopefully unique function names:

void testingSymbolsVS2008()
{
	//* Symbol 'i' not recognized:
	// Feline testing - Find References works correctly on symbol "i"
	for(size_t i=0; i<m_visibles.added.size(); ++i) CDL1(" added ")(m_visibles.added[i].name)(' ')(m_visibles.added[i].s);
}

//* Symbols 'now', 'ev', 'v', 'dir', 'ea' 'ace' not recognized:
// Feline testing - Find References works correctly on symbol "ev"
void moreTestingSymbolsVS2008(double now, Event * ev)
{
	FNCNAME("Cxx::onEvent: ");
	switch(ev->number()) {
	case E1::nbr:
		{
			// Feline testing - Find References works correctly on symbol "v"
			double v = ((E1*)ev)->speed();
			// Feline testing - Find References works correctly on symbol "dir"
			long dir = ((E1*)ev)->dire();
			CDL1("got E1 v ")(v)(" dir ")(dir);
			if (dir == DIR_REV) v = -v;
			break;
		}
	case E2::nbr:
		{
			E2 const & ace(*reinterpret_cast<E2*>(ev));
			...
		}
	}
}

I have included comments on the tests I have run. VA does not understand most of this code, since the class is missing, the macros are unknown, and so on. But the local variables and parameters you are mentioning VA is quite happy with here for me, using VS2008 and VA 2283.2

If you see the same results in a new, empty cpp file this would suggest that something further up the file is confusing our parser. Can you please try looking at VA Outline and see if it looks correct for the file where you have the problem? If the Outline breaks or has problems part way down the file this may well help to explain why you are seeing this problem.

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