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
 VAX Outline: different view by using pragma region
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

arp
New Member

Germany
5 Posts

Posted - Oct 17 2008 :  05:24:06 AM  Show Profile  Reply with Quote
I'm using VS2008 and VAX 1649 with C++. In the header files will showed the indentation with #pragma region with very different behavior.
Source code:

VAX outline window:


When the #pragma region after the access keyword (private, protected, public), then is the representation of the indentation good , otherwise will moved the indentation after right .

Edited by - arp on Oct 27 2008 04:53:40 AM

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Oct 17 2008 :  09:15:29 AM  Show Profile  Reply with Quote
I cannot see your K drive, so the images do not load for me. This FAQ on posting images may help you:

http://docs.wholetomato.com?W128

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

arp
New Member

Germany
5 Posts

Posted - Oct 27 2008 :  05:02:21 AM  Show Profile  Reply with Quote
I have changed the links to the images.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Oct 27 2008 :  11:45:36 AM  Show Profile  Reply with Quote
Can you paste your test code into a forum reply please? Otherwise I have to retype all of it from the screen shot, which is a bit slow

Part of this looks correct, since VA Outline is showing things inside the #pragma regions, but clearly the class test2 is not supposed to be shown indented like that.

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

arp
New Member

Germany
5 Posts

Posted - Oct 28 2008 :  07:21:51 AM  Show Profile  Reply with Quote
Here is the source code:


#ifndef __Test_h__

#define __Test_h__

class Test
{
  protected:
#pragma region Constructor
    Test();
#pragma endregion
  public:
#pragma region Operator
    bool operator <(const Test&) const;
#pragma endregion
#pragma region Implementation
#pragma endregion
};

class Test1
{
#pragma region Constructor
  protected:
    Test1();
  public:
    Test1(const Test1&);
#pragma endregion
#pragma region Operator
  protected:
    Test2& operator =(const Test2&);
  public:
    bool operator <(const Test2&) const;
#pragma endregion
#pragma region Implementation
#pragma endregion
};

class Test2
{
  public:
#pragma region Constructor
    Test2();
#pragma endregion
  protected:
#pragma region Operator
    Test2& operator =(const Test2&);
#pragma endregion
  private:
#pragma region Implementation
#pragma endregion
};

#endif
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Oct 28 2008 :  10:56:55 AM  Show Profile  Reply with Quote
Thank you for the code, this made it a lot easier. I am seeing the same thing here, thank you for the clear description.

case=20612

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

support
Whole Tomato Software

5566 Posts

Posted - Dec 01 2008 :  07:46:39 AM  Show Profile  Reply with Quote
case=20612 is fixed in build 1707
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