reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
  154   const Decl &getCodeDecl() const { return *getLocationContext()->getDecl(); }
tools/clang/lib/Analysis/AnalysisDeclContext.cpp
  492       if (const auto *D = dyn_cast<NamedDecl>(LCtx->getDecl()))
  506       if (const Decl *D = cast<BlockInvocationContext>(LCtx)->getDecl()) {
  537       if (const auto *D = dyn_cast<NamedDecl>(LCtx->getDecl()))
  556       if (const Decl *D = cast<BlockInvocationContext>(LCtx)->getDecl()) {
tools/clang/lib/Analysis/PathDiagnostic.cpp
  632   if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody()))
  644   SourceLocation L = LC->getDecl()->getBodyRBrace();
  658           P.getLocationContext()->getDecl(), SMng);
  669             P.getLocationContext()->getDecl(), SMng);
  696         CEB->getLocationContext()->getDecl()->getSourceRange().getEnd(), SMng);
  833   const Decl *caller = CE.getLocationContext()->getDecl();
  855   Callee = CalleeCtx->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
   51   const Decl *D = LC->getDecl();
   59     if (D != P.getLocationContext()->getDecl())
tools/clang/lib/StaticAnalyzer/Checkers/CXXSelfAssignmentChecker.cpp
   42   const auto *MD = dyn_cast<CXXMethodDecl>(LCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
  525         cast<ObjCMethodDecl>(LCtx->getDecl())->getClassInterface())
  798   auto *MD = cast<ObjCMethodDecl>(LCtx->getDecl());
  978   auto *MD = dyn_cast<ObjCMethodDecl>(LCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/DynamicTypePropagation.cpp
  264         recordFixedType(Target, cast<CXXConstructorDecl>(LCtx->getDecl()), C);
  331       if (const ObjCMethodDecl *MD = dyn_cast<ObjCMethodDecl>(SFCtx->getDecl()))
tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
  309                      C.getLocationContext()->getDecl(), Opts);
tools/clang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
  156   const Decl *D = SFC->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/MacOSKeychainAPIChecker.cpp
  496       AllocNode->getLocationContext()->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
 2611       AllocNode->getLocationContext()->getDecl());
 2813   if (const auto *FD = dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
 3273         if (const auto *DD = dyn_cast<CXXDestructorDecl>(LC->getDecl())) {
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
  434         MoveNode->getLocationContext()->getDecl());
  534     const auto *CtxDec = LC->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
  376   auto *MD = dyn_cast<ObjCMethodDecl>(LocCtxt->getDecl());
  410   const Decl *D = LocCtxt->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
 1337   const Decl *D = LCtx->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.h
  387   auto Method = dyn_cast_or_null<ObjCMethodDecl>(SFC->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
  841       UniqueingDecl = Ctx.getLocationContext()->getDecl();
  886   UniqueingDecl = AllocNode->getLocationContext()->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/ReturnUndefChecker.cpp
   46   QualType RT = CallEvent::getDeclaredResultType(SFC->getDecl());
   63     if (RT.isNull() && isa<BlockDecl>(SFC->getDecl()) &&
tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
   83         dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
tools/clang/lib/StaticAnalyzer/Checkers/UndefinedArraySubscriptChecker.cpp
   43   const Decl *D = C.getLocationContext()->getDecl();
tools/clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp
   44       dyn_cast<FunctionDecl>(C.getStackFrame()->getDecl()))
   93             dyn_cast<CXXConstructorDecl>(C.getStackFrame()->getDecl())) {
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp
  142       Context.getLocationContext()->getDecl());
  192           Node->getLocationContext()->getDecl());
  206       Node->getLocationContext()->getDecl());
  484     const auto *OtherCtor = dyn_cast<CXXConstructorDecl>(LC->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp
  301         StartNode->getLocationContext()->getDecl());
tools/clang/lib/StaticAnalyzer/Checkers/VirtualCallChecker.cpp
  167   const auto *MD = dyn_cast_or_null<CXXMethodDecl>(LCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
  598     const Decl *D = C.getCurrLocationContext()->getDecl();
  641   const SourceManager &SMgr = LC->getDecl()->getASTContext().getSourceManager();
 1133       const Decl *D = CalleeLC->getDecl();
 1155       const Decl *Caller = CE->getLocationContext()->getDecl();
 1942   const Decl *D = C.getLocationContextFor(&Path)->getDecl();
 2046     const Decl *D = CalleeLC->getDecl();
 2134   return LC->getStackFrame()->getDecl();
 3089       const Decl *D = N->getLocationContext()->getDecl();
 3093       const Decl* D = CE->getCalleeContext()->getDecl();
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
 2681   const Decl *D = N->getLocationContext()->getDecl();
 2718         const auto *MD = dyn_cast<CXXMethodDecl>(LCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
  235   const Decl *D = SFC->getDecl();
  594   const auto *D = cast<FunctionDecl>(CalleeCtx->getDecl());
  798     const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl());
  873     auto *LambdaOperatorDecl = cast<CXXMethodDecl>(CalleeCtx->getDecl());
  884     Params = cast<BlockDecl>(CalleeCtx->getDecl())->parameters();
  916     const auto *MD = cast<CXXMethodDecl>(CalleeCtx->getDecl());
 1344   const auto *D = cast<ObjCMethodDecl>(CalleeCtx->getDecl());
 1397     const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl());
 1413   const auto *Dtor = cast<CXXDestructorDecl>(CalleeCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
   93                                              L->getDecl(),
  216                                            LC->getDecl(),
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
  142     return getLocationContext()->getDecl()->getASTContext();
  234   const Decl *D = InitLoc->getDecl();
  828   const auto *decl = cast<CXXConstructorDecl>(stackFrame->getDecl());
 1028   const auto *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl());
 1051   const auto *CurDtor = cast<CXXDestructorDecl>(LCtx->getDecl());
 1963       Engine.FunctionSummaries->markReachedMaxBlockCount(CalleeSF->getDecl());
 2432     const Decl *D = LocCtxt->getDecl();
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  141       const CXXMethodDecl *CurCtor = cast<CXXMethodDecl>(LCtx->getDecl());
  336         const Decl *CalleeD = FutureSFC->getDecl();
  466     const CXXMethodDecl *CurCtor = cast<CXXMethodDecl>(LCtx->getDecl());
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
  186   const Decl *RuntimeCallee = calleeCtx->getDecl();
  235           CallEvent::getDeclaredResultType(calleeCtx->getDecl());
  394       const Decl *DI = SFC->getDecl();
tools/clang/lib/StaticAnalyzer/Core/LoopWidening.cpp
   71                        *LCtx->getDecl()->getBody(), ASTCtx);
   85   const CXXMethodDecl *CXXMD = dyn_cast<CXXMethodDecl>(STC->getDecl());
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
  824       if (cast<DeclContext>(SFC->getDecl()) == DC)
  898         const Decl *STCD = STC->getDecl();
 1106   const auto *D = dyn_cast<CXXMethodDecl>(LC->getDecl());
 1113     D = dyn_cast<CXXMethodDecl>(LC->getDecl());
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
  408     if (const auto *FD = dyn_cast<FunctionDecl>(InitLoc->getDecl()))
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp
   88     os << ", S" << S->getID(LCtx->getDecl()->getASTContext());