51 #include "llvm/ADT/DenseMap.h" 52 #include "llvm/ADT/SmallString.h" 53 #include "llvm/ADT/SmallVector.h" 54 #include "llvm/ADT/StringRef.h" 55 #include "llvm/Bitstream/BitstreamReader.h" 56 #include "llvm/Support/Casting.h" 57 #include "llvm/Support/ErrorHandling.h" 63 using namespace clang;
64 using namespace serialization;
72 llvm::BitstreamCursor &DeclsCursor;
82 std::string ReadString() {
110 : Record(Record), DeclsCursor(Cursor) {}
114 static const unsigned NumStmtFields = 1;
118 static const unsigned NumExprFields = NumStmtFields + 7;
123 unsigned NumTemplateArgs);
127 unsigned NumTemplateArgs);
129 void VisitStmt(
Stmt *S);
130 #define STMT(Type, Base) \ 131 void Visit##Type(Type *); 132 #include "clang/AST/StmtNodes.inc" 139 unsigned NumTemplateArgs) {
144 for (
unsigned i = 0;
i != NumTemplateArgs; ++
i)
151 assert(Record.
getIdx() == NumStmtFields &&
"Incorrect statement field count");
154 void ASTStmtReader::VisitNullStmt(
NullStmt *S) {
160 void ASTStmtReader::VisitCompoundStmt(
CompoundStmt *S) {
163 unsigned NumStmts = Record.
readInt();
168 S->RBraceLoc = ReadSourceLocation();
171 void ASTStmtReader::VisitSwitchCase(
SwitchCase *S) {
178 void ASTStmtReader::VisitCaseStmt(
CaseStmt *S) {
180 bool CaseStmtIsGNURange = Record.
readInt();
183 if (CaseStmtIsGNURange) {
189 void ASTStmtReader::VisitDefaultStmt(
DefaultStmt *S) {
194 void ASTStmtReader::VisitLabelStmt(
LabelStmt *S) {
196 auto *LD = ReadDeclAs<LabelDecl>();
208 uint64_t NumAttrs = Record.
readInt();
213 assert(NumAttrs == Attrs.size());
214 std::copy(Attrs.begin(), Attrs.end(), S->getAttrArrayPtr());
219 void ASTStmtReader::VisitIfStmt(
IfStmt *S) {
223 bool HasElse = Record.
readInt();
224 bool HasVar = Record.
readInt();
225 bool HasInit = Record.
readInt();
241 void ASTStmtReader::VisitSwitchStmt(
SwitchStmt *S) {
244 bool HasInit = Record.
readInt();
245 bool HasVar = Record.
readInt();
246 bool AllEnumCasesCovered = Record.
readInt();
247 if (AllEnumCasesCovered)
260 for (
auto E = Record.
size(); Record.
getIdx() != E; ) {
271 void ASTStmtReader::VisitWhileStmt(
WhileStmt *S) {
274 bool HasVar = Record.
readInt();
284 void ASTStmtReader::VisitDoStmt(
DoStmt *S) {
293 void ASTStmtReader::VisitForStmt(
ForStmt *S) {
305 void ASTStmtReader::VisitGotoStmt(
GotoStmt *S) {
307 S->
setLabel(ReadDeclAs<LabelDecl>());
319 void ASTStmtReader::VisitContinueStmt(
ContinueStmt *S) {
324 void ASTStmtReader::VisitBreakStmt(
BreakStmt *S) {
329 void ASTStmtReader::VisitReturnStmt(
ReturnStmt *S) {
332 bool HasNRVOCandidate = Record.
readInt();
335 if (HasNRVOCandidate)
341 void ASTStmtReader::VisitDeclStmt(
DeclStmt *S) {
353 for (
int I = 0; I < N; ++I)
354 Decls.push_back(ReadDecl());
361 void ASTStmtReader::VisitAsmStmt(
AsmStmt *S) {
371 void ASTStmtReader::VisitGCCAsmStmt(
GCCAsmStmt *S) {
373 S->NumLabels = Record.
readInt();
386 for (
unsigned I = 0, N = NumOutputs + NumInputs; I != N; ++I) {
388 Constraints.push_back(cast_or_null<StringLiteral>(Record.
readSubStmt()));
394 for (
unsigned I = 0; I != NumClobbers; ++I)
395 Clobbers.push_back(cast_or_null<StringLiteral>(Record.
readSubStmt()));
398 for (
unsigned I = 0, N = NumLabels; I != N; ++I)
401 S->setOutputsAndInputsAndClobbers(Record.
getContext(),
402 Names.data(), Constraints.data(),
403 Exprs.data(), NumOutputs, NumInputs,
405 Clobbers.data(), NumClobbers);
408 void ASTStmtReader::VisitMSAsmStmt(
MSAsmStmt *S) {
410 S->LBraceLoc = ReadSourceLocation();
411 S->EndLoc = ReadSourceLocation();
412 S->NumAsmToks = Record.
readInt();
413 std::string AsmStr = ReadString();
417 AsmToks.reserve(S->NumAsmToks);
418 for (
unsigned i = 0, e = S->NumAsmToks;
i != e; ++
i) {
431 ClobbersData.push_back(ReadString());
432 Clobbers.push_back(ClobbersData.back());
440 Exprs.reserve(NumOperands);
441 ConstraintsData.reserve(NumOperands);
442 Constraints.reserve(NumOperands);
443 for (
unsigned i = 0;
i != NumOperands; ++
i) {
445 ConstraintsData.push_back(ReadString());
446 Constraints.push_back(ConstraintsData.back());
449 S->initialize(Record.
getContext(), AsmStr, AsmToks,
450 Constraints, Exprs, Clobbers);
455 assert(Record.
peekInt() == S->NumParams);
457 auto *StoredStmts = S->getStoredStmts();
459 i < CoroutineBodyStmt::SubStmt::FirstParamMove + S->NumParams; ++
i)
463 void ASTStmtReader::VisitCoreturnStmt(
CoreturnStmt *S) {
466 for (
auto &SubStmt: S->SubStmts)
468 S->IsImplicit = Record.
readInt() != 0;
471 void ASTStmtReader::VisitCoawaitExpr(
CoawaitExpr *E) {
473 E->KeywordLoc = ReadSourceLocation();
474 for (
auto &SubExpr: E->SubExprs)
476 E->OpaqueValue = cast_or_null<OpaqueValueExpr>(Record.
readSubStmt());
480 void ASTStmtReader::VisitCoyieldExpr(
CoyieldExpr *E) {
482 E->KeywordLoc = ReadSourceLocation();
483 for (
auto &SubExpr: E->SubExprs)
485 E->OpaqueValue = cast_or_null<OpaqueValueExpr>(Record.
readSubStmt());
490 E->KeywordLoc = ReadSourceLocation();
491 for (
auto &SubExpr: E->SubExprs)
495 void ASTStmtReader::VisitCapturedStmt(
CapturedStmt *S) {
514 I.VarAndKind.setPointer(ReadDeclAs<VarDecl>());
516 static_cast<CapturedStmt::VariableCaptureKind>(Record.
readInt()));
517 I.Loc = ReadSourceLocation();
521 void ASTStmtReader::VisitExpr(
Expr *E) {
530 assert(Record.
getIdx() == NumExprFields &&
531 "Incorrect expression field count");
534 void ASTStmtReader::VisitConstantExpr(
ConstantExpr *E) {
539 E->Int64Result() = Record.
readInt();
553 bool HasFunctionName = Record.
readInt();
558 E->setFunctionName(cast<StringLiteral>(Record.
readSubExpr()));
561 void ASTStmtReader::VisitDeclRefExpr(
DeclRefExpr *E) {
570 unsigned NumTemplateArgs = 0;
572 NumTemplateArgs = Record.
readInt();
578 if (E->hasFoundDecl())
579 *E->getTrailingObjects<
NamedDecl *>() = ReadDeclAs<NamedDecl>();
582 ReadTemplateKWAndArgsInfo(
586 E->
setDecl(ReadDeclAs<ValueDecl>());
606 static_cast<llvm::APFloatBase::Semantics>(Record.
readInt()));
622 unsigned NumConcatenated = Record.
readInt();
623 unsigned Length = Record.
readInt();
624 unsigned CharByteWidth = Record.
readInt();
626 "Wrong number of concatenated tokens!");
627 assert((Length == E->
getLength()) &&
"Wrong Length!");
628 assert((CharByteWidth == E->
getCharByteWidth()) &&
"Wrong character width!");
635 assert((CharByteWidth ==
638 "Wrong character width!");
641 for (
unsigned I = 0; I < NumConcatenated; ++I)
642 E->setStrTokenLoc(I, ReadSourceLocation());
645 char *StrData = E->getStrDataAsChar();
646 for (
unsigned I = 0; I < Length * CharByteWidth; ++I)
654 E->
setKind(static_cast<CharacterLiteral::CharacterKind>(Record.
readInt()));
657 void ASTStmtReader::VisitParenExpr(
ParenExpr *E) {
666 unsigned NumExprs = Record.
readInt();
667 assert((NumExprs == E->
getNumExprs()) &&
"Wrong NumExprs!");
668 for (
unsigned I = 0; I != NumExprs; ++I)
670 E->LParenLoc = ReadSourceLocation();
671 E->RParenLoc = ReadSourceLocation();
682 void ASTStmtReader::VisitOffsetOfExpr(
OffsetOfExpr *E) {
753 void ASTStmtReader::VisitCallExpr(
CallExpr *E) {
755 unsigned NumArgs = Record.
readInt();
756 assert((NumArgs == E->
getNumArgs()) &&
"Wrong NumArgs!");
759 for (
unsigned I = 0; I != NumArgs; ++I)
768 void ASTStmtReader::VisitMemberExpr(
MemberExpr *E) {
771 bool HasQualifier = Record.
readInt();
772 bool HasFoundDecl = Record.
readInt();
773 bool HasTemplateInfo = Record.
readInt();
774 unsigned NumTemplateArgs = Record.
readInt();
781 E->
MemberExprBits.HasQualifierOrFoundDecl = HasQualifier || HasFoundDecl;
787 if (HasQualifier || HasFoundDecl) {
807 ReadTemplateKWAndArgsInfo(
812 void ASTStmtReader::VisitObjCIsaExpr(
ObjCIsaExpr *E) {
824 E->setShouldCopy(Record.
readInt());
828 VisitExplicitCastExpr(E);
829 E->LParenLoc = ReadSourceLocation();
830 E->BridgeKeywordLoc = ReadSourceLocation();
834 void ASTStmtReader::VisitCastExpr(
CastExpr *E) {
836 unsigned NumBaseSpecs = Record.
readInt();
841 while (NumBaseSpecs--) {
858 VisitBinaryOperator(E);
865 E->SubExprs[ConditionalOperator::COND] = Record.
readSubExpr();
866 E->SubExprs[ConditionalOperator::LHS] = Record.
readSubExpr();
867 E->SubExprs[ConditionalOperator::RHS] = Record.
readSubExpr();
868 E->QuestionLoc = ReadSourceLocation();
869 E->ColonLoc = ReadSourceLocation();
875 E->OpaqueValue = cast<OpaqueValueExpr>(Record.
readSubExpr());
876 E->SubExprs[BinaryConditionalOperator::COMMON] = Record.
readSubExpr();
877 E->SubExprs[BinaryConditionalOperator::COND] = Record.
readSubExpr();
878 E->SubExprs[BinaryConditionalOperator::LHS] = Record.
readSubExpr();
879 E->SubExprs[BinaryConditionalOperator::RHS] = Record.
readSubExpr();
880 E->QuestionLoc = ReadSourceLocation();
881 E->ColonLoc = ReadSourceLocation();
895 VisitExplicitCastExpr(E);
915 void ASTStmtReader::VisitInitListExpr(
InitListExpr *E) {
917 if (
auto *SyntForm = cast_or_null<InitListExpr>(Record.
readSubStmt()))
921 bool isArrayFiller = Record.
readInt();
922 Expr *filler =
nullptr;
925 E->ArrayFillerOrUnionFieldInit = filler;
927 E->ArrayFillerOrUnionFieldInit = ReadDeclAs<FieldDecl>();
929 unsigned NumInits = Record.
readInt();
932 for (
unsigned I = 0; I != NumInits; ++I) {
937 for (
unsigned I = 0; I != NumInits; ++I)
946 unsigned NumSubExprs = Record.
readInt();
947 assert(NumSubExprs == E->
getNumSubExprs() &&
"Wrong number of subexprs");
948 for (
unsigned I = 0; I != NumSubExprs; ++I)
957 auto *Field = ReadDeclAs<FieldDecl>();
960 Designators.push_back(
Designator(Field->getIdentifier(), DotLoc,
962 Designators.back().setField(Field);
970 Designators.push_back(
Designator(Name, DotLoc, FieldLoc));
975 unsigned Index = Record.
readInt();
978 Designators.push_back(
Designator(Index, LBracketLoc, RBracketLoc));
983 unsigned Index = Record.
readInt();
987 Designators.push_back(
Designator(Index, LBracketLoc, EllipsisLoc,
994 Designators.data(), Designators.size());
1003 void ASTStmtReader::VisitNoInitExpr(
NoInitExpr *E) {
1021 void ASTStmtReader::VisitVAArgExpr(
VAArgExpr *E) {
1032 E->ParentContext = ReadDeclAs<DeclContext>();
1033 E->BuiltinLoc = ReadSourceLocation();
1034 E->RParenLoc = ReadSourceLocation();
1043 E->
setLabel(ReadDeclAs<LabelDecl>());
1046 void ASTStmtReader::VisitStmtExpr(
StmtExpr *E) {
1053 void ASTStmtReader::VisitChooseExpr(
ChooseExpr *E) {
1063 void ASTStmtReader::VisitGNUNullExpr(
GNUNullExpr *E) {
1071 unsigned NumExprs = Record.
readInt();
1081 E->BuiltinLoc = ReadSourceLocation();
1082 E->RParenLoc = ReadSourceLocation();
1083 E->TInfo = GetTypeSourceInfo();
1087 void ASTStmtReader::VisitBlockExpr(
BlockExpr *E) {
1095 unsigned NumAssocs = Record.
readInt();
1096 assert(NumAssocs == E->
getNumAssocs() &&
"Wrong NumAssocs!");
1097 E->ResultIndex = Record.
readInt();
1099 E->DefaultLoc = ReadSourceLocation();
1100 E->RParenLoc = ReadSourceLocation();
1102 Stmt **Stmts = E->getTrailingObjects<
Stmt *>();
1106 for (
unsigned I = 0, N = NumAssocs + 1; I < N; ++I)
1110 for (
unsigned I = 0, N = NumAssocs; I < N; ++I)
1111 TSIs[I] = GetTypeSourceInfo();
1116 unsigned numSemanticExprs = Record.
readInt();
1124 for (
unsigned i = 0;
i != numSemanticExprs; ++
i) {
1126 E->getSubExprsBuffer()[
i+1] = subExpr;
1130 void ASTStmtReader::VisitAtomicExpr(
AtomicExpr *E) {
1134 for (
unsigned I = 0; I != E->NumSubExprs; ++I)
1136 E->BuiltinLoc = ReadSourceLocation();
1137 E->RParenLoc = ReadSourceLocation();
1153 E->BoxingMethod = ReadDeclAs<ObjCMethodDecl>();
1154 E->Range = ReadSourceRange();
1159 unsigned NumElements = Record.
readInt();
1160 assert(NumElements == E->
getNumElements() &&
"Wrong number of elements");
1162 for (
unsigned I = 0, N = NumElements; I != N; ++I)
1164 E->ArrayWithObjectsMethod = ReadDeclAs<ObjCMethodDecl>();
1165 E->Range = ReadSourceRange();
1170 unsigned NumElements = Record.
readInt();
1171 assert(NumElements == E->
getNumElements() &&
"Wrong number of elements");
1172 bool HasPackExpansions = Record.
readInt();
1173 assert(HasPackExpansions == E->HasPackExpansions &&
"Pack expansion mismatch");
1178 for (
unsigned I = 0; I != NumElements; ++I) {
1181 if (HasPackExpansions) {
1182 Expansions[I].EllipsisLoc = ReadSourceLocation();
1183 Expansions[I].NumExpansionsPlusOne = Record.
readInt();
1186 E->DictWithObjectsMethod = ReadDeclAs<ObjCMethodDecl>();
1187 E->Range = ReadSourceRange();
1208 E->ProtoLoc = ReadSourceLocation();
1214 E->
setDecl(ReadDeclAs<ObjCIvarDecl>());
1224 unsigned MethodRefFlags = Record.
readInt();
1225 bool Implicit = Record.
readInt() != 0;
1227 auto *Getter = ReadDeclAs<ObjCMethodDecl>();
1228 auto *Setter = ReadDeclAs<ObjCMethodDecl>();
1229 E->setImplicitProperty(Getter, Setter, MethodRefFlags);
1231 E->setExplicitProperty(ReadDeclAs<ObjCPropertyDecl>(), MethodRefFlags);
1233 E->setLocation(ReadSourceLocation());
1234 E->setReceiverLocation(ReadSourceLocation());
1240 E->setSuperReceiver(Record.
readType());
1243 E->setClassReceiver(ReadDeclAs<ObjCInterfaceDecl>());
1253 E->GetAtIndexMethodDecl = ReadDeclAs<ObjCMethodDecl>();
1254 E->SetAtIndexMethodDecl = ReadDeclAs<ObjCMethodDecl>();
1261 unsigned NumStoredSelLocs = Record.
readInt();
1262 E->SelLocsKind = Record.
readInt();
1264 E->IsImplicit = Record.
readInt();
1291 E->LBracLoc = ReadSourceLocation();
1292 E->RBracLoc = ReadSourceLocation();
1294 for (
unsigned I = 0, N = E->
getNumArgs(); I != N; ++I)
1298 for (
unsigned I = 0; I != NumStoredSelLocs; ++I)
1299 Locs[I] = ReadSourceLocation();
1335 bool HasFinally = Record.
readInt();
1376 void ASTStmtReader::VisitCXXCatchStmt(
CXXCatchStmt *S) {
1378 S->CatchLoc = ReadSourceLocation();
1379 S->ExceptionDecl = ReadDeclAs<VarDecl>();
1383 void ASTStmtReader::VisitCXXTryStmt(
CXXTryStmt *S) {
1387 S->TryLoc = ReadSourceLocation();
1395 S->ForLoc = ReadSourceLocation();
1396 S->CoawaitLoc = ReadSourceLocation();
1397 S->ColonLoc = ReadSourceLocation();
1398 S->RParenLoc = ReadSourceLocation();
1411 S->KeywordLoc = ReadSourceLocation();
1412 S->IsIfExists = Record.
readInt();
1414 ReadDeclarationNameInfo(S->NameInfo);
1428 unsigned NumArgs = Record.
readInt();
1429 assert((NumArgs == E->
getNumArgs()) &&
"Wrong NumArgs!");
1438 E->Constructor = ReadDeclAs<CXXConstructorDecl>();
1439 E->ParenOrBraceRange = ReadSourceRange();
1441 for (
unsigned I = 0; I != NumArgs; ++I)
1447 E->Constructor = ReadDeclAs<CXXConstructorDecl>();
1448 E->Loc = ReadSourceLocation();
1449 E->ConstructsVirtualBase = Record.
readInt();
1450 E->InheritedFromVirtualBase = Record.
readInt();
1454 VisitCXXConstructExpr(E);
1455 E->TSI = GetTypeSourceInfo();
1458 void ASTStmtReader::VisitLambdaExpr(
LambdaExpr *E) {
1460 unsigned NumCaptures = Record.
readInt();
1461 assert(NumCaptures == E->NumCaptures);(void)NumCaptures;
1462 E->IntroducerRange = ReadSourceRange();
1464 E->CaptureDefaultLoc = ReadSourceLocation();
1465 E->ExplicitParams = Record.
readInt();
1466 E->ExplicitResultType = Record.
readInt();
1467 E->ClosingBrace = ReadSourceLocation();
1483 VisitExplicitCastExpr(E);
1486 E->RParenLoc = R.
getEnd();
1487 R = ReadSourceRange();
1488 E->AngleBrackets = R;
1492 return VisitCXXNamedCastExpr(E);
1496 return VisitCXXNamedCastExpr(E);
1500 return VisitCXXNamedCastExpr(E);
1504 return VisitCXXNamedCastExpr(E);
1508 VisitExplicitCastExpr(E);
1514 VisitExplicitCastExpr(E);
1515 E->KWLoc = ReadSourceLocation();
1516 E->RParenLoc = ReadSourceLocation();
1521 E->UDSuffixLoc = ReadSourceLocation();
1540 GetTypeSourceInfo());
1548 void ASTStmtReader::VisitCXXThisExpr(
CXXThisExpr *E) {
1554 void ASTStmtReader::VisitCXXThrowExpr(
CXXThrowExpr *E) {
1563 E->Param = ReadDeclAs<ParmVarDecl>();
1564 E->UsedContext = ReadDeclAs<DeclContext>();
1570 E->Field = ReadDeclAs<FieldDecl>();
1571 E->UsedContext = ReadDeclAs<DeclContext>();
1583 E->TypeInfo = GetTypeSourceInfo();
1587 void ASTStmtReader::VisitCXXNewExpr(
CXXNewExpr *E) {
1590 bool IsArray = Record.
readInt();
1591 bool HasInit = Record.
readInt();
1592 unsigned NumPlacementArgs = Record.
readInt();
1593 bool IsParenTypeId = Record.
readInt();
1600 assert((IsArray == E->
isArray()) &&
"Wrong IsArray!");
1603 "Wrong NumPlacementArgs!");
1604 assert((IsParenTypeId == E->
isParenTypeId()) &&
"Wrong IsParenTypeId!");
1607 (void)NumPlacementArgs;
1611 E->AllocatedTypeInfo = GetTypeSourceInfo();
1613 E->getTrailingObjects<
SourceRange>()[0] = ReadSourceRange();
1614 E->Range = ReadSourceRange();
1615 E->DirectInitRange = ReadSourceRange();
1630 E->OperatorDelete = ReadDeclAs<FunctionDecl>();
1639 E->IsArrow = Record.
readInt();
1640 E->OperatorLoc = ReadSourceLocation();
1642 E->ScopeType = GetTypeSourceInfo();
1643 E->ColonColonLoc = ReadSourceLocation();
1644 E->TildeLoc = ReadSourceLocation();
1656 unsigned NumObjects = Record.
readInt();
1658 for (
unsigned i = 0;
i != NumObjects; ++
i)
1660 ReadDeclAs<BlockDecl>();
1666 void ASTStmtReader::VisitCXXDependentScopeMemberExpr(
1670 bool HasTemplateKWAndArgsInfo = Record.
readInt();
1671 unsigned NumTemplateArgs = Record.
readInt();
1672 bool HasFirstQualifierFoundInScope = Record.
readInt();
1674 assert((HasTemplateKWAndArgsInfo == E->hasTemplateKWAndArgsInfo()) &&
1675 "Wrong HasTemplateKWAndArgsInfo!");
1677 (HasFirstQualifierFoundInScope == E->hasFirstQualifierFoundInScope()) &&
1678 "Wrong HasFirstQualifierFoundInScope!");
1680 if (HasTemplateKWAndArgsInfo)
1681 ReadTemplateKWAndArgsInfo(
1686 "Wrong NumTemplateArgs!");
1694 if (HasFirstQualifierFoundInScope)
1695 *E->getTrailingObjects<
NamedDecl *>() = ReadDeclAs<NamedDecl>();
1697 ReadDeclarationNameInfo(E->MemberNameInfo);
1705 ReadTemplateKWAndArgsInfo(
1711 ReadDeclarationNameInfo(E->NameInfo);
1718 "Read wrong record during creation ?");
1720 for (
unsigned I = 0, N = E->
arg_size(); I != N; ++I)
1722 E->TSI = GetTypeSourceInfo();
1727 void ASTStmtReader::VisitOverloadExpr(
OverloadExpr *E) {
1730 unsigned NumResults = Record.
readInt();
1731 bool HasTemplateKWAndArgsInfo = Record.
readInt();
1732 assert((E->
getNumDecls() == NumResults) &&
"Wrong NumResults!");
1734 "Wrong HasTemplateKWAndArgsInfo!");
1736 if (HasTemplateKWAndArgsInfo) {
1737 unsigned NumTemplateArgs = Record.
readInt();
1742 "Wrong NumTemplateArgs!");
1746 for (
unsigned I = 0; I != NumResults; ++I) {
1747 auto *D = ReadDeclAs<NamedDecl>();
1754 for (
unsigned I = 0; I != NumResults; ++I) {
1755 Results[I] = (Iter + I).getPair();
1758 ReadDeclarationNameInfo(E->NameInfo);
1763 VisitOverloadExpr(E);
1768 E->OperatorLoc = ReadSourceLocation();
1772 VisitOverloadExpr(E);
1775 E->NamingClass = ReadDeclAs<CXXRecordDecl>();
1785 E->RParenLoc = Range.
getEnd();
1788 for (
unsigned I = 0, N = E->
getNumArgs(); I != N; ++I)
1789 Args[I] = GetTypeSourceInfo();
1795 E->Value = (
unsigned int)Record.
readInt();
1798 E->RParen = Range.
getEnd();
1799 E->QueriedType = GetTypeSourceInfo();
1810 E->RParen = Range.
getEnd();
1816 E->Range = ReadSourceRange();
1822 E->EllipsisLoc = ReadSourceLocation();
1823 E->NumExpansions = Record.
readInt();
1829 unsigned NumPartialArgs = Record.
readInt();
1830 E->OperatorLoc = ReadSourceLocation();
1831 E->PackLoc = ReadSourceLocation();
1832 E->RParenLoc = ReadSourceLocation();
1835 assert(E->Length == NumPartialArgs);
1837 *E = I + NumPartialArgs;
1845 void ASTStmtReader::VisitSubstNonTypeTemplateParmExpr(
1848 E->Param = ReadDeclAs<NonTypeTemplateParmDecl>();
1853 void ASTStmtReader::VisitSubstNonTypeTemplateParmPackExpr(
1856 E->Param = ReadDeclAs<NonTypeTemplateParmDecl>();
1862 E->NumArguments = ArgPack.pack_size();
1863 E->NameLoc = ReadSourceLocation();
1868 E->NumParameters = Record.
readInt();
1869 E->ParamPack = ReadDeclAs<ParmVarDecl>();
1870 E->NameLoc = ReadSourceLocation();
1871 auto **Parms = E->getTrailingObjects<
VarDecl *>();
1872 for (
unsigned i = 0, n = E->NumParameters;
i != n; ++
i)
1873 Parms[
i] = ReadDeclAs<VarDecl>();
1879 auto *VD = ReadDeclAs<ValueDecl>();
1880 unsigned ManglingNumber = Record.
readInt();
1884 void ASTStmtReader::VisitCXXFoldExpr(
CXXFoldExpr *E) {
1886 E->LParenLoc = ReadSourceLocation();
1887 E->EllipsisLoc = ReadSourceLocation();
1888 E->RParenLoc = ReadSourceLocation();
1889 E->NumExpansions = Record.
readInt();
1902 void ASTStmtReader::VisitTypoExpr(
TypoExpr *E) {
1903 llvm_unreachable(
"Cannot read TypoExpr nodes");
1911 E->IsArrow = (Record.
readInt() != 0);
1914 E->MemberLoc = ReadSourceLocation();
1915 E->TheDecl = ReadDeclAs<MSPropertyDecl>();
1928 std::string UuidStr = ReadString();
1932 GetTypeSourceInfo());
1940 void ASTStmtReader::VisitSEHLeaveStmt(
SEHLeaveStmt *S) {
1947 S->Loc = ReadSourceLocation();
1948 S->Children[SEHExceptStmt::FILTER_EXPR] = Record.
readSubStmt();
1954 S->Loc = ReadSourceLocation();
1958 void ASTStmtReader::VisitSEHTryStmt(
SEHTryStmt *S) {
1960 S->IsCXXTry = Record.
readInt();
1961 S->TryLoc = ReadSourceLocation();
1962 S->Children[SEHTryStmt::TRY] = Record.
readSubStmt();
1963 S->Children[SEHTryStmt::HANDLER] = Record.
readSubStmt();
1978 void ASTStmtReader::VisitAsTypeExpr(
AsTypeExpr *E) {
1980 E->BuiltinLoc = ReadSourceLocation();
1981 E->RParenLoc = ReadSourceLocation();
1995 Clauses.push_back(ClauseReader.
readClause());
2005 VisitOMPExecutableDirective(D);
2043 Sub.reserve(CollapsedNum);
2044 for (
unsigned i = 0;
i < CollapsedNum; ++
i)
2048 for (
unsigned i = 0;
i < CollapsedNum; ++
i)
2052 for (
unsigned i = 0;
i < CollapsedNum; ++
i)
2056 for (
unsigned i = 0;
i < CollapsedNum; ++
i)
2060 for (
unsigned i = 0;
i < CollapsedNum; ++
i)
2069 VisitOMPExecutableDirective(D);
2070 D->setHasCancel(Record.
readInt());
2074 VisitOMPLoopDirective(D);
2078 VisitOMPLoopDirective(D);
2079 D->setHasCancel(Record.
readInt());
2083 VisitOMPLoopDirective(D);
2090 VisitOMPExecutableDirective(D);
2091 D->setHasCancel(Record.
readInt());
2096 VisitOMPExecutableDirective(D);
2104 VisitOMPExecutableDirective(D);
2109 VisitOMPExecutableDirective(D);
2116 VisitOMPExecutableDirective(D);
2117 ReadDeclarationNameInfo(D->DirName);
2121 VisitOMPLoopDirective(D);
2122 D->setHasCancel(Record.
readInt());
2125 void ASTStmtReader::VisitOMPParallelForSimdDirective(
2127 VisitOMPLoopDirective(D);
2130 void ASTStmtReader::VisitOMPParallelSectionsDirective(
2135 VisitOMPExecutableDirective(D);
2136 D->setHasCancel(Record.
readInt());
2143 VisitOMPExecutableDirective(D);
2144 D->setHasCancel(Record.
readInt());
2149 VisitOMPExecutableDirective(D);
2154 VisitOMPExecutableDirective(D);
2159 VisitOMPExecutableDirective(D);
2166 VisitOMPExecutableDirective(D);
2174 VisitOMPExecutableDirective(D);
2181 VisitOMPExecutableDirective(D);
2188 VisitOMPExecutableDirective(D);
2193 D->IsXLHSInRHSPart = Record.
readInt() != 0;
2194 D->IsPostfixUpdate = Record.
readInt() != 0;
2201 VisitOMPExecutableDirective(D);
2207 VisitOMPExecutableDirective(D);
2210 void ASTStmtReader::VisitOMPTargetEnterDataDirective(
2214 VisitOMPExecutableDirective(D);
2217 void ASTStmtReader::VisitOMPTargetExitDataDirective(
2221 VisitOMPExecutableDirective(D);
2224 void ASTStmtReader::VisitOMPTargetParallelDirective(
2228 VisitOMPExecutableDirective(D);
2231 void ASTStmtReader::VisitOMPTargetParallelForDirective(
2233 VisitOMPLoopDirective(D);
2234 D->setHasCancel(Record.
readInt());
2241 VisitOMPExecutableDirective(D);
2244 void ASTStmtReader::VisitOMPCancellationPointDirective(
2247 VisitOMPExecutableDirective(D);
2248 D->setCancelRegion(static_cast<OpenMPDirectiveKind>(Record.
readInt()));
2255 VisitOMPExecutableDirective(D);
2256 D->setCancelRegion(static_cast<OpenMPDirectiveKind>(Record.
readInt()));
2260 VisitOMPLoopDirective(D);
2264 VisitOMPLoopDirective(D);
2268 VisitOMPLoopDirective(D);
2274 VisitOMPExecutableDirective(D);
2277 void ASTStmtReader::VisitOMPDistributeParallelForDirective(
2279 VisitOMPLoopDirective(D);
2280 D->setHasCancel(Record.
readInt());
2283 void ASTStmtReader::VisitOMPDistributeParallelForSimdDirective(
2285 VisitOMPLoopDirective(D);
2288 void ASTStmtReader::VisitOMPDistributeSimdDirective(
2290 VisitOMPLoopDirective(D);
2293 void ASTStmtReader::VisitOMPTargetParallelForSimdDirective(
2295 VisitOMPLoopDirective(D);
2299 VisitOMPLoopDirective(D);
2302 void ASTStmtReader::VisitOMPTeamsDistributeDirective(
2304 VisitOMPLoopDirective(D);
2307 void ASTStmtReader::VisitOMPTeamsDistributeSimdDirective(
2309 VisitOMPLoopDirective(D);
2312 void ASTStmtReader::VisitOMPTeamsDistributeParallelForSimdDirective(
2314 VisitOMPLoopDirective(D);
2317 void ASTStmtReader::VisitOMPTeamsDistributeParallelForDirective(
2319 VisitOMPLoopDirective(D);
2320 D->setHasCancel(Record.
readInt());
2327 VisitOMPExecutableDirective(D);
2330 void ASTStmtReader::VisitOMPTargetTeamsDistributeDirective(
2332 VisitOMPLoopDirective(D);
2335 void ASTStmtReader::VisitOMPTargetTeamsDistributeParallelForDirective(
2337 VisitOMPLoopDirective(D);
2338 D->setHasCancel(Record.
readInt());
2341 void ASTStmtReader::VisitOMPTargetTeamsDistributeParallelForSimdDirective(
2343 VisitOMPLoopDirective(D);
2346 void ASTStmtReader::VisitOMPTargetTeamsDistributeSimdDirective(
2348 VisitOMPLoopDirective(D);
2356 switch (ReadingKind) {
2358 llvm_unreachable(
"should not call this when not reading anything");
2361 return ReadStmtFromStream(F);
2363 return ReadSubStmt();
2366 llvm_unreachable(
"ReadingKind not set ?");
2370 return cast_or_null<Expr>(ReadStmt(F));
2374 return cast_or_null<Expr>(ReadSubStmt());
2385 ReadingKindTracker ReadingKind(Read_Stmt, *
this);
2390 llvm::DenseMap<uint64_t, Stmt *> StmtEntries;
2393 unsigned PrevNumStmts = StmtStack.size();
2402 Cursor.advanceSkippingSubblocks();
2407 llvm::BitstreamEntry Entry = MaybeEntry.get();
2409 switch (Entry.Kind) {
2410 case llvm::BitstreamEntry::SubBlock:
2412 Error(
"malformed block record in AST file");
2414 case llvm::BitstreamEntry::EndBlock:
2416 case llvm::BitstreamEntry::Record:
2423 bool Finished =
false;
2424 bool IsStmtReference =
false;
2426 if (!MaybeStmtCode) {
2430 switch ((
StmtCode)MaybeStmtCode.get()) {
2436 IsStmtReference =
true;
2437 assert(StmtEntries.find(Record[0]) != StmtEntries.end() &&
2438 "No stmt was recorded for this offset reference!");
2439 S = StmtEntries[Record.
readInt()];
2458 Record[ASTStmtReader::NumStmtFields + 3]);
2472 Record[ASTStmtReader::NumStmtFields]);
2478 Record[ASTStmtReader::NumStmtFields + 1],
2479 Record[ASTStmtReader::NumStmtFields + 2],
2480 Record[ASTStmtReader::NumStmtFields + 3]);
2486 Record[ASTStmtReader::NumStmtFields],
2487 Record[ASTStmtReader::NumStmtFields + 1]);
2493 Record[ASTStmtReader::NumStmtFields]);
2497 S =
new (Context)
DoStmt(Empty);
2501 S =
new (Context)
ForStmt(Empty);
2522 Context, Record[ASTStmtReader::NumStmtFields]);
2539 Context, Record[ASTStmtReader::NumStmtFields]);
2545 static_cast<ConstantExpr::ResultStorageKind>(
2553 Record[ASTStmtReader::NumExprFields]);
2559 Record[ASTStmtReader::NumExprFields],
2560 Record[ASTStmtReader::NumExprFields + 1],
2561 Record[ASTStmtReader::NumExprFields + 2],
2562 Record[ASTStmtReader::NumExprFields + 2] ?
2563 Record[ASTStmtReader::NumExprFields + 6] : 0);
2581 Record[ASTStmtReader::NumExprFields],
2582 Record[ASTStmtReader::NumExprFields + 1],
2583 Record[ASTStmtReader::NumExprFields + 2]);
2597 Record[ASTStmtReader::NumExprFields]);
2606 Record[ASTStmtReader::NumExprFields],
2607 Record[ASTStmtReader::NumExprFields + 1]);
2624 Context, Record[ASTStmtReader::NumExprFields], Empty);
2629 Record[ASTStmtReader::NumExprFields + 1],
2630 Record[ASTStmtReader::NumExprFields + 2],
2631 Record[ASTStmtReader::NumExprFields + 3]);
2652 Record[ASTStmtReader::NumExprFields]);
2657 Record[ASTStmtReader::NumExprFields]);
2674 Record[ASTStmtReader::NumExprFields] - 1);
2737 Record[ASTStmtReader::NumExprFields]);
2750 Record[ASTStmtReader::NumExprFields]);
2755 Record[ASTStmtReader::NumExprFields],
2756 Record[ASTStmtReader::NumExprFields + 1]);
2784 llvm_unreachable(
"mismatching AST file");
2788 Record[ASTStmtReader::NumExprFields],
2789 Record[ASTStmtReader::NumExprFields + 1]);
2818 Record[ASTStmtReader::NumStmtFields],
2819 Record[ASTStmtReader::NumStmtFields + 1]);
2864 Record[ASTStmtReader::NumStmtFields]);
2881 Record[ASTStmtReader::NumStmtFields],
2887 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
2889 CollapsedNum, Empty);
2895 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
2903 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
2911 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2920 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2929 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2934 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
2936 CollapsedNum, Empty);
2942 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
2944 CollapsedNum, Empty);
2950 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2955 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2972 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2977 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2982 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2987 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2992 Context, Record[ASTStmtReader::NumStmtFields], Empty);
2997 Context, Record[ASTStmtReader::NumStmtFields], Empty);
3002 Context, Record[ASTStmtReader::NumStmtFields], Empty);
3007 Context, Record[ASTStmtReader::NumStmtFields], Empty);
3012 Context, Record[ASTStmtReader::NumStmtFields], Empty);
3017 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3019 CollapsedNum, Empty);
3025 Context, Record[ASTStmtReader::NumStmtFields], Empty);
3030 Context, Record[ASTStmtReader::NumStmtFields], Empty);
3039 Context, Record[ASTStmtReader::NumStmtFields], Empty);
3044 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3052 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3054 CollapsedNum, Empty);
3060 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3068 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3070 CollapsedNum, Empty);
3076 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3085 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3087 CollapsedNum, Empty);
3093 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3095 CollapsedNum, Empty);
3101 auto CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3109 auto CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3111 CollapsedNum, Empty);
3117 unsigned CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3119 CollapsedNum, Empty);
3125 auto CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3127 Context, NumClauses, CollapsedNum, Empty);
3133 auto CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3135 Context, NumClauses, CollapsedNum, Empty);
3141 Context, Record[ASTStmtReader::NumStmtFields], Empty);
3146 auto CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3148 CollapsedNum, Empty);
3154 auto CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3156 Context, NumClauses, CollapsedNum, Empty);
3162 auto CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3164 Context, NumClauses, CollapsedNum, Empty);
3170 auto CollapsedNum = Record[ASTStmtReader::NumStmtFields + 1];
3172 Context, NumClauses, CollapsedNum, Empty);
3178 Context, Record[ASTStmtReader::NumExprFields], Empty);
3183 Context, Record[ASTStmtReader::NumExprFields], Empty);
3189 Record[ASTStmtReader::NumExprFields]);
3199 Record[ASTStmtReader::NumExprFields]);
3204 Record[ASTStmtReader::NumExprFields]);
3209 Record[ASTStmtReader::NumExprFields]);
3214 Record[ASTStmtReader::NumExprFields]);
3223 Record[ASTStmtReader::NumExprFields]);
3228 Context, Record[ASTStmtReader::NumExprFields], Empty);
3294 Record[ASTStmtReader::NumExprFields],
3295 Record[ASTStmtReader::NumExprFields + 1],
3296 Record[ASTStmtReader::NumExprFields + 2],
3297 Record[ASTStmtReader::NumExprFields + 3]);
3310 Record[ASTStmtReader::NumExprFields]);
3316 Record[ASTStmtReader::NumExprFields],
3317 Record[ASTStmtReader::NumExprFields + 1],
3319 Record[ASTStmtReader::NumExprFields + 2]);
3324 Record[ASTStmtReader::NumExprFields],
3325 Record[ASTStmtReader::NumExprFields]
3326 ? Record[ASTStmtReader::NumExprFields + 1]
3332 Record[ASTStmtReader::NumExprFields]);
3338 Record[ASTStmtReader::NumExprFields],
3339 Record[ASTStmtReader::NumExprFields + 1],
3341 Record[ASTStmtReader::NumExprFields + 1]
3342 ? Record[ASTStmtReader::NumExprFields + 2]
3349 Record[ASTStmtReader::NumExprFields],
3350 Record[ASTStmtReader::NumExprFields + 1],
3352 Record[ASTStmtReader::NumExprFields + 1]
3353 ? Record[ASTStmtReader::NumExprFields + 2]
3359 Record[ASTStmtReader::NumExprFields]);
3381 Record[ASTStmtReader::NumExprFields]);
3394 Record[ASTStmtReader::NumExprFields]);
3411 Context, Record[ASTStmtReader::NumExprFields], Empty);
3461 ++NumStatementsRead;
3463 if (S && !IsStmtReference) {
3465 StmtEntries[Cursor.GetCurrentBitNo()] = S;
3469 "Invalid deserialization of statement");
3470 StmtStack.push_back(S);
3473 assert(StmtStack.size() > PrevNumStmts &&
"Read too many sub-stmts!");
3474 assert(StmtStack.size() == PrevNumStmts + 1 &&
"Extra expressions on stack!");
3475 return StmtStack.pop_back_val();
void setPreInits(Stmt *PreInits)
void setCombinedParForInDistCond(Expr *CombParForInDistCond)
A CXXConstCastExpr record.
static AttributedStmt * CreateEmpty(const ASTContext &C, unsigned NumAttrs)
void setFPFeatures(FPOptions F)
ObjCPropertyRefExpr - A dot-syntax expression to access an ObjC property.
const uint64_t & readInt()
Returns the current value in this record, and advances to the next value.
A call to an overloaded operator written using operator syntax.
ObjCIndirectCopyRestoreExpr - Represents the passing of a function argument by indirect copy-restore ...
The receiver is the instance of the superclass object.
Represents a single C99 designator.
void setConditionVariable(const ASTContext &C, VarDecl *V)
static DependentScopeDeclRefExpr * CreateEmpty(const ASTContext &Context, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
void setValueDependent(bool VD)
Set whether this expression is value-dependent or not.
Defines the clang::ASTContext interface.
void setIsOMPStructuredBlock(bool IsOMPStructuredBlock)
void setRParenLoc(SourceLocation L)
A CompoundLiteralExpr record.
This represents '#pragma omp distribute simd' composite directive.
This represents '#pragma omp master' directive.
ConstantExprBitfields ConstantExprBits
DesignatorTypes
The kinds of designators that can occur in a DesignatedInitExpr.
void setRangeStmt(Stmt *S)
SourceLocation readSourceLocation()
Read a source location, advancing Idx.
The null pointer literal (C++11 [lex.nullptr])
unsigned getNumDecls() const
Gets the number of declarations in the unresolved set.
This represents '#pragma omp task' directive.
void setEnsureUpperBound(Expr *EUB)
This represents a GCC inline-assembly statement extension.
static CXXConstructExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs)
Create an empty C++ construction expression.
Represents a 'co_await' expression while the type of the promise is dependent.
void setSubStmt(CompoundStmt *S)
A UserDefinedLiteral record.
The receiver is an object instance.
unsigned getNumInputs() const
static OMPMasterDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
UnresolvedMemberExprBitfields UnresolvedMemberExprBits
An IndirectGotoStmt record.
A (possibly-)qualified type.
capture_init_iterator capture_init_begin()
Retrieve the first initialization argument.
StringKind getKind() const
void setOperatorLoc(SourceLocation L)
CXXDeleteExprBitfields CXXDeleteExprBits
void setNRVOCandidate(const VarDecl *Var)
Set the variable that might be used for the named return value optimization.
Defines enumerations for the type traits support.
void setLocation(SourceLocation L)
A CXXStaticCastExpr record.
ASTStmtReader(ASTRecordReader &Record, llvm::BitstreamCursor &Cursor)
void setCombinedCond(Expr *CombCond)
A type trait used in the implementation of various C++11 and Library TR1 trait templates.
An AttributedStmt record.
A CXXReinterpretCastExpr record.
An ObjCBoolLiteralExpr record.
void setCombinedLowerBoundVariable(Expr *CombLB)
static OMPTaskwaitDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
static OMPTargetParallelDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setHasCancel(bool Has)
Set cancel state.
Represents a 'co_return' statement in the C++ Coroutines TS.
Stmt - This represents one statement.
static OMPTaskgroupDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
void setLastIteration(Expr *LI)
unsigned getNumArgs() const
getNumArgs - Return the number of actual arguments to this call.
IfStmt - This represents an if/then/else.
void setPrivateCounters(ArrayRef< Expr *> A)
C Language Family Type Representation.
unsigned getNumOutputs() const
This represents '#pragma omp for simd' directive.
void setOpcode(Opcode Opc)
void setRParenLoc(SourceLocation L)
void setContinueLoc(SourceLocation L)
void setThrowExpr(Stmt *S)
void setAtLoc(SourceLocation L)
An ImplicitValueInitExpr record.
Decl - This represents one declaration (or definition), e.g.
void setDeclGroup(DeclGroupRef DGR)
An ImplicitCastExpr record.
This represents '#pragma omp teams distribute parallel for' composite directive.
void setRBracket(SourceLocation RB)
Represents the index of the current element of an array being initialized by an ArrayInitLoopExpr.
LambdaCaptureDefault
The default, if any, capture method for a lambda expression.
A reference to a name which we were able to look up during parsing but could not resolve to a specifi...
Defines the C++ template declaration subclasses.
void setPrevEnsureUpperBound(Expr *PrevEUB)
unsigned getNumSubExprs() const
Retrieve the total number of subexpressions in this designated initializer expression, including the actual initialized value and any expressions that occur within array and array-range designators.
Represents an attribute applied to a statement.
void setUpperBoundVariable(Expr *UB)
void setComputationResultType(QualType T)
llvm::APFloat readAPFloat(const llvm::fltSemantics &Sem)
Read a floating-point value, advancing Idx.
void setNumIterations(Expr *NI)
ParenExpr - This represents a parethesized expression, e.g.
A CXXOperatorCallExpr record.
void setSuper(SourceLocation Loc, QualType T, bool IsInstanceSuper)
This represents '#pragma omp target teams distribute' combined directive.
A CXXTemporaryObjectExpr record.
Represents Objective-C's @throw statement.
void setNextLowerBound(Expr *NLB)
DeclRefExprBitfields DeclRefExprBits
Represents a call to a C++ constructor.
ObjCSubscriptRefExpr - used for array and dictionary subscripting.
void setADLCallKind(ADLCallKind V=UsesADL)
An Embarcadero array type trait, as used in the implementation of __array_rank and __array_extent...
A constant expression context.
const TargetInfo & getTargetInfo() const
AccessSpecifier
A C++ access specifier (public, private, protected), plus the special value "none" which means differ...
A container of type source information.
void setSwitchCaseList(SwitchCase *SC)
void setCanOverflow(bool C)
void setInstanceReceiver(Expr *rec)
Turn this message send into an instance message that computes the receiver object with the given expr...
Floating point control options.
This represents '#pragma omp parallel for' directive.
MS property subscript expression.
void setStartLoc(SourceLocation L)
void setForLoc(SourceLocation L)
This represents '#pragma omp target teams distribute parallel for' combined directive.
static ObjCDictionaryLiteral * CreateEmpty(const ASTContext &C, unsigned NumElements, bool HasPackExpansions)
Represents a prvalue temporary that is written into memory so that a reference can bind to it...
void setLocation(SourceLocation L)
void setDelegateInitCall(bool isDelegate)
void setProtocol(ObjCProtocolDecl *P)
void setRParenLoc(SourceLocation L)
void setIsLastIterVariable(Expr *IL)
This represents '#pragma omp target exit data' directive.
void setRAngleLoc(SourceLocation Loc)
static OffsetOfExpr * CreateEmpty(const ASTContext &C, unsigned NumComps, unsigned NumExprs)
static OMPTargetTeamsDistributeSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Represents a variable declaration or definition.
static OMPParallelDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for N clauses.
bool hasTemplateKWAndArgsInfo() const
ObjCIsaExpr - Represent X->isa and X.isa when X is an ObjC 'id' type.
void setIsPartOfExplicitCast(bool PartOfExplicitCast)
CompoundLiteralExpr - [C99 6.5.2.5].
void setSubExpr(unsigned Idx, Expr *E)
void setInitializer(Expr *E)
void setLength(Expr *E)
Set length of the array section.
void setOpLoc(SourceLocation L)
void recordSwitchCaseID(SwitchCase *SC, unsigned ID)
unsigned getNumArgs() const
Determine the number of arguments to this type trait.
static FunctionParmPackExpr * CreateEmpty(const ASTContext &Context, unsigned NumParams)
void setAsmLoc(SourceLocation L)
AttributedStmtBitfields AttributedStmtBits
QualType readType()
Read a type from the current position in the record.
static PredefinedExpr * CreateEmpty(const ASTContext &Ctx, bool HasFunctionName)
Create an empty PredefinedExpr.
void setCombinedDistCond(Expr *CombDistCond)
void setValue(unsigned Val)
A ConditionOperator record.
void setLocation(SourceLocation Location)
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".
Implicit construction of a std::initializer_list<T> object from an array temporary within list-initia...
static DeclRefExpr * CreateEmpty(const ASTContext &Context, bool HasQualifier, bool HasFoundDecl, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
Construct an empty declaration reference expression.
unsigned getNumPlacementArgs() const
void setGNUSyntax(bool GNU)
Defines the Objective-C statement AST node classes.
A CXXConstructExpr record.
unsigned getNumExpressions() const
void setBeginStmt(Stmt *S)
void setBase(Expr *E)
Set base of the array section.
ReceiverKind
The kind of receiver this message is sending to.
raw_arg_iterator raw_arg_begin()
A C++ throw-expression (C++ [except.throw]).
Represents an expression – generally a full-expression – that introduces cleanups to be run at the ...
Defines the clang::Expr interface and subclasses for C++ expressions.
A ShuffleVectorExpr record.
A C++ static_cast expression (C++ [expr.static.cast]).
LabelStmt - Represents a label, which has a substatement.
static OMPTargetExitDataDirective * CreateEmpty(const ASTContext &C, unsigned N, EmptyShell)
Creates an empty directive with the place for N clauses.
void setAtLoc(SourceLocation L)
Represents a C99 designated initializer expression.
DeclarationName getDeclName() const
Get the actual, stored name of the declaration, which may be a special name.
NestedNameSpecifierLoc readNestedNameSpecifierLoc()
static OMPTargetTeamsDistributeDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
One of these records is kept for each identifier that is lexed.
An ObjCAtThrowStmt record.
T * readDeclAs()
Reads a declaration from the given position in the record, advancing Idx.
static OMPTargetDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Represents a function call to one of __builtin_LINE(), __builtin_COLUMN(), __builtin_FUNCTION(), or __builtin_FILE().
A DesignatedInitExpr record.
This represents '#pragma omp parallel' directive.
ShuffleVectorExpr - clang-specific builtin-in function __builtin_shufflevector.
void setExprOperand(Expr *E)
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
A C++ nested-name-specifier augmented with source location information.
static OMPTaskLoopSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Internal struct for storing Key/value pair.
static std::string toString(const clang::SanitizerSet &Sanitizers)
Produce a string containing comma-separated names of sanitizers in Sanitizers set.
An ObjCProtocolExpr record.
An ObjCSelectorExpr record.
static OMPTargetParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
static ObjCMessageExpr * CreateEmpty(const ASTContext &Context, unsigned NumArgs, unsigned NumStoredSelLocs)
Create an empty Objective-C message expression, to be filled in by subsequent calls.
void setIsMicrosoftABI(bool IsMS)
Represents a place-holder for an object not to be initialized by anything.
static OMPFlushDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
GNUNullExpr - Implements the GNU __null extension, which is a name for a null pointer constant that h...
void setArg(unsigned I, Expr *E)
void setArg(unsigned Arg, Expr *ArgExpr)
setArg - Set the specified argument.
The iterator over UnresolvedSets.
void setRParen(SourceLocation Loc)
TemplateArgument readTemplateArgument(bool Canonicalize=false)
Read a template argument, advancing Idx.
This represents '#pragma omp target simd' directive.
void setCapturedDecl(CapturedDecl *D)
Set the outlined function declaration.
void setReturnLoc(SourceLocation L)
Represents a C++ member access expression for which lookup produced a set of overloaded functions...
Defines some OpenMP-specific enums and functions.
ExtVectorElementExpr - This represents access to specific elements of a vector, and may occur on the ...
OpenMPDirectiveKind getDirectiveKind() const
void setIfLoc(SourceLocation IfLoc)
This represents '#pragma omp barrier' directive.
void setComponent(unsigned Idx, OffsetOfNode ON)
ObjCArrayLiteral - used for objective-c array containers; as in: @["Hello", NSApp, [NSNumber numberWithInt:42]];.
TypeSourceInfo * getTypeSourceInfo()
Reads a declarator info from the given record, advancing Idx.
unsigned getCharByteWidth() const
This is a common base class for loop directives ('omp simd', 'omp for', 'omp for simd' etc...
Represents a reference to a non-type template parameter pack that has been substituted with a non-tem...
This represents '#pragma omp critical' directive.
static OMPCriticalDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
void setRParenLoc(SourceLocation L)
size_t size() const
The length of this record.
void setSubExpr(Expr *E)
As with any mutator of the AST, be very careful when modifying an existing AST to preserve its invari...
Represents Objective-C's @catch statement.
void setLBraceLoc(SourceLocation Loc)
static OMPTaskLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
IndirectGotoStmt - This represents an indirect goto.
Describes an C or C++ initializer list.
A C++ typeid expression (C++ [expr.typeid]), which gets the type_info that corresponds to the supplie...
This represents '#pragma omp distribute parallel for' composite directive.
void setValue(const ASTContext &C, const llvm::APInt &Val)
This represents '#pragma omp teams distribute parallel for simd' composite directive.
void setBuiltinLoc(SourceLocation L)
unsigned getLength() const
ForStmt - This represents a 'for (init;cond;inc)' stmt.
void setOperatorNew(FunctionDecl *D)
static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS)
void setLocation(SourceLocation L)
CXXScalarValueInitExprBitfields CXXScalarValueInitExprBits
static OMPDistributeSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setSynchBody(Stmt *S)
A convenient class for passing around template argument information.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
void setSelector(Selector S)
A reference to a previously [de]serialized Stmt record.
void setEndLoc(SourceLocation L)
capture_init_iterator capture_init_begin()
Retrieve the first initialization argument for this lambda expression (which initializes the first ca...
path_iterator path_begin()
void setLocation(SourceLocation L)
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
A builtin binary operation expression such as "x + y" or "x <= y".
static OMPTargetTeamsDistributeParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setAccessor(IdentifierInfo *II)
CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for statement, represented as 'for (ra...
SourceRange readSourceRange()
Read a source range, advancing Idx.
static const unsigned NumStmtFields
The number of record fields required for the Stmt class itself.
This represents '#pragma omp cancellation point' directive.
void setString(StringLiteral *S)
void setAsmString(StringLiteral *E)
ObjCStringLiteral, used for Objective-C string literals i.e.
CaseStmt - Represent a case statement.
TypoExpr - Internal placeholder for expressions where typo correction still needs to be performed and...
void setCombinedInit(Expr *CombInit)
This represents '#pragma omp teams' directive.
void setOperatorLoc(SourceLocation L)
CastExpr - Base class for type casts, including both implicit casts (ImplicitCastExpr) and explicit c...
Helper class for OffsetOfExpr.
A marker record that indicates that we are at the end of an expression.
This represents '#pragma omp teams distribute simd' combined directive.
static OMPTargetParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Represents binding an expression to a temporary.
void setDestroyedType(IdentifierInfo *II, SourceLocation Loc)
Set the name of destroyed type for a dependent pseudo-destructor expression.
ArrayTypeTrait
Names for the array type traits.
const llvm::fltSemantics & getSemantics() const
Return the APFloat semantics this literal uses.
bool isOpenMPWorksharingDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a worksharing directive.
A C++ lambda expression, which produces a function object (of unspecified type) that can be invoked l...
static OMPTaskyieldDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
static IntegerLiteral * Create(const ASTContext &C, const llvm::APInt &V, QualType type, SourceLocation l)
Returns a new integer literal with value 'V' and type 'type'.
void setOpcode(Opcode Opc)
void ReadTemplateKWAndArgsInfo(ASTTemplateKWAndArgsInfo &Args, TemplateArgumentLoc *ArgsLocArray, unsigned NumTemplateArgs)
Read and initialize a ExplicitTemplateArgumentList structure.
DeclAccessPair * getTrailingResults()
Return the results. Defined after UnresolvedMemberExpr.
Represents a C++ member access expression where the actual member referenced could not be resolved be...
void setRParenLoc(SourceLocation Loc)
CXXBaseSpecifier readCXXBaseSpecifier()
Read a C++ base specifier, advancing Idx.
void setRParenLoc(SourceLocation R)
A default argument (C++ [dcl.fct.default]).
bool isTypeOperand() const
const uint64_t & peekInt()
Returns the current value in this record, without advancing.
void setSourceRange(SourceRange R)
void setRParenLoc(SourceLocation L)
Represents the this expression in C++.
void setCastKind(CastKind K)
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".
static OMPTargetDataDirective * CreateEmpty(const ASTContext &C, unsigned N, EmptyShell)
Creates an empty directive with the place for N clauses.
static OMPTeamsDistributeSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
PredefinedExprBitfields PredefinedExprBits
void setEqualOrColonLoc(SourceLocation L)
This represents '#pragma omp target parallel for simd' directive.
void setArgument(Expr *E)
OpenMP 4.0 [2.4, Array Sections].
void setTypeSourceInfo(TypeSourceInfo *tsi)
ConditionalOperator - The ?: ternary operator.
static OMPTargetSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Represents a C++ pseudo-destructor (C++ [expr.pseudo]).
void setAmpAmpLoc(SourceLocation L)
void setBreakLoc(SourceLocation L)
ASTTemplateKWAndArgsInfo * getTrailingASTTemplateKWAndArgsInfo()
Return the optional template keyword and arguments info.
CompoundStmt - This represents a group of statements like { stmt stmt }.
void setBlockDecl(BlockDecl *BD)
This represents '#pragma omp taskgroup' directive.
static OMPSingleDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
CastKind
CastKind - The kind of operation required for a conversion.
void setSemiLoc(SourceLocation L)
UnaryExprOrTypeTraitExpr - expression with either a type or (unevaluated) expression operand...
void setLParen(SourceLocation Loc)
ConstantExpr - An expression that occurs in a constant context and optionally the result of evaluatin...
Represents a call to the builtin function __builtin_va_arg.
static OMPTeamsDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setLeaveLoc(SourceLocation L)
void setConditionVariable(const ASTContext &Ctx, VarDecl *V)
Set the condition variable for this if statement.
This represents '#pragma omp distribute' directive.
SubstNonTypeTemplateParmExprBitfields SubstNonTypeTemplateParmExprBits
void setInits(ArrayRef< Expr *> A)
void setOperatorDelete(FunctionDecl *D)
void setRParenLoc(SourceLocation L)
An expression "T()" which creates a value-initialized rvalue of type T, which is a non-class type...
void setLocation(SourceLocation Location)
void setRParenLoc(SourceLocation Loc)
Represents a block literal declaration, which is like an unnamed FunctionDecl.
static OMPSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Represent the declaration of a variable (in which case it is an lvalue) a function (in which case it ...
This represents one expression.
Defines the clang::LangOptions interface.
void setDesignators(const ASTContext &C, const Designator *Desigs, unsigned NumDesigs)
void setRBraceLoc(SourceLocation Loc)
void setIsImplicit(bool value=true)
void setWhileLoc(SourceLocation L)
void setRParenLoc(SourceLocation L)
void setLParenLoc(SourceLocation L)
Stmt * ReadStmt(ModuleFile &F)
Reads a statement.
static CXXMemberCallExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, EmptyShell Empty)
void setSyntacticForm(InitListExpr *Init)
Represents a C++ functional cast expression that builds a temporary object.
static ReturnStmt * CreateEmpty(const ASTContext &Ctx, bool HasNRVOCandidate)
Create an empty return statement, optionally with storage for an NRVO candidate.
void setRBracketLoc(SourceLocation L)
A C++ const_cast expression (C++ [expr.const.cast]).
void setTypeDependent(bool TD)
Set whether this expression is type-dependent or not.
void setTypeOperandSourceInfo(TypeSourceInfo *TSI)
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Field designator where only the field name is known.
static OMPDistributeParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Expected< unsigned > readRecord(llvm::BitstreamCursor &Cursor, unsigned AbbrevID)
Reads a record with id AbbrevID from Cursor, resetting the internal state.
An ObjCSubscriptRefExpr record.
Defines an enumeration for C++ overloaded operators.
This represents '#pragma omp target teams distribute parallel for simd' combined directive.
raw_arg_iterator raw_arg_end()
static CXXReinterpretCastExpr * CreateEmpty(const ASTContext &Context, unsigned pathSize)
void setUuidStr(StringRef US)
void setWrittenTypeInfo(TypeSourceInfo *TI)
void setRetValue(Expr *E)
unsigned getNumTemplateArgs() const
ObjCDictionaryLiteral - AST node to represent objective-c dictionary literals; as in:"name" : NSUserN...
void setObjectKind(ExprObjectKind Cat)
setObjectKind - Set the object kind produced by this expression.
bool hasQualifier() const
Determine whether this declaration reference was preceded by a C++ nested-name-specifier, e.g., N::foo.
static UserDefinedLiteral * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, EmptyShell Empty)
Represents Objective-C's @synchronized statement.
ObjCSelectorExpr used for @selector in Objective-C.
A CXXStdInitializerListExpr record.
void setFinallyBody(Stmt *S)
Represents an expression that computes the length of a parameter pack.
CXXTryStmt - A C++ try block, including all handlers.
AsTypeExpr - Clang builtin function __builtin_astype [OpenCL 6.2.4.2] This AST node provides support ...
An ArraySubscriptExpr record.
Decl * readDecl()
Reads a declaration from the given position in a record in the given module, advancing Idx...
static FloatingLiteral * Create(const ASTContext &C, const llvm::APFloat &V, bool isexact, QualType Type, SourceLocation L)
This represents '#pragma omp target teams distribute simd' combined directive.
CXXDefaultInitExprBitfields CXXDefaultInitExprBits
Information about a module that has been loaded by the ASTReader.
ExprWithCleanupsBitfields ExprWithCleanupsBits
An ArrayInitLoopExpr record.
unsigned getNumClauses() const
Get number of clauses.
A PseudoObjectExpr record.
void setColonLoc(SourceLocation L)
void setFinallyStmt(Stmt *S)
Extra data stored in some MemberExpr objects.
CompoundStmtBitfields CompoundStmtBits
An ObjCIndirectCopyRestoreExpr record.
This represents '#pragma omp for' directive.
IdentifierInfo * getIdentifierInfo()
static OMPTargetEnterDataDirective * CreateEmpty(const ASTContext &C, unsigned N, EmptyShell)
Creates an empty directive with the place for N clauses.
void setValueKind(ExprValueKind Cat)
setValueKind - Set the value kind produced by this expression.
StringLiteralBitfields StringLiteralBits
void setRParenLoc(SourceLocation L)
bool hasInitializer() const
Whether this new-expression has any initializer at all.
Represents a folding of a pack over an operator.
ReturnStmt - This represents a return, optionally of an expression: return; return 4;...
This represents '#pragma omp target teams' directive.
void setAssociatedStmt(Stmt *S)
Set the associated statement for the directive.
static OMPDistributeDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
An expression that sends a message to the given Objective-C object or class.
This represents a Microsoft inline-assembly statement extension.
void setColonLoc(SourceLocation L)
void setRParenLoc(SourceLocation L)
A DesignatedInitUpdateExpr record.
SourceLocation getEnd() const
void setAtLoc(SourceLocation L)
UnaryOperator - This represents the unary-expression's (except sizeof and alignof), the postinc/postdec operators from postfix-expression, and various extensions.
bool isOpenMPTaskLoopDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a taskloop directive.
ReceiverKind getReceiverKind() const
Determine the kind of receiver that this message is being sent to.
A member reference to an MSPropertyDecl.
static OMPParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
static UnresolvedLookupExpr * CreateEmpty(const ASTContext &Context, unsigned NumResults, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
Represents a reference to a non-type template parameter that has been substituted with a template arg...
void setForLoc(SourceLocation Loc)
This represents '#pragma omp cancel' directive.
void setDistInc(Expr *DistInc)
An ObjCAvailabilityCheckExpr record.
void setRParenLoc(SourceLocation L)
std::string readString()
Read a string, advancing Idx.
void setConditionVariable(const ASTContext &Ctx, VarDecl *V)
Set the condition variable of this while statement.
CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr.cast]), which uses the syntax (Type)expr.
static OMPDistributeParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setClauses(ArrayRef< OMPClause *> Clauses)
Sets the list of variables for this clause.
An ObjCPropertyRefExpr record.
void skipInts(unsigned N)
Skips the specified number of values.
This file defines OpenMP AST classes for clauses.
ImaginaryLiteral - We support imaginary integer and floating point literals, like "1...
An ObjCForCollectionStmt record.
This represents '#pragma omp flush' directive.
This represents '#pragma omp parallel for simd' directive.
void setRParenLoc(SourceLocation L)
void setAtTryLoc(SourceLocation Loc)
DoStmt - This represents a 'do/while' stmt.
AsmStmt is the base class for GCCAsmStmt and MSAsmStmt.
void setTypeOperandSourceInfo(TypeSourceInfo *TSI)
A MS-style AsmStmt record.
void setConditionVariable(const ASTContext &Ctx, VarDecl *VD)
Set the condition variable in this switch statement.
void setLocStart(SourceLocation Loc)
Set starting location of directive kind.
OpaqueValueExprBitfields OpaqueValueExprBits
static OMPParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
static CoroutineBodyStmt * Create(const ASTContext &C, CtorArgs const &Args)
void setSynchExpr(Stmt *S)
This represents '#pragma omp target enter data' directive.
void setUpdates(ArrayRef< Expr *> A)
void setLowerBoundVariable(Expr *LB)
void setLParenLoc(SourceLocation L)
void setTypeSourceInfo(TypeSourceInfo *tinfo)
A C++ dynamic_cast expression (C++ [expr.dynamic.cast]).
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class...
void setComputationLHSType(QualType T)
ConvertVectorExpr - Clang builtin function __builtin_convertvector This AST node provides support for...
unsigned getNumArgs() const
Return the number of actual arguments in this message, not counting the receiver. ...
static OMPSectionDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
void setDecl(LabelDecl *D)
A reference to an overloaded function set, either an UnresolvedLookupExpr or an UnresolvedMemberExpr...
A field in a dependent type, known only by its name.
This captures a statement into a function.
Represents a call to an inherited base class constructor from an inheriting constructor.
unsigned path_size() const
PseudoObjectExpr - An expression which accesses a pseudo-object l-value.
void setLParenLoc(SourceLocation L)
void setAccessorLoc(SourceLocation L)
void setGotoLoc(SourceLocation L)
static CXXDynamicCastExpr * CreateEmpty(const ASTContext &Context, unsigned pathSize)
CXXTemporary * readCXXTemporary()
unsigned getNumExprs() const
Return the number of expressions in this paren list.
void setLocation(SourceLocation L)
This represents '#pragma omp single' directive.
Encodes a location in the source.
void setLocation(SourceLocation L)
void setPrevLowerBoundVariable(Expr *PrevLB)
void setIterationVariable(Expr *IV)
Defines enumerations for expression traits intrinsics.
PseudoObjectExprBitfields PseudoObjectExprBits
Stmt * readSubStmt()
Reads a sub-statement operand during statement reading.
static CXXOperatorCallExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, EmptyShell Empty)
UnresolvedLookupExprBitfields UnresolvedLookupExprBits
unsigned getNumHandlers() const
void setUpdater(Expr *Updater)
CXXThrowExprBitfields CXXThrowExprBits
static OMPTaskDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This is a basic class for representing single OpenMP executable directive.
static OMPTargetUpdateDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setDoLoc(SourceLocation L)
static CXXConstCastExpr * CreateEmpty(const ASTContext &Context)
Represents a new-expression for memory allocation and constructor calls, e.g: "new CXXNewExpr(foo)"...
void setCombinedNextLowerBound(Expr *CombNLB)
void setAtCatchLoc(SourceLocation Loc)
unsigned getNumElements() const
getNumElements - Return number of elements of objective-c dictionary literal.
A call to a literal operator (C++11 [over.literal]) written as a user-defined literal (C++11 [lit...
void setSourceRange(SourceRange R)
Represents a C++2a __builtin_bit_cast(T, v) expression.
static ObjCAtTryStmt * CreateEmpty(const ASTContext &Context, unsigned NumCatchStmts, bool HasFinally)
void setConstexpr(bool C)
Represents a call to a member function that may be written either with member call syntax (e...
static StringLiteral * CreateEmpty(const ASTContext &Ctx, unsigned NumConcatenated, unsigned Length, unsigned CharByteWidth)
Construct an empty string literal.
void setIdentLoc(SourceLocation L)
GenericSelectionExprBitfields GenericSelectionExprBits
Defines several types used to describe C++ lambda expressions that are shared between the parser and ...
DeclStmt - Adaptor class for mixing declarations with statements and expressions. ...
void setLabelLoc(SourceLocation L)
void readDeclarationNameInfo(DeclarationNameInfo &NameInfo)
A CXXFunctionalCastExpr record.
void setTemporary(CXXTemporary *T)
A FloatingLiteral record.
static ExprWithCleanups * Create(const ASTContext &C, EmptyShell empty, unsigned numObjects)
void setAllEnumCasesCovered()
Set a flag in the SwitchStmt indicating that if the 'switch (X)' is a switch over an enum value then ...
Expr * readSubExpr()
Reads a sub-expression operand during statement reading.
StmtVisitor - This class implements a simple visitor for Stmt subclasses.
void setClassReceiver(TypeSourceInfo *TSInfo)
void setCatchParamDecl(VarDecl *D)
An ObjCEncodeExpr record.
static OMPAtomicDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp taskwait' directive.
An ImaginaryLiteral record.
void setIsFreeIvar(bool A)
AtomicExpr - Variadic atomic builtins: __atomic_exchange, __atomic_fetch_*, __atomic_load, __atomic_store, and __atomic_compare_exchange_*, for the similarly-named C++11 instructions, and __c11 variants for <stdatomic.h>, and corresponding __opencl_atomic_* for OpenCL 2.0.
void readDeclarationNameLoc(DeclarationNameLoc &DNLoc, DeclarationName Name)
Expr * updateInit(const ASTContext &C, unsigned Init, Expr *expr)
Updates the initializer at index Init with the new expression expr, and returns the old expression at...
static OMPOrderedDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
bool isOpenMPLoopBoundSharingDirective(OpenMPDirectiveKind Kind)
Checks if the specified directive kind is one of the composite or combined directives that need loop ...
void addDecl(NamedDecl *D)
ObjCProtocolExpr used for protocol expression in Objective-C.
static WhileStmt * CreateEmpty(const ASTContext &Ctx, bool HasVar)
Create an empty while statement optionally with storage for a condition variable. ...
bool isValueDependent() const
isValueDependent - Determines whether this expression is value-dependent (C++ [temp.dep.constexpr]).
void setDecl(ValueDecl *NewD)
void setThrowLoc(SourceLocation Loc)
unsigned getIdx() const
The current position in this record.
ASTContext & getContext()
Retrieve the AST context that this AST reader supplements.
ImplicitCastExpr - Allows us to explicitly represent implicit type conversions, which have no direct ...
Stmt * getCapturedStmt()
Retrieve the statement being captured.
This represents '#pragma omp target' directive.
static OMPTeamsDistributeParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
static DesignatedInitExpr * CreateEmpty(const ASTContext &C, unsigned NumIndexExprs)
static DeclGroup * Create(ASTContext &C, Decl **Decls, unsigned NumDecls)
bool isParenTypeId() const
static OMPTeamsDistributeDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setBaseExpr(Stmt *S)
NullStmtBitfields NullStmtBits
An expression trait intrinsic.
void setEncodedTypeSourceInfo(TypeSourceInfo *EncType)
static CXXDependentScopeMemberExpr * CreateEmpty(const ASTContext &Ctx, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs, bool HasFirstQualifierFoundInScope)
This represents '#pragma omp ordered' directive.
StmtExpr - This is the GNU Statement Expression extension: ({int X=4; X;}).
static SizeOfPackExpr * CreateDeserialized(ASTContext &Context, unsigned NumPartialArgs)
This represents '#pragma omp target update' directive.
ObjCBoxedExpr - used for generalized expression boxing.
MemberExprBitfields MemberExprBits
void setLAngleLoc(SourceLocation Loc)
void sawArrayRangeDesignator(bool ARD=true)
static CXXTemporaryObjectExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs)
void addArgument(const TemplateArgumentLoc &Loc)
void setCapturedRecordDecl(RecordDecl *D)
Set the record declaration for captured variables.
Representation of a Microsoft __if_exists or __if_not_exists statement with a dependent name...
A placeholder type used to construct an empty shell of a type, that will be filled in later (e...
A qualified reference to a name whose declaration cannot yet be resolved.
void setRBracketLoc(SourceLocation L)
void readAttributes(AttrVec &Attrs)
Reads attributes from the current stream position, advancing Idx.
CompoundAssignOperator - For compound assignments (e.g.
Expr ** getElements()
Retrieve elements of array of literals.
Defines various enumerations that describe declaration and type specifiers.
A POD class for pairing a NamedDecl* with an access specifier.
DeclarationNameLoc - Additional source/type location info for a declaration name. ...
Represents a C11 generic selection.
AddrLabelExpr - The GNU address of label extension, representing &&label.
An Objective-C "bridged" cast expression, which casts between Objective-C pointers and C pointers...
Represents a reference to a function parameter pack or init-capture pack that has been substituted bu...
Represents a template argument.
void setGotoLoc(SourceLocation L)
void setPrevUpperBoundVariable(Expr *PrevUB)
static CXXUnresolvedConstructExpr * CreateEmpty(const ASTContext &Context, unsigned NumArgs)
void setCombinedEnsureUpperBound(Expr *CombEUB)
static OMPForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setLocation(SourceLocation L)
NullStmt - This is the null statement ";": C99 6.8.3p3.
void setCounters(ArrayRef< Expr *> A)
bool isTypeOperand() const
unsigned getNumAssocs() const
The number of association expressions.
Dataflow Directional Tag Classes.
static GenericSelectionExpr * CreateEmpty(const ASTContext &Context, unsigned NumAssocs)
Create an empty generic selection expression for deserialization.
void setExtendingDecl(const ValueDecl *ExtendedBy, unsigned ManglingNumber)
An IntegerLiteral record.
llvm::BitstreamCursor DeclsCursor
DeclsCursor - This is a cursor to the start of the DECLS_BLOCK block.
void setBuiltinLoc(SourceLocation L)
[C99 6.4.2.2] - A predefined identifier such as func.
A CXXBoolLiteralExpr record.
Represents a delete expression for memory deallocation and destructor calls, e.g. ...
void setCombinedUpperBoundVariable(Expr *CombUB)
void setRParenLoc(SourceLocation L)
static CapturedStmt * CreateDeserialized(const ASTContext &Context, unsigned NumCaptures)
An ExtVectorElementExpr record.
void setLabel(LabelDecl *L)
static OMPTargetTeamsDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
void setTypeInfoAsWritten(TypeSourceInfo *writtenTy)
This represents '#pragma omp section' directive.
void setAtLoc(SourceLocation L)
This represents '#pragma omp teams distribute' directive.
Selector readSelector()
Read a selector from the Record, advancing Idx.
Expr * ReadExpr(ModuleFile &F)
Reads an expression.
void setExprs(const ASTContext &C, ArrayRef< Expr *> Exprs)
void setCollection(Expr *E)
An ObjCIvarRefExpr record.
void setDecl(ObjCIvarDecl *d)
AccessSpecifier getAccess() const
void setFileScope(bool FS)
A runtime availability query.
A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]).
This represents '#pragma omp simd' directive.
Represents a 'co_yield' expression.
An ObjCAutoreleasePoolStmt record.
The name of a declaration.
A CharacterLiteral record.
Represents a C++11 pack expansion that produces a sequence of expressions.
An ObjCStringLiteral record.
A CXXDynamicCastExpr record.
static LambdaExpr * CreateDeserialized(const ASTContext &C, unsigned NumCaptures)
Construct a new lambda expression that will be deserialized from an external source.
static PseudoObjectExpr * Create(const ASTContext &Context, Expr *syntactic, ArrayRef< Expr *> semantic, unsigned resultIndex)
void setInstantiationDependent(bool ID)
Set whether this expression is instantiation-dependent or not.
void setEllipsisLoc(SourceLocation L)
Set the location of the ...
A CXXForRangeStmt record.
Kind
The kind of offsetof node we have.
TemplateArgumentLoc readTemplateArgumentLoc()
Reads a TemplateArgumentLoc, advancing Idx.
void setLParenLoc(SourceLocation L)
void setSelector(Selector S)
ExplicitCastExpr - An explicit cast written in the source code.
DeclarationNameInfo - A collector data type for bundling together a DeclarationName and the correspnd...
void setMethodDecl(ObjCMethodDecl *MD)
This represents '#pragma omp atomic' directive.
static CompoundStmt * CreateEmpty(const ASTContext &C, unsigned NumStmts)
pack_iterator pack_begin() const
Iterator referencing the first argument of a template argument pack.
An ObjCAtFinallyStmt record.
VersionTuple readVersionTuple()
Read a version tuple, advancing Idx.
CXXNewExprBitfields CXXNewExprBits
Represents a __leave statement.
unsigned getCollapsedNumber() const
Get number of collapsed loops.
unsigned getNumSubExprs() const
void setRBracketLoc(SourceLocation L)
Represents a C++11 noexcept expression (C++ [expr.unary.noexcept]).
SwitchStmt - This represents a 'switch' stmt.
CXXConstructExprBitfields CXXConstructExprBits
static OMPForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Represents the body of a coroutine.
TemplateArgumentLoc * getTrailingTemplateArgumentLoc()
Return the optional template arguments.
Location wrapper for a TemplateArgument.
bool isOpenMPDistributeDirective(OpenMPDirectiveKind DKind)
Checks if the specified directive is a distribute directive.
static const unsigned NumExprFields
The number of record fields required for the Expr class itself.
void setCatchStmt(unsigned I, ObjCAtCatchStmt *S)
Set a particular catch statement.
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
unsigned getNumElements() const
getNumElements - Return number of elements of objective-c array literal.
static OMPBarrierDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
This file defines OpenMP AST classes for executable directives and clauses.
Represents Objective-C's collection statement.
static CUDAKernelCallExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, EmptyShell Empty)
An ObjCAtSynchronizedStmt record.
unsigned getNumObjects() const
void setIndexExpr(unsigned Idx, Expr *E)
ObjCEncodeExpr, used for @encode in Objective-C.
void setLowerBound(Expr *E)
Set lower bound of the array section.
An implicit indirection through a C++ base class, when the field found is in a base class...
A SizefAlignOfExpr record.
Represents a call to a CUDA kernel function.
Represents a 'co_await' expression.
TypeTraitExprBitfields TypeTraitExprBits
static ImplicitCastExpr * CreateEmpty(const ASTContext &Context, unsigned PathSize)
void setSwitchLoc(SourceLocation L)
A CXXMemberCallExpr record.
void setAtFinallyLoc(SourceLocation Loc)
void setArg(unsigned Arg, Expr *ArgExpr)
Set the specified argument.
void setKind(UnaryExprOrTypeTrait K)
void setRParenLoc(SourceLocation L)
static ConstantExpr * CreateEmpty(const ASTContext &Context, ResultStorageKind StorageKind, EmptyShell Empty)
void setOperatorLoc(SourceLocation L)
void setValue(const ASTContext &C, const llvm::APFloat &Val)
Represents Objective-C's @finally statement.
void setCatchBody(Stmt *S)
static CXXFunctionalCastExpr * CreateEmpty(const ASTContext &Context, unsigned PathSize)
bool hasAssociatedStmt() const
Returns true if directive has associated statement.
void setLParenLoc(SourceLocation L)
The template argument is actually a parameter pack.
Represents a base class of a C++ class.
void setRParenLoc(SourceLocation L)
unsigned getNumClobbers() const
static OMPTargetTeamsDistributeParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
ObjCIvarRefExpr - A reference to an ObjC instance variable.
void setAtSynchronizedLoc(SourceLocation Loc)
bool isPartiallySubstituted() const
Determine whether this represents a partially-substituted sizeof...
void setElseLoc(SourceLocation ElseLoc)
void setOperatorLoc(SourceLocation L)
void setLocation(SourceLocation Location)
A ConvertVectorExpr record.
unsigned arg_size() const
Retrieve the number of arguments.
void setStarLoc(SourceLocation L)
void setLParenLoc(SourceLocation L)
Describes an explicit type conversion that uses functional notion but could not be resolved because o...
GotoStmt - This represents a direct goto.
A use of a default initializer in a constructor or in aggregate initialization.
static CStyleCastExpr * CreateEmpty(const ASTContext &Context, unsigned PathSize)
void setLocation(SourceLocation L)
CapturedDecl * getCapturedDecl()
Retrieve the outlined function declaration.
void setBuiltinLoc(SourceLocation L)
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate.h) and friends (in DeclFriend.h).
MemberExpr - [C99 6.5.2.3] Structure and Union Members.
GNU array range designator.
Defines the clang::SourceLocation class and associated facilities.
An ArrayInitIndexExpr record.
A GCC-style AsmStmt record.
This represents '#pragma omp target parallel' directive.
void setStrideVariable(Expr *ST)
static MemberExpr * CreateEmpty(const ASTContext &Context, bool HasQualifier, bool HasFoundDecl, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
ContinueStmt - This represents a continue.
static CXXStaticCastExpr * CreateEmpty(const ASTContext &Context, unsigned PathSize)
Represents a loop initializing the elements of an array.
static CXXTryStmt * Create(const ASTContext &C, SourceLocation tryLoc, Stmt *tryBlock, ArrayRef< Stmt *> handlers)
ChooseExpr - GNU builtin-in function __builtin_choose_expr.
static OMPParallelSectionsDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
CXXDefaultArgExprBitfields CXXDefaultArgExprBits
BinaryConditionalOperator - The GNU extension to the conditional operator which allows the middle ope...
CXXCatchStmt - This represents a C++ catch block.
Represents an explicit C++ type conversion that uses "functional" notation (C++ [expr.type.conv]).
An ObjCAtCatchStmt record.
static TypeTraitExpr * CreateDeserialized(const ASTContext &C, unsigned NumArgs)
Expr * ReadSubExpr()
Reads a sub-expression operand during statement reading.
WhileStmt - This represents a 'while' stmt.
CXXOperatorCallExprBitfields CXXOperatorCallExprBits
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...
void initializeFrom(SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &List, TemplateArgumentLoc *OutArgArray)
Field designator where the field has been resolved to a declaration.
void setIsaMemberLoc(SourceLocation L)
unsigned getNumConcatenated() const
getNumConcatenated - Get the number of string literal tokens that were concatenated in translation ph...
static CXXNewExpr * CreateEmpty(const ASTContext &Ctx, bool IsArray, bool HasInit, unsigned NumPlacementArgs, bool IsParenTypeId)
Create an empty c++ new expression.
static ParenListExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumExprs)
Create an empty paren list.
A CXXInheritedCtorInitExpr record.
void setExprOperand(Expr *E)
void setPreArg(unsigned I, Stmt *PreArg)
Represents Objective-C's @try ... @catch ... @finally statement.
This represents '#pragma omp taskloop simd' directive.
void setTokenLocation(SourceLocation L)
static OMPSectionsDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
unsigned getNumCatchStmts() const
Retrieve the number of @catch statements in this try-catch-finally block.
StringLiteral - This represents a string literal expression, e.g.
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
llvm::APInt readAPInt()
Read an integral value, advancing Idx.
void setOpLoc(SourceLocation L)
void setLoopVarStmt(Stmt *S)
An object for streaming information from a record.
Internal struct to describes an element that is a pack expansion, used if any of the elements in the ...
void setPreCond(Expr *PC)
RetTy Visit(PTR(Stmt) S, ParamTys... P)
void setRParenLoc(SourceLocation L)
SourceLocExprBitfields SourceLocExprBits
void reserveInits(const ASTContext &C, unsigned NumInits)
Reserve space for some number of initializers.
static OMPCancelDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
An ObjCMessageExpr record.
bool hasTemplateKWAndArgsInfo() const
Abstract class common to all of the C++ "named"/"keyword" casts.
This represents '#pragma omp sections' directive.
void setNextSwitchCase(SwitchCase *SC)
ObjCBoolLiteralExpr - Objective-C Boolean Literal.
A CompoundAssignOperator record.
unsigned getNumComponents() const
This represents '#pragma omp target data' directive.
void setNextUpperBound(Expr *NUB)
capture_init_iterator capture_init_end()
Retrieve the iterator pointing one past the last initialization argument for this lambda expression...
void setKind(CharacterKind kind)
A reference to a declared variable, function, enum, etc.
static CaseStmt * CreateEmpty(const ASTContext &Ctx, bool CaseStmtIsGNURange)
Build an empty case statement.
Designator - A designator in a C99 designated initializer.
void setRawSemantics(llvm::APFloatBase::Semantics Sem)
Set the raw enumeration value representing the floating-point semantics of this literal (32-bit IEEE...
void setLabel(LabelDecl *D)
Token readToken()
Reads a token out of a record, advancing Idx.
BreakStmt - This represents a break.
void setSubStmt(Stmt *SS)
unsigned getNumLabels() const
static ObjCArrayLiteral * CreateEmpty(const ASTContext &C, unsigned NumElements)
CXXNoexceptExprBitfields CXXNoexceptExprBits
unsigned getNumArgs() const
Return the number of arguments to the constructor call.
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...
A trivial tuple used to represent a source range.
This represents '#pragma omp taskyield' directive.
This represents a decl that may have a name.
This represents '#pragma omp distribute parallel for simd' composite directive.
A boolean literal, per ([C++ lex.bool] Boolean literals).
OffsetOfExpr - [C99 7.17] - This represents an expression of the form offsetof(record-type, member-designator).
This represents '#pragma omp parallel sections' directive.
A Microsoft C++ __uuidof expression, which gets the _GUID that corresponds to the supplied type or ex...
void setCalcLastIteration(Expr *CLI)
SwitchCase * getSwitchCaseWithID(unsigned ID)
Retrieve the switch-case statement with the given ID.
static CallExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, EmptyShell Empty)
Create an empty call expression, for deserialization.
The receiver is a superclass.
void setCombinedNextUpperBound(Expr *CombNUB)
SourceLocation getBegin() const
capture_init_iterator capture_init_end()
Retrieve the iterator pointing one past the last initialization argument.
Represents Objective-C's @autoreleasepool Statement.
void setWhileLoc(SourceLocation L)
StmtCode
Record codes for each kind of statement or expression.
void setLocEnd(SourceLocation Loc)
Set ending location of directive.
void setArg(unsigned Arg, Expr *ArgExpr)
setArg - Set the specified argument.
void setFinals(ArrayRef< Expr *> A)
static OMPTeamsDistributeParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
Represents an implicitly-generated value initialization of an object of a given type.
void setKeywordLoc(SourceLocation L)
void setCapturedRegionKind(CapturedRegionKind Kind)
Set the captured region kind.
A GenericSelectionExpr record.
This represents '#pragma omp target parallel for' directive.
static OMPCancellationPointDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
void setLabelLoc(SourceLocation L)
#define BLOCK(DERIVED, BASE)
void setAtLoc(SourceLocation Loc)
void setIsConditionTrue(bool isTrue)
CXXDependentScopeMemberExprBitfields CXXDependentScopeMemberExprBits
static UnresolvedMemberExpr * CreateEmpty(const ASTContext &Context, unsigned NumResults, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
This represents '#pragma omp taskloop' directive.