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
 VA 2399: #pragma messes up Navbar
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2320 Posts

Posted - Feb 04 2021 :  12:25:20 PM  Show Profile  Reply with Quote
On occasions one can have #pragma's in unexpected locations, like when you have a CA1001 warning and resolve it by adding pragmas.
You end up having the following construct:

namespace somespace {
#pragma warning disable CA1001 // Types that own disposable fields should be disposable

  public sealed class SomeClass
#pragma warning restore CA1001 // This class is never disposed
  {
// ... lots of methods here
  }
}


Now fast forward to Alt+M ... only the namespace shows up in the navbar, no class, no methods.
Remove the second pragma, and all goes back to normal.

feline
Whole Tomato Software

United Kingdom
18749 Posts

Posted - Feb 05 2021 :  11:12:32 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=142844

it isn't something you see often, and it surprised me it was valid the first time I saw something like this in C++, so not a total surprise it confuses our parser, but still not helpful.

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