Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Omit SAL from outline

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
CGAllred Posted - Feb 22 2011 : 1:02:45 PM
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?
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Feb 22 2011 : 3:40:13 PM
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.

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