/external/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerContext.cpp | 91 StringRef CheckerContext::getMacroNameOrSpelling(SourceLocation &Loc) { argument 92 if (Loc.isMacroID()) 93 return Lexer::getImmediateMacroName(Loc, getSourceManager(), 96 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts());
|
H A D | CheckerManager.cpp | 265 SVal Loc; member in struct:__anon18264::CheckLocationContext 278 : Checkers(checkers), Loc(loc), IsLoad(isLoad), NodeEx(NodeEx), 290 checkFn(Loc, IsLoad, BoundEx, C); 312 SVal Loc; member in struct:__anon18265::CheckBindContext 324 : Checkers(checkers), Loc(loc), Val(val), S(s), Eng(eng), PP(pp) {} 331 checkFn(Loc, Val, S, C);
|
H A D | ConstraintManager.cpp | 31 DefinedSVal V = Loc::isLocType(Ty) ? getLocFromSymbol(State, Sym)
|
H A D | CoreEngine.cpp | 228 void CoreEngine::dispatchWorkItem(ExplodedNode* Pred, ProgramPoint Loc, argument 231 switch (Loc.getKind()) { 233 HandleBlockEdge(Loc.castAs<BlockEdge>(), Pred); 237 HandleBlockEntrance(Loc.castAs<BlockEntrance>(), Pred); 245 CallEnter CEnter = Loc.castAs<CallEnter>(); 262 assert(Loc.getAs<PostStmt>() || 263 Loc.getAs<PostInitializer>() || 264 Loc.getAs<PostImplicitCall>() || 265 Loc.getAs<CallExitEnd>()); 492 void CoreEngine::generateNode(const ProgramPoint &Loc, argument 608 generateNodeImpl(const ProgramPoint &Loc, ProgramStateRef State, ExplodedNode *FromN, bool MarkAsSink) argument [all...] |
H A D | ExprEngine.cpp | 145 if (Optional<Loc> LV = V.getAs<Loc>()) { 161 if (Optional<Loc> LV = V.getAs<Loc>()) { 186 // try to stuff a Loc into a non-pointer temporary region. 187 assert(!V.getAs<Loc>() || Loc::isLocType(Result->getType()) || 200 if (!Loc::isLocType(Result->getType())) { 489 if (Optional<Loc> LValueLoc = LValue.getAs<Loc>()) 1909 processPointerEscapedOnBind(ProgramStateRef State, SVal Loc, SVal Val) argument 2333 ProgramPoint Loc = N->getLocation(); local [all...] |
H A D | ExprEngineC.cpp | 71 if (LeftV.getAs<Loc>() && 77 if (RightV.getAs<Loc>() && 425 Loc CLLoc = State->getLValue(CL, LCtx); 865 if (Optional<Loc> LV = V.getAs<Loc>()) { 866 Loc X = svalBuilder.makeNull(); 947 if (Loc::isLocType(U->getType())) {
|
H A D | ExprEngineCXX.cpp | 65 if (Optional<Loc> L = V.getAs<Loc>()) 147 Loc ThisPtr = Eng.getSValBuilder().getCXXThis(CurCtor, 216 Loc ThisPtr = getSValBuilder().getCXXThis(CurCtor,
|
H A D | ExprEngineCallAndReturn.cpp | 56 BlockEdge Loc(Entry, Succ, calleeCtx); 62 ExplodedNode *Node = G.getNode(Loc, state, false, &isNew); 127 if (!V.getAs<Loc>()) 272 ThisV = state->getSVal(ThisV.castAs<Loc>()); 286 PostStmt Loc(LastSt, calleeCtx, &retValBind); 288 ExplodedNode *BindedRetNode = G.getNode(Loc, state, false, &isNew); 312 CallExitEnd Loc(calleeCtx, callerCtx); 315 ExplodedNode *CEENode = G.getNode(Loc, CEEState, false, &isNew); 444 CallEnter Loc(CallE, CalleeSFC, CurLC); 451 if (ExplodedNode *N = G.getNode(Loc, Stat [all...] |
H A D | ExprEngineObjC.cpp | 114 assert(Loc::isLocType(T));
|
H A D | HTMLDiagnostics.cpp | 529 SourceLocation Loc = local 532 R.InsertTextBefore(Loc, os.str());
|
H A D | PathDiagnostic.cpp | 183 Loc = CP->getLocation(); 647 SourceLocation Loc = (*CS->body_begin())->getLocStart(); local 648 return PathDiagnosticLocation(Loc, SM, SingleLocK); 811 return PathDiagnosticRange(SourceRange(Loc,Loc), true); 862 return SourceRange(Loc,Loc); 1063 ID.AddInteger(Loc.getRawEncoding());
|
H A D | ProgramState.cpp | 114 ProgramStateRef ProgramState::bindLoc(Loc LV, SVal V, bool notifyChanges) const { 214 ProgramStateRef ProgramState::killBinding(Loc LV) const { 244 if (Loc::isLocType(T) || T->isIntegralOrEnumerationType()) 251 SVal ProgramState::getSVal(Loc location, QualType T) const { 252 SVal V = getRawSVal(cast<Loc>(location), T); 279 if (V.getAs<Loc>())
|
H A D | RegionStore.cpp | 375 SVal ArrayToPointer(Loc Array, QualType ElementTy) override; 409 StoreRef Bind(Store store, Loc LV, SVal V) override { 413 RegionBindingsRef bind(RegionBindingsConstRef B, Loc LV, SVal V); 470 StoreRef killBinding(Store ST, Loc L) override; 498 SVal getBinding(Store S, Loc L, QualType T) override { 502 SVal getBinding(RegionBindingsConstRef B, Loc L, QualType T = QualType()); 1019 else if (Loc::isLocType(VR->getValueType())) { 1026 if (Optional<Loc> L = V.getAs<Loc>()) { 1243 SVal RegionStoreManager::ArrayToPointer(Loc Arra [all...] |
H A D | SValBuilder.cpp | 33 if (Loc::isLocType(type)) 50 assert(!Loc::isLocType(type)); 58 assert(!Loc::isLocType(type)); 65 assert(!Loc::isLocType(type)); 72 assert(!Loc::isLocType(toTy)); 103 if (Loc::isLocType(T)) 134 if (Loc::isLocType(type)) 150 if (Loc::isLocType(type)) 161 assert(Loc::isLocType(T)); 177 if (Loc [all...] |
H A D | SVals.cpp | 10 // This file defines SVal, Loc, and NonLoc, classes that represent 62 /// \brief If this SVal is a location (subclasses Loc) and wraps a symbol, 250 castAs<Loc>().dumpToStream(os); 308 void Loc::dumpToStream(raw_ostream &os) const { 311 os << castAs<loc::ConcreteInt>().getValue().getZExtValue() << " (Loc)"; 320 llvm_unreachable("Pretty-printing not implemented for this Loc.");
|
H A D | SimpleConstraintManager.cpp | 54 // We handle Loc <> Loc comparisons, but not (yet) NonLoc <> NonLoc. 55 if (Loc::isLocType(SSE->getLHS()->getType())) { 56 assert(Loc::isLocType(SSE->getRHS()->getType())); 71 // If we have a Loc value, cast it to a bool NonLoc first. 72 if (Optional<Loc> LV = Cond.getAs<Loc>()) { 163 assert(Loc::isLocType(SSE->getLHS()->getType())); 164 assert(Loc::isLocType(SSE->getRHS()->getType()));
|
H A D | SimpleSValBuilder.cpp | 26 SVal evalCastFromLoc(Loc val, QualType castTy) override; 39 Loc lhs, Loc rhs, QualType resultTy) override; 41 Loc lhs, NonLoc rhs, QualType resultTy) override; 63 assert(Val.getAs<Loc>() || Val.getAs<NonLoc>()); 64 return Val.getAs<Loc>() ? evalCastFromLoc(Val.castAs<Loc>(), CastTy) 70 bool isLocType = Loc::isLocType(castTy); 124 SVal SimpleSValBuilder::evalCastFromLoc(Loc val, QualType castTy) { 132 if (Loc [all...] |
H A D | Store.cpp | 403 Loc BaseL = Base.castAs<Loc>();
|
H A D | SymbolManager.cpp | 335 if (Loc::isLocType(T)) 502 if (!Loc) 505 return LCtx->getAnalysis<RelaxedLiveVariables>()->isLive(Loc, ExprVal); 520 if (!Loc) 523 if (LCtx->getAnalysis<RelaxedLiveVariables>()->isLive(Loc, VR->getDecl()))
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
H A D | AnalysisConsumer.cpp | 248 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation()); local 249 if (Loc.isValid()) { 269 llvm::errs() << ": " << Loc.getFilename(); 275 llvm::errs() << ' ' << "block(line:" << Loc.getLine() << ",col:" 276 << Loc.getColumn() << '\n';
|
/external/clang/test/Analysis/ |
H A D | region-store.cpp | 4 class Loc { class 9 Loc l; 10 void setLoc(Loc L) { 24 int radar13445834(Derived *Builder, Loc l) {
|
/external/clang/tools/c-index-test/ |
H A D | c-index-test.c | 682 CXSourceLocation Loc; local 686 Loc = clang_getCursorLocation(Ovl); 687 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 692 CXSourceLocation Loc = clang_getCursorLocation(Referenced); local 693 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 802 CXSourceLocation Loc = clang_getCursorLocation(SpecializationOf); local 804 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 817 CXSourceLocation Loc = clang_getCursorLocation(overridden[I]); local 818 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 906 CXSourceLocation Loc local 1041 CXSourceLocation Loc = clang_getCursorLocation(Cursor); local 1092 CXSourceLocation Loc; local 2135 unsigned NumLocations = 0, Loc; local 2306 unsigned NumLocations = 0, Loc; local [all...] |
/external/clang/tools/libclang/ |
H A D | CIndex.cpp | 565 SourceLocation Loc = AU->mapLocationToPreamble(BeginLoc); local 569 checkForMacroInMacroDefinition(MI, Loc, TU)) 1322 bool CursorVisitor::VisitTemplateName(TemplateName Name, SourceLocation Loc) { argument 1325 return Visit(MakeCursorTemplateRef(Name.getAsTemplateDecl(), Loc, TU)); 1329 if (Visit(MakeCursorOverloadedDeclRef(Name, Loc, TU))) 1342 Loc, TU)); 1347 Loc, TU)); 1352 Loc, TU)); 1639 return Visit##PARENT##Loc(TL); \ 3596 SourceLocation Loc local 4129 clang_getCursor(CXTranslationUnit TU, CXSourceLocation Loc) argument [all...] |
H A D | CIndexDiagnostic.cpp | 47 CXSourceLocation Loc; member in class:__anon19518::CXDiagnosticCustomNoteImpl 51 Message(Msg), Loc(L) {} 60 return Loc; 116 void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, 127 L = translateSourceLocation(*SM, LangOpts, Loc); 134 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, 139 void emitCodeContext(SourceLocation Loc, 145 void emitNote(SourceLocation Loc, StringRef Message, 149 L = translateSourceLocation(*SM, LangOpts, Loc);
|
H A D | CIndexHigh.cpp | 132 /// \brief For a macro \arg Loc, returns the file spelling location and sets 136 SourceLocation Loc, 138 assert(Loc.isMacroID()); 139 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc); 143 isMacroArg = SM.isMacroArgExpansion(Loc); 183 Loc = cxloc::translateSourceLocation(clang_getCursorLocation(cursor)); local 186 Loc = SelIdLoc; 191 if (Loc.isMacroID()) { 193 Loc = getFileSpellingLoc(SM, Loc, isMacroAr 135 getFileSpellingLoc(SourceManager &SM, SourceLocation Loc, bool &isMacroArg) argument [all...] |