/external/clang/lib/StaticAnalyzer/Core/ |
Checker.cpp | 1 //== Checker.cpp - Registration mechanism for checkers -----------*- C++ -*--=// 10 // This file defines Checker, used to create and register checkers. 15 #include "clang/StaticAnalyzer/Core/Checker.h" 30 CheckerProgramPointTag::CheckerProgramPointTag(const CheckerBase *Checker, 32 : SimpleProgramPointTag(Checker->getCheckName().getName(), Msg) {} 35 const CheckerBase &Checker) { 36 Out << Checker.getCheckName().getName();
|
/external/clang/test/CodeGenCXX/ |
conditional-temporaries.cpp | 28 struct Checker { 29 Checker() { 35 Checker c;
|
/prebuilts/go/darwin-x86/src/go/types/ |
errors.go | 26 func (check *Checker) qualifier(pkg *Package) string { 33 func (check *Checker) sprintf(format string, args ...interface{}) string { 56 func (check *Checker) trace(pos token.Pos, format string, args ...interface{}) { 65 func (check *Checker) dump(format string, args ...interface{}) { 69 func (check *Checker) err(pos token.Pos, msg string, soft bool) { 81 func (check *Checker) error(pos token.Pos, msg string) { 85 func (check *Checker) errorf(pos token.Pos, format string, args ...interface{}) { 89 func (check *Checker) softErrorf(pos token.Pos, format string, args ...interface{}) { 93 func (check *Checker) invalidAST(pos token.Pos, format string, args ...interface{}) { 97 func (check *Checker) invalidArg(pos token.Pos, format string, args ...interface{}) [all...] |
check.go | 21 // If Strict is set, the type-checker enforces additional 60 // A Checker maintains the state of the type checker. 62 type Checker struct { 64 // (initialized by NewChecker, valid for the life-time of checker) 94 func (check *Checker) addUnusedDotImport(scope *Scope, pkg *Package, pos token.Pos) { 109 func (check *Checker) addDeclDep(to Object) { 120 func (check *Checker) assocMethod(tname string, meth *Func) { 129 func (check *Checker) rememberUntyped(e ast.Expr, lhs bool, mode operandMode, typ *Basic, val constant.Value) { 138 func (check *Checker) later(name string, decl *declInfo, sig *Signature, body *ast.BlockStmt) [all...] |
/prebuilts/go/linux-x86/src/go/types/ |
errors.go | 26 func (check *Checker) qualifier(pkg *Package) string { 33 func (check *Checker) sprintf(format string, args ...interface{}) string { 56 func (check *Checker) trace(pos token.Pos, format string, args ...interface{}) { 65 func (check *Checker) dump(format string, args ...interface{}) { 69 func (check *Checker) err(pos token.Pos, msg string, soft bool) { 81 func (check *Checker) error(pos token.Pos, msg string) { 85 func (check *Checker) errorf(pos token.Pos, format string, args ...interface{}) { 89 func (check *Checker) softErrorf(pos token.Pos, format string, args ...interface{}) { 93 func (check *Checker) invalidAST(pos token.Pos, format string, args ...interface{}) { 97 func (check *Checker) invalidArg(pos token.Pos, format string, args ...interface{}) [all...] |
check.go | 21 // If Strict is set, the type-checker enforces additional 60 // A Checker maintains the state of the type checker. 62 type Checker struct { 64 // (initialized by NewChecker, valid for the life-time of checker) 94 func (check *Checker) addUnusedDotImport(scope *Scope, pkg *Package, pos token.Pos) { 109 func (check *Checker) addDeclDep(to Object) { 120 func (check *Checker) assocMethod(tname string, meth *Func) { 129 func (check *Checker) rememberUntyped(e ast.Expr, lhs bool, mode operandMode, typ *Basic, val constant.Value) { 138 func (check *Checker) later(name string, decl *declInfo, sig *Signature, body *ast.BlockStmt) [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
CheckSizeofPointer.cpp | 18 #include "clang/StaticAnalyzer/Core/Checker.h" 27 const CheckerBase *Checker; 31 WalkAST(BugReporter &br, const CheckerBase *checker, AnalysisDeclContext *ac) 32 : BR(br), Checker(checker), AC(ac) {} 67 BR.EmitBasicReport(AC->getDecl(), Checker, 81 class SizeofPointerChecker : public Checker<check::ASTCodeBody> {
|
CheckObjCInstMethSignature.cpp | 22 #include "clang/StaticAnalyzer/Core/Checker.h" 44 const CheckerBase *Checker) { 74 MethDerived, Checker, "Incompatible instance method return type", 81 const CheckerBase *Checker) { 116 CompareReturnTypes(MethDerived, M, BR, Ctx, ID, Checker); 128 class ObjCMethSigsChecker : public Checker<
|
LLVMConventionsChecker.cpp | 19 #include "clang/StaticAnalyzer/Core/Checker.h" 120 const CheckerBase *Checker; 124 const CheckerBase *checker) 125 : DeclWithIssue(declWithIssue), BR(br), Checker(checker) {} 139 const CheckerBase *Checker) { 140 StringRefCheckerVisitor walker(D, BR, Checker); 185 BR.EmitBasicReport(DeclWithIssue, Checker, desc, "LLVM Conventions", desc, 220 const CheckerBase *Checker; 224 const CheckerBase *checker) [all...] |
DirectIvarAssignment.cpp | 13 // Two versions of a checker exist: one that checks all methods and the other 17 // The checker does not warn about assignments to Ivars, annotated with 20 // checker. The annotation is allowed on properties and Ivars. 29 #include "clang/StaticAnalyzer/Core/Checker.h" 54 public Checker<check::ASTDecl<ObjCImplementationDecl> > { 66 const CheckerBase *Checker; 72 const CheckerBase *Checker, AnalysisDeclContext *InDCtx) 74 Checker(Checker), DCtx(InDCtx) {} 183 // as a false positive suppression mechanism for the checker. Th [all...] |
DebugCheckers.cpp | 18 #include "clang/StaticAnalyzer/Core/Checker.h" 35 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>> [all...] |
VirtualCallChecker.cpp | 10 // This file defines a checker that checks virtual function calls during 19 #include "clang/StaticAnalyzer/Core/Checker.h" 31 const CheckerBase *Checker; 62 WalkAST(const CheckerBase *checker, BugReporter &br, 64 : Checker(checker), BR(br), AC(ac), visitingCallExpr(nullptr) {} 197 BR.EmitBasicReport(AC->getDecl(), Checker, 206 BR.EmitBasicReport(AC->getDecl(), Checker, 219 class VirtualCallChecker : public Checker<check::ASTDecl<CXXRecordDecl> > {
|
NSErrorChecker.cpp | 22 #include "clang/StaticAnalyzer/Core/Checker.h" 41 : public Checker< check::ASTDecl<ObjCMethodDecl> > { 88 : public Checker< check::ASTDecl<FunctionDecl> > { 137 NSErrorDerefBug(const CheckerBase *Checker) 138 : BugType(Checker, "NSError** null dereference", 144 CFErrorDerefBug(const CheckerBase *Checker) 145 : BugType(Checker, "CFErrorRef* null dereference", 153 : public Checker< check::Location, 314 NSOrCFErrorDerefChecker *checker = local 316 checker->ShouldCheckNSError = true 321 NSOrCFErrorDerefChecker *checker = local [all...] |
PaddingChecker.cpp | 10 // This file defines a checker that checks for padding that could be 22 #include "clang/StaticAnalyzer/Core/Checker.h" 33 class PaddingChecker : public Checker<check::ASTDecl<TranslationUnitDecl>> { 51 const PaddingChecker *Checker; 54 explicit LocalVisitor(const PaddingChecker *Checker) : Checker(Checker) {} 56 Checker->visitRecord(RD); 60 Checker->visitVariable(VD); 73 /// checker [all...] |
CStringSyntaxChecker.cpp | 10 // An AST checker that looks for common pitfalls when using C string APIs. 23 #include "clang/StaticAnalyzer/Core/Checker.h" 34 const CheckerBase *Checker; 85 WalkAST(const CheckerBase *checker, BugReporter &br, AnalysisDeclContext *ac) 86 : Checker(checker), BR(br), AC(ac) {} 160 BR.EmitBasicReport(FD, Checker, "Anti-pattern in the argument", 177 class CStringSyntaxChecker: public Checker<check::ASTCodeBody> {
|
FixedAddressChecker.cpp | 1 //=== FixedAddressChecker.cpp - Fixed address usage checker ----*- C++ -*--===// 10 // This files defines FixedAddressChecker, a builtin checker that checks for 18 #include "clang/StaticAnalyzer/Core/Checker.h" 27 : public Checker< check::PreStmt<BinaryOperator> > {
|
NSAutoreleasePoolChecker.cpp | 10 // This file defines a NSAutoreleasePoolChecker, a small checker that warns 23 #include "clang/StaticAnalyzer/Core/Checker.h" 34 : public Checker<check::PreObjCMessage> {
|
ObjCContainersASTChecker.cpp | 10 // An AST checker that looks for common pitfalls when using 'CFArray', 19 #include "clang/StaticAnalyzer/Core/Checker.h" 30 const CheckerBase *Checker; 75 WalkAST(BugReporter &br, const CheckerBase *checker, AnalysisDeclContext *ac) 76 : BR(br), Checker(checker), AC(ac), ASTC(AC->getASTContext()), 146 BR.EmitBasicReport(AC->getDecl(), Checker, OsName.str(), 162 class ObjCContainersASTChecker : public Checker<check::ASTCodeBody> {
|
TaintTesterChecker.cpp | 10 // This checker can be used for testing how taint data is propagated. 15 #include "clang/StaticAnalyzer/Core/Checker.h" 23 class TaintTesterChecker : public Checker< check::PostStmt<Expr> > {
|
/external/jsr305/ri/src/main/java/javax/annotation/ |
Nonnull.java | 17 static class Checker implements TypeQualifierValidator<Nonnull> {
|
MatchesPattern.java | 21 static class Checker implements TypeQualifierValidator<MatchesPattern> {
|
Nonnegative.java | 18 class Checker implements TypeQualifierValidator<Nonnegative> {
|
RegEx.java | 25 static class Checker implements TypeQualifierValidator<RegEx> {
|
/external/jsr305/sampleUses/src/main/java/ |
CreditCardNumber.java | 16 class Checker implements TypeQualifierValidator<CreditCardNumber> {
|
FixedLengthString.java | 15 class Checker implements TypeQualifierValidator<FixedLengthString> {
|