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

Declarations

gen/tools/clang/include/clang/AST/StmtNodes.inc
   73 COMPOUNDSTMT(CompoundStmt, Stmt)
tools/clang/include/clang/AST/Decl.h
   56 class CompoundStmt;
tools/clang/include/clang/AST/DeclObjC.h
   46 class CompoundStmt;
tools/clang/include/clang/Analysis/CloneDetection.h
   27 class CompoundStmt;
tools/lldb/include/lldb/Core/ClangForward.h
   32 class CompoundStmt;

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);
   77     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) {
  265   return cast_convert_val<X, Y*,
  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/TrailingObjects.h
  134     : public TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy,
  137   typedef TrailingObjectsImpl<Align, BaseTy, TopTrailingObj, NextTy, MoreTys...>
  141     static const bool value = alignof(PrevTy) < alignof(NextTy);
  162   getTrailingObjectsImpl(const BaseTy *Obj,
  177   getTrailingObjectsImpl(BaseTy *Obj,
  179     auto *Ptr = TopTrailingObj::getTrailingObjectsImpl(
  232                             BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
  232                             BaseTy, TrailingObjects<BaseTy, TrailingTys...>,
  233                             BaseTy, TrailingTys...> {
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  242       BaseTy, TrailingObjects<BaseTy, TrailingTys...>, BaseTy, TrailingTys...>
  257   static const BaseTy *
  258   getTrailingObjectsImpl(const BaseTy *Obj,
  259                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  263   static BaseTy *
  264   getTrailingObjectsImpl(BaseTy *Obj,
  265                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  277   callNumTrailingObjects(const BaseTy *Obj,
  278                          TrailingObjectsBase::OverloadToken<BaseTy>) {
  283   static size_t callNumTrailingObjects(const BaseTy *Obj,
  284                                        TrailingObjectsBase::OverloadToken<T>) {
  345     return sizeof(BaseTy) + ParentType::additionalSizeToAllocImpl(0, Counts...);
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/Decl.h
 4036   CompoundStmt *getCompoundBody() const { return (CompoundStmt*) Body; }
 4038   void setBody(CompoundStmt *B) { Body = (Stmt*) B; }
tools/clang/include/clang/AST/DeclObjC.h
  510   CompoundStmt *getCompoundBody() { return (CompoundStmt*)getBody(); }
tools/clang/include/clang/AST/Expr.h
 3933   StmtExpr(CompoundStmt *substmt, QualType T,
 3942   CompoundStmt *getSubStmt() { return cast<CompoundStmt>(SubStmt); }
 3942   CompoundStmt *getSubStmt() { return cast<CompoundStmt>(SubStmt); }
 3943   const CompoundStmt *getSubStmt() const { return cast<CompoundStmt>(SubStmt); }
 3943   const CompoundStmt *getSubStmt() const { return cast<CompoundStmt>(SubStmt); }
 3944   void setSubStmt(CompoundStmt *S) { SubStmt = S; }
tools/clang/include/clang/AST/ExprCXX.h
 2017   CompoundStmt *getBody() const;
tools/clang/include/clang/AST/Stmt.h
 1321                            private llvm::TrailingObjects<CompoundStmt, Stmt *> {
 1334   static CompoundStmt *Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
 1345   static CompoundStmt *CreateEmpty(const ASTContext &C, unsigned NumStmts);
 3216   CompoundStmt *getBlock() const {
 3217     return cast<CompoundStmt>(Children[BLOCK]);
 3253   CompoundStmt *getBlock() const { return cast<CompoundStmt>(Block); }
 3253   CompoundStmt *getBlock() const { return cast<CompoundStmt>(Block); }
 3297   CompoundStmt* getTryBlock() const {
 3298     return cast<CompoundStmt>(Children[TRY]);
tools/clang/include/clang/AST/StmtCXX.h
   99   CompoundStmt *getTryBlock() {
  100     return cast<CompoundStmt>(getStmts()[0]);
  102   const CompoundStmt *getTryBlock() const {
  103     return cast<CompoundStmt>(getStmts()[0]);
  266                         CompoundStmt *SubStmt)
  292   CompoundStmt *getSubStmt() const {
tools/clang/include/clang/AST/StmtObjC.h
  297   const CompoundStmt *getSynchBody() const {
  300   CompoundStmt *getSynchBody() {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  110   const T *getNodeAs(StringRef ID) const {
  111     return MyBoundNodes.getNodeAs<T>(ID);
 2040 extern const internal::VariadicDynCastAllOfMatcher<Stmt, CompoundStmt>
 4439   const CompoundStmt *CS = CompoundStmtMatcher<NodeType>::get(Node);
 4439   const CompoundStmt *CS = CompoundStmtMatcher<NodeType>::get(Node);
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,
 1067   using head = T1;
 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,
 1304 class ForEachMatcher : public WrapperMatcherInterface<T> {
 1312   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,
 1458 class HasAncestorMatcher : public WrapperMatcherInterface<T> {
 1466   bool matches(const T &Node, ASTMatchFinder *Finder,
 1480 class ForEachDescendantMatcher : public WrapperMatcherInterface<T> {
 1489   bool matches(const T &Node, ASTMatchFinder *Finder,
 1557     : public VariadicFunction<BindableMatcher<SourceT>, Matcher<TargetT>,
 1558                               makeDynCastAllOfComposite<SourceT, TargetT>> {
 1805   static const CompoundStmt *get(const Ty &Node) {
 1805   static const CompoundStmt *get(const Ty &Node) {
 1811 inline const CompoundStmt *
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/CloneDetection.h
   61   StmtSequence(const CompoundStmt *Stmt, const Decl *D, unsigned StartIndex,
tools/clang/include/clang/Analysis/PathDiagnostic.h
  256   static PathDiagnosticLocation createBeginBrace(const CompoundStmt *CS,
  261   static PathDiagnosticLocation createEndBrace(const CompoundStmt *CS,
tools/clang/lib/ARCMigrate/TransAutoreleasePool.cpp
  163   bool VisitCompoundStmt(CompoundStmt *S) {
  226     CompoundStmt *CompoundParent;
  295   void handlePoolScope(PoolScope &scope, CompoundStmt *compoundS) {
tools/clang/lib/ARCMigrate/TransEmptyStatementsAndDealloc.cpp
   87   bool VisitCompoundStmt(CompoundStmt *S) {
  154     CompoundStmt *S = E->getSubStmt();
  155     for (CompoundStmt::body_iterator
  164   bool VisitCompoundStmt(CompoundStmt *S) {
  184 static bool isBodyEmpty(CompoundStmt *body, ASTContext &Ctx,
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
  358     auto *CompS = dyn_cast_or_null<CompoundStmt>(*StmtExprChild.begin());
  358     auto *CompS = dyn_cast_or_null<CompoundStmt>(*StmtExprChild.begin());
tools/clang/lib/ARCMigrate/Transforms.cpp
  246     CompoundStmt *S = E->getSubStmt();
  247     for (CompoundStmt::body_iterator
  256   bool VisitCompoundStmt(CompoundStmt *S) {
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) {
  510     ExpectedStmt VisitCompoundStmt(CompoundStmt *S);
 5748 ExpectedStmt ASTNodeImporter::VisitCompoundStmt(CompoundStmt *S) {
 5762   return CompoundStmt::Create(
 6516   CompoundStmt *ToSubStmt;
tools/clang/lib/AST/Decl.cpp
 2833   if (isa<CompoundStmt>(S) && cast<CompoundStmt>(S)->body_empty())
 2833   if (isa<CompoundStmt>(S) && cast<CompoundStmt>(S)->body_empty())
tools/clang/lib/AST/Expr.cpp
 2648     const CompoundStmt *CS = cast<StmtExpr>(this)->getSubStmt();
tools/clang/lib/AST/ExprCXX.cpp
 1306 CompoundStmt *LambdaExpr::getBody() const {
tools/clang/lib/AST/ExprClassification.cpp
  398     const CompoundStmt *S = cast<StmtExpr>(E)->getSubStmt();
tools/clang/lib/AST/ExprConstant.cpp
 4630     const CompoundStmt *CS = cast<CompoundStmt>(S);
 4630     const CompoundStmt *CS = cast<CompoundStmt>(S);
 7123     const CompoundStmt *CS = E->getSubStmt();
 7128     for (CompoundStmt::const_body_iterator BI = CS->body_begin(),
tools/clang/lib/AST/Interp/ByteCodeStmtGen.cpp
  118     return visitCompoundStmt(cast<CompoundStmt>(S));
  137     const CompoundStmt *CompoundStmt) {
tools/clang/lib/AST/Interp/ByteCodeStmtGen.h
   61   bool visitCompoundStmt(const CompoundStmt *S);
tools/clang/lib/AST/Stmt.cpp
  141     else if (auto CS = dyn_cast_or_null<CompoundStmt>(S)) {
  318 CompoundStmt *CompoundStmt::Create(const ASTContext &C, ArrayRef<Stmt *> Stmts,
  321       C.Allocate(totalSizeToAlloc<Stmt *>(Stmts.size()), alignof(CompoundStmt));
  322   return new (Mem) CompoundStmt(Stmts, LB, RB);
  325 CompoundStmt *CompoundStmt::CreateEmpty(const ASTContext &C,
  328       C.Allocate(totalSizeToAlloc<Stmt *>(NumStmts), alignof(CompoundStmt));
  329   CompoundStmt *New = new (Mem) CompoundStmt(EmptyShell());
  329   CompoundStmt *New = new (Mem) CompoundStmt(EmptyShell());
tools/clang/lib/AST/StmtPrinter.cpp
  114       if (auto *CS = dyn_cast<CompoundStmt>(S)) {
  114       if (auto *CS = dyn_cast<CompoundStmt>(S)) {
  124     void PrintRawCompoundStmt(CompoundStmt *S);
  178 void StmtPrinter::PrintRawCompoundStmt(CompoundStmt *Node) {
  205 void StmtPrinter::VisitCompoundStmt(CompoundStmt *Node) {
  251   if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) {
  251   if (auto *CS = dyn_cast<CompoundStmt>(If->getThen())) {
  264     if (auto *CS = dyn_cast<CompoundStmt>(Else)) {
  264     if (auto *CS = dyn_cast<CompoundStmt>(Else)) {
  307   if (auto *CS = dyn_cast<CompoundStmt>(Node->getBody())) {
  307   if (auto *CS = dyn_cast<CompoundStmt>(Node->getBody())) {
  506   if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) {
  506   if (auto *TS = dyn_cast<CompoundStmt>(Node->getTryBody())) {
  519     if (auto *CS = dyn_cast<CompoundStmt>(catchStmt->getCatchBody())) {
  519     if (auto *CS = dyn_cast<CompoundStmt>(catchStmt->getCatchBody())) {
  527     PrintRawCompoundStmt(dyn_cast<CompoundStmt>(FS->getFinallyBody()));
  563   PrintRawCompoundStmt(dyn_cast<CompoundStmt>(Node->getSubStmt()));
  574   PrintRawCompoundStmt(cast<CompoundStmt>(Node->getHandlerBlock()));
tools/clang/lib/AST/StmtProfile.cpp
  240 void StmtProfiler::VisitCompoundStmt(const CompoundStmt *S) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  709 const internal::VariadicDynCastAllOfMatcher<Stmt, CompoundStmt> compoundStmt;
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/BodyFarm.cpp
   61   CompoundStmt *makeCompound(ArrayRef<Stmt*>);
  134 CompoundStmt *ASTMaker::makeCompound(ArrayRef<Stmt *> Stmts) {
  135   return CompoundStmt::Create(C, Stmts, SourceLocation(), SourceLocation());
  536   CompoundStmt *CS = M.makeCompound(Stmts);
  649   CompoundStmt *Body = M.makeCompound(Stmts);
tools/clang/lib/Analysis/CFG.cpp
  551   CFGBlock *VisitCompoundStmt(CompoundStmt *C, bool ExternallyDestructed);
 1945   if (CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) {
 1945   if (CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) {
 2166       return VisitCompoundStmt(cast<CompoundStmt>(S), ExternallyDestructed);
 2678 CFGBlock *CFGBuilder::VisitCompoundStmt(CompoundStmt *C, bool ExternallyDestructed) {
 2690   for (CompoundStmt::reverse_body_iterator I=C->body_rbegin(), E=C->body_rend();
 2945     if (!isa<CompoundStmt>(Else))
 2968     if (!isa<CompoundStmt>(Then))
 3358     if (!isa<CompoundStmt>(F->getBody()))
 3698     if (!isa<CompoundStmt>(W->getBody()))
 3897     if (!isa<CompoundStmt>(D->getBody()))
 4053   if (!isa<CompoundStmt>(Terminator->getBody()))
 4868       if (!isa<CompoundStmt>(S))
 5418       const CompoundStmt *Sub = SE->getSubStmt();
tools/clang/lib/Analysis/CloneDetection.cpp
   22 StmtSequence::StmtSequence(const CompoundStmt *Stmt, const Decl *D,
   62   auto CS = cast<CompoundStmt>(S);
   70   auto CS = cast<CompoundStmt>(S);
  256   auto CS = dyn_cast<CompoundStmt>(S);
tools/clang/lib/Analysis/PathDiagnostic.cpp
  581   if (const auto *CS = dyn_cast<CompoundStmt>(S))
  581   if (const auto *CS = dyn_cast<CompoundStmt>(S))
  615 PathDiagnosticLocation::createBeginBrace(const CompoundStmt *CS,
  622 PathDiagnosticLocation::createEndBrace(const CompoundStmt *CS,
  632   if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody()))
  632   if (const auto *CS = dyn_cast_or_null<CompoundStmt>(LC->getDecl()->getBody()))
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGBlocks.cpp
 1675                      cast<CompoundStmt>(blockDecl->getBody())->getRBracLoc());
 1684   FinishFunction(cast<CompoundStmt>(blockDecl->getBody())->getRBracLoc());
tools/clang/lib/CodeGen/CGClass.cpp
 1538   const CompoundStmt *RootCS = cast<CompoundStmt>(RootS);
 1538   const CompoundStmt *RootCS = cast<CompoundStmt>(RootS);
tools/clang/lib/CodeGen/CGCoroutine.cpp
  241     auto *TryBody =
  242         CompoundStmt::Create(CGF.getContext(), S.getResumeExpr(), Loc, Loc);
tools/clang/lib/CodeGen/CGDecl.cpp
 1615     const CompoundStmt *CS = SE->getSubStmt();
tools/clang/lib/CodeGen/CGObjC.cpp
  720   EmitCompoundStmtWithoutScope(*cast<CompoundStmt>(OMD->getBody()));
 3441   const CompoundStmt &S = cast<CompoundStmt>(*subStmt);
 3441   const CompoundStmt &S = cast<CompoundStmt>(*subStmt);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 6551   while (const auto *C = dyn_cast_or_null<CompoundStmt>(Child)) {
 6551   while (const auto *C = dyn_cast_or_null<CompoundStmt>(Child)) {
tools/clang/lib/CodeGen/CGStmt.cpp
  360   case Stmt::CompoundStmtClass: EmitCompoundStmt(cast<CompoundStmt>(*S)); break;
  379 Address CodeGenFunction::EmitCompoundStmt(const CompoundStmt &S, bool GetLast,
  391 CodeGenFunction::EmitCompoundStmtWithoutScope(const CompoundStmt &S,
 1406   if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) {
 1406   if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(S)) {
 1409     CompoundStmt::const_body_iterator I = CS->body_begin(), E = CS->body_end();
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
 2609   const auto *CS = dyn_cast<CompoundStmt>(CapturedStmt);
 2609   const auto *CS = dyn_cast<CompoundStmt>(CapturedStmt);
 4096   if (const auto *Compound = dyn_cast<CompoundStmt>(CS)) {
 4096   if (const auto *Compound = dyn_cast<CompoundStmt>(CS)) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  594   if (auto *CS = dyn_cast_or_null<CompoundStmt>(Body)) {
 1041   if (const CompoundStmt *S = dyn_cast<CompoundStmt>(Body))
 1041   if (const CompoundStmt *S = dyn_cast<CompoundStmt>(Body))
 1311       isa<DoStmt>(S) || isa<ForStmt>(S) || isa<CompoundStmt>(S) ||
tools/clang/lib/CodeGen/CodeGenFunction.h
 2859   Address EmitCompoundStmt(const CompoundStmt &S, bool GetLast = false,
 2861   Address EmitCompoundStmtWithoutScope(const CompoundStmt &S,
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1112     if (const auto *CS = dyn_cast<CompoundStmt>(Body)) {
 1112     if (const auto *CS = dyn_cast<CompoundStmt>(Body)) {
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 1823   if (isa<CompoundStmt>(S->getBody())) {
 5694       if (CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(FD->getBody())) {
 5694       if (CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(FD->getBody())) {
 5698         cast_or_null<CompoundStmt>(RewriteFunctionBodyOrGlobalInitializer(Body));
 5715       if (CompoundStmt *Body = MD->getCompoundBody()) {
 5719           cast_or_null<CompoundStmt>(RewriteFunctionBodyOrGlobalInitializer(Body));
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 1614   if (isa<CompoundStmt>(S->getBody())) {
 4792       if (CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(FD->getBody())) {
 4792       if (CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(FD->getBody())) {
 4797         cast_or_null<CompoundStmt>(RewriteFunctionBodyOrGlobalInitializer(Body));
 4814       if (CompoundStmt *Body = MD->getCompoundBody()) {
 4818           cast_or_null<CompoundStmt>(RewriteFunctionBodyOrGlobalInitializer(Body));
tools/clang/lib/Sema/SemaChecking.cpp
14102   bool ProbableTypo = isa<CompoundStmt>(PossibleBody);
tools/clang/lib/Sema/SemaDecl.cpp
13894       if (const auto *CmpndBody = dyn_cast<CompoundStmt>(Body))
13894       if (const auto *CmpndBody = dyn_cast<CompoundStmt>(Body))
tools/clang/lib/Sema/SemaDeclAttr.cpp
 8180                                               const CompoundStmt *Scope) {
 8344     const CompoundStmt *Scope = nullptr;
 8346       if (const auto *CS = dyn_cast<CompoundStmt>(S)) {
 8346       if (const auto *CS = dyn_cast<CompoundStmt>(S)) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 2000     CompoundStmt *CompStmt = cast<CompoundStmt>(S);
 2000     CompoundStmt *CompStmt = cast<CompoundStmt>(S);
11524   Constructor->setBody(new (Context) CompoundStmt(Loc));
11701   Constructor->setBody(new (Context) CompoundStmt(InitLoc));
11811   Destructor->setBody(new (Context) CompoundStmt(Loc));
13324   Invoker->setBody(new (Context) CompoundStmt(Conv->getLocation()));
13331   Conv->setBody(CompoundStmt::Create(Context, Return, Conv->getLocation(),
13386   Conv->setBody(CompoundStmt::Create(Context, ReturnS, Conv->getLocation(),
tools/clang/lib/Sema/SemaExpr.cpp
13789   CompoundStmt *Compound = cast<CompoundStmt>(SubStmt);
13789   CompoundStmt *Compound = cast<CompoundStmt>(SubStmt);
14306     DiagnoseInvalidJumps(cast<CompoundStmt>(Body));
14308   BD->setBody(cast<CompoundStmt>(Body));
tools/clang/lib/Sema/SemaExprCXX.cpp
 6560   CompoundStmt *CompStmt = CompoundStmt::Create(
 6560   CompoundStmt *CompStmt = CompoundStmt::Create(
tools/clang/lib/Sema/SemaLambda.cpp
 1919   Block->setBody(new (Context) CompoundStmt(ConvLocation));
tools/clang/lib/Sema/SemaOpenMP.cpp
 7769   if (auto *C = dyn_cast_or_null<CompoundStmt>(BaseStmt)) {
 7769   if (auto *C = dyn_cast_or_null<CompoundStmt>(BaseStmt)) {
 8012   if (auto *C = dyn_cast_or_null<CompoundStmt>(BaseStmt)) {
 8012   if (auto *C = dyn_cast_or_null<CompoundStmt>(BaseStmt)) {
 8695       if (auto *CS = dyn_cast<CompoundStmt>(Body)) {
 8695       if (auto *CS = dyn_cast<CompoundStmt>(Body)) {
 8882     if (const auto *CS = dyn_cast<CompoundStmt>(S)) {
 8882     if (const auto *CS = dyn_cast<CompoundStmt>(S)) {
tools/clang/lib/Sema/SemaStmt.cpp
  420   return CompoundStmt::Create(Context, Elts, L, R);
 1718     CompoundStmt *CS = dyn_cast<CompoundStmt>(Body);
 1718     CompoundStmt *CS = dyn_cast<CompoundStmt>(Body);
 4236                                              cast<CompoundStmt>(Nested));
tools/clang/lib/Sema/TreeTransform.h
  670   StmtResult TransformCompoundStmt(CompoundStmt *S, bool IsStmtExpr);
 6648 TreeTransform<Derived>::TransformCompoundStmt(CompoundStmt *S) {
 6654 TreeTransform<Derived>::TransformCompoundStmt(CompoundStmt *S,
tools/clang/lib/Serialization/ASTReaderDecl.cpp
 1486   BD->setBody(cast_or_null<CompoundStmt>(Record.readStmt()));
tools/clang/lib/Serialization/ASTReaderStmt.cpp
  160 void ASTStmtReader::VisitCompoundStmt(CompoundStmt *S) {
 1068   E->setSubStmt(cast_or_null<CompoundStmt>(Record.readSubStmt()));
 2503       S = CompoundStmt::CreateEmpty(
tools/clang/lib/Serialization/ASTWriterStmt.cpp
   80 void ASTStmtWriter::VisitCompoundStmt(CompoundStmt *S) {
tools/clang/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp
   87   void VisitCompoundStmt (CompoundStmt *S);
  185 void WalkAST::VisitCompoundStmt(CompoundStmt *S) {
tools/clang/lib/StaticAnalyzer/Checkers/IdenticalExprChecker.cpp
  115   if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(Stmt1)) {
  115   if (const CompoundStmt *CS = dyn_cast<CompoundStmt>(Stmt1)) {
  161   if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt1)) {
  161   if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt1)) {
  165   if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt2)) {
  165   if (const CompoundStmt *CompStmt = dyn_cast<CompoundStmt>(Stmt2)) {
  431     const CompoundStmt *CompStmt1 = cast<CompoundStmt>(Stmt1);
  431     const CompoundStmt *CompStmt1 = cast<CompoundStmt>(Stmt1);
  432     const CompoundStmt *CompStmt2 = cast<CompoundStmt>(Stmt2);
  432     const CompoundStmt *CompStmt2 = cast<CompoundStmt>(Stmt2);
  437     CompoundStmt::const_body_iterator I1 = CompStmt1->body_begin();
  438     CompoundStmt::const_body_iterator I2 = CompStmt2->body_begin();
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 1261       if (const auto *CS = dyn_cast_or_null<CompoundStmt>(Body)) {
 1261       if (const auto *CS = dyn_cast_or_null<CompoundStmt>(Body)) {
tools/clang/lib/Tooling/Refactoring/ASTSelection.cpp
  396   if (!isa<CompoundStmt>(CodeRangeStmt)) {
  436     IsPrevCompound = Node.get<CompoundStmt>() != nullptr;
tools/clang/lib/Tooling/Refactoring/Extract/SourceExtraction.cpp
   30   if (isa<CompoundStmt>(S))
tools/clang/lib/Tooling/Syntax/BuildTree.cpp
  227   bool WalkUpFromCompoundStmt(CompoundStmt *S) {
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp
  241     if (const auto *Arg = N->get<T>())
  241     if (const auto *Arg = N->get<T>())
  255                                    const CompoundStmt &CS) {
tools/clang/tools/extra/clang-tidy/bugprone/BranchCloneCheck.cpp
  161     const CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(SS->getBody());
  161     const CompoundStmt *Body = dyn_cast_or_null<CompoundStmt>(SS->getBody());
tools/clang/tools/extra/clang-tidy/bugprone/UnusedRaiiCheck.cpp
   59   const auto *CS = Result.Nodes.getNodeAs<CompoundStmt>("compound");
   59   const auto *CS = Result.Nodes.getNodeAs<CompoundStmt>("compound");
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
  126   const auto *Compound = cast<CompoundStmt>(Operator->getBody());
  126   const auto *Compound = cast<CompoundStmt>(Operator->getBody());
  191 static bool bodyEmpty(const ASTContext *Context, const CompoundStmt *Body) {
  261   const auto *Body = dyn_cast<CompoundStmt>(SpecialFunctionDecl->getBody());
  261   const auto *Body = dyn_cast<CompoundStmt>(SpecialFunctionDecl->getBody());
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
  194   const auto *LoopParent = Result.Nodes.getNodeAs<CompoundStmt>(LoopParentName);
  194   const auto *LoopParent = Result.Nodes.getNodeAs<CompoundStmt>(LoopParentName);
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
  213   if (!S || isa<CompoundStmt>(S)) {
tools/clang/tools/extra/clang-tidy/readability/DeleteNullPointerCheck.cpp
   55   const auto *Compound = Result.Nodes.getNodeAs<CompoundStmt>("compound");
   55   const auto *Compound = Result.Nodes.getNodeAs<CompoundStmt>("compound");
tools/clang/tools/extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
   56   if (const auto *CS = Result.Nodes.getNodeAs<CompoundStmt>("else"))
   56   if (const auto *CS = Result.Nodes.getNodeAs<CompoundStmt>("else"))
tools/clang/tools/extra/clang-tidy/readability/FunctionSizeCheck.cpp
   43     if (TrackedParent.back() && !isa<CompoundStmt>(Node))
   70   bool TraverseCompoundStmt(CompoundStmt *Node) {
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.cpp
   57                                                     const CompoundStmt *CStmt) {
   78     if (isa<CompoundStmt>(Inner))
  120   if (const auto *CStmt = Result.Nodes.getNodeAs<CompoundStmt>("compound"))
  120   if (const auto *CStmt = Result.Nodes.getNodeAs<CompoundStmt>("compound"))
tools/clang/tools/extra/clang-tidy/readability/MisleadingIndentationCheck.h
   34   void missingBracesCheck(const SourceManager &SM, const CompoundStmt *CStmt);
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.cpp
   49   if (const auto *Return = Result.Nodes.getNodeAs<CompoundStmt>("return"))
   49   if (const auto *Return = Result.Nodes.getNodeAs<CompoundStmt>("return"))
   51   else if (const auto *Continue =
   52                Result.Nodes.getNodeAs<CompoundStmt>("continue"))
   57     const MatchFinder::MatchResult &Result, const CompoundStmt *Block) {
   58   CompoundStmt::const_reverse_body_iterator last = Block->body_rbegin();
   65     const MatchFinder::MatchResult &Result, const CompoundStmt *Block) {
   66   CompoundStmt::const_reverse_body_iterator last = Block->body_rbegin();
   73     const MatchFinder::MatchResult &Result, const CompoundStmt *const Block,
   79   CompoundStmt::const_reverse_body_iterator Previous = ++Block->body_rbegin();
tools/clang/tools/extra/clang-tidy/readability/RedundantControlFlowCheck.h
   35                        const CompoundStmt *Block);
   39                          const CompoundStmt *Block);
   42                        const CompoundStmt *Block, const SourceRange &StmtRange,
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  288   if (const auto *Compound = dyn_cast<CompoundStmt>(IfRet->getThen())) {
  288   if (const auto *Compound = dyn_cast<CompoundStmt>(IfRet->getThen())) {
  551   else if (const auto *Compound =
  552                Result.Nodes.getNodeAs<CompoundStmt>(CompoundBoolId))
  554   else if (const auto *Compound =
  555                Result.Nodes.getNodeAs<CompoundStmt>(CompoundNotBoolId))
  603   StringRef Terminator = isa<CompoundStmt>(If->getElse()) ? ";" : "";
  613     const MatchFinder::MatchResult &Result, const CompoundStmt *Compound,
  625   CompoundStmt::const_body_iterator Current = Compound->body_begin();
  626   CompoundStmt::const_body_iterator After = Compound->body_begin();
  658   StringRef Terminator = isa<CompoundStmt>(IfAssign->getElse()) ? ";" : "";
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.h
   75       const CompoundStmt *Compound, bool Negated = false);
tools/clang/tools/extra/clang-tidy/utils/ExprSequence.cpp
  118     } else if (const auto *Compound = dyn_cast<CompoundStmt>(Parent)) {
  118     } else if (const auto *Compound = dyn_cast<CompoundStmt>(Parent)) {
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp
   89   if (AstNode.get<CompoundStmt>() &&
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  133       return isa<AttributedStmt>(Stmt) || isa<CompoundStmt>(Stmt) ||
  150       if (isa<CompoundStmt>(CurParent)) {
  343   if (llvm::isa<CompoundStmt>(Outer))
tools/clang/tools/extra/clangd/refactor/tweaks/SwapIfBranches.cpp
   54     if (dyn_cast_or_null<CompoundStmt>(N->ASTNode.get<Stmt>()))
   60   return If && dyn_cast_or_null<CompoundStmt>(If->getThen()) &&
   61          dyn_cast_or_null<CompoundStmt>(If->getElse());
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  589   const auto &Body = cast<CompoundStmt>(Func.getBody());
tools/clang/tools/libclang/CIndex.cpp
 1974   void VisitCompoundStmt(const CompoundStmt *S);
 2473 void EnqueueVisitor::VisitCompoundStmt(const CompoundStmt *S) {
 3957 static const Expr *evaluateCompoundStmtExpr(const CompoundStmt *CS) {
 3969               ? evaluateCompoundStmtExpr(cast<CompoundStmt>(getCursorStmt(C)))
 6542   CompoundStmt *Body = dyn_cast<CompoundStmt>(FD->getBody());
 6542   CompoundStmt *Body = dyn_cast<CompoundStmt>(FD->getBody());
tools/clang/unittests/AST/ASTImporterTest.cpp
 2364                            *cast<CompoundStmt>(ToD->getBody())->body_begin())
 3273       cast<LambdaExpr>(cast<CStyleCastExpr>(cast<CompoundStmt>(
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,
  208         const auto &Body = checkNode<CompoundStmt>(
  230         const auto &Body = checkNode<CompoundStmt>(
  246         const auto &Body = checkNode<CompoundStmt>(
  264         const auto &Body = checkNode<CompoundStmt>(
  316         const auto &Body = checkNode<CompoundStmt>(
  337         const auto &Body = checkNode<CompoundStmt>(
  359         const auto &Body = checkNode<CompoundStmt>(
  546   return checkNode<CompoundStmt>(Fn.Children[0],
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
  137   CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(function_body);
  137   CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(function_body);
  181   CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(method_body);
  181   CompoundStmt *compound_stmt = dyn_cast<CompoundStmt>(method_body);
  199 bool ASTResultSynthesizer::SynthesizeBodyResult(CompoundStmt *Body,
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.h
  128   bool SynthesizeBodyResult(clang::CompoundStmt *Body, clang::DeclContext *DC);
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.cpp
   55   CompoundStmt *body_compound_stmt = dyn_cast<CompoundStmt>(body_stmt);
   55   CompoundStmt *body_compound_stmt = dyn_cast<CompoundStmt>(body_stmt);
   64   for (CompoundStmt::const_body_iterator bi = body_compound_stmt->body_begin(),
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; };
 1999     { typedef typename remove_reference<_Tp>::type*     type; };
 2003     : public __add_pointer_helper<_Tp>
 2157     { typedef _Tp type; };