Searched refs:BR (Results 1 - 25 of 60) sorted by relevance

123

/external/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSizeofPointer.cpp26 BugReporter &BR; member in class:__anon3857::WalkAST
30 WalkAST(BugReporter &br, AnalysisDeclContext* ac) : BR(br), AC(ac) {}
65 PathDiagnosticLocation::createBegin(E, BR.getSourceManager(), AC);
66 BR.EmitBasicReport(AC->getDecl(),
83 BugReporter &BR) const {
84 WalkAST walker(BR, mgr.getAnalysisDeclContext(D));
H A DUndefCapturedBlockVarChecker.cpp38 if (const DeclRefExpr *BR = dyn_cast<DeclRefExpr>(S))
39 if (BR->getDecl() == VD)
40 return BR;
45 const DeclRefExpr *BR = FindBlockDeclRefExpr(child, VD); local
46 if (BR)
47 return BR;
H A DCheckObjCInstMethSignature.cpp43 BugReporter &BR, ASTContext &Ctx,
71 BR.getSourceManager());
73 BR.EmitBasicReport(MethDerived,
81 BugReporter& BR) {
89 ASTContext &Ctx = BR.getContext();
122 CompareReturnTypes(MethDerived, M, BR, Ctx, ID);
138 BugReporter &BR) const {
139 CheckObjCInstMethSignature(D, BR);
41 CompareReturnTypes(const ObjCMethodDecl *MethDerived, const ObjCMethodDecl *MethAncestor, BugReporter &BR, ASTContext &Ctx, const ObjCImplementationDecl *ID) argument
80 CheckObjCInstMethSignature(const ObjCImplementationDecl *ID, BugReporter& BR) argument
H A DDebugCheckers.cpp33 BugReporter &BR) const {
55 BugReporter &BR) const {
75 BugReporter &BR) const {
95 BugReporter &BR) const {
116 BugReporter &BR) const {
136 BugReporter &BR) const {
H A DLLVMConventionsChecker.cpp117 BugReporter &BR; member in class:__anon3878::StringRefCheckerVisitor
121 : BR(br), DeclWithIssue(declWithIssue) {}
135 static void CheckStringRefAssignedTemporary(const Decl *D, BugReporter &BR) { argument
136 StringRefCheckerVisitor walker(D, BR);
180 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager());
181 BR.EmitBasicReport(DeclWithIssue, desc, "LLVM Conventions", desc,
217 BugReporter &BR; member in class:__anon3879::ASTFieldVisitor
220 : Root(root), BR(br) {}
227 static void CheckASTMemory(const CXXRecordDecl *R, BugReporter &BR) { argument
233 ASTFieldVisitor walker(R, BR);
[all...]
H A DNSErrorChecker.cpp47 AnalysisManager &mgr, BugReporter &BR) const;
53 BugReporter &BR) const {
76 PathDiagnosticLocation::create(D, BR.getSourceManager());
77 BR.EmitBasicReport(D, "Bad return type when passing NSError**",
95 AnalysisManager &mgr, BugReporter &BR) const;
101 BugReporter &BR) const {
124 PathDiagnosticLocation::create(D, BR.getSourceManager());
125 BR.EmitBasicReport(D, "Bad return type when passing CFErrorRef*",
257 BugReporter &BR = *event.BR; local
[all...]
H A DVirtualCallChecker.cpp30 BugReporter &BR; member in class:__anon3936::WalkAST
61 : BR(br),
183 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC);
189 BR.EmitBasicReport(AC->getDecl(),
199 BR.EmitBasicReport(AC->getDecl(),
216 BugReporter &BR) const {
217 WalkAST walker(BR, mgr.getAnalysisDeclContext(RD));
H A DCheckSecuritySyntaxOnly.cpp59 BugReporter &BR; member in class:__anon3854::WalkAST
70 : BR(br), AC(ac), II_setid(),
71 CheckRand(isArc4RandomAvailable(BR.getContext())),
289 PathDiagnosticLocation::createBegin(FS, BR.getSourceManager(), AC);
290 BR.EmitBasicReport(AC->getDecl(),
320 if (PT->getPointeeType().getUnqualifiedType() != BR.getContext().CharTy)
326 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC);
327 BR.EmitBasicReport(AC->getDecl(),
362 if (PT->getPointeeType().getUnqualifiedType() != BR.getContext().CharTy)
368 PathDiagnosticLocation::createBegin(CE, BR
[all...]
H A DCStringSyntaxChecker.cpp34 BugReporter &BR; member in class:__anon3847::WalkAST
86 BR(br), AC(ac), ASTC(AC->getASTContext()) {
145 PathDiagnosticLocation::createBegin(LenArg, BR.getSourceManager(), AC);
160 BR.EmitBasicReport(FD, "Anti-pattern in the argument", "C String API",
181 BugReporter &BR) const {
182 WalkAST walker(BR, Mgr.getAnalysisDeclContext(D));
H A DObjCContainersASTChecker.cpp29 BugReporter &BR; member in class:__anon3899::WalkAST
77 : BR(br), AC(ac), ASTC(AC->getASTContext()),
146 PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC);
147 BR.EmitBasicReport(AC->getDecl(),
167 BugReporter &BR) const {
168 WalkAST walker(BR, Mgr.getAnalysisDeclContext(D));
H A DCheckObjCDealloc.cpp100 const LangOptions& LOpts, BugReporter& BR) {
104 ASTContext &Ctx = BR.getContext();
170 PathDiagnosticLocation::createBegin(D, BR.getSourceManager());
182 BR.EmitBasicReport(D, name, categories::CoreFoundationObjectiveC,
200 BR.EmitBasicReport(MD, name, categories::CoreFoundationObjectiveC,
264 PathDiagnosticLocation::createBegin(*I, BR.getSourceManager());
266 BR.EmitBasicReport(MD, name, categories::CoreFoundationObjectiveC,
281 BugReporter &BR) const {
284 checkObjCDealloc(cast<ObjCImplementationDecl>(D), mgr.getLangOpts(), BR);
99 checkObjCDealloc(const ObjCImplementationDecl *D, const LangOptions& LOpts, BugReporter& BR) argument
H A DMallocOverflowSecurityChecker.cpp44 BugReporter &BR) const;
52 const Decl *D, BugReporter &BR, AnalysisManager &mgr) const;
201 const Decl *D, BugReporter &BR, AnalysisManager &mgr) const {
207 CheckOverflowOps c(PossibleMallocOverflows, BR.getContext());
217 BR.EmitBasicReport(D, "malloc() size overflow", categories::UnixAPI,
220 BR.getSourceManager()), &R, 1);
226 BugReporter &BR) const {
262 OutputPossibleOverflows(PossibleMallocOverflows, D, BR, mgr);
199 OutputPossibleOverflows( llvm::SmallVectorImpl<MallocOverflowCheck> &PossibleMallocOverflows, const Decl *D, BugReporter &BR, AnalysisManager &mgr) const argument
H A DCheckerDocumentation.cpp171 BugReporter &BR,
179 BugReporter &BR) const {}
255 BugReporter &BR) const {}
170 checkEndAnalysis(ExplodedGraph &G, BugReporter &BR, ExprEngine &Eng) const argument
H A DMallocSizeofChecker.cpp175 BugReporter &BR) const {
177 CastedAllocFinder Finder(&BR.getContext());
200 if (typesCompatible(BR.getContext(), PointeeType, SizeofType))
205 if (compatibleWithArrayType(BR.getContext(), PointeeType, SizeofType))
236 BR.getSourceManager(), ADC);
238 BR.EmitBasicReport(D, "Allocator sizeof operand mismatch",
H A DObjCUnusedIVarsChecker.cpp112 BugReporter &BR) {
159 SourceManager &SM = BR.getSourceManager();
172 PathDiagnosticLocation::create(I->first, BR.getSourceManager());
173 BR.EmitBasicReport(D, "Unused instance variable", "Optimization",
187 BugReporter &BR) const {
188 checkObjCUnusedIvar(D, BR);
111 checkObjCUnusedIvar(const ObjCImplementationDecl *D, BugReporter &BR) argument
H A DDeadStoresChecker.cpp124 BugReporter& BR; member in class:__anon3861::DeadStoreObs
138 : cfg(cfg), Ctx(ctx), BR(br), AC(ac), Parents(parents),
200 BR.EmitBasicReport(AC->getDecl(), BugType, "Dead store", os.str(), L, R);
218 PathDiagnosticLocation::createBegin(Ex, BR.getSourceManager(), AC);
373 PathDiagnosticLocation::create(V, BR.getSourceManager());
422 BugReporter &BR) const {
429 DeadStoreObs A(cfg, BR.getContext(), BR, AC, pmap, FS.Escaped);
H A DStackAddrEscapeChecker.cpp67 else if (const BlockDataRegion *BR = dyn_cast<BlockDataRegion>(R)) {
68 const BlockDecl *BD = BR->getCodeRegion()->getDecl();
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/
H A DShortNumberUtilTest.java58 assertTrue(shortUtil.connectsToEmergencyNumber("911", RegionCode.BR));
59 assertTrue(shortUtil.connectsToEmergencyNumber("190", RegionCode.BR));
60 assertFalse(shortUtil.connectsToEmergencyNumber("999", RegionCode.BR));
65 assertFalse(shortUtil.connectsToEmergencyNumber("9111", RegionCode.BR));
66 assertFalse(shortUtil.connectsToEmergencyNumber("1900", RegionCode.BR));
67 assertFalse(shortUtil.connectsToEmergencyNumber("9996", RegionCode.BR));
114 assertTrue(shortUtil.isEmergencyNumber("911", RegionCode.BR));
115 assertTrue(shortUtil.isEmergencyNumber("190", RegionCode.BR));
116 assertFalse(shortUtil.isEmergencyNumber("999", RegionCode.BR));
120 assertFalse(shortUtil.isEmergencyNumber("9111", RegionCode.BR));
[all...]
H A DRegionCode.java30 static final String BR = "BR"; field in class:RegionCode
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporterVisitor.h61 BugReport &BR) = 0;
71 BugReport &BR);
78 BugReport &BR);
113 static void registerStatementVarDecls(BugReport &BR, const Stmt *S);
128 BugReport &BR);
147 BugReport &BR);
162 BugReport &BR);
177 BugReport &BR);
182 BugReport &BR);
249 BugReport &BR);
[all...]
H A DBugType.h48 virtual void FlushReports(BugReporter& BR);
H A DBugReporter.h475 GRBugReporter &BR; member in class:clang::ento::BugReporterContext
477 BugReporterContext(GRBugReporter& br) : BR(br) {}
481 GRBugReporter& getBugReporter() { return BR; }
483 ExplodedGraph &getGraph() { return BR.getGraph(); }
486 return BR.getStateManager();
494 return BR.getContext();
498 return BR.getSourceManager();
/external/llvm/lib/CodeGen/
H A DLiveIntervalAnalysis.cpp1026 BundleRanges BR = createBundleRanges(Entering, Internal, Exiting); local
1038 moveAllEnteringFromInto(OldIdx, Entering, BR);
1039 moveAllInternalFromInto(OldIdx, Internal, BR);
1040 moveAllExitingFromInto(OldIdx, Exiting, BR);
1144 BundleRanges BR; local
1150 BR[LI->reg].Use = LR;
1158 BR[LI->reg].Dead = LR;
1160 BR[LI->reg].EC = LR;
1168 BR[LI->reg].Def = LR;
1171 return BR;
1288 moveEnteringUpFromInto(SlotIndex OldIdx, IntRangePair& P, BundleRanges& BR) argument
1326 moveEnteringDownFromInto(SlotIndex OldIdx, IntRangePair& P, BundleRanges& BR) argument
1344 moveAllEnteringFromInto(SlotIndex OldIdx, RangeSet& Entering, BundleRanges& BR) argument
1410 moveAllExitingFromInto(SlotIndex OldIdx, RangeSet& Exiting, BundleRanges& BR) argument
[all...]
/external/clang/lib/StaticAnalyzer/Core/
H A DBugReporterVisitors.cpp98 BugReport &BR) {
105 BugReport &BR) {
110 llvm::tie(Beg, End) = BR.getRanges();
115 BR.getDescription(),
153 BugReport &BR) {
177 BR.addVisitor(new ReturnVisitor(CEE->getCalleeContext()));
184 BugReport &BR) {
223 bugreporter::trackNullOrUndefValue(N, RetE, BR);
235 BR.markInteresting(V);
261 BugReport &BR) {
96 getEndPath(BugReporterContext &BRC, const ExplodedNode *EndPathNode, BugReport &BR) argument
103 getDefaultEndPath(BugReporterContext &BRC, const ExplodedNode *EndPathNode, BugReport &BR) argument
152 addVisitorIfNecessary(const ExplodedNode *Node, const Stmt *S, BugReport &BR) argument
181 VisitNode(const ExplodedNode *N, const ExplodedNode *PrevN, BugReporterContext &BRC, BugReport &BR) argument
258 VisitNode(const ExplodedNode *Succ, const ExplodedNode *Pred, BugReporterContext &BRC, BugReport &BR) argument
404 VisitNode(const ExplodedNode *N, const ExplodedNode *PrevN, BugReporterContext &BRC, BugReport &BR) argument
547 VisitNode(const ExplodedNode *N, const ExplodedNode *PrevN, BugReporterContext &BRC, BugReport &BR) argument
581 registerStatementVarDecls(BugReport &BR, const Stmt *S) argument
618 VisitNode(const ExplodedNode *N, const ExplodedNode *Prev, BugReporterContext &BRC, BugReport &BR) argument
629 VisitNodeImpl(const ExplodedNode *N, const ExplodedNode *Prev, BugReporterContext &BRC, BugReport &BR) argument
967 VisitNode(const ExplodedNode *N, const ExplodedNode *PrevN, BugReporterContext &BRC, BugReport &BR) argument
[all...]
/external/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp53 BranchInst *BR = dyn_cast<BranchInst>(entryBlock->getTerminator()); local
54 if (!BR || BR->isUnconditional())

Completed in 203 milliseconds

123