/external/clang/lib/Analysis/ |
H A D | ProgramPoint.cpp | 22 const LocationContext *LC, 28 return PreStmt(S, LC, tag); 30 return PostStmt(S, LC, tag); 32 return PreLoad(S, LC, tag); 34 return PostLoad(S, LC, tag); 36 return PreStore(S, LC, tag); 38 return PostLValue(S, LC, tag); 40 return PostStmtPurgeDeadSymbols(S, LC, tag); 42 return PreStmtPurgeDeadSymbols(S, LC, tag); 21 getProgramPoint(const Stmt *S, ProgramPoint::Kind K, const LocationContext *LC, const ProgramPointTag *tag) argument
|
H A D | AnalysisDeclContext.cpp | 405 const LocationContext *LC = this; local 406 while (LC) { 407 if (const StackFrameContext *SFC = dyn_cast<StackFrameContext>(LC)) 409 LC = LC->getParent(); 418 bool LocationContext::isParentOf(const LocationContext *LC) const { 420 const LocationContext *Parent = LC->getParent(); 424 LC = Parent; 425 } while (LC); 580 LocationContext *LC local [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | PrettyStackTraceLocationContext.h | 32 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { argument
|
H A D | MemRegion.cpp | 385 const LocationContext *LC, 390 ID.AddPointer(LC); 396 BlockDataRegion::ProfileRegion(ID, BC, LC, BlockCount, getSuperRegion()); 738 getStackOrCaptureRegionForDeclContext(const LocationContext *LC, argument 741 while (LC) { 742 if (const StackFrameContext *SFC = dyn_cast<StackFrameContext>(LC)) { 747 dyn_cast<BlockInvocationContext>(LC)) { 760 LC = LC->getParent(); 766 const LocationContext *LC) { 383 ProfileRegion(llvm::FoldingSetNodeID& ID, const BlockTextRegion *BC, const LocationContext *LC, unsigned BlkCount, const MemRegion *sReg) argument 765 getVarRegion(const VarDecl *D, const LocationContext *LC) argument 852 getBlockDataRegion(const BlockTextRegion *BC, const LocationContext *LC, unsigned blockCount) argument 886 getCompoundLiteralRegion(const CompoundLiteralExpr *CL, const LocationContext *LC) argument 959 getCXXTempObjectRegion(Expr const *E, LocationContext const *LC) argument 1011 getCXXThisRegion(QualType thisPointerTy, const LocationContext *LC) argument 1021 getAllocaRegion(const Expr *E, unsigned cnt, const LocationContext *LC) argument [all...] |
H A D | BugReporter.cpp | 325 const LocationContext *LC; member in class:__anon1395::PathDiagnosticBuilder 331 R(r), PDC(pdc), NMC(Backmap), LC(r->getErrorNode()->getLocationContext()) 343 ParentMap& getParentMap() { return LC->getParentMap(); } 366 return PathDiagnosticLocation(S, getSourceManager(), LC); 427 const LocationContext *LC, bool allowNestedContexts) { 436 return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC); 441 return PathDiagnosticLocation(S, SMgr, LC); 446 return PathDiagnosticLocation(Parent, SMgr, LC); 448 return PathDiagnosticLocation(S, SMgr, LC); 455 return PathDiagnosticLocation(Parent, SMgr, LC); 426 getEnclosingStmtLocation(const Stmt *S, SourceManager &SMgr, const ParentMap &P, const LocationContext *LC, bool allowNestedContexts) argument 562 const LocationContext *LC = PDB.LC; local 920 cleanUpLocation(PathDiagnosticLocation L, const LocationContext *LC, bool firstCharOnly = false) argument 1586 addEdgeToPath(PathPieces &path, PathDiagnosticLocation &PrevLoc, PathDiagnosticLocation NewLoc, const LocationContext *LC) argument 2323 const LocationContext *LC = LCM[&path]; local 2567 const LocationContext *LC = N->getLocationContext(); local 2624 markInteresting(const LocationContext *LC) argument 2654 isInteresting(const LocationContext *LC) argument [all...] |
H A D | CoreEngine.cpp | 290 const LocationContext *LC = Pred->getLocationContext(); local 292 LC->getDecl(), 293 LC->getCFG()->getNumBlockIDs()); 327 const LocationContext *LC = Pred->getLocationContext(); local 330 Counter = BCounterFactory.IncrementCount(Counter, LC->getCurrentStackFrame(),
|
H A D | ExprEngine.cpp | 183 const LocationContext *LC, 186 SVal V = State->getSVal(Ex, LC); 233 TR = MRMgr.getCXXTempObjectRegion(Inner, LC); 238 V = getSValBuilder().conjureSymbolVal(Result, LC, TR->getValueType(), 249 State = State->BindExpr(Result, LC, Reg); 317 const LocationContext *LC) { 337 ParentMap &PM = LC->getAnalysisDeclContext()->getParentMap(); 343 const LocationContext *LC, 349 assert(LC && "Must pass the current (or expiring) LocationContext"); 359 // LC i 182 createTemporaryRegionIfNeeded(ProgramStateRef State, const LocationContext *LC, const Expr *Ex, const Expr *Result) argument 314 shouldRemoveDeadBindings(AnalysisManager &AMgr, const CFGStmt S, const ExplodedNode *Pred, const LocationContext *LC) argument 341 removeDead(ExplodedNode *Pred, ExplodedNodeSet &Out, const Stmt *ReferenceStmt, const LocationContext *LC, const Stmt *DiagnosticStmt, ProgramPoint::Kind K) argument 2117 const LocationContext *LC = Pred->getLocationContext(); local [all...] |
H A D | PathDiagnostic.cpp | 644 PathDiagnosticLocation::createDeclBegin(const LocationContext *LC, argument 648 dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody())) 658 PathDiagnosticLocation::createDeclEnd(const LocationContext *LC, argument 660 SourceLocation L = LC->getDecl()->getBodyRBrace(); 754 const LocationContext *LC = N->getLocationContext(); local 765 return PathDiagnosticLocation::createEnd(S, SM, LC); 768 return PathDiagnosticLocation(S, SM, LC); 769 return PathDiagnosticLocation(getValidSourceLocation(S, LC), SM);
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | TraversalChecker.cpp | 74 for (const LocationContext *LC = C.getLocationContext()->getParent(); 75 LC != nullptr; LC = LC->getParent()) 91 for (const LocationContext *LC = C.getLocationContext()->getParent(); 92 LC != nullptr; LC = LC->getParent())
|
H A D | ExprInspectionChecker.cpp | 61 const LocationContext *LC = N->getLocationContext(); local 65 SVal AssertionVal = State->getSVal(Assertion, LC); 90 const LocationContext *LC = N->getLocationContext(); local 94 if (LC->getCurrentStackFrame()->getParent() != nullptr) 118 const LocationContext *LC = N->getLocationContext(); local 125 if (LC->getCurrentStackFrame()->getParent() == nullptr)
|
H A D | AnalyzerStatsChecker.cpp | 50 const LocationContext *LC = GraphRoot->getLocation().getLocationContext(); local 52 const Decl *D = LC->getDecl(); 70 C = LC->getCFG(); 133 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC));
|
H A D | UnreachableCodeChecker.cpp | 64 const LocationContext *LC = nullptr; local 69 LC = P.getLocationContext(); 70 if (!LC->inTopFrame()) 74 D = LC->getAnalysisDeclContext()->getDecl(); 78 C = LC->getAnalysisDeclContext()->getUnoptimizedCFG(); 80 PM = &LC->getParentMap(); 155 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC);
|
H A D | VLASizeChecker.cpp | 168 const LocationContext *LC = C.getLocationContext(); local 170 state->getRegion(VD, LC)->getExtent(svalBuilder);
|
/external/clang/test/CodeGenCXX/ |
H A D | mangle-extern-local.cpp | 29 struct LC { int localfunc() { extern int var4; return var4; } }; struct 30 LC localobj;
|
/external/llvm/include/llvm/Analysis/ |
H A D | LibCallAliasAnalysis.h | 31 explicit LibCallAliasAnalysis(LibCallInfo *LC = nullptr) 32 : FunctionPass(ID), LCI(LC) { 35 explicit LibCallAliasAnalysis(char &ID, LibCallInfo *LC) argument 36 : FunctionPass(ID), LCI(LC) {
|
/external/clang/examples/analyzer-plugin/ |
H A D | MainCallChecker.cpp | 20 const LocationContext *LC = C.getLocationContext(); local 22 const FunctionDecl *FD = state->getSVal(Callee, LC).getAsFunctionDecl();
|
/external/clang/test/Parser/ |
H A D | cxx-casting.cpp | 59 #define LC <: macro 61 test1::A LC:B> c; // expected-error {{class template 'test1::A' requires template arguments}} expected-error 2{{}} 62 (void)static_cast LC:c>(&x); // expected-error {{expected '<' after 'static_cast'}} expected-error 2{{}} expected-note{{}}
|
/external/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 696 if (Constant *LC = dyn_cast<Constant>(LHS)) 698 return Insert(Folder.CreateAdd(LC, RC, HasNUW, HasNSW), Name); 710 if (Constant *LC = dyn_cast<Constant>(LHS)) 712 return Insert(Folder.CreateFAdd(LC, RC), Name); 718 if (Constant *LC = dyn_cast<Constant>(LHS)) 720 return Insert(Folder.CreateSub(LC, RC, HasNUW, HasNSW), Name); 732 if (Constant *LC = dyn_cast<Constant>(LHS)) 734 return Insert(Folder.CreateFSub(LC, RC), Name); 740 if (Constant *LC = dyn_cast<Constant>(LHS)) 742 return Insert(Folder.CreateMul(LC, R [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | Store.h | 87 virtual Loc getLValueVar(const VarDecl *VD, const LocationContext *LC) { argument 88 return svalBuilder.makeLoc(MRMgr.getVarRegion(VD, LC)); 92 const LocationContext *LC) { 93 return loc::MemRegionVal(MRMgr.getCompoundLiteralRegion(CL, LC)); 91 getLValueCompoundLiteral(const CompoundLiteralExpr *CL, const LocationContext *LC) argument
|
H A D | ProgramState.h | 199 const VarRegion* getRegion(const VarDecl *D, const LocationContext *LC) const; 258 Loc getLValue(const VarDecl *D, const LocationContext *LC) const; 261 const LocationContext *LC) const; 630 const LocationContext *LC) const 632 return getStateManager().getRegionManager().getVarRegion(D, LC); 660 const LocationContext *LC) const { 661 return getStateManager().StoreMgr->getLValueVar(VD, LC); 665 const LocationContext *LC) const { 666 return getStateManager().StoreMgr->getLValueCompoundLiteral(literal, LC);
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_format_interceptor_test.cc | 44 static const unsigned LC = sizeof(wchar_t); variable 119 testScanf("%lc", 1, LC); 135 testScanf("%10ls", 1, 11 * LC); 136 testScanf("%10lc", 1, 10 * LC);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeIntegerTypes.cpp | 1336 RTLIB::Libcall LC = RTLIB::getATOMIC(Opc, VT); local 1337 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected atomic op or value type!"); 1339 return ExpandChainLibCall(LC, Node, false); 1863 RTLIB::Libcall LC = RTLIB::getFPTOSINT(Op.getValueType(), VT); local 1864 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fp-to-sint conversion!"); 1865 SplitInteger(TLI.makeLibCall(DAG, LC, VT, &Op, 1, true/*irrelevant*/, 1879 RTLIB::Libcall LC = RTLIB::getFPTOUINT(Op.getValueType(), VT); local 1880 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fp-to-uint conversion!"); 1881 SplitInteger(TLI.makeLibCall(DAG, LC, VT, &Op, 1, false/*irrelevant*/, 2029 RTLIB::Libcall LC 2093 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2163 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2272 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2354 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2412 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2432 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2736 RTLIB::Libcall LC = RTLIB::getSINTTOFP(Op.getValueType(), DstVT); local 2905 RTLIB::Libcall LC = RTLIB::getUINTTOFP(SrcVT, DstVT); local [all...] |
H A D | LegalizeDAG.cpp | 109 SDValue ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, bool isSigned); 110 SDValue ExpandLibCall(RTLIB::Libcall LC, EVT RetVT, const SDValue *Ops, 113 std::pair<SDValue, SDValue> ExpandChainLibCall(RTLIB::Libcall LC, 2047 SDValue SelectionDAGLegalize::ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, 2059 SDValue Callee = DAG.getExternalSymbol(TLI.getLibcallName(LC), 2079 .setCallee(TLI.getLibcallCallingConv(LC), RetTy, Callee, std::move(Args), 0) 2093 SDValue SelectionDAGLegalize::ExpandLibCall(RTLIB::Libcall LC, EVT RetVT, 2107 SDValue Callee = DAG.getExternalSymbol(TLI.getLibcallName(LC), 2114 .setCallee(TLI.getLibcallCallingConv(LC), RetTy, Callee, std::move(Args), 0) 2125 SelectionDAGLegalize::ExpandChainLibCall(RTLIB::Libcall LC, [all...] |
H A D | LegalizeFloatTypes.cpp | 414 RTLIB::Libcall LC = RTLIB::getFPEXT(Op.getValueType(), N->getValueType(0)); local 417 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unsupported FP_EXTEND!"); 418 return TLI.makeLibCall(DAG, LC, NVT, &Op, 1, false, SDLoc(N)).first; 432 RTLIB::Libcall LC = RTLIB::getFPEXT(MVT::f32, N->getValueType(0)); local 433 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unsupported FP_EXTEND!"); 434 return TLI.makeLibCall(DAG, LC, NVT, &Res32, 1, false, SDLoc(N)).first; 446 RTLIB::Libcall LC = RTLIB::getFPROUND(Op.getValueType(), N->getValueType(0)); local 447 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unsupported FP_ROUND!"); 448 return TLI.makeLibCall(DAG, LC, NVT, &Op, 1, false, SDLoc(N)).first; 646 RTLIB::Libcall LC local 739 RTLIB::Libcall LC = RTLIB::getFPROUND(SVT, FloatRVT); local 771 RTLIB::Libcall LC = RTLIB::getFPTOSINT(N->getOperand(0).getValueType(), RVT); local 779 RTLIB::Libcall LC = RTLIB::getFPTOUINT(N->getOperand(0).getValueType(), RVT); local 1293 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 1486 RTLIB::Libcall LC = RTLIB::getFPTOSINT(N->getOperand(0).getValueType(), RVT); local 1518 RTLIB::Libcall LC = RTLIB::getFPTOUINT(N->getOperand(0).getValueType(), RVT); local [all...] |
H A D | LegalizeTypes.cpp | 1037 SDValue DAGTypeLegalizer::LibCallify(RTLIB::Libcall LC, SDNode *N, argument 1042 return TLI.makeLibCall(DAG, LC, N->getValueType(0), nullptr, 0, isSigned, 1046 return TLI.makeLibCall(DAG, LC, N->getValueType(0), &Op, 1, isSigned, 1050 return TLI.makeLibCall(DAG, LC, N->getValueType(0), Ops, 2, isSigned, 1057 return TLI.makeLibCall(DAG, LC, N->getValueType(0), 1064 DAGTypeLegalizer::ExpandChainLibCall(RTLIB::Libcall LC, argument 1080 SDValue Callee = DAG.getExternalSymbol(TLI.getLibcallName(LC), 1087 .setCallee(TLI.getLibcallCallingConv(LC), RetTy, Callee, std::move(Args), 0)
|