Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1555: VA Outline and define skipping

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
accord Posted - May 05 2007 : 9:36:48 PM
Preface: I am using DEFINES to guide my parser.

VA Outline recognizes some defines as a function.

This code:

#define INIT(x)
#define HIDDEN

class cTest {
	int apple; HIDDEN;
	int banana; INIT(5);
};

...produdes

cTest
   apple; HIDDEN;
   banana; INIT(5);
   INIT(5);

Second INIT(5); is not requied. (I think INIT(5) is recognized as a function.)

If VAX can recognize INIT as a define, than can avoid to show it as a separate line (to treat like HIDDEN). It would increase perspicuity.

What do you think?
10   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jun 01 2007 : 2:02:03 PM
Ok, you won
feline Posted - Jun 01 2007 : 09:10:44 AM
I thought the same thing when I tested this, but consider the following piece of code:

// this function is short
// static void commentedOut()
// { }


this will be shown as a single item in Live Outline. Now what happens when you uncomment this single item...

For now I would suggest using "VA Outline -> Select in Editor" and then use / to uncomment the code, or uncomment it manually.
accord Posted - May 31 2007 : 6:15:57 PM
One more little thing:

When I use "Surround With / Comments", then I use it again, one more commenting appears. I think it would be more useful, if I comments are removed second time, like when I touch twice "/" key in the editor.

What do you think?
accord Posted - May 31 2007 : 5:13:50 PM
Thank you Guys! Fast and good work... A LOT of VA Outline news And a lot of other bug fixes... Keep up the good work!

The new "Surround With / Comments" feature is simply awesome! Simple but great
support Posted - May 30 2007 : 11:55:48 PM
case=6436 fixed in build 1557
feline Posted - May 09 2007 : 3:08:43 PM
oops, for Live Outline.
accord Posted - May 09 2007 : 12:47:23 PM
case=6436 is for Create Implementation, or for VA Outline?
feline Posted - May 07 2007 : 4:45:56 PM
So much for that work around

case=6436
accord Posted - May 07 2007 : 11:28:29 AM
Originally I didn't used semicolon, but if I don't use, then an another VAX feature will working bad: the "create implementation" stuff.

Put these lines into a header:

#define HIDDEN

class cTest {
	void Func1(); HIDDEN
	void Func2(); HIDDEN
};

Now try to use "Create implementation" on Func2, and you will get

HIDDEN
void cTest::Func2()
{

}

...in the cpp file. HIDDEN is completely unnecessary.
If I use semicolon after all HIDDEN (and after all other defines) then this feature will work.

So I use it as a workaround
feline Posted - May 07 2007 : 08:54:47 AM
Certainly Live Outline is feeling a bit confused here. I am seeing the same thing, so I have done some tests to see what is happening.

Live Outline is seeing two statements on the INIT(5) line. If you remove the second semi-colon from this line then the problem goes away.

Depending on what the macro's are doing, and how they are defined, then you may be able to safely do this in your code. Is this an option?

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