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
 C++ Parser error VS2010+VA 10.6.1837
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jan 19 2011 :  11:35:16 AM  Show Profile  Reply with Quote
//////////////////////////////////////////////////////////////////////////
//PARAMETER constants

const size_t NPAR_INT =		999;    // range    0.. 999
const size_t NPAR_UNITS =	999;    // range 1000..1999
const size_t NPAR_CHAR =	999;    // range 2000..2999
const size_t NPAR_DOUBLE =	999;    // range 3000..3999
const size_t NPAR_OEM =		999;    // range 4001..5000


VA indicates that the second line (const size_t ...) is erroneous, that a ';' is missing from the "range" expression.

Erm... range is a comment only - nothing to parse there! ;)

To be clear: if I change the above to have an additional ';' at the end of every comment, the problem goes away - so clearly VA is trying to parse the comments as code - which it should not be doing.

Edited by - Mordachai on Jan 19 2011 12:52:07 PM

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jan 19 2011 :  1:03:30 PM  Show Profile  Reply with Quote
Sounds like a code squiggle provided by default Intellisense. VA does not display code squiggles in VS2010. To confirm, the default behavior can be disabled at:
Tools | Options | Text Editor | C/C++ | Advanced | Disable Squiggles.

Edited by - sean on Jan 19 2011 2:14:03 PM
Go to Top of Page

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jan 19 2011 :  2:11:10 PM  Show Profile  Reply with Quote
Ah - thanks Sean. That is correct.

Does anyone know where / how to report this type of failure/bug to Microsoft? I seem to end up spending hours trying to find someplace to report this sort of thing only to have to give up time & again. :(
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jan 19 2011 :  2:13:05 PM  Show Profile  Reply with Quote
Sure - here's the place to report Visual Studio bugs/crashes/suggestions:

https://connect.microsoft.com/VisualStudio/
Go to Top of Page

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jan 19 2011 :  3:17:18 PM  Show Profile  Reply with Quote
Thanks - problem reported to MS under "Editor pre-parser comment glitch"
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