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

Declarations

gen/tools/clang/include/clang/AST/StmtNodes.inc
   97 DECLSTMT(DeclStmt, Stmt)
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
   52 class DeclStmt;
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
   53 class DeclStmt;
tools/lldb/include/lldb/Core/ClangForward.h
   47 class DeclStmt;

References

include/llvm/ADT/STLExtras.h
   75       typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   66   static inline bool doit(const From &) { return true; }
   77     return isa_impl<To, From>::doit(Val);
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  258   return cast_convert_val<X, Y,
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  265   return cast_convert_val<X, Y*,
  266                           typename simplify_type<Y*>::SimpleType>::doit(Val);
  296                             typename cast_retty<X, Y>::ret_type>::type
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  309   return cast<X>(Val);
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
   91   typedef PointerLikeTypeTraits<T *> NonConst;
   93   static inline const void *getAsVoidPointer(const T *P) {
   96   static inline const T *getFromVoidPointer(const void *P) {
tools/clang/include/clang/AST/ASTNodeTraverser.h
  111       if (isa<DeclStmt>(S) || isa<GenericSelectionExpr>(S)) {
  583   void VisitDeclStmt(const DeclStmt *Node) {
tools/clang/include/clang/AST/ASTTypeTraits.h
   65     return ASTNodeKind(KindToKindId<T>::Id);
  234   static DynTypedNode create(const T &Node) {
  235     return BaseConverter<T>::create(Node);
  251   const T *get() const {
  252     return BaseConverter<T>::get(NodeKind, Storage.buffer);
  259   const T &getUnchecked() const {
  260     return BaseConverter<T>::getUnchecked(NodeKind, Storage.buffer);
  394     static const T *get(ASTNodeKind NodeKind, const char Storage[]) {
  395       if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
  399     static const T &getUnchecked(ASTNodeKind NodeKind, const char Storage[]) {
  401       return *cast<T>(static_cast<const BaseT *>(
  474     : public DynCastPtrConverter<T, Stmt> {};
tools/clang/include/clang/AST/Stmt.h
 1953   DeclStmt *getConditionVariableDeclStmt() {
 1959   const DeclStmt *getConditionVariableDeclStmt() const {
 2144   DeclStmt *getConditionVariableDeclStmt() {
 2150   const DeclStmt *getConditionVariableDeclStmt() const {
 2299   DeclStmt *getConditionVariableDeclStmt() {
 2305   const DeclStmt *getConditionVariableDeclStmt() const {
 2422   const DeclStmt *getConditionVariableDeclStmt() const {
tools/clang/include/clang/AST/StmtCXX.h
  146   CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin,
  146   CXXForRangeStmt(Stmt *InitStmt, DeclStmt *Range, DeclStmt *Begin,
  147                   DeclStmt *End, Expr *Cond, Expr *Inc, DeclStmt *LoopVar,
  147                   DeclStmt *End, Expr *Cond, Expr *Inc, DeclStmt *LoopVar,
  161   DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); }
  161   DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); }
  162   DeclStmt *getBeginStmt() {
  163     return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]);
  165   DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); }
  165   DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); }
  168   DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); }
  168   DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); }
  171   const DeclStmt *getRangeStmt() const {
  172     return cast<DeclStmt>(SubExprs[RANGE]);
  174   const DeclStmt *getBeginStmt() const {
  175     return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]);
  177   const DeclStmt *getEndStmt() const {
  178     return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]);
  186   const DeclStmt *getLoopVarStmt() const {
  187     return cast<DeclStmt>(SubExprs[LOOPVAR]);
  386     return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl());
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  110   const T *getNodeAs(StringRef ID) const {
  111     return MyBoundNodes.getNodeAs<T>(ID);
 1221 extern const internal::VariadicDynCastAllOfMatcher<Stmt, DeclStmt> declStmt;
 3763   DeclStmt::const_decl_iterator Iterator = Node.decl_begin();
 4363   const DeclStmt* const DeclarationStatement =
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  160   const T *getNodeAs(StringRef ID) const {
  165     return It->second.get<T>();
  302   virtual bool matches(const T &Node,
  309     return matches(DynNode.getUnchecked<T>(), Finder, Builder);
  345   DynTypedMatcher(MatcherInterface<T> *Implementation)
  346       : SupportedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()),
  436     return canConvertTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  445   template <typename T> Matcher<T> convertTo() const {
  447     return unconditionalConvertTo<T>();
  479 class WrapperMatcherInterface : public MatcherInterface<T> {
  499   explicit Matcher(MatcherInterface<T> *Implementation)
  507           typename std::enable_if<std::is_base_of<From, T>::value &&
  508                                !std::is_same<From, T>::value>::type * = nullptr)
  520             std::is_same<T, QualType>::value &&
  529     static_assert(std::is_base_of<To, T>::value, "Invalid dynCast call.");
  534   bool matches(const T &Node,
  581     return Other.dynCastTo(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
  596 inline Matcher<T> makeMatcher(MatcherInterface<T> *Implementation) {
  994   bool matchesChildOf(const T &Node, const DynTypedMatcher &Matcher,
  997     static_assert(std::is_base_of<Decl, T>::value ||
  998                   std::is_base_of<Stmt, T>::value ||
  999                   std::is_base_of<NestedNameSpecifier, T>::value ||
 1000                   std::is_base_of<NestedNameSpecifierLoc, T>::value ||
 1001                   std::is_base_of<TypeLoc, T>::value ||
 1002                   std::is_base_of<QualType, T>::value,
 1009   bool matchesDescendantOf(const T &Node,
 1013     static_assert(std::is_base_of<Decl, T>::value ||
 1014                   std::is_base_of<Stmt, T>::value ||
 1015                   std::is_base_of<NestedNameSpecifier, T>::value ||
 1016                   std::is_base_of<NestedNameSpecifierLoc, T>::value ||
 1017                   std::is_base_of<TypeLoc, T>::value ||
 1018                   std::is_base_of<QualType, T>::value,
 1026   bool matchesAncestorOf(const T &Node,
 1030     static_assert(std::is_base_of<Decl, T>::value ||
 1031                       std::is_base_of<NestedNameSpecifierLoc, T>::value ||
 1032                       std::is_base_of<Stmt, T>::value ||
 1033                       std::is_base_of<TypeLoc, T>::value,
 1084       std::is_base_of<typename AnyTypeList::head, T>::value ||
 1085       TypeListContainsSuperOf<typename AnyTypeList::tail, T>::value;
 1146     template <typename To> operator Matcher<To>() const {
 1202   operator Matcher<T>() const {
 1203     static_assert(TypeListContainsSuperOf<ReturnTypes, T>::value,
 1243   operator Matcher<T>() const {
 1245                ast_type_traits::ASTNodeKind::getFromNodeKind<T>())
 1246         .template unconditionalConvertTo<T>();
 1255 class BindableMatcher : public Matcher<T> {
 1257   explicit BindableMatcher(const Matcher<T> &M) : Matcher<T>(M) {}
 1258   explicit BindableMatcher(MatcherInterface<T> *Implementation)
 1265   Matcher<T> bind(StringRef ID) const {
 1285 class HasMatcher : public WrapperMatcherInterface<T> {
 1290   bool matches(const T &Node, ASTMatchFinder *Finder,
 1335   template <typename T> operator Matcher<T>() const {
 1337                Op, ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1338                getMatchers<T>(std::index_sequence_for<Ps...>()))
 1339         .template unconditionalConvertTo<T>();
 1370 inline Matcher<T> DynTypedMatcher::unconditionalConvertTo() const {
 1376 BindableMatcher<T> makeAllOfComposite(
 1377     ArrayRef<const Matcher<T> *> InnerMatchers) {
 1388   using PI = llvm::pointee_iterator<const Matcher<T> *const *>;
 1395           ast_type_traits::ASTNodeKind::getFromNodeKind<T>(),
 1397           .template unconditionalConvertTo<T>());
 1408     ArrayRef<const Matcher<InnerT> *> InnerMatchers) {
 1418 class HasDescendantMatcher : public WrapperMatcherInterface<T> {
 1426   bool matches(const T &Node, ASTMatchFinder *Finder,
 1438 class HasParentMatcher : public WrapperMatcherInterface<T> {
 1446   bool matches(const T &Node, ASTMatchFinder *Finder,
 1557     : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
 1558                               makeDynCastAllOfComposite<SourceT, TargetT>> {
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
  199   ast_matchers::internal::Matcher<T> getTypedMatcher() const {
  202         ->template convertTo<T>();
  227       : MatcherOps(ast_type_traits::ASTNodeKind::getFromNodeKind<T>()) {}
  228   typedef ast_matchers::internal::Matcher<T> MatcherT;
  232     return DynTypedMatcher(Matcher.convertTo<T>());
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
  423   til::SExpr *translateDeclStmt(const DeclStmt *S, CallingContext *Ctx);
tools/clang/include/clang/Analysis/CFG.h
 1343   void addSyntheticDeclStmt(const DeclStmt *Synthetic,
 1344                             const DeclStmt *Source) {
 1352       llvm::DenseMap<const DeclStmt *, const DeclStmt *>::const_iterator;
 1352       llvm::DenseMap<const DeclStmt *, const DeclStmt *>::const_iterator;
 1447   llvm::DenseMap<const DeclStmt *, const DeclStmt *> SyntheticDeclStmts;
 1447   llvm::DenseMap<const DeclStmt *, const DeclStmt *> SyntheticDeclStmts;
tools/clang/include/clang/Analysis/ConstructionContext.h
   87   ConstructionContextItem(const DeclStmt *DS)
  301   const DeclStmt *DS;
  304   VariableConstructionContext(ConstructionContext::Kind K, const DeclStmt *DS)
  311   const DeclStmt *getDeclStmt() const { return DS; }
  326   explicit SimpleVariableConstructionContext(const DeclStmt *DS)
  352       const DeclStmt *DS, const CXXBindTemporaryExpr *BTE)
tools/clang/include/clang/Analysis/ProgramPoint.h
  282   const T* getStmtAs() const { return dyn_cast<T>(getStmt()); }
  282   const T* getStmtAs() const { return dyn_cast<T>(getStmt()); }
tools/clang/include/clang/StaticAnalyzer/Core/Checker.h
   85     ((const CHECKER *)checker)->checkPreStmt(cast<STMT>(S), C);
   89     return isa<STMT>(S);
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
  121   void HandleStaticInit(const DeclStmt *DS, const CFGBlock *B,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
  321   void processStaticInitializer(const DeclStmt *DS,
  458   void VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SubEngine.h
   93   virtual void processStaticInitializer(const DeclStmt *DS,
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
  169       if (DeclStmt *DclS = dyn_cast<DeclStmt>(child)) {
  169       if (DeclStmt *DclS = dyn_cast<DeclStmt>(child)) {
  419     DeclStmt *Dcl;
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  229     if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
  229     if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
  365     auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin());
  365     auto *DeclS = dyn_cast_or_null<DeclStmt>(*CompStmtChild.begin());
tools/clang/lib/AST/ASTImporter.cpp
  162     Expected<T *> import(T *From) {
  162     Expected<T *> import(T *From) {
  166       return cast_or_null<T>(*ToOrErr);
  170     Expected<T *> import(const T *From) {
  170     Expected<T *> import(const T *From) {
  508     ExpectedStmt VisitDeclStmt(DeclStmt *S);
 5728 ExpectedStmt ASTNodeImporter::VisitDeclStmt(DeclStmt *S) {
 5737   return new (Importer.getToContext()) DeclStmt(ToDG, ToBeginLoc, ToEndLoc);
 6042   DeclStmt *ToRangeStmt, *ToBeginStmt, *ToEndStmt, *ToLoopVarStmt;
tools/clang/lib/AST/ExprConstant.cpp
 4565       const DeclStmt *DS = cast<DeclStmt>(S);
 4565       const DeclStmt *DS = cast<DeclStmt>(S);
 4604     const DeclStmt *DS = cast<DeclStmt>(S);
 4604     const DeclStmt *DS = cast<DeclStmt>(S);
tools/clang/lib/AST/Interp/ByteCodeStmtGen.cpp
  120     return visitDeclStmt(cast<DeclStmt>(S));
  146 bool ByteCodeStmtGen<Emitter>::visitDeclStmt(const DeclStmt *DS) {
  197   if (const DeclStmt *CondDecl = IS->getConditionVariableDeclStmt())
tools/clang/lib/AST/Interp/ByteCodeStmtGen.h
   62   bool visitDeclStmt(const DeclStmt *DS);
tools/clang/lib/AST/OpenMPClause.cpp
  227   if (auto *DS = dyn_cast<DeclStmt>(S)) {
  227   if (auto *DS = dyn_cast<DeclStmt>(S)) {
tools/clang/lib/AST/Stmt.cpp
  887   auto *DS = getConditionVariableDeclStmt();
  904       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
  928   auto *DS = cast<DeclStmt>(SubExprs[CONDVAR]);
  928   auto *DS = cast<DeclStmt>(SubExprs[CONDVAR]);
  939   SubExprs[CONDVAR] = new (C) DeclStmt(DeclGroupRef(V), VarRange.getBegin(),
  988   auto *DS = getConditionVariableDeclStmt();
 1005       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
 1044   auto *DS = getConditionVariableDeclStmt();
 1061       DeclStmt(DeclGroupRef(V), VarRange.getBegin(), VarRange.getEnd());
tools/clang/lib/AST/StmtCXX.cpp
   47 CXXForRangeStmt::CXXForRangeStmt(Stmt *Init, DeclStmt *Range,
   48                                  DeclStmt *BeginStmt, DeclStmt *EndStmt,
   48                                  DeclStmt *BeginStmt, DeclStmt *EndStmt,
   49                                  Expr *Cond, Expr *Inc, DeclStmt *LoopVar,
   66   DeclStmt *RangeStmt = getRangeStmt();
   77   Decl *LV = cast<DeclStmt>(getLoopVarStmt())->getSingleDecl();
tools/clang/lib/AST/StmtPrinter.cpp
  105       if (auto *DS = dyn_cast<DeclStmt>(S))
  105       if (auto *DS = dyn_cast<DeclStmt>(S))
  126     void PrintRawDeclStmt(const DeclStmt *S);
  190 void StmtPrinter::PrintRawDeclStmt(const DeclStmt *S) {
  199 void StmtPrinter::VisitDeclStmt(DeclStmt *Node) {
  245   if (const DeclStmt *DS = If->getConditionVariableDeclStmt())
  287   if (const DeclStmt *DS = Node->getConditionVariableDeclStmt())
  297   if (const DeclStmt *DS = Node->getConditionVariableDeclStmt())
  340   if (auto *DS = dyn_cast<DeclStmt>(Node->getElement()))
  340   if (auto *DS = dyn_cast<DeclStmt>(Node->getElement()))
tools/clang/lib/AST/StmtProfile.cpp
  230 void StmtProfiler::VisitDeclStmt(const DeclStmt *S) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  615 const internal::VariadicDynCastAllOfMatcher<Stmt, DeclStmt> declStmt;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
   75     return Value.isMatcher() && Value.getMatcher().hasTypedMatcher<T>();
   78   static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
   79     return Value.getMatcher().getTypedMatcher<T>();
   83     return ArgKind(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  361     RetTypes.push_back(ast_type_traits::ASTNodeKind::getFromNodeKind<T>());
  466       ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT> Func,
  469         DerivedKind(ast_type_traits::ASTNodeKind::getFromNodeKind<DerivedT>()) {
  778     ast_matchers::internal::VariadicDynCastAllOfMatcher<BaseT, DerivedT>
tools/clang/lib/Analysis/CFG.cpp
  568   CFGBlock *VisitDeclStmt(DeclStmt *DS);
  569   CFGBlock *VisitDeclSubExpr(DeclStmt *DS);
  769   LocalScope* addLocalScopeForDeclStmt(DeclStmt *DS,
 1948       if (DeclStmt *DS = dyn_cast<DeclStmt>(SI))
 1948       if (DeclStmt *DS = dyn_cast<DeclStmt>(SI))
 1956   if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements()))
 1956   if (DeclStmt *DS = dyn_cast<DeclStmt>(S->stripLabelLikeStatements()))
 1962 LocalScope* CFGBuilder::addLocalScopeForDeclStmt(DeclStmt *DS,
 2222       return VisitDeclStmt(cast<DeclStmt>(S));
 2776 CFGBlock *CFGBuilder::VisitDeclStmt(DeclStmt *DS) {
 2789   for (DeclStmt::reverse_decl_iterator I = DS->decl_rbegin(),
 2797     DeclStmt *DSNew = new (Context) DeclStmt(DG, D->getLocation(), GetEndLoc(D));
 2797     DeclStmt *DSNew = new (Context) DeclStmt(DG, D->getLocation(), GetEndLoc(D));
 2809 CFGBlock *CFGBuilder::VisitDeclSubExpr(DeclStmt *DS) {
 3021     if (const DeclStmt* DS = I->getConditionVariableDeclStmt()) {
 3412           const DeclStmt *DS = F->getConditionVariableDeclStmt();
 3742         const DeclStmt *DS = W->getConditionVariableDeclStmt();
 5088               DeclMap[cast<DeclStmt>(stmt)->getSingleDecl()] = P;
 5192   void VisitDeclStmt(DeclStmt *DS) {
tools/clang/lib/Analysis/ConstructionContext.cpp
  110     const auto *DS = cast<DeclStmt>(ParentItem.getStmt());
  110     const auto *DS = cast<DeclStmt>(ParentItem.getStmt());
  173     const auto *DS = cast<DeclStmt>(TopItem.getStmt());
  173     const auto *DS = cast<DeclStmt>(TopItem.getStmt());
tools/clang/lib/Analysis/Consumed.cpp
  508   void VisitDeclStmt(const DeclStmt *DelcS);
  838 void ConsumedStmtVisitor::VisitDeclStmt(const DeclStmt *DeclS) {
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp
   23   const DeclStmt *const Range = Node.getRangeStmt();
tools/clang/lib/Analysis/LiveVariables.cpp
  215   void VisitDeclStmt(DeclStmt *DS);
  296       const DeclStmt *DS = cast<DeclStmt>(S);
  296       const DeclStmt *DS = cast<DeclStmt>(S);
  422 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) {
  440   if (DeclStmt *DS = dyn_cast<DeclStmt>(element)) {
  440   if (DeclStmt *DS = dyn_cast<DeclStmt>(element)) {
tools/clang/lib/Analysis/PathDiagnostic.cpp
  768           const auto *DS = cast<DeclStmt>(S);
  768           const auto *DS = cast<DeclStmt>(S);
tools/clang/lib/Analysis/ThreadSafety.cpp
  600   void VisitDeclStmt(const DeclStmt *S);
  607 void VarMapBuilder::VisitDeclStmt(const DeclStmt *S) {
 1606   void VisitDeclStmt(const DeclStmt *S);
 2131 void BuildLockset::VisitDeclStmt(const DeclStmt *S) {
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp
  263     return translateDeclStmt(cast<DeclStmt>(S), Ctx);
  613 SExprBuilder::translateDeclStmt(const DeclStmt *S, CallingContext *Ctx) {
tools/clang/lib/Analysis/UninitializedValues.cpp
  348   void VisitDeclStmt(DeclStmt *DS);
  431 void ClassifyRefs::VisitDeclStmt(DeclStmt *DS) {
  538   void VisitDeclStmt(DeclStmt *ds);
  710   if (const auto *DS = dyn_cast<DeclStmt>(FS->getElement())) {
  710   if (const auto *DS = dyn_cast<DeclStmt>(FS->getElement())) {
  788 void TransferFunctions::VisitDeclStmt(DeclStmt *DS) {
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGCoroutine.cpp
  351     void addCopy(DeclStmt const *PM) {
  488     auto *GroDeclStmt = dyn_cast<DeclStmt>(S.getResultDecl());
  488     auto *GroDeclStmt = dyn_cast<DeclStmt>(S.getResultDecl());
  612       ParamReplacer.addCopy(cast<DeclStmt>(PM));
tools/clang/lib/CodeGen/CGDecl.cpp
 1621       else if (const auto *DS = dyn_cast<DeclStmt>(BI)) {
 1621       else if (const auto *DS = dyn_cast<DeclStmt>(BI)) {
tools/clang/lib/CodeGen/CGObjC.cpp
 1640   if (const DeclStmt *SD = dyn_cast<DeclStmt>(S.getElement()))
 1640   if (const DeclStmt *SD = dyn_cast<DeclStmt>(S.getElement()))
 1791   if (const DeclStmt *SD = dyn_cast<DeclStmt>(S.getElement())) {
 1791   if (const DeclStmt *SD = dyn_cast<DeclStmt>(S.getElement())) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 6563       if (const auto *DS = dyn_cast<DeclStmt>(S)) {
 6563       if (const auto *DS = dyn_cast<DeclStmt>(S)) {
 6747             if (const auto *PreInit =
 6748                     cast_or_null<DeclStmt>(IfClause->getPreInitStmt())) {
 6772         if (const auto *PreInit =
 6773                 cast_or_null<DeclStmt>(NumThreadsClause->getPreInitStmt())) {
 6845         if (const auto *PreInit =
 6846                 cast_or_null<DeclStmt>(ThreadLimitClause->getPreInitStmt())) {
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  445   void VisitDeclStmt(const DeclStmt *S) {
tools/clang/lib/CodeGen/CGStmt.cpp
  361   case Stmt::DeclStmtClass:     EmitDeclStmt(cast<DeclStmt>(*S));         break;
 1137 void CodeGenFunction::EmitDeclStmt(const DeclStmt &S) {
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
   31         if (const auto *PreInit =
   32                 cast_or_null<DeclStmt>(CPI->getPreInitStmt())) {
  163     if (const auto *PreInits = cast_or_null<DeclStmt>(S.getPreInits())) {
  163     if (const auto *PreInits = cast_or_null<DeclStmt>(S.getPreInits())) {
  193         if (const auto *PreInit =
  194                 cast_or_null<DeclStmt>(CPI->getPreInitStmt())) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1316   if (isa<DeclStmt>(S))
tools/clang/lib/CodeGen/CodeGenFunction.h
 2882   void EmitDeclStmt(const DeclStmt &S);
tools/clang/lib/CodeGen/VarBypassDetector.cpp
   87     const DeclStmt *DS = cast<DeclStmt>(S);
   87     const DeclStmt *DS = cast<DeclStmt>(S);
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  490     bool IsDeclStmtInForeachHeader(DeclStmt *DS);
 1695   if (DeclStmt *DS = dyn_cast<DeclStmt>(S->getElement())) {
 1695   if (DeclStmt *DS = dyn_cast<DeclStmt>(S->getElement())) {
 5414 bool RewriteModernObjC::IsDeclStmtInForeachHeader(DeclStmt *DS) {
 5568   if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
 5568   if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
 5582     for (DeclStmt::decl_iterator DI = DS->decl_begin(), DE = DS->decl_end();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  401     bool IsDeclStmtInForeachHeader(DeclStmt *DS);
 1486   if (DeclStmt *DS = dyn_cast<DeclStmt>(S->getElement())) {
 1486   if (DeclStmt *DS = dyn_cast<DeclStmt>(S->getElement())) {
 4538 bool RewriteObjC::IsDeclStmtInForeachHeader(DeclStmt *DS) {
 4672   if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
 4672   if (DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
tools/clang/lib/Index/IndexBody.cpp
  371   bool VisitDeclStmt(DeclStmt *S) {
tools/clang/lib/Sema/JumpDiagnostics.cpp
  445     DeclStmt *DS = cast<DeclStmt>(S);
  445     DeclStmt *DS = cast<DeclStmt>(S);
tools/clang/lib/Sema/SemaCoroutine.cpp
  533         cast<VarDecl>(cast<DeclStmt>(Move->second)->getSingleDecl());
tools/clang/lib/Sema/SemaDecl.cpp
14034         if (auto *DS = dyn_cast<DeclStmt>(S)) {
tools/clang/lib/Sema/SemaDeclAttr.cpp
 8359     if (isa<DeclStmt>(StmtOfUse) && Scope) {
 8360       for (const Decl *D : cast<DeclStmt>(StmtOfUse)->decls()) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 1767                                    DeclStmt *DS, SourceLocation &Cxx1yLoc,
 1979     if (!CheckConstexprDeclStmt(SemaRef, Dcl, cast<DeclStmt>(S), Cxx1yLoc, Kind))
12255   Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(IterationVar),Loc,Loc);
tools/clang/lib/Sema/SemaOpenMP.cpp
 3738           if (auto *DS = cast_or_null<DeclStmt>(C->getPreInitStmt())) {
 5679   } else if (auto *DS = dyn_cast<DeclStmt>(S)) {
 5679   } else if (auto *DS = dyn_cast<DeclStmt>(S)) {
 6853     return new (Context) DeclStmt(
tools/clang/lib/Sema/SemaStmt.cpp
   79   return new (Context) DeclStmt(DG, StartLoc, EndLoc);
  398     for (; i != NumElts && isa<DeclStmt>(Elts[i]); ++i)
  402     for (; i != NumElts && !isa<DeclStmt>(Elts[i]); ++i)
  406       Decl *D = *cast<DeclStmt>(Elts[i])->decl_begin();
 1771     if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) {
 1771     if (DeclStmt *DS = dyn_cast_or_null<DeclStmt>(First)) {
 1912     if (DeclStmt *DS = dyn_cast<DeclStmt>(First)) {
 1912     if (DeclStmt *DS = dyn_cast<DeclStmt>(First)) {
 2109   DeclStmt *DS = dyn_cast<DeclStmt>(First);
 2109   DeclStmt *DS = dyn_cast<DeclStmt>(First);
 2374   DeclStmt *RangeDS = cast<DeclStmt>(RangeDecl);
 2374   DeclStmt *RangeDS = cast<DeclStmt>(RangeDecl);
 2378   DeclStmt *LoopVarDS = cast<DeclStmt>(LoopVarDecl);
 2378   DeclStmt *LoopVarDS = cast<DeclStmt>(LoopVarDecl);
 2683       InitStmt, RangeDS, cast_or_null<DeclStmt>(BeginDeclStmt.get()),
 2684       cast_or_null<DeclStmt>(EndDeclStmt.get()), NotEqExpr.get(),
tools/clang/lib/Sema/TreeTransform.h
 2081     if (DeclStmt *RangeStmt = dyn_cast<DeclStmt>(Range)) {
 2081     if (DeclStmt *RangeStmt = dyn_cast<DeclStmt>(Range)) {
 6669       if (isa<DeclStmt>(B))
 7048 TreeTransform<Derived>::TransformDeclStmt(DeclStmt *S) {
tools/clang/lib/Serialization/ASTReaderStmt.cpp
  341 void ASTStmtReader::VisitDeclStmt(DeclStmt *S) {
 2578       S = new (Context) DeclStmt(Empty);
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  264 void ASTStmtWriter::VisitDeclStmt(DeclStmt *S) {
tools/clang/lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
  895   if (const DeclStmt *DS = dyn_cast<DeclStmt>(Element)) {
  895   if (const DeclStmt *DS = dyn_cast<DeclStmt>(Element)) {
tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
   32                                          check::PreStmt<DeclStmt>,
   62   void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const;
 2275 void CStringChecker::checkPreStmt(const DeclStmt *DS, CheckerContext &C) const {
tools/clang/lib/StaticAnalyzer/Checkers/CheckerDocumentation.cpp
   37                                        check::PostStmt<DeclStmt>,
   82   void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const;
  329 void CheckerDocumentation::checkPostStmt(const DeclStmt *DS,
tools/clang/lib/StaticAnalyzer/Checkers/ConversionChecker.cpp
  100   } else if (isa<DeclStmt>(Parent)) {
tools/clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
  374     else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S))
  374     else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S))
tools/clang/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp
  257   void checkPostStmt(const DeclStmt *DS, CheckerContext &C) const;
tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
  130   void VisitDeclStmt(DeclStmt *DS);
  142 void StringRefCheckerVisitor::VisitDeclStmt(DeclStmt *S) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
  101   TypeCallPair VisitDeclStmt(const DeclStmt *S) {
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
  995   if (auto *DS = dyn_cast<DeclStmt>(S))  {
 1029   auto *DS = dyn_cast<DeclStmt>(S);
tools/clang/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp
   87     if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) {
   87     if (const DeclStmt *DS = dyn_cast<DeclStmt>(StoreE)) {
tools/clang/lib/StaticAnalyzer/Checkers/UnreachableCodeChecker.cpp
  203       if (!isa<DeclStmt>(S->getStmt()))
tools/clang/lib/StaticAnalyzer/Checkers/VLASizeChecker.cpp
   32 class VLASizeChecker : public Checker< check::PreStmt<DeclStmt> > {
   41   void checkPreStmt(const DeclStmt *DS, CheckerContext &C) const;
   82 void VLASizeChecker::checkPreStmt(const DeclStmt *DS, CheckerContext &C) const {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  859     if (const auto *DS = dyn_cast<DeclStmt>(S)) {
  859     if (const auto *DS = dyn_cast<DeclStmt>(S)) {
 1221   const DeclStmt *DS = P->getStmtAs<DeclStmt>();
 1221   const DeclStmt *DS = P->getStmtAs<DeclStmt>();
 1245                               const MemRegion *R, SVal V, const DeclStmt *DS) {
 1470     const auto *DS = dyn_cast<DeclStmt>(S);
 1470     const auto *DS = dyn_cast<DeclStmt>(S);
tools/clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
   91   } else if (auto PD = dyn_cast_or_null<DeclStmt>(S)) {
tools/clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
  309         HandleStaticInit(cast<DeclStmt>(Term), B, Pred);
  447 void CoreEngine::HandleStaticInit(const DeclStmt *DS, const CFGBlock *B,
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 1683       VisitDeclStmt(cast<DeclStmt>(S), Pred, Dst);
 2185 void ExprEngine::processStaticInitializer(const DeclStmt *DS,
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  574 void ExprEngine::VisitDeclStmt(const DeclStmt *DS, ExplodedNode *Pred,
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
  126       const auto *DS = DSCC->getDeclStmt();
tools/clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp
  120   if (const auto *DS = dyn_cast<DeclStmt>(elem)) {
  120   if (const auto *DS = dyn_cast<DeclStmt>(elem)) {
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp
  176     if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
  176     if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) {
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
  346   if (ASTSelection.Node.get<DeclStmt>()) {
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
   37   if (const auto *DS = dyn_cast<DeclStmt>(S)) {
   37   if (const auto *DS = dyn_cast<DeclStmt>(S)) {
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.cpp
   22   for (const DeclStmt *Stmt : {Node.getBeginStmt(), Node.getEndStmt()})
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  523     const DeclStmt *AliasDecl, bool AliasUseRequired, bool AliasFromForInit,
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.h
   40                     const DeclStmt *AliasDecl, bool AliasUseRequired,
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
   52 bool StmtAncestorASTVisitor::VisitDeclStmt(DeclStmt *Decls) {
  799 bool ForLoopIndexUseVisitor::VisitDeclStmt(DeclStmt *S) {
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.h
   36 typedef llvm::DenseMap<const clang::VarDecl *, const clang::DeclStmt *>
   80   bool VisitDeclStmt(clang::DeclStmt *Statement);
  319   const DeclStmt *getAliasDecl() const { return AliasDecl; }
  351   bool VisitDeclStmt(DeclStmt *S);
  377   const DeclStmt *AliasDecl;
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.cpp
  335 void UseAutoCheck::replaceIterators(const DeclStmt *D, ASTContext *Context) {
  387     const DeclStmt *D, ASTContext *Context,
  467   if (const auto *Decl = Result.Nodes.getNodeAs<DeclStmt>(IteratorDeclStmtId)) {
  467   if (const auto *Decl = Result.Nodes.getNodeAs<DeclStmt>(IteratorDeclStmtId)) {
  469   } else if (const auto *Decl =
  470                  Result.Nodes.getNodeAs<DeclStmt>(DeclWithNewId)) {
  475   } else if (const auto *Decl =
  476                  Result.Nodes.getNodeAs<DeclStmt>(DeclWithCastId)) {
  484   } else if (const auto *Decl =
  485                  Result.Nodes.getNodeAs<DeclStmt>(DeclWithTemplateCastId)) {
tools/clang/tools/extra/clang-tidy/modernize/UseAutoCheck.h
   26   void replaceIterators(const DeclStmt *D, ASTContext *Context);
   27   void replaceExpr(const DeclStmt *D, ASTContext *Context,
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
   98       Result.Nodes.getNodeAs<DeclStmt>("declStmt")->isSingleDecl() &&
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
  180   if (const DeclStmt *CondVar = S->getConditionVariableDeclStmt())
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
  109 declRanges(const DeclStmt *DS, const SourceManager &SM,
  248   const auto *WholeDecl = Result.Nodes.getNodeAs<DeclStmt>("decl_stmt");
  248   const auto *WholeDecl = Result.Nodes.getNodeAs<DeclStmt>("decl_stmt");
tools/clang/tools/extra/clang-tidy/utils/ExprSequence.cpp
  127     } else if (const auto *TheDeclStmt = dyn_cast<DeclStmt>(Parent)) {
  127     } else if (const auto *TheDeclStmt = dyn_cast<DeclStmt>(Parent)) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  101   if (N->Selected == SelectionTree::Unselected && !N->ASTNode.get<DeclStmt>())
  137     if (Parent->ASTNode.get<DeclStmt>())
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  134              isa<CXXForRangeStmt>(Stmt) || isa<DeclStmt>(Stmt) ||
tools/clang/tools/extra/unittests/clang-tidy/IncludeInserterTest.cpp
   46     auto Diag = diag(Result.Nodes.getNodeAs<DeclStmt>("stmt")->getBeginLoc(),
tools/clang/tools/libclang/CIndex.cpp
 1989   void VisitDeclStmt(const DeclStmt *S);
 2574 void EnqueueVisitor::VisitDeclStmt(const DeclStmt *S) {
tools/clang/unittests/Tooling/ASTSelectionTest.cpp
  107           typename std::enable_if<std::is_base_of<Stmt, T>::value, T>::type
  107           typename std::enable_if<std::is_base_of<Stmt, T>::value, T>::type
  109   checkNodeImpl(isa<T>(StmtNode.Node.get<Stmt>()), StmtNode, SelectionKind,
  362         checkNode<DeclStmt>(Body.Children[0],
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
   68     DeclStmt *curr_decl_stmt = dyn_cast<DeclStmt>(curr_stmt);
   68     DeclStmt *curr_decl_stmt = dyn_cast<DeclStmt>(curr_stmt);
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  326     : public __is_integral_helper<typename remove_cv<_Tp>::type>::type
  354     : public __is_floating_point_helper<typename remove_cv<_Tp>::type>::type
  381     : public __is_pointer_helper<typename remove_cv<_Tp>::type>::type
  567     : public __is_null_pointer_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  588     : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  611     : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>,
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  612                    is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type
  631     : public __is_member_pointer_helper<typename remove_cv<_Tp>::type>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  777     : public __and_<is_array<_Tp>, __not_<extent<_Tp>>>
  798       typedef decltype(__test<_Tp>(0)) type;
  811                remove_all_extents<_Tp>::type>::type
  825     : public __is_destructible_safe<_Tp>::type
 1447     : public __and_<is_destructible<_Tp>, integral_constant<bool,
 1554     { typedef _Tp     type; };
 1558     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1580     { typedef _Tp const     type; };
 1629     { typedef _Tp   type; };
 1659     { typedef _Tp&&   type; };
 1955     { typedef _Tp     type; };
 1983     { typedef _Up     type; };
 1999     { typedef typename remove_reference<_Tp>::type*     type; };
 2003     : public __add_pointer_helper<_Tp>
 2157     { typedef _Tp type; };