Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Autocomplete weirdness: C++ bool

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
macross Posted - Aug 19 2011 : 09:57:04 AM
Repro steps (build 10.6.1854.0):

In a C++ module type the following

bool bContinue(false);

Now type

bC

At this point the autocomplete suggestion box suggests "bContinue". When you select "bContinue" from the suggestion box, what is actually provided is "bContinue()".

"bContinue()" is incorrect here and it is a bit of a pain to now remove the superfluous "()" each time this happens.

Also, the colouring seems to suggest that VA is treating "bContinue" as a function instead of a type.

What I have tried so far was setting Quick Config back to the defaults and rebuilding the symbol database but this didn't help.

For me this is an issue on VS2008 SP1 and on VS2010 SP1.

I finally rolled back to build 10.6.1850.0 and found that I could no longer repro the issue, autocomplete worked as expected! Installed build 10.6.1854.0 and the issue was again reproducible.

Anyone else seeing this?

Cheers.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Aug 25 2011 : 01:55:36 AM
case=59478 is fixed in build 1856
accord Posted - Aug 19 2011 : 2:41:37 PM
I am seeing the same effect here. Thank you for the clear description.

case=59478

Yes, it's definitely a regression. For now, you may want to turn off

VA Options -> Advanced -> Corrections -> Insert () and closing } ) ] ' "

which will turn this behavior off (but even for "real" functions).

Sorry for the inconvenience.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000