This is my issue with it as well; it’s just renders reading source code,
especially if it is not your own, extremely painful. I basically like
PreFAST, assuming that it has been run from the beginning on the source,
but in order to compile clean, in my opinion, one has to make additional
changes to source, most of which are legitimate improvement, but there
are still many that just aren’t important, and a fair number that are
irrelevant and get pragma’d, which further reduces readability. While
the tool overall does a really nice job of finding some errors that
would indeed be harder to find at runtime, fundamentally, I just don’t
see seriously impacting the appearance of source code for a tool, really
any tool, but especially one that is tedious to use (pretty much
unavoidably with any tool of this type), and for errors that certainly
can be found by other means. Given that there is basically no choice in
fundamental tools it the case of kernel work, annotations mess with what
I consider cardinal - my habits and pecadillos, good, bad or otherwise.
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Tuesday, September 04, 2007 16:19
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] driver annotations
Er, um (a bit embarrassed) no.
I’ll read 'em and see what I think. Fully applied they still render
function headers looking like some sort of C########## nightmare of
meta-gook.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Doron Holan
Sent: Tuesday, September 04, 2007 12:51 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] driver annotations
Mark, did you read the chapter on annotations in the WDF book? I was a
reviewer for the chapter and really pushed for it to be clear and to use
samples rather than being technical and WDK-like. If you have feedback
on how the chapter could be improved, please let us know
Thx
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Tuesday, September 04, 2007 8:17 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] driver annotations
Sorry, I have to put in a dissenting voice here. I have found PreFast
to
be an outstanding tool, if I have a problem with Microsoft’s efforts
here
it is that their own samples are in many cases are not PreFast clean
(and
in some cases these are really bugs).
With the new annotations, I have been conservative and do not go wild on
them. But I have found uses for almost all the annotations.
It is interesting to note, that the Linux guys are making a big thing of
using static analysis tools and the US goverment is paying to have the
analysis done. If you check out the tools that Linux is using you find
they catch a subset of what PreFast does.
On WinDBG I would like to see it fixed so it worked reliably (especially
the UI). But, I much prefer to find a fix bugs by having a tool tell me
“Hey you could be getting into trouble here”, than by sitting hunched
over
WinDBG to find out that oops there is a path through the code that could
produce an error.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer