Clang Project

clang_source_code/include/clang/AST/StmtCXX.h
1//===--- StmtCXX.h - Classes for representing C++ statements ----*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file defines the C++ statement AST node classes.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef LLVM_CLANG_AST_STMTCXX_H
14#define LLVM_CLANG_AST_STMTCXX_H
15
16#include "clang/AST/DeclarationName.h"
17#include "clang/AST/Expr.h"
18#include "clang/AST/NestedNameSpecifier.h"
19#include "clang/AST/Stmt.h"
20#include "llvm/Support/Compiler.h"
21
22namespace clang {
23
24class VarDecl;
25
26/// CXXCatchStmt - This represents a C++ catch block.
27///
28class CXXCatchStmt : public Stmt {
29  SourceLocation CatchLoc;
30  /// The exception-declaration of the type.
31  VarDecl *ExceptionDecl;
32  /// The handler block.
33  Stmt *HandlerBlock;
34
35public:
36  CXXCatchStmt(SourceLocation catchLocVarDecl *exDeclStmt *handlerBlock)
37  : Stmt(CXXCatchStmtClass), CatchLoc(catchLoc), ExceptionDecl(exDecl),
38    HandlerBlock(handlerBlock) {}
39
40  CXXCatchStmt(EmptyShell Empty)
41  : Stmt(CXXCatchStmtClass), ExceptionDecl(nullptr), HandlerBlock(nullptr) {}
42
43  SourceLocation getBeginLoc() const LLVM_READONLY { return CatchLoc; }
44  SourceLocation getEndLoc() const LLVM_READONLY {
45    return HandlerBlock->getEndLoc();
46  }
47
48  SourceLocation getCatchLoc() const { return CatchLoc; }
49  VarDecl *getExceptionDecl() const { return ExceptionDecl; }
50  QualType getCaughtType() const;
51  Stmt *getHandlerBlock() const { return HandlerBlock; }
52
53  static bool classof(const Stmt *T) {
54    return T->getStmtClass() == CXXCatchStmtClass;
55  }
56
57  child_range children() { return child_range(&HandlerBlock, &HandlerBlock+1); }
58
59  friend class ASTStmtReader;
60};
61
62/// CXXTryStmt - A C++ try block, including all handlers.
63///
64class CXXTryStmt final : public Stmt,
65                         private llvm::TrailingObjects<CXXTryStmt, Stmt *> {
66
67  friend TrailingObjects;
68  friend class ASTStmtReader;
69
70  SourceLocation TryLoc;
71  unsigned NumHandlers;
72  size_t numTrailingObjects(OverloadToken<Stmt *>) const { return NumHandlers; }
73
74  CXXTryStmt(SourceLocation tryLocStmt *tryBlockArrayRef<Stmt*> handlers);
75  CXXTryStmt(EmptyShell Emptyunsigned numHandlers)
76    : Stmt(CXXTryStmtClass), NumHandlers(numHandlers) { }
77
78  Stmt *const *getStmts() const { return getTrailingObjects<Stmt *>(); }
79  Stmt **getStmts() { return getTrailingObjects<Stmt *>(); }
80
81public:
82  static CXXTryStmt *Create(const ASTContext &CSourceLocation tryLoc,
83                            Stmt *tryBlockArrayRef<Stmt*> handlers);
84
85  static CXXTryStmt *Create(const ASTContext &CEmptyShell Empty,
86                            unsigned numHandlers);
87
88  SourceLocation getBeginLoc() const LLVM_READONLY { return getTryLoc(); }
89
90  SourceLocation getTryLoc() const { return TryLoc; }
91  SourceLocation getEndLoc() const {
92    return getStmts()[NumHandlers]->getEndLoc();
93  }
94
95  CompoundStmt *getTryBlock() {
96    return cast<CompoundStmt>(getStmts()[0]);
97  }
98  const CompoundStmt *getTryBlock() const {
99    return cast<CompoundStmt>(getStmts()[0]);
100  }
101
102  unsigned getNumHandlers() const { return NumHandlers; }
103  CXXCatchStmt *getHandler(unsigned i) {
104    return cast<CXXCatchStmt>(getStmts()[i + 1]);
105  }
106  const CXXCatchStmt *getHandler(unsigned i) const {
107    return cast<CXXCatchStmt>(getStmts()[i + 1]);
108  }
109
110  static bool classof(const Stmt *T) {
111    return T->getStmtClass() == CXXTryStmtClass;
112  }
113
114  child_range children() {
115    return child_range(getStmts(), getStmts() + getNumHandlers() + 1);
116  }
117};
118
119/// CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for
120/// statement, represented as 'for (range-declarator : range-expression)'
121/// or 'for (init-statement range-declarator : range-expression)'.
122///
123/// This is stored in a partially-desugared form to allow full semantic
124/// analysis of the constituent components. The original syntactic components
125/// can be extracted using getLoopVariable and getRangeInit.
126class CXXForRangeStmt : public Stmt {
127  SourceLocation ForLoc;
128  enum { INITRANGEBEGINSTMTENDSTMTCONDINCLOOPVARBODYEND };
129  // SubExprs[RANGE] is an expression or declstmt.
130  // SubExprs[COND] and SubExprs[INC] are expressions.
131  Stmt *SubExprs[END];
132  SourceLocation CoawaitLoc;
133  SourceLocation ColonLoc;
134  SourceLocation RParenLoc;
135
136  friend class ASTStmtReader;
137public:
138  CXXForRangeStmt(Stmt *InitStmtDeclStmt *RangeDeclStmt *Begin,
139                  DeclStmt *EndExpr *CondExpr *IncDeclStmt *LoopVar,
140                  Stmt *BodySourceLocation FLSourceLocation CAL,
141                  SourceLocation CLSourceLocation RPL);
142  CXXForRangeStmt(EmptyShell Empty) : Stmt(CXXForRangeStmtClass, Empty) { }
143
144  Stmt *getInit() { return SubExprs[INIT]; }
145  VarDecl *getLoopVariable();
146  Expr *getRangeInit();
147
148  const Stmt *getInit() const { return SubExprs[INIT]; }
149  const VarDecl *getLoopVariable() const;
150  const Expr *getRangeInit() const;
151
152
153  DeclStmt *getRangeStmt() { return cast<DeclStmt>(SubExprs[RANGE]); }
154  DeclStmt *getBeginStmt() {
155    return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]);
156  }
157  DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); }
158  Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); }
159  Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); }
160  DeclStmt *getLoopVarStmt() { return cast<DeclStmt>(SubExprs[LOOPVAR]); }
161  Stmt *getBody() { return SubExprs[BODY]; }
162
163  const DeclStmt *getRangeStmt() const {
164    return cast<DeclStmt>(SubExprs[RANGE]);
165  }
166  const DeclStmt *getBeginStmt() const {
167    return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]);
168  }
169  const DeclStmt *getEndStmt() const {
170    return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]);
171  }
172  const Expr *getCond() const {
173    return cast_or_null<Expr>(SubExprs[COND]);
174  }
175  const Expr *getInc() const {
176    return cast_or_null<Expr>(SubExprs[INC]);
177  }
178  const DeclStmt *getLoopVarStmt() const {
179    return cast<DeclStmt>(SubExprs[LOOPVAR]);
180  }
181  const Stmt *getBody() const { return SubExprs[BODY]; }
182
183  void setInit(Stmt *S) { SubExprs[INIT] = S; }
184  void setRangeInit(Expr *E) { SubExprs[RANGE] = reinterpret_cast<Stmt*>(E); }
185  void setRangeStmt(Stmt *S) { SubExprs[RANGE] = S; }
186  void setBeginStmt(Stmt *S) { SubExprs[BEGINSTMT] = S; }
187  void setEndStmt(Stmt *S) { SubExprs[ENDSTMT] = S; }
188  void setCond(Expr *E) { SubExprs[COND] = reinterpret_cast<Stmt*>(E); }
189  void setInc(Expr *E) { SubExprs[INC] = reinterpret_cast<Stmt*>(E); }
190  void setLoopVarStmt(Stmt *S) { SubExprs[LOOPVAR] = S; }
191  void setBody(Stmt *S) { SubExprs[BODY] = S; }
192
193  SourceLocation getForLoc() const { return ForLoc; }
194  SourceLocation getCoawaitLoc() const { return CoawaitLoc; }
195  SourceLocation getColonLoc() const { return ColonLoc; }
196  SourceLocation getRParenLoc() const { return RParenLoc; }
197
198  SourceLocation getBeginLoc() const LLVM_READONLY { return ForLoc; }
199  SourceLocation getEndLoc() const LLVM_READONLY {
200    return SubExprs[BODY]->getEndLoc();
201  }
202
203  static bool classof(const Stmt *T) {
204    return T->getStmtClass() == CXXForRangeStmtClass;
205  }
206
207  // Iterators
208  child_range children() {
209    return child_range(&SubExprs[0], &SubExprs[END]);
210  }
211};
212
213/// Representation of a Microsoft __if_exists or __if_not_exists
214/// statement with a dependent name.
215///
216/// The __if_exists statement can be used to include a sequence of statements
217/// in the program only when a particular dependent name does not exist. For
218/// example:
219///
220/// \code
221/// template<typename T>
222/// void call_foo(T &t) {
223///   __if_exists (T::foo) {
224///     t.foo(); // okay: only called when T::foo exists.
225///   }
226/// }
227/// \endcode
228///
229/// Similarly, the __if_not_exists statement can be used to include the
230/// statements when a particular name does not exist.
231///
232/// Note that this statement only captures __if_exists and __if_not_exists
233/// statements whose name is dependent. All non-dependent cases are handled
234/// directly in the parser, so that they don't introduce a new scope. Clang
235/// introduces scopes in the dependent case to keep names inside the compound
236/// statement from leaking out into the surround statements, which would
237/// compromise the template instantiation model. This behavior differs from
238/// Visual C++ (which never introduces a scope), but is a fairly reasonable
239/// approximation of the VC++ behavior.
240class MSDependentExistsStmt : public Stmt {
241  SourceLocation KeywordLoc;
242  bool IsIfExists;
243  NestedNameSpecifierLoc QualifierLoc;
244  DeclarationNameInfo NameInfo;
245  Stmt *SubStmt;
246
247  friend class ASTReader;
248  friend class ASTStmtReader;
249
250public:
251  MSDependentExistsStmt(SourceLocation KeywordLocbool IsIfExists,
252                        NestedNameSpecifierLoc QualifierLoc,
253                        DeclarationNameInfo NameInfo,
254                        CompoundStmt *SubStmt)
255  : Stmt(MSDependentExistsStmtClass),
256    KeywordLoc(KeywordLoc), IsIfExists(IsIfExists),
257    QualifierLoc(QualifierLoc), NameInfo(NameInfo),
258    SubStmt(reinterpret_cast<Stmt *>(SubStmt)) { }
259
260  /// Retrieve the location of the __if_exists or __if_not_exists
261  /// keyword.
262  SourceLocation getKeywordLoc() const { return KeywordLoc; }
263
264  /// Determine whether this is an __if_exists statement.
265  bool isIfExists() const { return IsIfExists; }
266
267  /// Determine whether this is an __if_exists statement.
268  bool isIfNotExists() const { return !IsIfExists; }
269
270  /// Retrieve the nested-name-specifier that qualifies this name, if
271  /// any.
272  NestedNameSpecifierLoc getQualifierLoc() const { return QualifierLoc; }
273
274  /// Retrieve the name of the entity we're testing for, along with
275  /// location information
276  DeclarationNameInfo getNameInfo() const { return NameInfo; }
277
278  /// Retrieve the compound statement that will be included in the
279  /// program only if the existence of the symbol matches the initial keyword.
280  CompoundStmt *getSubStmt() const {
281    return reinterpret_cast<CompoundStmt *>(SubStmt);
282  }
283
284  SourceLocation getBeginLoc() const LLVM_READONLY { return KeywordLoc; }
285  SourceLocation getEndLoc() const LLVM_READONLY {
286    return SubStmt->getEndLoc();
287  }
288
289  child_range children() {
290    return child_range(&SubStmt, &SubStmt+1);
291  }
292
293  static bool classof(const Stmt *T) {
294    return T->getStmtClass() == MSDependentExistsStmtClass;
295  }
296};
297
298/// Represents the body of a coroutine. This wraps the normal function
299/// body and holds the additional semantic context required to set up and tear
300/// down the coroutine frame.
301class CoroutineBodyStmt final
302    : public Stmt,
303      private llvm::TrailingObjects<CoroutineBodyStmt, Stmt *> {
304  enum SubStmt {
305    Body,          ///< The body of the coroutine.
306    Promise,       ///< The promise statement.
307    InitSuspend,   ///< The initial suspend statement, run before the body.
308    FinalSuspend,  ///< The final suspend statement, run after the body.
309    OnException,   ///< Handler for exceptions thrown in the body.
310    OnFallthrough///< Handler for control flow falling off the body.
311    Allocate,      ///< Coroutine frame memory allocation.
312    Deallocate,    ///< Coroutine frame memory deallocation.
313    ReturnValue,   ///< Return value for thunk function: p.get_return_object().
314    ResultDecl,    ///< Declaration holding the result of get_return_object.
315    ReturnStmt,    ///< Return statement for the thunk function.
316    ReturnStmtOnAllocFailure///< Return statement if allocation failed.
317    FirstParamMove ///< First offset for move construction of parameter copies.
318  };
319  unsigned NumParams;
320
321  friend class ASTStmtReader;
322  friend class ASTReader;
323  friend TrailingObjects;
324
325  Stmt **getStoredStmts() { return getTrailingObjects<Stmt *>(); }
326
327  Stmt *const *getStoredStmts() const { return getTrailingObjects<Stmt *>(); }
328
329public:
330
331  struct CtorArgs {
332    Stmt *Body = nullptr;
333    Stmt *Promise = nullptr;
334    Expr *InitialSuspend = nullptr;
335    Expr *FinalSuspend = nullptr;
336    Stmt *OnException = nullptr;
337    Stmt *OnFallthrough = nullptr;
338    Expr *Allocate = nullptr;
339    Expr *Deallocate = nullptr;
340    Expr *ReturnValue = nullptr;
341    Stmt *ResultDecl = nullptr;
342    Stmt *ReturnStmt = nullptr;
343    Stmt *ReturnStmtOnAllocFailure = nullptr;
344    ArrayRef<Stmt *> ParamMoves;
345  };
346
347private:
348
349  CoroutineBodyStmt(CtorArgs constArgs);
350
351public:
352  static CoroutineBodyStmt *Create(const ASTContext &CCtorArgs const &Args);
353  static CoroutineBodyStmt *Create(const ASTContext &CEmptyShell,
354                                   unsigned NumParams);
355
356  bool hasDependentPromiseType() const {
357    return getPromiseDecl()->getType()->isDependentType();
358  }
359
360  /// Retrieve the body of the coroutine as written. This will be either
361  /// a CompoundStmt or a TryStmt.
362  Stmt *getBody() const {
363    return getStoredStmts()[SubStmt::Body];
364  }
365
366  Stmt *getPromiseDeclStmt() const {
367    return getStoredStmts()[SubStmt::Promise];
368  }
369  VarDecl *getPromiseDecl() const {
370    return cast<VarDecl>(cast<DeclStmt>(getPromiseDeclStmt())->getSingleDecl());
371  }
372
373  Stmt *getInitSuspendStmt() const {
374    return getStoredStmts()[SubStmt::InitSuspend];
375  }
376  Stmt *getFinalSuspendStmt() const {
377    return getStoredStmts()[SubStmt::FinalSuspend];
378  }
379
380  Stmt *getExceptionHandler() const {
381    return getStoredStmts()[SubStmt::OnException];
382  }
383  Stmt *getFallthroughHandler() const {
384    return getStoredStmts()[SubStmt::OnFallthrough];
385  }
386
387  Expr *getAllocate() const {
388    return cast_or_null<Expr>(getStoredStmts()[SubStmt::Allocate]);
389  }
390  Expr *getDeallocate() const {
391    return cast_or_null<Expr>(getStoredStmts()[SubStmt::Deallocate]);
392  }
393  Expr *getReturnValueInit() const {
394    return cast<Expr>(getStoredStmts()[SubStmt::ReturnValue]);
395  }
396  Stmt *getResultDecl() const { return getStoredStmts()[SubStmt::ResultDecl]; }
397  Stmt *getReturnStmt() const { return getStoredStmts()[SubStmt::ReturnStmt]; }
398  Stmt *getReturnStmtOnAllocFailure() const {
399    return getStoredStmts()[SubStmt::ReturnStmtOnAllocFailure];
400  }
401  ArrayRef<Stmt const *> getParamMoves() const {
402    return {getStoredStmts() + SubStmt::FirstParamMove, NumParams};
403  }
404
405  SourceLocation getBeginLoc() const LLVM_READONLY {
406    return getBody() ? getBody()->getBeginLoc()
407                     : getPromiseDecl()->getBeginLoc();
408  }
409  SourceLocation getEndLoc() const LLVM_READONLY {
410    return getBody() ? getBody()->getEndLoc() : getPromiseDecl()->getEndLoc();
411  }
412
413  child_range children() {
414    return child_range(getStoredStmts(),
415                       getStoredStmts() + SubStmt::FirstParamMove + NumParams);
416  }
417
418  static bool classof(const Stmt *T) {
419    return T->getStmtClass() == CoroutineBodyStmtClass;
420  }
421};
422
423/// Represents a 'co_return' statement in the C++ Coroutines TS.
424///
425/// This statament models the initialization of the coroutine promise
426/// (encapsulating the eventual notional return value) from an expression
427/// (or braced-init-list), followed by termination of the coroutine.
428///
429/// This initialization is modeled by the evaluation of the operand
430/// followed by a call to one of:
431///   <promise>.return_value(<operand>)
432///   <promise>.return_void()
433/// which we name the "promise call".
434class CoreturnStmt : public Stmt {
435  SourceLocation CoreturnLoc;
436
437  enum SubStmt { OperandPromiseCallCount };
438  Stmt *SubStmts[SubStmt::Count];
439
440  bool IsImplicit : 1;
441
442  friend class ASTStmtReader;
443public:
444  CoreturnStmt(SourceLocation CoreturnLocStmt *OperandStmt *PromiseCall,
445               bool IsImplicit = false)
446      : Stmt(CoreturnStmtClass), CoreturnLoc(CoreturnLoc),
447        IsImplicit(IsImplicit) {
448    SubStmts[SubStmt::Operand] = Operand;
449    SubStmts[SubStmt::PromiseCall] = PromiseCall;
450  }
451
452  CoreturnStmt(EmptyShell) : CoreturnStmt({}, {}, {}) {}
453
454  SourceLocation getKeywordLoc() const { return CoreturnLoc; }
455
456  /// Retrieve the operand of the 'co_return' statement. Will be nullptr
457  /// if none was specified.
458  Expr *getOperand() const { return static_cast<Expr*>(SubStmts[Operand]); }
459
460  /// Retrieve the promise call that results from this 'co_return'
461  /// statement. Will be nullptr if either the coroutine has not yet been
462  /// finalized or the coroutine has no eventual return type.
463  Expr *getPromiseCall() const {
464    return static_cast<Expr*>(SubStmts[PromiseCall]);
465  }
466
467  bool isImplicit() const { return IsImplicit; }
468  void setIsImplicit(bool value = true) { IsImplicit = value; }
469
470  SourceLocation getBeginLoc() const LLVM_READONLY { return CoreturnLoc; }
471  SourceLocation getEndLoc() const LLVM_READONLY {
472    return getOperand() ? getOperand()->getEndLoc() : getBeginLoc();
473  }
474
475  child_range children() {
476    if (!getOperand())
477      return child_range(SubStmts + SubStmt::PromiseCall,
478                         SubStmts + SubStmt::Count);
479    return child_range(SubStmts, SubStmts + SubStmt::Count);
480  }
481
482  static bool classof(const Stmt *T) {
483    return T->getStmtClass() == CoreturnStmtClass;
484  }
485};
486
487}  // end namespace clang
488
489#endif
490
clang::CXXCatchStmt::CatchLoc
clang::CXXCatchStmt::ExceptionDecl
clang::CXXCatchStmt::HandlerBlock
clang::CXXCatchStmt::getBeginLoc
clang::CXXCatchStmt::getHandlerBlock
clang::CXXCatchStmt::classof
clang::CXXCatchStmt::children
clang::CXXTryStmt::TryLoc
clang::CXXTryStmt::NumHandlers
clang::CXXTryStmt::numTrailingObjects
clang::CXXTryStmt::getStmts
clang::CXXTryStmt::getStmts
clang::CXXTryStmt::Create
clang::CXXTryStmt::Create
clang::CXXTryStmt::getBeginLoc
clang::CXXForRangeStmt::ForLoc
clang::CXXForRangeStmt::SubExprs
clang::CXXForRangeStmt::CoawaitLoc
clang::CXXForRangeStmt::ColonLoc
clang::CXXForRangeStmt::RParenLoc
clang::CXXForRangeStmt::getInit
clang::CXXForRangeStmt::getLoopVariable
clang::CXXForRangeStmt::getRangeInit
clang::CXXForRangeStmt::getInit
clang::CXXForRangeStmt::getLoopVariable
clang::CXXForRangeStmt::getRangeInit
clang::CXXForRangeStmt::getRangeStmt
clang::CXXForRangeStmt::getBeginStmt
clang::CXXForRangeStmt::getEndStmt
clang::CXXForRangeStmt::getCond
clang::CXXForRangeStmt::getInc
clang::CXXForRangeStmt::getLoopVarStmt
clang::CXXForRangeStmt::getBody
clang::CXXForRangeStmt::getRangeStmt
clang::CXXForRangeStmt::getBeginStmt
clang::CXXForRangeStmt::getEndStmt
clang::CXXForRangeStmt::getCond
clang::CXXForRangeStmt::getInc
clang::CXXForRangeStmt::getLoopVarStmt
clang::CXXForRangeStmt::getBody
clang::CXXForRangeStmt::setInit
clang::CXXForRangeStmt::setRangeInit
clang::CXXForRangeStmt::setRangeStmt
clang::CXXForRangeStmt::setBeginStmt
clang::CXXForRangeStmt::setEndStmt
clang::CXXForRangeStmt::setCond
clang::CXXForRangeStmt::setInc
clang::CXXForRangeStmt::setLoopVarStmt
clang::CXXForRangeStmt::setBody
clang::CXXForRangeStmt::getForLoc
clang::CXXForRangeStmt::getCoawaitLoc
clang::CXXForRangeStmt::getColonLoc
clang::CXXForRangeStmt::getRParenLoc
clang::CXXForRangeStmt::getBeginLoc
clang::MSDependentExistsStmt::KeywordLoc
clang::MSDependentExistsStmt::IsIfExists
clang::MSDependentExistsStmt::QualifierLoc
clang::MSDependentExistsStmt::NameInfo
clang::MSDependentExistsStmt::SubStmt
clang::MSDependentExistsStmt::getKeywordLoc
clang::MSDependentExistsStmt::isIfExists
clang::MSDependentExistsStmt::isIfNotExists
clang::MSDependentExistsStmt::getQualifierLoc
clang::MSDependentExistsStmt::getNameInfo
clang::MSDependentExistsStmt::getSubStmt
clang::MSDependentExistsStmt::getBeginLoc
clang::CoroutineBodyStmt::SubStmt
clang::CoroutineBodyStmt::NumParams
clang::CoroutineBodyStmt::getStoredStmts
clang::CoroutineBodyStmt::getStoredStmts
clang::CoroutineBodyStmt::CtorArgs
clang::CoroutineBodyStmt::CtorArgs::Body
clang::CoroutineBodyStmt::CtorArgs::Promise
clang::CoroutineBodyStmt::CtorArgs::InitialSuspend
clang::CoroutineBodyStmt::CtorArgs::FinalSuspend
clang::CoroutineBodyStmt::CtorArgs::OnException
clang::CoroutineBodyStmt::CtorArgs::OnFallthrough
clang::CoroutineBodyStmt::CtorArgs::Allocate
clang::CoroutineBodyStmt::CtorArgs::Deallocate
clang::CoroutineBodyStmt::CtorArgs::ReturnValue
clang::CoroutineBodyStmt::CtorArgs::ResultDecl
clang::CoroutineBodyStmt::CtorArgs::ReturnStmt
clang::CoroutineBodyStmt::CtorArgs::ReturnStmtOnAllocFailure
clang::CoroutineBodyStmt::CtorArgs::ParamMoves
clang::CoroutineBodyStmt::Create
clang::CoroutineBodyStmt::Create
clang::CoroutineBodyStmt::hasDependentPromiseType
clang::CoroutineBodyStmt::getBody
clang::CoroutineBodyStmt::getPromiseDeclStmt
clang::CoroutineBodyStmt::getPromiseDecl
clang::CoroutineBodyStmt::getInitSuspendStmt
clang::CoroutineBodyStmt::getFinalSuspendStmt
clang::CoroutineBodyStmt::getExceptionHandler
clang::CoroutineBodyStmt::getFallthroughHandler
clang::CoroutineBodyStmt::getAllocate
clang::CoroutineBodyStmt::getDeallocate
clang::CoroutineBodyStmt::getReturnValueInit
clang::CoroutineBodyStmt::getResultDecl
clang::CoroutineBodyStmt::getReturnStmt
clang::CoroutineBodyStmt::getReturnStmtOnAllocFailure
clang::CoroutineBodyStmt::getParamMoves
clang::CoroutineBodyStmt::getBeginLoc
clang::CoreturnStmt::CoreturnLoc
clang::CoreturnStmt::SubStmt
clang::CoreturnStmt::SubStmts
clang::CoreturnStmt::IsImplicit
clang::CoreturnStmt::getKeywordLoc
clang::CoreturnStmt::getOperand
clang::CoreturnStmt::getPromiseCall
clang::CoreturnStmt::isImplicit
clang::CoreturnStmt::setIsImplicit
clang::CoreturnStmt::getBeginLoc