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
 Omit SAL from outline
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

CGAllred
New Member

8 Posts

Posted - Feb 22 2011 :  1:02:45 PM  Show Profile  Reply with Quote
I work on code that is heavily SAL-annotated (http://msdn.microsoft.com/en-us/library/ms235402.aspx). For example:

__checkReturn
__drv_maxIRQL(PASSIVE_LEVEL)
NTSTATUS
FLTAPI
FltCreateFile (
    __in PFLT_FILTER Filter,
    __in_opt PFLT_INSTANCE Instance,
    __out PHANDLE   FileHandle,
    __in ACCESS_MASK DesiredAccess,
    __in POBJECT_ATTRIBUTES ObjectAttributes,
    __out PIO_STATUS_BLOCK IoStatusBlock,
    __in_opt PLARGE_INTEGER AllocationSize,
    __in ULONG FileAttributes,
    __in ULONG ShareAccess,
    __in ULONG CreateDisposition,
    __in ULONG CreateOptions,
    __in_bcount_opt(EaLength)PVOID EaBuffer,
    __in ULONG EaLength,
    __in ULONG Flags
    )

The outline suppresses display of the __checkReturn macro, but shows the __drv_maxIRQL(PASSIVE_LEVEL) macro. As a result my VA Outline window is not very useful, since it isn't wide enough to show the actual routine names for routines that have the __drv_maxIRQL macro in front of them:



How can I configure what the outline considers a significant token and what it doesn't?

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Feb 22 2011 :  3:40:13 PM  Show Profile  Reply with Quote
Unfortunately you cannot currently tell VA Outline to ignore / leave out certain macros or keywords. VA Outline does leave out a few things automatically, but this is hard coded, not configurable. We are looking to make this list configurable:

case=19673

but unfortunately I don't currently have an estimate on when this might be done.

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