13#ifndef LLVM_CLANG_AST_STMT_H
14#define LLVM_CLANG_AST_STMT_H
31#include "llvm/ADT/APFloat.h"
32#include "llvm/ADT/ArrayRef.h"
33#include "llvm/ADT/BitmaskEnum.h"
34#include "llvm/ADT/PointerIntPair.h"
35#include "llvm/ADT/STLFunctionalExtras.h"
36#include "llvm/ADT/StringRef.h"
37#include "llvm/ADT/iterator.h"
38#include "llvm/ADT/iterator_range.h"
39#include "llvm/Support/Casting.h"
40#include "llvm/Support/Compiler.h"
41#include "llvm/Support/ErrorHandling.h"
51class FoldingSetNodeID;
86class alignas(void *)
Stmt {
90#define STMT(CLASS, PARENT) CLASS##Class,
91#define STMT_RANGE(BASE, FIRST, LAST) \
92 first##BASE##Constant=FIRST##Class, last##BASE##Constant=LAST##Class,
93#define LAST_STMT_RANGE(BASE, FIRST, LAST) \
94 first##BASE##Constant=FIRST##Class, last##BASE##Constant=LAST##Class
95#define ABSTRACT_STMT(STMT)
96#include "clang/AST/StmtNodes.inc"
104 void *
operator new(
size_t bytes)
noexcept {
105 llvm_unreachable(
"Stmts cannot be allocated with regular 'new'.");
108 void operator delete(
void *data)
noexcept {
109 llvm_unreachable(
"Stmts cannot be released with regular 'delete'.");
114 #define NumStmtBits 9
139 LLVM_PREFERRED_TYPE(
bool)
140 unsigned HasLeadingEmptyMacro : 1;
155 LLVM_PREFERRED_TYPE(
bool)
156 unsigned HasFPFeatures : 1;
196 LLVM_PREFERRED_TYPE(
bool)
197 unsigned HasElse : 1;
200 LLVM_PREFERRED_TYPE(
bool)
204 LLVM_PREFERRED_TYPE(
bool)
205 unsigned HasInit : 1;
218 LLVM_PREFERRED_TYPE(
bool)
219 unsigned HasInit : 1;
222 LLVM_PREFERRED_TYPE(
bool)
228 LLVM_PREFERRED_TYPE(
bool)
229 unsigned AllEnumCasesCovered : 1;
243 LLVM_PREFERRED_TYPE(
bool)
298 LLVM_PREFERRED_TYPE(
bool)
299 unsigned HasNRVOCandidate : 1;
314 LLVM_PREFERRED_TYPE(
bool)
315 unsigned CaseStmtIsGNURange : 1;
361 unsigned ValueKind : 2;
363 unsigned ObjectKind : 3;
365 unsigned Dependent : llvm::BitWidth<ExprDependence>;
379 unsigned ResultKind : 2;
383 unsigned APValueKind : 4;
387 LLVM_PREFERRED_TYPE(
bool)
388 unsigned IsUnsigned : 1;
394 unsigned BitWidth : 7;
398 LLVM_PREFERRED_TYPE(
bool)
399 unsigned HasCleanup : 1;
402 LLVM_PREFERRED_TYPE(
bool)
403 unsigned IsImmediateInvocation : 1;
418 LLVM_PREFERRED_TYPE(
bool)
419 unsigned HasFunctionName : 1;
423 LLVM_PREFERRED_TYPE(
bool)
424 unsigned IsTransparent : 1;
437 LLVM_PREFERRED_TYPE(
bool)
438 unsigned HasQualifier : 1;
439 LLVM_PREFERRED_TYPE(
bool)
440 unsigned HasTemplateKWAndArgsInfo : 1;
441 LLVM_PREFERRED_TYPE(
bool)
442 unsigned HasFoundDecl : 1;
443 LLVM_PREFERRED_TYPE(
bool)
444 unsigned HadMultipleCandidates : 1;
445 LLVM_PREFERRED_TYPE(
bool)
446 unsigned RefersToEnclosingVariableOrCapture : 1;
447 LLVM_PREFERRED_TYPE(
bool)
448 unsigned CapturedByCopyInLambdaWithExplicitObjectParameter : 1;
449 LLVM_PREFERRED_TYPE(NonOdrUseReason)
450 unsigned NonOdrUseReason : 2;
451 LLVM_PREFERRED_TYPE(
bool)
452 unsigned IsImmediateEscalating : 1;
466 llvm::APFloat::S_MaxSemantics < 32,
467 "Too many Semantics enum values to fit in bitfield of size 5");
468 LLVM_PREFERRED_TYPE(llvm::APFloat::Semantics)
469 unsigned Semantics : 5;
470 LLVM_PREFERRED_TYPE(
bool)
471 unsigned IsExact : 1;
489 unsigned CharByteWidth : 3;
491 LLVM_PREFERRED_TYPE(
bool)
492 unsigned IsPascal : 1;
496 unsigned NumConcatenated;
517 LLVM_PREFERRED_TYPE(
bool)
518 unsigned CanOverflow : 1;
523 LLVM_PREFERRED_TYPE(
bool)
524 unsigned HasFPFeatures : 1;
537 LLVM_PREFERRED_TYPE(
bool)
558 unsigned NumPreArgs : 1;
561 LLVM_PREFERRED_TYPE(
bool)
562 unsigned UsesADL : 1;
565 LLVM_PREFERRED_TYPE(
bool)
566 unsigned HasFPFeatures : 1;
569 LLVM_PREFERRED_TYPE(
bool)
570 unsigned IsCoroElideSafe : 1;
574 LLVM_PREFERRED_TYPE(
bool)
575 unsigned ExplicitObjectMemFunUsingMemberSyntax : 1;
579 LLVM_PREFERRED_TYPE(
bool)
580 unsigned HasTrailingSourceLoc : 1;
593 LLVM_PREFERRED_TYPE(
bool)
594 unsigned IsArrow : 1;
598 LLVM_PREFERRED_TYPE(
bool)
599 unsigned HasQualifier : 1;
602 LLVM_PREFERRED_TYPE(
bool)
603 unsigned HasFoundDecl : 1;
610 LLVM_PREFERRED_TYPE(
bool)
611 unsigned HasTemplateKWAndArgsInfo : 1;
615 LLVM_PREFERRED_TYPE(
bool)
616 unsigned HadMultipleCandidates : 1;
621 LLVM_PREFERRED_TYPE(NonOdrUseReason)
622 unsigned NonOdrUseReason : 2;
637 LLVM_PREFERRED_TYPE(
bool)
638 unsigned PartOfExplicitCast : 1;
641 LLVM_PREFERRED_TYPE(
bool)
642 unsigned HasFPFeatures : 1;
646 unsigned BasePathSize;
661 LLVM_PREFERRED_TYPE(
bool)
662 unsigned HasFPFeatures : 1;
666 LLVM_PREFERRED_TYPE(
bool)
667 unsigned ExcludedOverflowPattern : 1;
680 LLVM_PREFERRED_TYPE(
bool)
681 unsigned HadArrayRangeDesignator : 1;
713 unsigned NumSubExprs : 16;
714 unsigned ResultIndex : 16;
738 LLVM_PREFERRED_TYPE(
bool)
739 unsigned ProducedByFoldExpansion : 1;
761 unsigned TemplateDepth;
771 LLVM_PREFERRED_TYPE(
bool)
787 unsigned OperatorKind : 6;
791 LLVM_PREFERRED_TYPE(
bool)
792 unsigned IsReversed : 1;
802 LLVM_PREFERRED_TYPE(
bool)
803 unsigned IsReversed : 1;
813 LLVM_PREFERRED_TYPE(
bool)
837 LLVM_PREFERRED_TYPE(
bool)
838 unsigned IsImplicit : 1;
842 LLVM_PREFERRED_TYPE(
bool)
843 unsigned CapturedByCopyInLambdaWithExplicitObjectParameter : 1;
857 LLVM_PREFERRED_TYPE(
bool)
858 unsigned IsThrownVariableInScope : 1;
872 LLVM_PREFERRED_TYPE(
bool)
873 unsigned HasRewrittenInit : 1;
888 LLVM_PREFERRED_TYPE(
bool)
889 unsigned HasRewrittenInit : 1;
914 LLVM_PREFERRED_TYPE(
bool)
915 unsigned IsGlobalNew : 1;
919 LLVM_PREFERRED_TYPE(
bool)
920 unsigned IsArray : 1;
923 LLVM_PREFERRED_TYPE(
bool)
924 unsigned ShouldPassAlignment : 1;
927 LLVM_PREFERRED_TYPE(
bool)
928 unsigned ShouldPassTypeIdentity : 1;
932 LLVM_PREFERRED_TYPE(
bool)
933 unsigned UsualArrayDeleteWantsSize : 1;
936 LLVM_PREFERRED_TYPE(
bool)
937 unsigned HasInitializer : 1;
941 unsigned StoredInitializationStyle : 2;
944 LLVM_PREFERRED_TYPE(
bool)
945 unsigned IsParenTypeId : 1;
948 unsigned NumPlacementArgs;
959 LLVM_PREFERRED_TYPE(
bool)
960 unsigned GlobalDelete : 1;
963 LLVM_PREFERRED_TYPE(
bool)
964 unsigned ArrayForm : 1;
969 LLVM_PREFERRED_TYPE(
bool)
970 unsigned ArrayFormAsWritten : 1;
974 LLVM_PREFERRED_TYPE(
bool)
975 unsigned UsualArrayDeleteWantsSize : 1;
993 LLVM_PREFERRED_TYPE(
bool)
994 unsigned IsBooleanTypeTrait : 1;
998 LLVM_PREFERRED_TYPE(
bool)
1016 LLVM_PREFERRED_TYPE(
bool)
1017 unsigned HasTemplateKWAndArgsInfo : 1;
1027 LLVM_PREFERRED_TYPE(
bool)
1028 unsigned Elidable : 1;
1029 LLVM_PREFERRED_TYPE(
bool)
1030 unsigned HadMultipleCandidates : 1;
1031 LLVM_PREFERRED_TYPE(
bool)
1032 unsigned ListInitialization : 1;
1033 LLVM_PREFERRED_TYPE(
bool)
1034 unsigned StdInitListInitialization : 1;
1035 LLVM_PREFERRED_TYPE(
bool)
1036 unsigned ZeroInitialization : 1;
1038 unsigned ConstructionKind : 3;
1039 LLVM_PREFERRED_TYPE(
bool)
1040 unsigned IsImmediateEscalating : 1;
1053 LLVM_PREFERRED_TYPE(
bool)
1054 unsigned CleanupsHaveSideEffects : 1;
1079 LLVM_PREFERRED_TYPE(
bool)
1080 unsigned IsArrow : 1;
1084 LLVM_PREFERRED_TYPE(
bool)
1085 unsigned HasTemplateKWAndArgsInfo : 1;
1089 LLVM_PREFERRED_TYPE(
bool)
1090 unsigned HasFirstQualifierFoundInScope : 1;
1105 LLVM_PREFERRED_TYPE(
bool)
1106 unsigned HasTemplateKWAndArgsInfo : 1;
1114 unsigned NumResults;
1127 LLVM_PREFERRED_TYPE(
bool)
1128 unsigned RequiresADL : 1;
1131 "UnresolvedLookupExprBitfields must be <= than 4 bytes to"
1132 "avoid trashing OverloadExprBitfields::NumResults!");
1143 LLVM_PREFERRED_TYPE(
bool)
1144 unsigned IsArrow : 1;
1147 LLVM_PREFERRED_TYPE(
bool)
1148 unsigned HasUnresolvedUsing : 1;
1151 "UnresolvedMemberExprBitfields must be <= than 4 bytes to"
1152 "avoid trashing OverloadExprBitfields::NumResults!");
1161 LLVM_PREFERRED_TYPE(
bool)
1187 unsigned CaptureDefault : 2;
1191 LLVM_PREFERRED_TYPE(
bool)
1192 unsigned ExplicitParams : 1;
1195 LLVM_PREFERRED_TYPE(
bool)
1196 unsigned ExplicitResultType : 1;
1199 unsigned NumCaptures : 16;
1210 LLVM_PREFERRED_TYPE(
bool)
1211 unsigned IsSatisfied : 1;
1237 LLVM_PREFERRED_TYPE(
bool)
1260 unsigned TransformedExpressions : 31;
1262 LLVM_PREFERRED_TYPE(
bool)
1263 unsigned FullySubstituted : 1;
1274 LLVM_PREFERRED_TYPE(
bool)
1275 unsigned IsImplicit : 1;
1285 unsigned IsExpressibleAsConstantInitializer : 1;
1294 LLVM_PREFERRED_TYPE(
bool)
1295 unsigned ShouldCopy : 1;
1309 LLVM_PREFERRED_TYPE(
bool)
1310 unsigned IsUnique : 1;
1325 LLVM_PREFERRED_TYPE(
bool)
1326 unsigned HasFPFeatures : 1;
1421 unsigned alignment = 8);
1424 unsigned alignment = 8) {
1425 return operator new(
bytes, *
C, alignment);
1428 void *
operator new(
size_t bytes,
void *mem)
noexcept {
return mem; }
1432 void operator delete(
void *,
size_t)
noexcept {}
1433 void operator delete(
void *,
void *)
noexcept {}
1454 template<
typename T,
typename TPtr = T *,
typename StmtPtr = Stmt *>
1456 : llvm::iterator_adaptor_base<CastIterator<T, TPtr, StmtPtr>, StmtPtr *,
1457 std::random_access_iterator_tag, TPtr> {
1458 using Base =
typename CastIterator::iterator_adaptor_base;
1464 return cast_or_null<T>(*this->I);
1469 template <
typename T>
1477 static bool StatisticsEnabled;
1491 static_assert(
sizeof(*this) <= 8,
1492 "changing bitfields changed sizeof(Stmt)");
1493 static_assert(
sizeof(*this) %
alignof(
void *) == 0,
1494 "Insufficient alignment!");
1534 static
std::tuple<
bool, const
Attr *, const
Attr *>
1553 StringRef NewlineSymbol =
"\n",
1557 unsigned Indentation = 0,
1558 StringRef NewlineSymbol =
"\n",
1573 return const_cast<Stmt *
>(
this)->IgnoreContainers(IgnoreCaptured);
1578 return const_cast<Stmt*
>(
1579 const_cast<const Stmt*
>(
this)->stripLabelLikeStatements());
1621 bool Canonical,
bool ProfileLambdaExpr =
false)
const;
1643 :
Stmt(DeclStmtClass), DG(dg), StartLoc(startLoc), EndLoc(endLoc) {}
1666 return T->getStmtClass() == DeclStmtClass;
1712 :
Stmt(NullStmtClass) {
1731 return T->getStmtClass() == NullStmtClass;
1744class CompoundStmt final
1746 private llvm::TrailingObjects<CompoundStmt, Stmt *, FPOptionsOverride> {
1748 friend TrailingObjects;
1765 *getTrailingObjects<FPOptionsOverride>() = F;
1768 size_t numTrailingObjects(OverloadToken<Stmt *>)
const {
1773 static CompoundStmt *
Create(
const ASTContext &
C, ArrayRef<Stmt *> Stmts,
1774 FPOptionsOverride FPFeatures, SourceLocation LB,
1781 :
Stmt(CompoundStmtClass), LBraceLoc(Loc), RBraceLoc(EndLoc) {
1788 bool HasFPFeatures);
1798 return *getTrailingObjects<FPOptionsOverride>();
1826 return getTrailingObjects<Stmt *>();
1850 std::reverse_iterator<const_body_iterator>;
1867 return T->getStmtClass() == CompoundStmtClass;
1917 return T->getStmtClass() == CaseStmtClass ||
1918 T->getStmtClass() == DefaultStmtClass;
1926 private llvm::TrailingObjects<CaseStmt, Stmt *, SourceLocation> {
1927 friend TrailingObjects;
1944 enum { LhsOffset = 0, SubStmtOffsetFromRhs = 1 };
1945 enum { NumMandatoryStmtPtr = 2 };
1947 unsigned numTrailingObjects(OverloadToken<Stmt *>)
const {
1951 unsigned lhsOffset()
const {
return LhsOffset; }
1953 unsigned subStmtOffset()
const {
return rhsOffset() + SubStmtOffsetFromRhs; }
1959 :
SwitchCase(CaseStmtClass, caseLoc, colonLoc) {
1961 bool IsGNURange = rhs !=
nullptr;
2005 "setEllipsisLoc but this is not a case stmt of the form LHS ... RHS!");
2006 *getTrailingObjects<SourceLocation>() = L;
2010 return reinterpret_cast<Expr *
>(getTrailingObjects<Stmt *>()[lhsOffset()]);
2014 return reinterpret_cast<Expr *
>(getTrailingObjects<Stmt *>()[lhsOffset()]);
2018 getTrailingObjects<Stmt *>()[lhsOffset()] =
reinterpret_cast<Stmt *
>(Val);
2023 getTrailingObjects<Stmt *>()[rhsOffset()])
2029 getTrailingObjects<Stmt *>()[rhsOffset()])
2035 "setRHS but this is not a case stmt of the form LHS ... RHS!");
2036 getTrailingObjects<Stmt *>()[rhsOffset()] =
reinterpret_cast<Stmt *
>(Val);
2041 return getTrailingObjects<Stmt *>()[subStmtOffset()];
2045 getTrailingObjects<Stmt *>()[subStmtOffset()] = S;
2051 const CaseStmt *CS =
this;
2052 while (
const auto *CS2 = dyn_cast<CaseStmt>(CS->
getSubStmt()))
2059 return T->getStmtClass() == CaseStmtClass;
2065 getTrailingObjects<Stmt *>() +
2066 numTrailingObjects(OverloadToken<Stmt *>()));
2071 getTrailingObjects<Stmt *>() +
2072 numTrailingObjects(OverloadToken<Stmt *>()));
2081 :
SwitchCase(DefaultStmtClass, DL,
CL), SubStmt(substmt) {}
2096 return SubStmt->getEndLoc();
2100 return T->getStmtClass() == DefaultStmtClass;
2112 if (
const auto *CS = dyn_cast<CaseStmt>(
this))
2113 return CS->getEndLoc();
2114 else if (
const auto *DS = dyn_cast<DefaultStmt>(
this))
2115 return DS->getEndLoc();
2116 llvm_unreachable(
"SwitchCase is neither a CaseStmt nor a DefaultStmt!");
2120 if (
auto *CS = dyn_cast<CaseStmt>(
this))
2121 return CS->getSubStmt();
2122 else if (
auto *DS = dyn_cast<DefaultStmt>(
this))
2123 return DS->getSubStmt();
2124 llvm_unreachable(
"SwitchCase is neither a CaseStmt nor a DefaultStmt!");
2145 return T->getStmtClass() >= firstValueStmtConstant &&
2146 T->getStmtClass() <= lastValueStmtConstant;
2155 bool SideEntry =
false;
2160 :
ValueStmt(LabelStmtClass), TheDecl(D), SubStmt(substmt) {
2186 return const_cast<Stmt *
>(
2187 const_cast<const LabelStmt *
>(
this)->getInnermostLabeledStmt());
2197 return T->getStmtClass() == LabelStmtClass;
2207class AttributedStmt final
2209 private llvm::TrailingObjects<AttributedStmt, const Attr *> {
2211 friend TrailingObjects;
2217 :
ValueStmt(AttributedStmtClass), SubStmt(SubStmt) {
2220 llvm::copy(Attrs, getAttrArrayPtr());
2227 std::fill_n(getAttrArrayPtr(), NumAttrs,
nullptr);
2230 const Attr *
const *getAttrArrayPtr()
const {
return getTrailingObjects(); }
2231 const Attr **getAttrArrayPtr() {
return getTrailingObjects(); }
2234 static AttributedStmt *
Create(
const ASTContext &
C, SourceLocation Loc,
2235 ArrayRef<const Attr *> Attrs,
Stmt *SubStmt);
2238 static AttributedStmt *
CreateEmpty(
const ASTContext &
C,
unsigned NumAttrs);
2258 return T->getStmtClass() == AttributedStmtClass;
2265 private llvm::TrailingObjects<IfStmt, Stmt *, SourceLocation> {
2266 friend TrailingObjects;
2290 enum { InitOffset = 0, ThenOffsetFromCond = 1, ElseOffsetFromCond = 2 };
2291 enum { NumMandatoryStmtPtr = 2 };
2295 unsigned numTrailingObjects(OverloadToken<Stmt *>)
const {
2300 unsigned numTrailingObjects(OverloadToken<SourceLocation>)
const {
2304 unsigned initOffset()
const {
return InitOffset; }
2305 unsigned varOffset()
const {
return InitOffset +
hasInitStorage(); }
2306 unsigned condOffset()
const {
2309 unsigned thenOffset()
const {
return condOffset() + ThenOffsetFromCond; }
2310 unsigned elseOffset()
const {
return condOffset() + ElseOffsetFromCond; }
2318 explicit IfStmt(
EmptyShell Empty,
bool HasElse,
bool HasVar,
bool HasInit);
2326 Stmt *Else =
nullptr);
2343 return reinterpret_cast<Expr *
>(getTrailingObjects<Stmt *>()[condOffset()]);
2347 return reinterpret_cast<Expr *
>(getTrailingObjects<Stmt *>()[condOffset()]);
2351 getTrailingObjects<Stmt *>()[condOffset()] =
reinterpret_cast<Stmt *
>(
Cond);
2354 Stmt *
getThen() {
return getTrailingObjects<Stmt *>()[thenOffset()]; }
2356 return getTrailingObjects<Stmt *>()[thenOffset()];
2360 getTrailingObjects<Stmt *>()[thenOffset()] = Then;
2364 return hasElseStorage() ? getTrailingObjects<Stmt *>()[elseOffset()]
2369 return hasElseStorage() ? getTrailingObjects<Stmt *>()[elseOffset()]
2375 "This if statement has no storage for an else statement!");
2376 getTrailingObjects<Stmt *>()[elseOffset()] = Else;
2400 getTrailingObjects<Stmt *>()[varOffset()])
2406 getTrailingObjects<Stmt *>()[varOffset()])
2412 getTrailingObjects<Stmt *>()[varOffset()] = CondVar;
2416 return hasInitStorage() ? getTrailingObjects<Stmt *>()[initOffset()]
2421 return hasInitStorage() ? getTrailingObjects<Stmt *>()[initOffset()]
2427 "This if statement has no storage for an init statement!");
2428 getTrailingObjects<Stmt *>()[initOffset()] =
Init;
2441 "This if statement has no storage for an else statement!");
2442 *getTrailingObjects<SourceLocation>() = ElseLoc;
2463 IfStmtBits.Kind =
static_cast<unsigned>(Kind);
2495 getTrailingObjects<Stmt *>() +
2496 numTrailingObjects(OverloadToken<Stmt *>()));
2504 getTrailingObjects<Stmt *>() +
2505 numTrailingObjects(OverloadToken<Stmt *>()));
2509 return T->getStmtClass() == IfStmtClass;
2514class SwitchStmt final :
public Stmt,
2515 private llvm::TrailingObjects<SwitchStmt, Stmt *> {
2516 friend TrailingObjects;
2538 enum { InitOffset = 0, BodyOffsetFromCond = 1 };
2539 enum { NumMandatoryStmtPtr = 2 };
2543 unsigned numTrailingStatements()
const {
2547 unsigned initOffset()
const {
return InitOffset; }
2548 unsigned varOffset()
const {
return InitOffset +
hasInitStorage(); }
2549 unsigned condOffset()
const {
2552 unsigned bodyOffset()
const {
return condOffset() + BodyOffsetFromCond; }
2579 return reinterpret_cast<Expr *
>(getTrailingObjects()[condOffset()]);
2583 return reinterpret_cast<Expr *
>(getTrailingObjects()[condOffset()]);
2587 getTrailingObjects()[condOffset()] =
reinterpret_cast<Stmt *
>(
Cond);
2591 const Stmt *
getBody()
const {
return getTrailingObjects()[bodyOffset()]; }
2593 void setBody(
Stmt *Body) { getTrailingObjects()[bodyOffset()] = Body; }
2596 return hasInitStorage() ? getTrailingObjects()[initOffset()] :
nullptr;
2600 return hasInitStorage() ? getTrailingObjects()[initOffset()] :
nullptr;
2605 "This switch statement has no storage for an init statement!");
2606 getTrailingObjects()[initOffset()] =
Init;
2631 ?
static_cast<DeclStmt *
>(getTrailingObjects()[varOffset()])
2637 ?
static_cast<DeclStmt *
>(getTrailingObjects()[varOffset()])
2643 getTrailingObjects()[varOffset()] = CondVar;
2664 "case/default already added to a switch");
2688 getTrailingObjects() + numTrailingStatements());
2693 getTrailingObjects() + numTrailingStatements());
2697 return T->getStmtClass() == SwitchStmtClass;
2702class WhileStmt final :
public Stmt,
2703 private llvm::TrailingObjects<WhileStmt, Stmt *> {
2704 friend TrailingObjects;
2721 enum { VarOffset = 0, BodyOffsetFromCond = 1 };
2722 enum { NumMandatoryStmtPtr = 2 };
2726 unsigned varOffset()
const {
return VarOffset; }
2727 unsigned condOffset()
const {
return VarOffset +
hasVarStorage(); }
2728 unsigned bodyOffset()
const {
return condOffset() + BodyOffsetFromCond; }
2730 unsigned numTrailingStatements()
const {
2756 return reinterpret_cast<Expr *
>(getTrailingObjects()[condOffset()]);
2760 return reinterpret_cast<Expr *
>(getTrailingObjects()[condOffset()]);
2764 getTrailingObjects()[condOffset()] =
reinterpret_cast<Stmt *
>(
Cond);
2768 const Stmt *
getBody()
const {
return getTrailingObjects()[bodyOffset()]; }
2770 void setBody(
Stmt *Body) { getTrailingObjects()[bodyOffset()] = Body; }
2793 ?
static_cast<DeclStmt *
>(getTrailingObjects()[varOffset()])
2799 ?
static_cast<DeclStmt *
>(getTrailingObjects()[varOffset()])
2805 getTrailingObjects()[varOffset()] = CondVar;
2822 return T->getStmtClass() == WhileStmtClass;
2828 getTrailingObjects() + numTrailingStatements());
2833 getTrailingObjects() + numTrailingStatements());
2839 enum { BODY, COND, END_EXPR };
2840 Stmt *SubExprs[END_EXPR];
2847 :
Stmt(DoStmtClass), WhileLoc(WL), RParenLoc(RP) {
2858 return reinterpret_cast<Expr *
>(SubExprs[COND]);
2878 return T->getStmtClass() == DoStmtClass;
2883 return child_range(&SubExprs[0], &SubExprs[0] + END_EXPR);
2897 enum { INIT, CONDVAR, COND, INC, BODY, END_EXPR };
2898 Stmt* SubExprs[END_EXPR];
2925 return reinterpret_cast<DeclStmt*
>(SubExprs[CONDVAR]);
2929 return reinterpret_cast<DeclStmt*
>(SubExprs[CONDVAR]);
2933 SubExprs[CONDVAR] = CondVar;
2961 return T->getStmtClass() == ForStmtClass;
2966 return child_range(&SubExprs[0], &SubExprs[0]+END_EXPR);
2981 :
Stmt(GotoStmtClass), Label(label), LabelLoc(LL) {
3000 return T->getStmtClass() == GotoStmtClass;
3020 :
Stmt(IndirectGotoStmtClass), StarLoc(starLoc) {
3036 return reinterpret_cast<const Expr *
>(Target);
3051 return T->getStmtClass() == IndirectGotoStmtClass;
3120 return Class == ContinueStmtClass ||
Class == BreakStmtClass;
3136 return T->getStmtClass() == ContinueStmtClass;
3152 return T->getStmtClass() == BreakStmtClass;
3164class ReturnStmt final
3166 private llvm::TrailingObjects<ReturnStmt, const VarDecl *> {
3167 friend TrailingObjects;
3176 bool hasNRVOCandidate()
const {
return ReturnStmtBits.HasNRVOCandidate; }
3187 const VarDecl *NRVOCandidate);
3203 return hasNRVOCandidate() ? *getTrailingObjects() :
nullptr;
3210 assert(hasNRVOCandidate() &&
3211 "This return statement has no storage for an NRVO candidate!");
3212 *getTrailingObjects() = Var;
3220 return RetExpr ? RetExpr->getEndLoc() :
getReturnLoc();
3224 return T->getStmtClass() == ReturnStmtClass;
3264 assert(S &&
"defer body must not be null");
3304 unsigned numoutputs,
unsigned numinputs,
unsigned numclobbers)
3331 llvm::function_ref<void(
const Stmt *, StringRef)>;
3338 std::string *GCCReg =
nullptr)
const;
3378 return T->getStmtClass() == GCCAsmStmtClass ||
3379 T->getStmtClass() == MSAsmStmtClass;
3459 Expr **Constraints =
nullptr;
3460 Expr **Clobbers =
nullptr;
3462 unsigned NumLabels = 0;
3466 bool isvolatile,
unsigned numoutputs,
unsigned numinputs,
3468 Expr *asmstr,
unsigned numclobbers,
Expr **clobbers,
3507 : MyKind(
Operand), Str(S), OperandNo(OpNo),
3521 assert(
isOperand() &&
"Range is currently used only for Operands.");
3547 return II->getName();
3555 return Constraints[i];
3573 return II->getName();
3599 return NumLabels > 0;
3642 void setOutputsAndInputsAndClobbers(
const ASTContext &
C,
3646 unsigned NumLabels,
Expr **Clobbers,
3666 return T->getStmtClass() == GCCAsmStmtClass;
3677 unsigned NumAsmToks = 0;
3679 Token *AsmToks =
nullptr;
3680 StringRef *Constraints =
nullptr;
3681 StringRef *Clobbers =
nullptr;
3714 return Constraints[i];
3760 return T->getStmtClass() == MSAsmStmtClass;
3779 enum { FILTER_EXPR, BLOCK };
3786 SourceLocation ExceptLoc,
3796 return reinterpret_cast<Expr*
>(Children[FILTER_EXPR]);
3812 return T->getStmtClass() == SEHExceptStmtClass;
3816class SEHFinallyStmt :
public Stmt {
3824 explicit SEHFinallyStmt(
EmptyShell E) :
Stmt(SEHFinallyStmtClass, E) {}
3847 return T->getStmtClass() == SEHFinallyStmtClass;
3859 enum { TRY = 0, HANDLER = 1 };
3870 SourceLocation TryLoc,
Stmt *TryBlock,
3899 return T->getStmtClass() == SEHTryStmtClass;
3909 :
Stmt(SEHLeaveStmtClass), LeaveLoc(LL) {}
3921 return T->getStmtClass() == SEHLeaveStmtClass;
3957 llvm::PointerIntPair<VarDecl *, 2, VariableCaptureKind> VarAndKind;
4008 unsigned NumCaptures;
4012 llvm::PointerIntPair<CapturedDecl *, 2, CapturedRegionKind> CapDeclAndKind;
4024 Stmt **getStoredStmts() {
return reinterpret_cast<Stmt **
>(
this + 1); }
4026 Stmt *
const *getStoredStmts()
const {
4027 return reinterpret_cast<Stmt *
const *
>(
this + 1);
4030 Capture *getStoredCaptures()
const;
4032 void setCapturedStmt(
Stmt *S) { getStoredStmts()[NumCaptures] = S; }
4044 unsigned NumCaptures);
4068 assert(D &&
"null RecordDecl");
4095 return getStoredCaptures() + NumCaptures;
4109 llvm::iterator_range<const_capture_init_iterator>;
4121 return reinterpret_cast<Expr **
>(getStoredStmts());
4125 return reinterpret_cast<Expr *
const *
>(getStoredStmts());
4151 return T->getStmtClass() == CapturedStmtClass;
static StringRef bytes(const std::vector< T, Allocator > &v)
static void dump(llvm::raw_ostream &OS, StringRef FunctionName, ArrayRef< CounterExpression > Expressions, ArrayRef< CounterMappingRegion > Regions)
Defines enumerations for expression traits intrinsics.
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
Defines several types used to describe C++ lambda expressions that are shared between the parser and ...
Defines the clang::LangOptions interface.
Defines an enumeration for C++ overloaded operators.
Defines the clang::SourceLocation class and associated facilities.
Defines various enumerations that describe declaration and type specifiers.
static std::pair< Stmt::Likelihood, const Attr * > getLikelihood(ArrayRef< const Attr * > Attrs)
Defines enumerations for the type traits support.
__device__ __2f16 float __ockl_bool s
__SIZE_TYPE__ size_t
The unsigned integer type of the result of the sizeof operator.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
AddrLabelExpr - The GNU address of label extension, representing &&label.
outputs_iterator begin_outputs()
void setAsmLoc(SourceLocation L)
const_outputs_iterator end_outputs() const
std::string getInputConstraint(unsigned i) const
getInputConstraint - Return the specified input constraint.
llvm::function_ref< void(const Stmt *, StringRef)> UnsupportedConstraintCallbackTy
outputs_iterator end_outputs()
const_inputs_iterator begin_inputs() const
unsigned getNumPlusOperands() const
getNumPlusOperands - Return the number of output operands that have a "+" constraint.
std::string getOutputConstraint(unsigned i) const
getOutputConstraint - Return the constraint string for the specified output operand.
AsmStmt(StmtClass SC, SourceLocation asmloc, bool issimple, bool isvolatile, unsigned numoutputs, unsigned numinputs, unsigned numclobbers)
static bool classof(const Stmt *T)
inputs_const_range inputs() const
SourceLocation getAsmLoc() const
const Expr * getInputExpr(unsigned i) const
SourceLocation getEndLoc() const LLVM_READONLY
std::string addVariableConstraints(StringRef Constraint, const Expr &AsmExpr, const TargetInfo &Target, bool EarlyClobber, UnsupportedConstraintCallbackTy UnsupportedCB, std::string *GCCReg=nullptr) const
Look at AsmExpr and if it is a variable declared as using a particular register add that as a constra...
llvm::iterator_range< inputs_iterator > inputs_range
bool isOutputPlusConstraint(unsigned i) const
isOutputPlusConstraint - Return true if the specified output constraint is a "+" constraint (which is...
unsigned getNumClobbers() const
ExprIterator outputs_iterator
const_inputs_iterator end_inputs() const
llvm::iterator_range< const_inputs_iterator > inputs_const_range
const_child_range children() const
ExprIterator inputs_iterator
bool IsSimple
True if the assembly statement does not have any input or output operands.
const Expr * getOutputExpr(unsigned i) const
outputs_const_range outputs() const
inputs_iterator end_inputs()
unsigned getNumOutputs() const
SourceLocation getBeginLoc() const LLVM_READONLY
inputs_iterator begin_inputs()
AsmStmt(StmtClass SC, EmptyShell Empty)
Build an empty inline-assembly statement.
ConstExprIterator const_outputs_iterator
ConstExprIterator const_inputs_iterator
std::string generateAsmString(const ASTContext &C) const
Assemble final IR asm string.
bool IsVolatile
If true, treat this inline assembly as having side effects.
friend class ASTStmtReader
unsigned getNumInputs() const
llvm::iterator_range< outputs_iterator > outputs_range
const_outputs_iterator begin_outputs() const
std::string getClobber(unsigned i) const
llvm::iterator_range< const_outputs_iterator > outputs_const_range
Attr - This represents one attribute.
Represents an attribute applied to a statement.
static AttributedStmt * CreateEmpty(const ASTContext &C, unsigned NumAttrs)
const Stmt * getSubStmt() const
SourceLocation getAttrLoc() const
ArrayRef< const Attr * > getAttrs() const
const_child_range children() const
friend class ASTStmtReader
static bool classof(const Stmt *T)
SourceLocation getEndLoc() const LLVM_READONLY
SourceLocation getBeginLoc() const
BreakStmt(SourceLocation BL)
static bool classof(const Stmt *T)
BreakStmt(EmptyShell Empty)
Build an empty break statement.
BreakStmt(SourceLocation CL, SourceLocation LabelLoc, LabelDecl *Target)
Represents the body of a CapturedStmt, and serves as its DeclContext.
Describes the capture of either a variable, or 'this', or variable-length array type.
bool capturesVariableByCopy() const
Determine whether this capture handles a variable by copy.
VariableCaptureKind getCaptureKind() const
Determine the kind of capture.
VarDecl * getCapturedVar() const
Retrieve the declaration of the variable being captured.
bool capturesVariableArrayType() const
Determine whether this capture handles a variable-length array type.
friend class CapturedStmt
bool capturesThis() const
Determine whether this capture handles the C++ 'this' pointer.
bool capturesVariable() const
Determine whether this capture handles a variable (by reference).
SourceLocation getLocation() const
Retrieve the source location at which the variable or 'this' was first used.
friend class ASTStmtReader
This captures a statement into a function.
unsigned capture_size() const
Retrieve the number of captures, including 'this'.
const_capture_iterator capture_begin() const
static CapturedStmt * CreateDeserialized(const ASTContext &Context, unsigned NumCaptures)
SourceLocation getEndLoc() const LLVM_READONLY
capture_init_range capture_inits()
Expr ** capture_init_iterator
Iterator that walks over the capture initialization arguments.
void setCapturedRegionKind(CapturedRegionKind Kind)
Set the captured region kind.
const_capture_init_iterator capture_init_begin() const
const Capture * const_capture_iterator
CapturedDecl * getCapturedDecl()
Retrieve the outlined function declaration.
SourceRange getSourceRange() const LLVM_READONLY
capture_iterator capture_end() const
Retrieve an iterator pointing past the end of the sequence of captures.
const RecordDecl * getCapturedRecordDecl() const
Retrieve the record declaration for captured variables.
llvm::iterator_range< const_capture_init_iterator > const_capture_init_range
Stmt * getCapturedStmt()
Retrieve the statement being captured.
llvm::iterator_range< capture_init_iterator > capture_init_range
Capture * capture_iterator
An iterator that walks over the captures.
llvm::iterator_range< capture_iterator > capture_range
bool capturesVariable(const VarDecl *Var) const
True if this variable has been captured.
static bool classof(const Stmt *T)
capture_init_iterator capture_init_begin()
Retrieve the first initialization argument.
void setCapturedDecl(CapturedDecl *D)
Set the outlined function declaration.
capture_iterator capture_begin()
Retrieve an iterator pointing to the first capture.
const_capture_init_iterator capture_init_end() const
SourceLocation getBeginLoc() const LLVM_READONLY
void setCapturedRecordDecl(RecordDecl *D)
Set the record declaration for captured variables.
friend class ASTStmtReader
llvm::iterator_range< const_capture_iterator > capture_const_range
capture_init_iterator capture_init_end()
Retrieve the iterator pointing one past the last initialization argument.
Expr *const * const_capture_init_iterator
Const iterator that walks over the capture initialization arguments.
const Stmt * getCapturedStmt() const
capture_const_range captures() const
CapturedRegionKind getCapturedRegionKind() const
Retrieve the captured region kind.
VariableCaptureKind
The different capture forms: by 'this', by reference, capture for variable-length array type etc.
const_capture_init_range capture_inits() const
const Expr * getRHS() const
const_child_range children() const
SourceLocation getBeginLoc() const
void setEllipsisLoc(SourceLocation L)
Set the location of the ... in a case statement of the form LHS ... RHS.
static bool classof(const Stmt *T)
bool caseStmtIsGNURange() const
True if this case statement is of the form case LHS ... RHS, which is a GNU extension.
const Expr * getLHS() const
SourceLocation getEllipsisLoc() const
Get the location of the ... in a case statement of the form LHS ... RHS.
void setCaseLoc(SourceLocation L)
SourceLocation getCaseLoc() const
static CaseStmt * CreateEmpty(const ASTContext &Ctx, bool CaseStmtIsGNURange)
Build an empty case statement.
const Stmt * getSubStmt() const
SourceLocation getEndLoc() const LLVM_READONLY
Represents a byte-granular source range.
CompoundStmt - This represents a group of statements like { stmt stmt }.
static bool classof(const Stmt *T)
body_const_range body() const
Stmt *const * const_body_iterator
const_reverse_body_iterator body_rend() const
llvm::iterator_range< const_body_iterator > body_const_range
std::reverse_iterator< body_iterator > reverse_body_iterator
reverse_body_iterator body_rbegin()
llvm::iterator_range< body_iterator > body_range
std::reverse_iterator< const_body_iterator > const_reverse_body_iterator
FPOptionsOverride getStoredFPFeatures() const
Get FPOptionsOverride from trailing storage.
const Stmt * body_front() const
SourceLocation getBeginLoc() const
static CompoundStmt * CreateEmpty(const ASTContext &C, unsigned NumStmts, bool HasFPFeatures)
SourceLocation getLBracLoc() const
body_iterator body_begin()
SourceLocation getEndLoc() const
bool hasStoredFPFeatures() const
const_child_range children() const
CompoundStmt(SourceLocation Loc, SourceLocation EndLoc)
reverse_body_iterator body_rend()
CompoundStmt(SourceLocation Loc)
const_body_iterator body_begin() const
const Stmt * body_back() const
friend class ASTStmtReader
const_reverse_body_iterator body_rbegin() const
FPOptionsOverride getStoredFPFeaturesOrDefault() const
Get the store FPOptionsOverride or default if not stored.
SourceLocation getRBracLoc() const
const_body_iterator body_end() const
ContinueStmt(EmptyShell Empty)
Build an empty continue statement.
ContinueStmt(SourceLocation CL)
static bool classof(const Stmt *T)
ContinueStmt(SourceLocation CL, SourceLocation LabelLoc, LabelDecl *Target)
Decl *const * const_iterator
DeclStmt - Adaptor class for mixing declarations with statements and expressions.
std::reverse_iterator< decl_iterator > reverse_decl_iterator
llvm::iterator_range< decl_iterator > decl_range
const_child_range children() const
SourceLocation getEndLoc() const
const DeclGroupRef getDeclGroup() const
DeclStmt(EmptyShell Empty)
Build an empty declaration statement.
bool isSingleDecl() const
isSingleDecl - This method returns true if this DeclStmt refers to a single Decl.
const_decl_iterator decl_begin() const
void setStartLoc(SourceLocation L)
DeclGroupRef::const_iterator const_decl_iterator
static bool classof(const Stmt *T)
void setEndLoc(SourceLocation L)
decl_iterator decl_begin()
void setDeclGroup(DeclGroupRef DGR)
const Decl * getSingleDecl() const
decl_const_range decls() const
const_decl_iterator decl_end() const
DeclGroupRef::iterator decl_iterator
SourceLocation getBeginLoc() const LLVM_READONLY
DeclGroupRef getDeclGroup()
reverse_decl_iterator decl_rend()
llvm::iterator_range< const_decl_iterator > decl_const_range
reverse_decl_iterator decl_rbegin()
DeclStmt(DeclGroupRef dg, SourceLocation startLoc, SourceLocation endLoc)
Decl - This represents one declaration (or definition), e.g.
const Stmt * getSubStmt() const
SourceLocation getEndLoc() const LLVM_READONLY
void setDefaultLoc(SourceLocation L)
SourceLocation getDefaultLoc() const
DefaultStmt(EmptyShell Empty)
Build an empty default statement.
static bool classof(const Stmt *T)
DefaultStmt(SourceLocation DL, SourceLocation CL, Stmt *substmt)
const_child_range children() const
SourceLocation getBeginLoc() const
const Stmt * getBody() const
SourceLocation getEndLoc() const
SourceLocation getBeginLoc() const
void setDeferLoc(SourceLocation DeferLoc)
const_child_range children() const
SourceLocation getDeferLoc() const
static bool classof(const Stmt *S)
static DeferStmt * CreateEmpty(ASTContext &Context, EmptyShell Empty)
friend class ASTStmtReader
void setWhileLoc(SourceLocation L)
SourceLocation getBeginLoc() const
void setDoLoc(SourceLocation L)
SourceLocation getEndLoc() const
SourceLocation getWhileLoc() const
static bool classof(const Stmt *T)
const_child_range children() const
DoStmt(EmptyShell Empty)
Build an empty do-while statement.
SourceLocation getDoLoc() const
void setRParenLoc(SourceLocation L)
SourceLocation getRParenLoc() const
const Stmt * getBody() const
DoStmt(Stmt *Body, Expr *Cond, SourceLocation DL, SourceLocation WL, SourceLocation RP)
const Expr * getCond() const
This represents one expression.
Represents difference between two FPOptions values.
ForStmt(const ASTContext &C, Stmt *Init, Expr *Cond, VarDecl *condVar, Expr *Inc, Stmt *Body, SourceLocation FL, SourceLocation LP, SourceLocation RP)
VarDecl * getConditionVariable() const
Retrieve the variable declared in this "for" statement, if any.
SourceLocation getEndLoc() const
SourceLocation getRParenLoc() const
const_child_range children() const
const DeclStmt * getConditionVariableDeclStmt() const
void setForLoc(SourceLocation L)
const Expr * getInc() const
ForStmt(EmptyShell Empty)
Build an empty for statement.
void setLParenLoc(SourceLocation L)
const Expr * getCond() const
void setConditionVariableDeclStmt(DeclStmt *CondVar)
SourceLocation getBeginLoc() const
static bool classof(const Stmt *T)
const Stmt * getInit() const
void setConditionVariable(const ASTContext &C, VarDecl *V)
SourceLocation getForLoc() const
friend class ASTStmtReader
const Stmt * getBody() const
SourceLocation getLParenLoc() const
DeclStmt * getConditionVariableDeclStmt()
If this ForStmt has a condition variable, return the faux DeclStmt associated with the creation of th...
void setRParenLoc(SourceLocation L)
AsmStringPiece(const std::string &S)
const std::string & getString() const
unsigned getOperandNo() const
CharSourceRange getRange() const
AsmStringPiece(unsigned OpNo, const std::string &S, SourceLocation Begin, SourceLocation End)
char getModifier() const
getModifier - Get the modifier for this operand, if present.
const Expr * getInputExpr(unsigned i) const
const_labels_iterator end_labels() const
std::string getOutputConstraint(unsigned i) const
getOutputConstraint - Return the constraint string for the specified output operand.
unsigned getNumLabels() const
std::string generateAsmString(const ASTContext &C) const
Assemble final IR asm string.
SourceLocation getRParenLoc() const
std::string getAsmString() const
labels_const_range labels() const
llvm::iterator_range< labels_iterator > labels_range
Expr * getInputConstraintExpr(unsigned i)
void setAsmStringExpr(Expr *E)
labels_iterator begin_labels()
IdentifierInfo * getInputIdentifier(unsigned i) const
ConstCastIterator< AddrLabelExpr > const_labels_iterator
CastIterator< AddrLabelExpr > labels_iterator
const Expr * getClobberExpr(unsigned i) const
std::string getInputConstraint(unsigned i) const
getInputConstraint - Return the specified input constraint.
labels_iterator end_labels()
const Expr * getOutputConstraintExpr(unsigned i) const
StringRef getLabelName(unsigned i) const
unsigned AnalyzeAsmString(SmallVectorImpl< AsmStringPiece > &Pieces, const ASTContext &C, unsigned &DiagOffs) const
AnalyzeAsmString - Analyze the asm string of the current asm, decomposing it into pieces.
void setRParenLoc(SourceLocation L)
void setInputExpr(unsigned i, Expr *E)
Expr * getAsmStringExpr()
std::string getClobber(unsigned i) const
static bool classof(const Stmt *T)
StringRef getInputName(unsigned i) const
SourceLocation getEndLoc() const LLVM_READONLY
StringRef getOutputName(unsigned i) const
const_labels_iterator begin_labels() const
GCCAsmStmt(EmptyShell Empty)
Build an empty inline-assembly statement.
IdentifierInfo * getLabelIdentifier(unsigned i) const
const Expr * getInputConstraintExpr(unsigned i) const
IdentifierInfo * getOutputIdentifier(unsigned i) const
const Expr * getAsmStringExpr() const
Expr * getOutputExpr(unsigned i)
llvm::iterator_range< const_labels_iterator > labels_const_range
GCCAsmStmt(const ASTContext &C, SourceLocation asmloc, bool issimple, bool isvolatile, unsigned numoutputs, unsigned numinputs, IdentifierInfo **names, Expr **constraints, Expr **exprs, Expr *asmstr, unsigned numclobbers, Expr **clobbers, unsigned numlabels, SourceLocation rparenloc)
Expr * getOutputConstraintExpr(unsigned i)
Expr * getClobberExpr(unsigned i)
int getNamedOperand(StringRef SymbolicName) const
getNamedOperand - Given a symbolic operand reference like %[foo], translate this into a numeric value...
friend class ASTStmtReader
const Expr * getOutputExpr(unsigned i) const
SourceLocation getBeginLoc() const LLVM_READONLY
Expr * getInputExpr(unsigned i)
AddrLabelExpr * getLabelExpr(unsigned i) const
static std::string ExtractStringFromGCCAsmStmtComponent(const Expr *E)
GotoStmt(LabelDecl *label, SourceLocation GL, SourceLocation LL)
SourceLocation getLabelLoc() const
SourceLocation getGotoLoc() const
void setLabel(LabelDecl *D)
GotoStmt(EmptyShell Empty)
Build an empty goto statement.
void setLabelLoc(SourceLocation L)
LabelDecl * getLabel() const
SourceLocation getEndLoc() const
const_child_range children() const
static bool classof(const Stmt *T)
void setGotoLoc(SourceLocation L)
SourceLocation getBeginLoc() const
One of these records is kept for each identifier that is lexed.
bool hasElseStorage() const
True if this IfStmt has storage for an else statement.
const Stmt * getElse() const
void setConditionVariableDeclStmt(DeclStmt *CondVar)
void setLParenLoc(SourceLocation Loc)
SourceLocation getIfLoc() const
void setConditionVariable(const ASTContext &Ctx, VarDecl *V)
Set the condition variable for this if statement.
bool hasVarStorage() const
True if this IfStmt has storage for a variable declaration.
const DeclStmt * getConditionVariableDeclStmt() const
IfStatementKind getStatementKind() const
SourceLocation getElseLoc() const
bool isNonNegatedConsteval() const
SourceLocation getLParenLoc() const
static bool classof(const Stmt *T)
const Stmt * getThen() const
const Expr * getCond() const
const VarDecl * getConditionVariable() const
void setElseLoc(SourceLocation ElseLoc)
const Stmt * getInit() const
static IfStmt * CreateEmpty(const ASTContext &Ctx, bool HasElse, bool HasVar, bool HasInit)
Create an empty IfStmt optionally with storage for an else statement, condition variable and init exp...
bool hasInitStorage() const
True if this IfStmt has the storage for an init statement.
void setStatementKind(IfStatementKind Kind)
std::optional< const Stmt * > getNondiscardedCase(const ASTContext &Ctx) const
If this is an 'if constexpr', determine which substatement will be taken.
bool isObjCAvailabilityCheck() const
bool isNegatedConsteval() const
DeclStmt * getConditionVariableDeclStmt()
If this IfStmt has a condition variable, return the faux DeclStmt associated with the creation of tha...
const_child_range children() const
SourceLocation getRParenLoc() const
void setRParenLoc(SourceLocation Loc)
SourceLocation getBeginLoc() const
SourceLocation getEndLoc() const LLVM_READONLY
void setIfLoc(SourceLocation IfLoc)
VarDecl * getConditionVariable()
Retrieve the variable declared in this "if" statement, if any.
SourceLocation getEndLoc() const LLVM_READONLY
static bool classof(const Stmt *T)
LabelDecl * getConstantTarget()
getConstantTarget - Returns the fixed target of this indirect goto, if one exists.
IndirectGotoStmt(SourceLocation gotoLoc, SourceLocation starLoc, Expr *target)
SourceLocation getGotoLoc() const
SourceLocation getBeginLoc() const
void setGotoLoc(SourceLocation L)
const_child_range children() const
const LabelDecl * getConstantTarget() const
void setStarLoc(SourceLocation L)
IndirectGotoStmt(EmptyShell Empty)
Build an empty indirect goto statement.
const Expr * getTarget() const
SourceLocation getStarLoc() const
Represents the declaration of a label.
Stmt * getInnermostLabeledStmt()
LabelStmt(SourceLocation IL, LabelDecl *D, Stmt *substmt)
Build a label statement.
static bool classof(const Stmt *T)
LabelDecl * getDecl() const
LabelStmt(EmptyShell Empty)
Build an empty label statement.
SourceLocation getIdentLoc() const
void setSubStmt(Stmt *SS)
void setDecl(LabelDecl *D)
SourceLocation getBeginLoc() const
void setIdentLoc(SourceLocation L)
const_child_range children() const
const Stmt * getInnermostLabeledStmt() const
Look through nested labels and return the first non-label statement; e.g.
SourceLocation getEndLoc() const LLVM_READONLY
void setSideEntry(bool SE)
const char * getName() const
const Stmt * getSubStmt() const
SourceLocation getBeginLoc() const
LoopControlStmt(StmtClass Class, SourceLocation Loc)
LoopControlStmt(StmtClass Class, EmptyShell ES)
void setLabelDecl(LabelDecl *S)
LoopControlStmt(StmtClass Class, SourceLocation Loc, SourceLocation LabelLoc, LabelDecl *Target)
static bool classof(const Stmt *T)
SourceLocation getLabelLoc() const
LabelDecl * getLabelDecl()
const LabelDecl * getLabelDecl() const
void setLabelLoc(SourceLocation L)
const_child_range children() const
SourceLocation getKwLoc() const
void setKwLoc(SourceLocation L)
const Stmt * getNamedLoopOrSwitch() const
If this is a named break/continue, get the loop or switch statement that this targets.
bool hasLabelTarget() const
SourceLocation getEndLoc() const
const Expr * getOutputExpr(unsigned i) const
Expr * getOutputExpr(unsigned i)
ArrayRef< StringRef > getClobbers() const
SourceLocation getBeginLoc() const LLVM_READONLY
StringRef getAsmString() const
SourceLocation getLBraceLoc() const
SourceLocation getEndLoc() const
StringRef getInputConstraint(unsigned i) const
void setEndLoc(SourceLocation L)
void setInputExpr(unsigned i, Expr *E)
StringRef getOutputConstraint(unsigned i) const
ArrayRef< StringRef > getAllConstraints() const
static bool classof(const Stmt *T)
friend class ASTStmtReader
StringRef getClobber(unsigned i) const
const Expr * getInputExpr(unsigned i) const
MSAsmStmt(const ASTContext &C, SourceLocation asmloc, SourceLocation lbraceloc, bool issimple, bool isvolatile, ArrayRef< Token > asmtoks, unsigned numoutputs, unsigned numinputs, ArrayRef< StringRef > constraints, ArrayRef< Expr * > exprs, StringRef asmstr, ArrayRef< StringRef > clobbers, SourceLocation endloc)
void setLBraceLoc(SourceLocation L)
MSAsmStmt(EmptyShell Empty)
Build an empty MS-style inline-assembly statement.
std::string generateAsmString(const ASTContext &C) const
Assemble final IR asm string.
const_child_range children() const
ArrayRef< Expr * > getAllExprs() const
Expr * getInputExpr(unsigned i)
void setSemiLoc(SourceLocation L)
bool hasLeadingEmptyMacro() const
SourceLocation getBeginLoc() const
SourceLocation getSemiLoc() const
static bool classof(const Stmt *T)
NullStmt(SourceLocation L, bool hasLeadingEmptyMacro=false)
NullStmt(EmptyShell Empty)
Build an empty null statement.
const_child_range children() const
SourceLocation getEndLoc() const
Represents a struct/union/class.
void setRetValue(Expr *E)
void setReturnLoc(SourceLocation L)
SourceLocation getReturnLoc() const
static bool classof(const Stmt *T)
SourceLocation getEndLoc() const LLVM_READONLY
void setNRVOCandidate(const VarDecl *Var)
Set the variable that might be used for the named return value optimization.
SourceLocation getBeginLoc() const
const VarDecl * getNRVOCandidate() const
Retrieve the variable that might be used for the named return value optimization.
const_child_range children() const
static ReturnStmt * CreateEmpty(const ASTContext &Ctx, bool HasNRVOCandidate)
Create an empty return statement, optionally with storage for an NRVO candidate.
const Expr * getRetValue() const
const_child_range children() const
CompoundStmt * getBlock() const
SourceLocation getBeginLoc() const LLVM_READONLY
SourceLocation getExceptLoc() const
friend class ASTStmtReader
SourceLocation getEndLoc() const
static bool classof(const Stmt *T)
Expr * getFilterExpr() const
SourceLocation getBeginLoc() const LLVM_READONLY
SourceLocation getEndLoc() const
const_child_range children() const
SourceLocation getFinallyLoc() const
static bool classof(const Stmt *T)
friend class ASTStmtReader
CompoundStmt * getBlock() const
SourceLocation getLeaveLoc() const
SourceLocation getEndLoc() const LLVM_READONLY
SEHLeaveStmt(EmptyShell Empty)
Build an empty __leave statement.
SEHLeaveStmt(SourceLocation LL)
SourceLocation getBeginLoc() const LLVM_READONLY
static bool classof(const Stmt *T)
void setLeaveLoc(SourceLocation L)
const_child_range children() const
const_child_range children() const
CompoundStmt * getTryBlock() const
static bool classof(const Stmt *T)
SourceLocation getTryLoc() const
SEHFinallyStmt * getFinallyHandler() const
SourceLocation getBeginLoc() const LLVM_READONLY
friend class ASTStmtReader
SourceLocation getEndLoc() const
SEHExceptStmt * getExceptHandler() const
Returns 0 if not defined.
Stmt * getHandler() const
Encodes a location in the source.
This class handles loading and caching of source files into memory.
A trivial tuple used to represent a source range.
friend class ArraySubscriptExpr
friend class MatrixSingleSubscriptExpr
friend class MatrixSubscriptExpr
friend class ArrayTypeTraitExpr
friend class ASTStmtReader
friend class ASTStmtReader
friend class AttributedStmt
friend class BinaryOperator
friend class CXXBoolLiteralExpr
friend class CXXConstructExpr
friend class ASTStmtReader
friend class CXXDefaultArgExpr
friend class ASTStmtReader
friend class ASTStmtReader
friend class CXXDefaultInitExpr
friend class CXXDeleteExpr
friend class ASTStmtReader
friend class CXXDependentScopeMemberExpr
friend class ASTStmtReader
friend class ASTStmtWriter
friend class ASTStmtReader
friend class ASTStmtWriter
friend class ASTStmtReader
friend class ASTStmtReader
friend class CXXNoexceptExpr
friend class CXXNullPtrLiteralExpr
friend class CXXOperatorCallExpr
friend class ASTStmtReader
friend class CXXRewrittenBinaryOperator
friend class ASTStmtReader
friend class CXXScalarValueInitExpr
friend class ASTStmtReader
friend class CXXThrowExpr
friend class ASTStmtReader
friend class CXXUnresolvedConstructExpr
friend class ASTStmtReader
friend class ImplicitCastExpr
friend class CharacterLiteral
friend class ASTStmtReader
friend class CompoundStmt
friend class ASTStmtReader
friend class ConstantExpr
friend class ASTStmtWriter
friend class ASTStmtReader
friend class ConvertVectorExpr
friend class ASTStmtReader
friend class DependentScopeDeclRefExpr
friend class ASTStmtWriter
friend class ASTStmtReader
friend class BlockDeclRefExpr
friend class ParenListExpr
friend class DesignatedInitExpr
friend class PseudoObjectExpr
friend class ObjCMessageExpr
friend class ObjCDictionaryLiteral
friend class ObjCArrayLiteral
friend class CXXDependentScopeMemberExpr
friend class CXXConstructExpr
friend class OpaqueValueExpr
friend class DependentScopeDeclRefExpr
friend class CXXUnresolvedConstructExpr
friend class InitListExpr
friend class ASTStmtReader
friend class OverloadExpr
friend class OffsetOfExpr
friend class ShuffleVectorExpr
friend class ExprWithCleanups
friend class ASTStmtReader
friend class ExpressionTraitExpr
friend class ASTStmtReader
friend class FloatingLiteral
friend class GenericSelectionExpr
friend class ASTStmtReader
friend class IndirectGotoStmt
friend class ASTStmtReader
friend class InitListExpr
friend class ASTStmtWriter
friend class ASTStmtReader
friend class LoopControlStmt
friend class ASTStmtReader
friend class ASTStmtWriter
friend class ASTStmtReader
friend class ObjCIndirectCopyRestoreExpr
friend class ObjCObjectLiteral
friend class OpaqueValueExpr
friend class ASTStmtReader
friend class ASTStmtReader
friend class OverloadExpr
friend class PackIndexingExpr
friend class ASTStmtWriter
friend class ASTStmtReader
friend class ASTStmtWriter
friend class ASTStmtReader
friend class ParenListExpr
friend class ASTStmtReader
friend class PredefinedExpr
friend class ASTStmtReader
friend class PseudoObjectExpr
friend class ASTStmtReader
friend class RequiresExpr
friend class ASTStmtWriter
friend class ASTStmtReader
friend class ShuffleVectorExpr
friend class SourceLocExpr
friend class ASTStmtReader
friend class ASTStmtWriter
friend class ASTStmtReader
friend class ASTStmtReader
friend class StringLiteral
friend class ASTStmtReader
friend class SubstNonTypeTemplateParmExpr
friend class ASTStmtReader
friend class TypeTraitExpr
friend class ASTStmtWriter
friend class ASTStmtReader
friend class UnaryExprOrTypeTraitExpr
friend class UnaryOperator
friend class UnresolvedLookupExpr
friend class ASTStmtReader
friend class UnresolvedMemberExpr
friend class ASTStmtReader
friend class ASTStmtReader
Stmt - This represents one statement.
ExpressionTraitExprBitfields ExpressionTraitExprBits
LoopControlStmtBitfields LoopControlStmtBits
SourceLocation getEndLoc() const LLVM_READONLY
void ProcessODRHash(llvm::FoldingSetNodeID &ID, ODRHash &Hash) const
Calculate a unique representation for a statement that is stable across compiler invocations.
Stmt(const Stmt &)=delete
UnaryExprOrTypeTraitExprBitfields UnaryExprOrTypeTraitExprBits
CXXUnresolvedConstructExprBitfields CXXUnresolvedConstructExprBits
WhileStmtBitfields WhileStmtBits
SwitchCaseBitfields SwitchCaseBits
GenericSelectionExprBitfields GenericSelectionExprBits
ObjCObjectLiteralBitfields ObjCObjectLiteralBits
InitListExprBitfields InitListExprBits
static void EnableStatistics()
LambdaExprBitfields LambdaExprBits
AttributedStmtBitfields AttributedStmtBits
ParenListExprBitfields ParenListExprBits
ArrayOrMatrixSubscriptExprBitfields ArrayOrMatrixSubscriptExprBits
UnresolvedLookupExprBitfields UnresolvedLookupExprBits
SwitchStmtBitfields SwitchStmtBits
SubstNonTypeTemplateParmExprBitfields SubstNonTypeTemplateParmExprBits
CXXNoexceptExprBitfields CXXNoexceptExprBits
ParenExprBitfields ParenExprBits
StmtIterator child_iterator
Child Iterators: All subclasses must implement 'children' to permit easy iteration over the substatem...
CXXRewrittenBinaryOperatorBitfields CXXRewrittenBinaryOperatorBits
CallExprBitfields CallExprBits
Stmt * stripLabelLikeStatements()
void printPretty(raw_ostream &OS, PrinterHelper *Helper, const PrintingPolicy &Policy, unsigned Indentation=0, StringRef NewlineSymbol="\n", const ASTContext *Context=nullptr) const
CastIterator< T, const T *const, const Stmt *const > ConstCastIterator
Const iterator for iterating over Stmt * arrays that contain only T *.
const Stmt * stripLabelLikeStatements() const
Strip off all label-like statements.
ShuffleVectorExprBitfields ShuffleVectorExprBits
ExprWithCleanupsBitfields ExprWithCleanupsBits
FloatingLiteralBitfields FloatingLiteralBits
const_child_range children() const
child_iterator child_begin()
void printJson(raw_ostream &Out, PrinterHelper *Helper, const PrintingPolicy &Policy, bool AddQuotes) const
Pretty-prints in JSON format.
StmtClass getStmtClass() const
CXXScalarValueInitExprBitfields CXXScalarValueInitExprBits
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
CharacterLiteralBitfields CharacterLiteralBits
OverloadExprBitfields OverloadExprBits
CXXConstructExprBitfields CXXConstructExprBits
void printPrettyControlled(raw_ostream &OS, PrinterHelper *Helper, const PrintingPolicy &Policy, unsigned Indentation=0, StringRef NewlineSymbol="\n", const ASTContext *Context=nullptr) const
UnaryOperatorBitfields UnaryOperatorBits
static std::tuple< bool, const Attr *, const Attr * > determineLikelihoodConflict(const Stmt *Then, const Stmt *Else)
CXXDependentScopeMemberExprBitfields CXXDependentScopeMemberExprBits
GotoStmtBitfields GotoStmtBits
child_iterator child_end()
ConstCastIterator< Expr > ConstExprIterator
TypeTraitExprBitfields TypeTraitExprBits
void Profile(llvm::FoldingSetNodeID &ID, const ASTContext &Context, bool Canonical, bool ProfileLambdaExpr=false) const
Produce a unique representation of the given statement.
CXXNewExprBitfields CXXNewExprBits
SourceLocExprBitfields SourceLocExprBits
CXXNullPtrLiteralExprBitfields CXXNullPtrLiteralExprBits
CoawaitExprBitfields CoawaitBits
Stmt(StmtClass SC, EmptyShell)
Construct an empty statement.
ChooseExprBitfields ChooseExprBits
ConstantExprBitfields ConstantExprBits
llvm::iterator_range< child_iterator > child_range
DeferStmtBitfields DeferStmtBits
CompoundStmtBitfields CompoundStmtBits
RequiresExprBitfields RequiresExprBits
CXXFoldExprBitfields CXXFoldExprBits
StmtExprBitfields StmtExprBits
StringLiteralBitfields StringLiteralBits
OpaqueValueExprBitfields OpaqueValueExprBits
CastExprBitfields CastExprBits
Likelihood
The likelihood of a branch being taken.
@ LH_Unlikely
Branch has the [[unlikely]] attribute.
@ LH_None
No attribute set or branches of the IfStmt have the same attribute.
@ LH_Likely
Branch has the [[likely]] attribute.
CXXThrowExprBitfields CXXThrowExprBits
static void addStmtClass(const StmtClass s)
MemberExprBitfields MemberExprBits
PackIndexingExprBitfields PackIndexingExprBits
friend class ASTStmtWriter
ForStmtBitfields ForStmtBits
DeclRefExprBitfields DeclRefExprBits
const_child_iterator child_end() const
const char * getStmtClassName() const
ConstStmtIterator const_child_iterator
void dumpPretty(const ASTContext &Context) const
dumpPretty/printPretty - These two methods do a "pretty print" of the AST back to its original source...
CXXBoolLiteralExprBitfields CXXBoolLiteralExprBits
CXXOperatorCallExprBitfields CXXOperatorCallExprBits
CXXDefaultInitExprBitfields CXXDefaultInitExprBits
Stmt & operator=(const Stmt &)=delete
NullStmtBitfields NullStmtBits
static const Attr * getLikelihoodAttr(const Stmt *S)
Stmt * IgnoreContainers(bool IgnoreCaptured=false)
Skip no-op (attributed, compound) container stmts and skip captured stmt at the top,...
DependentScopeDeclRefExprBitfields DependentScopeDeclRefExprBits
friend class ASTStmtReader
ArrayTypeTraitExprBitfields ArrayTypeTraitExprBits
IfStmtBitfields IfStmtBits
Stmt & operator=(Stmt &&)=delete
PredefinedExprBitfields PredefinedExprBits
ConvertVectorExprBitfields ConvertVectorExprBits
int64_t getID(const ASTContext &Context) const
ReturnStmtBitfields ReturnStmtBits
LabelStmtBitfields LabelStmtBits
ObjCIndirectCopyRestoreExprBitfields ObjCIndirectCopyRestoreExprBits
SourceLocation getBeginLoc() const LLVM_READONLY
void dumpColor() const
dumpColor - same as dump(), but forces color highlighting.
BinaryOperatorBitfields BinaryOperatorBits
UnresolvedMemberExprBitfields UnresolvedMemberExprBits
PseudoObjectExprBitfields PseudoObjectExprBits
void viewAST() const
viewAST - Visualize an AST rooted at this Stmt* using GraphViz.
llvm::iterator_range< const_child_iterator > const_child_range
const_child_iterator child_begin() const
CXXDeleteExprBitfields CXXDeleteExprBits
CXXDefaultArgExprBitfields CXXDefaultArgExprBits
DoStmtBitfields DoStmtBits
CXXThisExprBitfields CXXThisExprBits
CastIterator< Expr > ExprIterator
StringLiteral - This represents a string literal expression, e.g.
SwitchCase * NextSwitchCase
A pointer to the following CaseStmt or DefaultStmt class, used by SwitchStmt.
void setColonLoc(SourceLocation L)
static bool classof(const Stmt *T)
SwitchCase(StmtClass SC, EmptyShell)
SourceLocation getKeywordLoc() const
SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
void setKeywordLoc(SourceLocation L)
const Stmt * getSubStmt() const
void setNextSwitchCase(SwitchCase *SC)
SourceLocation getColonLoc() const
SourceLocation getBeginLoc() const
const SwitchCase * getNextSwitchCase() const
SourceLocation ColonLoc
The location of the ":".
SourceLocation getEndLoc() const LLVM_READONLY
SwitchCase * getNextSwitchCase()
const Stmt * getInit() const
SourceLocation getSwitchLoc() const
void addSwitchCase(SwitchCase *SC)
void setBody(Stmt *S, SourceLocation SL)
SourceLocation getLParenLoc() const
const Expr * getCond() const
bool isAllEnumCasesCovered() const
Returns true if the SwitchStmt is a switch of an enum value and all cases have been explicitly covere...
void setSwitchLoc(SourceLocation L)
void setConditionVariableDeclStmt(DeclStmt *CondVar)
void setRParenLoc(SourceLocation Loc)
SourceLocation getEndLoc() const LLVM_READONLY
SourceLocation getRParenLoc() const
void setConditionVariable(const ASTContext &Ctx, VarDecl *VD)
Set the condition variable in this switch statement.
void setLParenLoc(SourceLocation Loc)
const Stmt * getBody() const
const VarDecl * getConditionVariable() const
static SwitchStmt * CreateEmpty(const ASTContext &Ctx, bool HasInit, bool HasVar)
Create an empty switch statement optionally with storage for an init expression and a condition varia...
const DeclStmt * getConditionVariableDeclStmt() const
bool hasVarStorage() const
True if this SwitchStmt has storage for a condition variable.
const_child_range children() const
VarDecl * getConditionVariable()
Retrieve the variable declared in this "switch" statement, if any.
SourceLocation getBeginLoc() const
bool hasInitStorage() const
True if this SwitchStmt has storage for an init statement.
SwitchCase * getSwitchCaseList()
const SwitchCase * getSwitchCaseList() const
DeclStmt * getConditionVariableDeclStmt()
If this SwitchStmt has a condition variable, return the faux DeclStmt associated with the creation of...
void setAllEnumCasesCovered()
Set a flag in the SwitchStmt indicating that if the 'switch (X)' is a switch over an enum value then ...
void setSwitchCaseList(SwitchCase *SC)
static bool classof(const Stmt *T)
Exposes information about the current target.
Token - This structure provides full information about a lexed token.
Represents a statement that could possibly have a value and type.
const Expr * getExprStmt() const
Stmt(StmtClass SC, EmptyShell)
Construct an empty statement.
static bool classof(const Stmt *T)
Represents a variable declaration or definition.
SourceLocation getWhileLoc() const
SourceLocation getRParenLoc() const
DeclStmt * getConditionVariableDeclStmt()
If this WhileStmt has a condition variable, return the faux DeclStmt associated with the creation of ...
void setLParenLoc(SourceLocation L)
VarDecl * getConditionVariable()
Retrieve the variable declared in this "while" statement, if any.
SourceLocation getEndLoc() const LLVM_READONLY
void setConditionVariable(const ASTContext &Ctx, VarDecl *V)
Set the condition variable of this while statement.
bool hasVarStorage() const
True if this WhileStmt has storage for a condition variable.
SourceLocation getLParenLoc() const
SourceLocation getBeginLoc() const
const Stmt * getBody() const
void setRParenLoc(SourceLocation L)
const VarDecl * getConditionVariable() const
void setWhileLoc(SourceLocation L)
const Expr * getCond() const
static WhileStmt * CreateEmpty(const ASTContext &Ctx, bool HasVar)
Create an empty while statement optionally with storage for a condition variable.
const DeclStmt * getConditionVariableDeclStmt() const
void setConditionVariableDeclStmt(DeclStmt *CondVar)
static bool classof(const Stmt *T)
const_child_range children() const
The JSON file list parser is used to communicate input to InstallAPI.
OverloadedOperatorKind
Enumeration specifying the different kinds of C++ overloaded operators.
ConstantResultStorageKind
Describes the kind of result that can be tail-allocated.
ArrayTypeTrait
Names for the array type traits.
ExprDependenceScope::ExprDependence ExprDependence
void initialize(TemplateInstantiationCallbackPtrs &Callbacks, const Sema &TheSema)
IfStatementKind
In an if statement, this denotes whether the statement is a constexpr or consteval if statement.
ExprObjectKind
A further classification of the kind of object referenced by an l-value or x-value.
@ Create
'create' clause, allowed on Compute and Combined constructs, plus 'data', 'enter data',...
nullptr
This class represents a compute construct, representing a 'Kind' of ‘parallel’, 'serial',...
CapturedRegionKind
The different kinds of captured statement.
UnaryExprOrTypeTrait
Names for the "expression or type" traits.
CastKind
CastKind - The kind of operation required for a conversion.
LambdaCaptureDefault
The default, if any, capture method for a lambda expression.
ExprValueKind
The categorization of expression values, currently following the C++11 scheme.
U cast(CodeGen::Address addr)
@ Class
The "class" keyword introduces the elaborated-type-specifier.
TypeTrait
Names for traits that operate specifically on types.
CXXNewInitializationStyle
Diagnostic wrappers for TextAPI types for error reporting.
Describes how types, statements, expressions, and declarations should be printed.
Iterator for iterating over Stmt * arrays that contain only T *.
typename CastIterator::iterator_adaptor_base Base
Base::value_type operator*() const
A placeholder type used to construct an empty shell of a type, that will be filled in later (e....