Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA 2399: #pragma messes up Navbar

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
Uniwares Posted - Feb 04 2021 : 12:25:20 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 05 2021 : 11:12:32 AM
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.

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