/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 | 398 const LocationContext *LC = this; local 399 while (LC) { 400 if (const StackFrameContext *SFC = dyn_cast<StackFrameContext>(LC)) 402 LC = LC->getParent(); 411 bool LocationContext::isParentOf(const LocationContext *LC) const { 413 const LocationContext *Parent = LC->getParent(); 417 LC = Parent; 418 } while (LC); 573 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:__anon18255::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 566 const LocationContext *LC = PDB.LC; local 926 cleanUpLocation(PathDiagnosticLocation L, const LocationContext *LC, bool firstCharOnly = false) argument 1595 addEdgeToPath(PathPieces &path, PathDiagnosticLocation &PrevLoc, PathDiagnosticLocation NewLoc, const LocationContext *LC) argument 2336 const LocationContext *LC = LCM[&path]; local 2585 const LocationContext *LC = N->getLocationContext(); local 2642 markInteresting(const LocationContext *LC) argument 2672 isInteresting(const LocationContext *LC) argument [all...] |
H A D | CoreEngine.cpp | 289 const LocationContext *LC = Pred->getLocationContext(); local 291 LC->getDecl(), 292 LC->getCFG()->getNumBlockIDs()); 326 const LocationContext *LC = Pred->getLocationContext(); local 329 Counter = BCounterFactory.IncrementCount(Counter, LC->getCurrentStackFrame(),
|
H A D | ExprEngine.cpp | 174 const LocationContext *LC, 177 SVal V = State->getSVal(Ex, LC); 224 TR = MRMgr.getCXXTempObjectRegion(Inner, LC); 229 V = getSValBuilder().conjureSymbolVal(Result, LC, TR->getValueType(), 240 State = State->BindExpr(Result, LC, Reg); 308 const LocationContext *LC) { 328 ParentMap &PM = LC->getAnalysisDeclContext()->getParentMap(); 334 const LocationContext *LC, 340 assert(LC && "Must pass the current (or expiring) LocationContext"); 350 // LC i 173 createTemporaryRegionIfNeeded(ProgramStateRef State, const LocationContext *LC, const Expr *Ex, const Expr *Result) argument 305 shouldRemoveDeadBindings(AnalysisManager &AMgr, const CFGStmt S, const ExplodedNode *Pred, const LocationContext *LC) argument 332 removeDead(ExplodedNode *Pred, ExplodedNodeSet &Out, const Stmt *ReferenceStmt, const LocationContext *LC, const Stmt *DiagnosticStmt, ProgramPoint::Kind K) argument 2005 const LocationContext *LC = Pred->getLocationContext(); local [all...] |
H A D | PathDiagnostic.cpp | 641 PathDiagnosticLocation::createDeclBegin(const LocationContext *LC, argument 645 dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody())) 655 PathDiagnosticLocation::createDeclEnd(const LocationContext *LC, argument 657 SourceLocation L = LC->getDecl()->getBodyRBrace(); 751 const LocationContext *LC = N->getLocationContext(); local 762 return PathDiagnosticLocation::createEnd(S, SM, LC); 765 return PathDiagnosticLocation(S, SM, LC); 766 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 | 146 const LocationContext *LC = C.getLocationContext(); local 148 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 | 30 explicit LibCallAliasAnalysis(LibCallInfo *LC = nullptr) 31 : FunctionPass(ID), LCI(LC) { 34 explicit LibCallAliasAnalysis(char &ID, LibCallInfo *LC) argument 35 : 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/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeIntegerTypes.cpp | 1227 RTLIB::Libcall LC; local 1235 case MVT::i8: LC = RTLIB::SYNC_LOCK_TEST_AND_SET_1; break; 1236 case MVT::i16: LC = RTLIB::SYNC_LOCK_TEST_AND_SET_2; break; 1237 case MVT::i32: LC = RTLIB::SYNC_LOCK_TEST_AND_SET_4; break; 1238 case MVT::i64: LC = RTLIB::SYNC_LOCK_TEST_AND_SET_8; break; 1239 case MVT::i128:LC = RTLIB::SYNC_LOCK_TEST_AND_SET_16;break; 1245 case MVT::i8: LC = RTLIB::SYNC_VAL_COMPARE_AND_SWAP_1; break; 1246 case MVT::i16: LC = RTLIB::SYNC_VAL_COMPARE_AND_SWAP_2; break; 1247 case MVT::i32: LC = RTLIB::SYNC_VAL_COMPARE_AND_SWAP_4; break; 1248 case MVT::i64: LC 1827 RTLIB::Libcall LC = RTLIB::getFPTOSINT(Op.getValueType(), VT); local 1839 RTLIB::Libcall LC = RTLIB::getFPTOUINT(Op.getValueType(), VT); local 2051 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2121 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2230 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2312 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2370 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2390 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 2694 RTLIB::Libcall LC = RTLIB::getSINTTOFP(Op.getValueType(), DstVT); local 2863 RTLIB::Libcall LC = RTLIB::getUINTTOFP(SrcVT, DstVT); local [all...] |
H A D | LegalizeDAG.cpp | 102 SDValue ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, bool isSigned); 103 SDValue ExpandLibCall(RTLIB::Libcall LC, EVT RetVT, const SDValue *Ops, 106 std::pair<SDValue, SDValue> ExpandChainLibCall(RTLIB::Libcall LC, 2031 SDValue SelectionDAGLegalize::ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, 2043 SDValue Callee = DAG.getExternalSymbol(TLI.getLibcallName(LC), 2063 .setCallee(TLI.getLibcallCallingConv(LC), RetTy, Callee, std::move(Args), 0) 2077 SDValue SelectionDAGLegalize::ExpandLibCall(RTLIB::Libcall LC, EVT RetVT, 2091 SDValue Callee = DAG.getExternalSymbol(TLI.getLibcallName(LC), 2098 .setCallee(TLI.getLibcallCallingConv(LC), RetTy, Callee, std::move(Args), 0) 2109 SelectionDAGLegalize::ExpandChainLibCall(RTLIB::Libcall LC, [all...] |
H A D | LegalizeFloatTypes.cpp | 376 RTLIB::Libcall LC = RTLIB::getFPEXT(Op.getValueType(), N->getValueType(0)); local 377 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unsupported FP_EXTEND!"); 378 return TLI.makeLibCall(DAG, LC, NVT, &Op, 1, false, SDLoc(N)).first; 393 RTLIB::Libcall LC = RTLIB::getFPROUND(Op.getValueType(), N->getValueType(0)); local 394 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unsupported FP_ROUND!"); 395 return TLI.makeLibCall(DAG, LC, NVT, &Op, 1, false, SDLoc(N)).first; 590 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 592 t <= MVT::LAST_INTEGER_VALUETYPE && LC == RTLIB::UNKNOWN_LIBCALL; ++t) { 596 LC = Signed ? RTLIB::getSINTTOFP(NVT, RVT):RTLIB::getUINTTOFP (NVT, RVT); 598 assert(LC ! 661 RTLIB::Libcall LC = RTLIB::getFPROUND(SVT, RVT); local 693 RTLIB::Libcall LC = RTLIB::getFPTOSINT(N->getOperand(0).getValueType(), RVT); local 701 RTLIB::Libcall LC = RTLIB::getFPTOUINT(N->getOperand(0).getValueType(), RVT); local 709 RTLIB::Libcall LC = RTLIB::FPROUND_F32_F16; local 1200 RTLIB::Libcall LC = RTLIB::UNKNOWN_LIBCALL; local 1393 RTLIB::Libcall LC = RTLIB::getFPTOSINT(N->getOperand(0).getValueType(), RVT); local 1425 RTLIB::Libcall LC = RTLIB::getFPTOUINT(N->getOperand(0).getValueType(), RVT); local [all...] |
H A D | LegalizeTypes.cpp | 1007 SDValue DAGTypeLegalizer::LibCallify(RTLIB::Libcall LC, SDNode *N, argument 1012 return TLI.makeLibCall(DAG, LC, N->getValueType(0), nullptr, 0, isSigned, 1016 return TLI.makeLibCall(DAG, LC, N->getValueType(0), &Op, 1, isSigned, 1020 return TLI.makeLibCall(DAG, LC, N->getValueType(0), Ops, 2, isSigned, 1027 return TLI.makeLibCall(DAG, LC, N->getValueType(0), 1034 DAGTypeLegalizer::ExpandChainLibCall(RTLIB::Libcall LC, argument 1050 SDValue Callee = DAG.getExternalSymbol(TLI.getLibcallName(LC), 1057 .setCallee(TLI.getLibcallCallingConv(LC), RetTy, Callee, std::move(Args), 0)
|
/external/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 634 if (Constant *LC = dyn_cast<Constant>(LHS)) 636 return Insert(Folder.CreateAdd(LC, RC, HasNUW, HasNSW), Name); 648 if (Constant *LC = dyn_cast<Constant>(LHS)) 650 return Insert(Folder.CreateFAdd(LC, RC), Name); 656 if (Constant *LC = dyn_cast<Constant>(LHS)) 658 return Insert(Folder.CreateSub(LC, RC, HasNUW, HasNSW), Name); 670 if (Constant *LC = dyn_cast<Constant>(LHS)) 672 return Insert(Folder.CreateFSub(LC, RC), Name); 678 if (Constant *LC = dyn_cast<Constant>(LHS)) 680 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 | 198 const VarRegion* getRegion(const VarDecl *D, const LocationContext *LC) const; 257 Loc getLValue(const VarDecl *D, const LocationContext *LC) const; 260 const LocationContext *LC) const; 629 const LocationContext *LC) const 631 return getStateManager().getRegionManager().getVarRegion(D, LC); 659 const LocationContext *LC) const { 660 return getStateManager().StoreMgr->getLValueVar(VD, LC); 664 const LocationContext *LC) const { 665 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);
|