[cfe-dev] scan-build checks list?
Ted Kremenek
kremenek at apple.com
Fri Sep 10 11:16:09 PDT 2010
On Sep 9, 2010, at 2:57 AM, Julian Kania wrote:
> Hi.
>
> I have very good results in code quality review with clang.
> What I would like to have is a list of checks that scan-build can report.
> It looks like the need of such a list already appeared here: http://clang-analyzer.llvm.org/available_checks.html
> yet is not yet done.
>
> Is the checks list documented somewhere?
> Or can I extract it from the source code?
>
> thanks! Julian Kania
>
Hi Julian,
As you point out, that list has not been updated (or created) yet. I'm very sorry about that, and I hope to get around to creating that page soon. Most of the available checks can be gleamed from looking at lib/Checker:
$ ls | grep 'Checker.cpp'
AdjustedReturnValueChecker.cpp
AnalyzerStatsChecker.cpp
ArrayBoundChecker.cpp
AttrNonNullChecker.cpp
BuiltinFunctionChecker.cpp
CStringChecker.cpp
CallAndMessageChecker.cpp
CastSizeChecker.cpp
CastToStructChecker.cpp
Checker.cpp
DereferenceChecker.cpp
DivZeroChecker.cpp
FixedAddressChecker.cpp
IdempotentOperationChecker.cpp
LLVMConventionsChecker.cpp
MacOSXAPIChecker.cpp
MallocChecker.cpp
NSAutoreleasePoolChecker.cpp
NSErrorChecker.cpp
NoReturnFunctionChecker.cpp
OSAtomicChecker.cpp
ObjCAtSyncChecker.cpp
ObjCUnusedIVarsChecker.cpp
PointerArithChecker.cpp
PointerSubChecker.cpp
PthreadLockChecker.cpp
ReturnPointerRangeChecker.cpp
ReturnUndefChecker.cpp
StackAddrLeakChecker.cpp
StreamChecker.cpp
UndefBranchChecker.cpp
UndefCapturedBlockVarChecker.cpp
UndefResultChecker.cpp
UndefinedArraySubscriptChecker.cpp
UndefinedAssignmentChecker.cpp
UnixAPIChecker.cpp
UnreachableCodeChecker.cpp
VLASizeChecker.cpp
This is an over approximation of what checks are on by default, as some are experimental checks that are still too immature to be on be default.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100910/01b04597/attachment.html>
More information about the cfe-dev
mailing list