Home
last modified time | relevance | path

Searched refs:BuiltinBug (Results 1 – 25 of 29) sorted by relevance

12

/external/clang/lib/StaticAnalyzer/Checkers/
DReturnUndefChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT_Undef;
29 mutable std::unique_ptr<BuiltinBug> BT_NullReference;
81 static void emitBug(CheckerContext &C, BuiltinBug &BT, const Expr *RetE, in emitBug()
98 new BuiltinBug(this, "Garbage return value", in emitUndef()
116 BT_NullReference.reset(new BuiltinBug(this, "Returning null reference")); in checkReference()
DObjCAtSyncChecker.cpp29 mutable std::unique_ptr<BuiltinBug> BT_null;
30 mutable std::unique_ptr<BuiltinBug> BT_undef;
48 BT_undef.reset(new BuiltinBug(this, "Uninitialized value used as mutex " in checkPreStmt()
71 BT_null.reset(new BuiltinBug( in checkPreStmt()
DCallAndMessageChecker.cpp89 BT.reset(new BuiltinBug(this, desc)); in LazyInit_BT()
315 BT_call_undef.reset(new BuiltinBug( in checkPreStmt()
326 BT_call_null.reset(new BuiltinBug( in checkPreStmt()
346 new BuiltinBug(this, "Uninitialized argument value")); in checkPreStmt()
371 new BuiltinBug(this, "Called C++ object pointer is uninitialized")); in checkPreCall()
383 new BuiltinBug(this, "Called C++ object pointer is null")); in checkPreCall()
451 BT_msg_undef.reset(new BuiltinBug(this, in checkPreObjCMessage()
458 BT_objc_prop_undef.reset(new BuiltinBug( in checkPreObjCMessage()
464 BT_objc_subscript_undef.reset(new BuiltinBug( in checkPreObjCMessage()
495 new BuiltinBug(this, "Receiver in message expression is 'nil'")); in emitNilReceiverBug()
DStackAddrEscapeChecker.cpp31 mutable std::unique_ptr<BuiltinBug> BT_stackleak;
32 mutable std::unique_ptr<BuiltinBug> BT_returnstack;
104 new BuiltinBug(this, "Return of address to stack-allocated memory")); in EmitStackError()
229 new BuiltinBug(this, "Stack address stored into global variable", in checkEndFunction()
DFixedAddressChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT;
56 new BuiltinBug(this, "Use fixed address", in checkPreStmt()
DCastToStructChecker.cpp27 mutable std::unique_ptr<BuiltinBug> BT;
62 new BuiltinBug(this, "Cast from non-struct type to struct type", in checkPreStmt()
DPointerSubChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT;
66 new BuiltinBug(this, "Pointer subtraction", in checkPreStmt()
DArrayBoundChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT;
70 BT.reset(new BuiltinBug( in checkLocation()
DDereferenceChecker.cpp34 mutable std::unique_ptr<BuiltinBug> BT_null;
35 mutable std::unique_ptr<BuiltinBug> BT_undef;
124 BT_null.reset(new BuiltinBug(this, "Dereference of null pointer")); in reportBug()
196 new BuiltinBug(this, "Dereference of undefined pointer value")); in checkLocation()
DReturnPointerRangeChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT;
73 BT.reset(new BuiltinBug( in checkPreStmt()
DDivZeroChecker.cpp26 mutable std::unique_ptr<BuiltinBug> BT;
40 BT.reset(new BuiltinBug(this, "Division by zero")); in reportBug()
DUndefBranchChecker.cpp28 mutable std::unique_ptr<BuiltinBug> BT;
69 BT.reset(new BuiltinBug( in checkBranchCondition()
DBoolAssignmentChecker.cpp26 mutable std::unique_ptr<BuiltinBug> BT;
37 BT.reset(new BuiltinBug(this, "Assignment of a non-Boolean value")); in emitReport()
DPointerArithChecker.cpp60 mutable std::unique_ptr<BuiltinBug> BT_pointerArith;
61 mutable std::unique_ptr<BuiltinBug> BT_polyArray;
175 BT_polyArray.reset(new BuiltinBug( in reportPointerArithMisuse()
198 BT_pointerArith.reset(new BuiltinBug(this, "Dangerous pointer arithmetic", in reportPointerArithMisuse()
DStreamChecker.cpp65 mutable std::unique_ptr<BuiltinBug> BT_nullfp, BT_illegalwhence,
277 new BuiltinBug(this, "Illegal whence argument", in Fseek()
354 BT_nullfp.reset(new BuiltinBug(this, "NULL stream pointer", in CheckNullStream()
384 BT_doubleclose.reset(new BuiltinBug( in CheckDoubleClose()
412 BT_ResourceLeak.reset(new BuiltinBug( in checkDeadSymbols()
DCastSizeChecker.cpp26 mutable std::unique_ptr<BuiltinBug> BT;
133 BT.reset(new BuiltinBug(this, "Cast region with wrong size.", in checkPreStmt()
DChrootChecker.cpp45 mutable std::unique_ptr<BuiltinBug> BT_BreakJail;
146 BT_BreakJail.reset(new BuiltinBug( in checkPreStmt()
DVforkChecker.cpp47 mutable std::unique_ptr<BuiltinBug> BT;
125 BT.reset(new BuiltinBug(this, in reportBug()
DArrayBoundCheckerV2.cpp31 mutable std::unique_ptr<BuiltinBug> BT;
190 BT.reset(new BuiltinBug(this, "Out-of-bound access")); in reportOOB()
DUndefinedArraySubscriptChecker.cpp53 BT.reset(new BuiltinBug(this, "Array subscript is undefined")); in checkPreStmt()
DUndefinedAssignmentChecker.cpp57 BT.reset(new BuiltinBug(this, str)); in checkBind()
DTestAfterDivZeroChecker.cpp82 mutable std::unique_ptr<BuiltinBug> DivZeroBug;
172 DivZeroBug.reset(new BuiltinBug(this, "Division by zero")); in reportBug()
DUndefResultChecker.cpp59 new BuiltinBug(this, "Result of operation is garbage or undefined")); in checkPostStmt()
DUndefCapturedBlockVarChecker.cpp80 new BuiltinBug(this, "uninitialized variable captured by block")); in checkPostStmt()
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
DBugType.h61 class BuiltinBug : public BugType {
65 BuiltinBug(class CheckName check, const char *name, const char *description) in BuiltinBug() function
68 BuiltinBug(const CheckerBase *checker, const char *name, in BuiltinBug() function
72 BuiltinBug(const CheckerBase *checker, const char *name) in BuiltinBug() function

12