Home
last modified time | relevance | path

Searched refs:Checker (Results 1 – 25 of 125) sorted by relevance

12345

/external/clang/lib/StaticAnalyzer/Checkers/
DCheckers.td84 def DereferenceChecker : Checker<"NullDereference">,
88 def CallAndMessageChecker : Checker<"CallAndMessage">,
92 def NonNullParamChecker : Checker<"NonNullParamChecker">,
96 def VLASizeChecker : Checker<"VLASize">,
100 def DivZeroChecker : Checker<"DivideZero">,
104 def UndefResultChecker : Checker<"UndefinedBinaryOperatorResult">,
108 def StackAddrEscapeChecker : Checker<"StackAddressEscape">,
112 def DynamicTypePropagation : Checker<"DynamicTypePropagation">,
120 def BoolAssignmentChecker : Checker<"BoolAssignment">,
124 def CastSizeChecker : Checker<"CastSize">,
[all …]
DDebugCheckers.cpp35 class DominatorsTreeDumper : public Checker<check::ASTCodeBody> {
57 class LiveVariablesDumper : public Checker<check::ASTCodeBody> {
77 class CFGViewer : public Checker<check::ASTCodeBody> {
97 class CFGDumper : public Checker<check::ASTCodeBody> {
123 class CallGraphViewer : public Checker< check::ASTDecl<TranslationUnitDecl> > {
143 class CallGraphDumper : public Checker< check::ASTDecl<TranslationUnitDecl> > {
164 class ConfigDumper : public Checker< check::EndOfTranslationUnit > {
202 class ExplodedGraphViewer : public Checker< check::EndAnalysis > {
221 class BugHashDumper : public Checker<check::PostStmt<Stmt>> {
DLLVMConventionsChecker.cpp120 const CheckerBase *Checker; member in __anon021584620111::StringRefCheckerVisitor
125 : DeclWithIssue(declWithIssue), BR(br), Checker(checker) {} in StringRefCheckerVisitor()
139 const CheckerBase *Checker) { in CheckStringRefAssignedTemporary() argument
140 StringRefCheckerVisitor walker(D, BR, Checker); in CheckStringRefAssignedTemporary()
185 BR.EmitBasicReport(DeclWithIssue, Checker, desc, "LLVM Conventions", desc, in VisitVarDecl()
220 const CheckerBase *Checker; member in __anon021584620211::ASTFieldVisitor
225 : Root(root), BR(br), Checker(checker) {} in ASTFieldVisitor()
233 const CheckerBase *Checker) { in CheckASTMemory() argument
238 ASTFieldVisitor walker(R, BR, Checker); in CheckASTMemory()
289 BR.EmitBasicReport(Root, Checker, "AST node allocates heap memory", in ReportError()
[all …]
DCheckObjCInstMethSignature.cpp44 const CheckerBase *Checker) { in CompareReturnTypes() argument
74 MethDerived, Checker, "Incompatible instance method return type", in CompareReturnTypes()
81 const CheckerBase *Checker) { in CheckObjCInstMethSignature() argument
116 CompareReturnTypes(MethDerived, M, BR, Ctx, ID, Checker); in CheckObjCInstMethSignature()
128 class ObjCMethSigsChecker : public Checker<
DDirectIvarAssignment.cpp54 public Checker<check::ASTDecl<ObjCImplementationDecl> > {
66 const CheckerBase *Checker; member in __anon87b474420111::DirectIvarAssignment::MethodCrawler
72 const CheckerBase *Checker, AnalysisDeclContext *InDCtx) in MethodCrawler() argument
74 Checker(Checker), DCtx(InDCtx) {} in MethodCrawler()
201 MD, Checker, "Property access", categories::CoreFoundationObjectiveC, in VisitBinaryOperator()
DCheckSizeofPointer.cpp27 const CheckerBase *Checker; member in __anone62bb72b0111::WalkAST
32 : BR(br), Checker(checker), AC(ac) {} in WalkAST()
67 BR.EmitBasicReport(AC->getDecl(), Checker, in VisitUnaryExprOrTypeTraitExpr()
81 class SizeofPointerChecker : public Checker<check::ASTCodeBody> {
DIdenticalExprChecker.cpp39 const CheckerBase *Checker; member in __anond40ab91d0111::FindIdenticalExprVisitor
43 const CheckerBase *Checker, in FindIdenticalExprVisitor() argument
45 : BR(B), Checker(Checker), AC(A) {} in FindIdenticalExprVisitor()
72 BR.EmitBasicReport(AC->getDecl(), Checker, in reportIdenticalExpr()
121 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", in VisitIfStmt()
144 BR.EmitBasicReport(AC->getDecl(), Checker, "Identical conditions", in VisitIfStmt()
174 BR.EmitBasicReport(AC->getDecl(), Checker, in VisitIfStmt()
262 BR.EmitBasicReport(AC->getDecl(), Checker, in checkComparisonOp()
284 AC->getDecl(), Checker, in VisitConditionalOperator()
502 class FindIdenticalExprChecker : public Checker<check::ASTCodeBody> {
DNSErrorChecker.cpp41 : public Checker< check::ASTDecl<ObjCMethodDecl> > {
88 : public Checker< check::ASTDecl<FunctionDecl> > {
137 NSErrorDerefBug(const CheckerBase *Checker) in NSErrorDerefBug() argument
138 : BugType(Checker, "NSError** null dereference", in NSErrorDerefBug()
144 CFErrorDerefBug(const CheckerBase *Checker) in CFErrorDerefBug() argument
145 : BugType(Checker, "CFErrorRef* null dereference", in CFErrorDerefBug()
153 : public Checker< check::Location,
DPaddingChecker.cpp33 class PaddingChecker : public Checker<check::ASTDecl<TranslationUnitDecl>> {
51 const PaddingChecker *Checker; in checkASTDecl() member
54 explicit LocalVisitor(const PaddingChecker *Checker) : Checker(Checker) {} in checkASTDecl()
56 Checker->visitRecord(RD); in checkASTDecl()
60 Checker->visitVariable(VD); in checkASTDecl()
DVirtualCallChecker.cpp31 const CheckerBase *Checker; member in __anonf693e3f40111::WalkAST
64 : Checker(checker), BR(br), AC(ac), visitingCallExpr(nullptr) {} in WalkAST()
197 BR.EmitBasicReport(AC->getDecl(), Checker, in ReportVirtualCall()
206 BR.EmitBasicReport(AC->getDecl(), Checker, in ReportVirtualCall()
219 class VirtualCallChecker : public Checker<check::ASTDecl<CXXRecordDecl> > {
DObjCContainersASTChecker.cpp30 const CheckerBase *Checker; member in __anonf6dc1cad0111::WalkAST
76 : BR(br), Checker(checker), AC(ac), ASTC(AC->getASTContext()), in WalkAST()
146 BR.EmitBasicReport(AC->getDecl(), Checker, OsName.str(), in VisitCallExpr()
162 class ObjCContainersASTChecker : public Checker<check::ASTCodeBody> {
DCStringSyntaxChecker.cpp34 const CheckerBase *Checker; member in __anon619717920111::WalkAST
86 : Checker(checker), BR(br), AC(ac) {} in WalkAST()
160 BR.EmitBasicReport(FD, Checker, "Anti-pattern in the argument", in VisitCallExpr()
177 class CStringSyntaxChecker: public Checker<check::ASTCodeBody> {
DCheckObjCDealloc.cpp79 static void checkObjCDealloc(const CheckerBase *Checker, in checkObjCDealloc() argument
158 BR.EmitBasicReport(D, Checker, name, categories::CoreFoundationObjectiveC, in checkObjCDealloc()
222 BR.EmitBasicReport(MD, Checker, name, in checkObjCDealloc()
233 class ObjCDeallocChecker : public Checker<
DObjCUnusedIVarsChecker.cpp109 const CheckerBase *Checker) { in checkObjCUnusedIvar() argument
166 BR.EmitBasicReport(D, Checker, "Unused instance variable", "Optimization", in checkObjCUnusedIvar()
176 class ObjCUnusedIvarsChecker : public Checker<
DLocalizationChecker.cpp61 : public Checker<check::PostCall, check::PreObjCMessage,
836 : public Checker<check::ASTDecl<ObjCImplementationDecl>> {
843 const CheckerBase *Checker; member in __anon03e8acfa0311::EmptyLocalizationContextChecker::MethodCrawler
848 const CheckerBase *Checker, AnalysisManager &InMgr, in MethodCrawler() argument
850 : MD(InMD), BR(InBR), Mgr(InMgr), Checker(Checker), DCtx(InDCtx) {} in MethodCrawler()
979 BR.EmitBasicReport(MD, Checker, "Context Missing", in reportEmptyContextError()
987 class PluralMisuseChecker : public Checker<check::ASTCodeBody> {
992 const CheckerBase *Checker; member in __anon03e8acfa0411::PluralMisuseChecker::MethodCrawler
1004 explicit MethodCrawler(BugReporter &InBR, const CheckerBase *Checker, in MethodCrawler() argument
1006 : BR(InBR), Checker(Checker), AC(InAC) {} in MethodCrawler()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DChecker.cpp30 CheckerProgramPointTag::CheckerProgramPointTag(const CheckerBase *Checker, in CheckerProgramPointTag() argument
32 : SimpleProgramPointTag(Checker->getCheckName().getName(), Msg) {} in CheckerProgramPointTag()
35 const CheckerBase &Checker) { in operator <<() argument
36 Out << Checker.getCheckName().getName(); in operator <<()
/external/clang/test/CodeGenCXX/
Dconditional-temporaries.cpp28 struct Checker { struct
29 Checker() { in Checker() function
35 Checker c;
/external/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldChecker.cpp30 RuntimeDyldCheckerExprEval(const RuntimeDyldCheckerImpl &Checker, in RuntimeDyldCheckerExprEval() argument
32 : Checker(Checker) {} in RuntimeDyldCheckerExprEval()
63 Checker.ErrStream << "Expression '" << Expr << "' is false: " in evaluate()
84 const RuntimeDyldCheckerImpl &Checker; member in llvm::RuntimeDyldCheckerExprEval
146 Checker.ErrStream << "Error evaluating expression '" << Expr in handleError()
227 if (!Checker.isSymbolValid(Symbol)) in evalDecodeOperand()
263 Inst.dump_pretty(ErrMsgStream, Checker.InstPrinter); in evalDecodeOperand()
273 Inst.dump_pretty(ErrMsgStream, Checker.InstPrinter); in evalDecodeOperand()
295 if (!Checker.isSymbolValid(Symbol)) in evalNextPC()
313 ? Checker.getSymbolLocalAddr(Symbol) in evalNextPC()
[all …]
DRuntimeDyld.cpp252 if (Checker) in loadObjectImpl()
253 Checker->registerStubMap(Obj.getFileName(), SectionID, Stubs); in loadObjectImpl()
554 if (Checker) in emitCommonSymbols()
555 Checker->registerSection(Obj.getFileName(), SectionID); in emitCommonSymbols()
649 if (Checker) in emitSection()
650 Checker->registerSection(Obj.getFileName(), SectionID); in emitSection()
882 Checker = nullptr; in RuntimeDyld()
890 bool ProcessAllSections, RuntimeDyldCheckerImpl *Checker) { in createRuntimeDyldCOFF() argument
894 Dyld->setRuntimeDyldChecker(Checker); in createRuntimeDyldCOFF()
901 bool ProcessAllSections, RuntimeDyldCheckerImpl *Checker) { in createRuntimeDyldELF() argument
[all …]
DRuntimeDyldImpl.h239 RuntimeDyldCheckerImpl *Checker; variable
432 : MemMgr(MemMgr), Resolver(Resolver), Checker(nullptr), in RuntimeDyldImpl()
442 void setRuntimeDyldChecker(RuntimeDyldCheckerImpl *Checker) { in setRuntimeDyldChecker() argument
443 this->Checker = Checker; in setRuntimeDyldChecker()
/external/llvm/tools/llvm-rtdyld/
Dllvm-rtdyld.cpp446 static int checkAllExpressions(RuntimeDyldChecker &Checker) { in checkAllExpressions() argument
454 if (!Checker.checkAllRulesInBuffer("# rtdyld-check:", in checkAllExpressions()
462 applySpecificSectionMappings(RuntimeDyldChecker &Checker) { in applySpecificSectionMappings() argument
482 Checker.getSectionAddr(FileName, SectionName, true); in applySpecificSectionMappings()
496 Checker.getRTDyld().mapSectionAddress(OldAddr, NewAddr); in applySpecificSectionMappings()
516 RuntimeDyldChecker &Checker) { in remapSectionsAndSymbols() argument
530 AppliedMappingsT AppliedMappings = applySpecificSectionMappings(Checker); in remapSectionsAndSymbols()
576 Checker.getRTDyld().mapSectionAddress(CurEntry.first, NextSectionAddr); in remapSectionsAndSymbols()
650 RuntimeDyldChecker Checker(Dyld, Disassembler.get(), InstPrinter.get(), in linkAndVerify() local
681 remapSectionsAndSymbols(TheTriple, MemMgr, Checker); in linkAndVerify()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/
DChecker.h334 _checkPointerEscape(void *Checker, in _checkPointerEscape() argument
342 return ((const CHECKER *)Checker)->checkPointerEscape(State, in _checkPointerEscape()
359 return ((const CHECKER *)Checker)->checkPointerEscape(State, in _checkPointerEscape()
377 _checkConstPointerEscape(void *Checker, in _checkConstPointerEscape() argument
399 return ((const CHECKER *)Checker)->checkConstPointerEscape(State, in _checkConstPointerEscape()
480 raw_ostream& operator<<(raw_ostream &Out, const CheckerBase &Checker);
487 CheckerProgramPointTag(const CheckerBase *Checker, StringRef Msg);
491 class Checker : public CHECK1, public CHECKs..., public CheckerBase {
496 Checker<CHECKs...>::_register(checker, mgr); in _register()
501 class Checker<CHECK1> : public CHECK1, public CheckerBase {
/external/clang/lib/StaticAnalyzer/
DREADME.txt9 (*Checker.cpp). The latter are built on top of the former via the
10 Checker and CheckerVisitor interfaces (Checker.h and
11 CheckerVisitor.h). The Checker interface is designed to be minimal
62 to tell the Checker that we are about to analyze a CallExpr, and the
99 If you are interested in writing checkers, look at the Checker and
100 CheckerVisitor interfaces (Checker.h and CheckerVisitor.h). Also look
101 at the files named *Checker.cpp for examples on how you can implement
/external/v8/test/mjsunit/regress/
Dregress-binop.js49 function Checker() { class
62 var left = new Checker();
63 var right = new Checker();
/external/clang/include/clang/StaticAnalyzer/Checkers/
DCheckerBase.td1 //===--- CheckerBase.td - Checker TableGen classes ------------------------===//
28 class Checker<string name = ""> {

12345