Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 43 additions & 62 deletions clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
Original file line number Diff line number Diff line change
Expand Up @@ -143,68 +143,49 @@ def BitwiseShiftChecker : Checker<"BitwiseShift">,
]>,
Documentation<HasDocumentation>;

def CallAndMessageModeling : Checker<"CallAndMessageModeling">,
HelpText<"Responsible for essential modeling and assumptions after a "
"function/method call. For instance, if we can't reason about the "
"nullability of the implicit this parameter after a method call, "
"this checker conservatively assumes it to be non-null">,
Documentation<HasDocumentation>,
Hidden;

def CallAndMessageChecker : Checker<"CallAndMessage">,
HelpText<"Check for logical errors for function calls and Objective-C "
"message expressions (e.g., uninitialized arguments, null function "
"pointers)">,
CheckerOptions<[
CmdLineOption<Boolean,
"FunctionPointer",
"Check whether a called function pointer is null or "
"undefined",
"true",
Released>,
CmdLineOption<Boolean,
"ParameterCount",
"Check whether a function was called with the appropriate "
"number of arguments",
"true",
Released>,
CmdLineOption<Boolean,
"CXXThisMethodCall",
"Check whether the implicit this parameter is null or "
"undefined upon a method call",
"true",
Released>,
CmdLineOption<Boolean,
"CXXDeallocationArg",
"Check whether the argument of operator delete is undefined",
"true",
Released>,
CmdLineOption<Boolean,
"ArgInitializedness",
"Check whether any of the pass-by-value parameters is "
"undefined",
"true",
Released>,
CmdLineOption<Boolean,
"ArgPointeeInitializedness",
"Check whether the pointee of a pass-by-reference or "
"pass-by-pointer is undefined",
"false",
InAlpha>,
CmdLineOption<Boolean,
"NilReceiver",
"Check whether the reciever in the message expression is nil",
"true",
Released>,
CmdLineOption<Boolean,
"UndefReceiver",
"Check whether the reciever in the message expression is "
"undefined",
"true",
Released>,
]>,
Documentation<HasDocumentation>,
Dependencies<[CallAndMessageModeling]>;
def CallAndMessageChecker
: Checker<"CallAndMessage">,
HelpText<
"Check for logical errors for function calls and Objective-C "
"message expressions (e.g., uninitialized arguments, null function "
"pointers)">,
CheckerOptions<
[CmdLineOption<Boolean, "FunctionPointer",
"Check whether a called function pointer is null or "
"undefined",
"true", Released>,
CmdLineOption<
Boolean, "ParameterCount",
"Check whether a function was called with the appropriate "
"number of arguments",
"true", Released>,
CmdLineOption<Boolean, "CXXThisMethodCall",
"Check whether the implicit this parameter is null or "
"undefined upon a method call",
"true", Released>,
CmdLineOption<
Boolean, "CXXDeallocationArg",
"Check whether the argument of operator delete is undefined",
"true", Released>,
CmdLineOption<Boolean, "ArgInitializedness",
"Check whether any of the pass-by-value parameters is "
"undefined",
"true", Released>,
CmdLineOption<Boolean, "ArgPointeeInitializedness",
"Check whether the pointee of a pass-by-reference or "
"pass-by-pointer is undefined",
"false", InAlpha>,
CmdLineOption<
Boolean, "NilReceiver",
"Check whether the reciever in the message expression is nil",
"true", Released>,
CmdLineOption<
Boolean, "UndefReceiver",
"Check whether the reciever in the message expression is "
"undefined",
"true", Released>,
]>,
Documentation<HasDocumentation>;

def FixedAddressDereferenceChecker
: Checker<"FixedAddressDereference">,
Expand Down
Loading
Loading