[cfe-dev] Adding a new static analysis checker by default

Honggyu Kim hong.gyu.kim at lge.com
Wed Apr 22 06:17:18 PDT 2015


Hi all,

I just wrote a new static analysis checker and would like to add it as a default checker.
Can anyone please give me a guide how to manage default checkers?
I can only see the list of default checkers using scan-build command.

$ scan-build --help-checkers
core.CallAndMessage
core.DivideZero
core.DynamicTypePropagation
core.NonNullParamChecker
core.NullDereference
core.StackAddressEscape
core.UndefinedBinaryOperatorResult
core.VLASize
core.builtin.BuiltinFunctions
core.builtin.NoReturnFunctions
core.uninitialized.ArraySubscript
core.uninitialized.Assign
core.uninitialized.Branch
core.uninitialized.CapturedBlockVariable
core.uninitialized.UndefReturn
cplusplus.NewDelete
deadcode.DeadStores
security.insecureAPI.UncheckedReturn
security.insecureAPI.getpw
security.insecureAPI.gets
security.insecureAPI.mkstemp
security.insecureAPI.mktemp
security.insecureAPI.vfork
unix.API
unix.Malloc
unix.MallocSizeof
unix.MismatchedDeallocator
unix.cstring.BadSizeArg
unix.cstring.NullArg

Thank you all,

Honggyu




More information about the cfe-dev mailing list