53#include "llvm/ADT/BitmaskEnum.h"
54#include "llvm/ADT/DenseMap.h"
55#include "llvm/ADT/SmallString.h"
56#include "llvm/ADT/SmallVector.h"
57#include "llvm/ADT/StringRef.h"
58#include "llvm/Bitstream/BitstreamReader.h"
59#include "llvm/Support/Casting.h"
60#include "llvm/Support/ErrorHandling.h"
68using namespace serialization;
74 llvm::BitstreamCursor &DeclsCursor;
76 std::optional<BitsUnpacker> CurrentUnpackingBits;
79 return Record.readSourceLocation();
83 return Record.readSourceRange();
86 std::string readString() {
87 return Record.readString();
91 return Record.readTypeSourceInfo();
100 return Record.readDeclAs<T>();
121 unsigned NumTemplateArgs);
124#define STMT(Type, Base) \
125 void Visit##Type(Type *);
126#include "clang/AST/StmtNodes.inc"
133 unsigned NumTemplateArgs) {
138 for (
unsigned i = 0; i != NumTemplateArgs; ++i)
147void ASTStmtReader::VisitNullStmt(
NullStmt *S) {
149 S->setSemiLoc(readSourceLocation());
150 S->NullStmtBits.HasLeadingEmptyMacro =
Record.readInt();
156 unsigned NumStmts =
Record.readInt();
157 unsigned HasFPFeatures =
Record.readInt();
158 assert(S->hasStoredFPFeatures() == HasFPFeatures);
160 Stmts.push_back(
Record.readSubStmt());
163 S->setStoredFPFeatures(
165 S->LBraceLoc = readSourceLocation();
166 S->RBraceLoc = readSourceLocation();
169void ASTStmtReader::VisitSwitchCase(
SwitchCase *S) {
172 S->setKeywordLoc(readSourceLocation());
173 S->setColonLoc(readSourceLocation());
176void ASTStmtReader::VisitCaseStmt(
CaseStmt *S) {
178 bool CaseStmtIsGNURange =
Record.readInt();
179 S->setLHS(
Record.readSubExpr());
180 S->setSubStmt(
Record.readSubStmt());
181 if (CaseStmtIsGNURange) {
182 S->setRHS(
Record.readSubExpr());
183 S->setEllipsisLoc(readSourceLocation());
187void ASTStmtReader::VisitDefaultStmt(
DefaultStmt *S) {
189 S->setSubStmt(
Record.readSubStmt());
192void ASTStmtReader::VisitLabelStmt(
LabelStmt *S) {
194 bool IsSideEntry =
Record.readInt();
195 auto *LD = readDeclAs<LabelDecl>();
198 S->setSubStmt(
Record.readSubStmt());
199 S->setIdentLoc(readSourceLocation());
200 S->setSideEntry(IsSideEntry);
210 Record.readAttributes(Attrs);
212 assert(NumAttrs == S->AttributedStmtBits.NumAttrs);
213 assert(NumAttrs == Attrs.size());
214 std::copy(Attrs.begin(), Attrs.end(), S->getAttrArrayPtr());
215 S->SubStmt =
Record.readSubStmt();
216 S->AttributedStmtBits.AttrLoc = readSourceLocation();
219void ASTStmtReader::VisitIfStmt(
IfStmt *S) {
222 CurrentUnpackingBits.emplace(
Record.readInt());
224 bool HasElse = CurrentUnpackingBits->getNextBit();
225 bool HasVar = CurrentUnpackingBits->getNextBit();
226 bool HasInit = CurrentUnpackingBits->getNextBit();
229 S->setCond(
Record.readSubExpr());
230 S->setThen(
Record.readSubStmt());
232 S->setElse(
Record.readSubStmt());
234 S->setConditionVariableDeclStmt(cast<DeclStmt>(
Record.readSubStmt()));
236 S->setInit(
Record.readSubStmt());
238 S->setIfLoc(readSourceLocation());
239 S->setLParenLoc(readSourceLocation());
240 S->setRParenLoc(readSourceLocation());
242 S->setElseLoc(readSourceLocation());
245void ASTStmtReader::VisitSwitchStmt(
SwitchStmt *S) {
248 bool HasInit =
Record.readInt();
249 bool HasVar =
Record.readInt();
250 bool AllEnumCasesCovered =
Record.readInt();
251 if (AllEnumCasesCovered)
252 S->setAllEnumCasesCovered();
254 S->setCond(
Record.readSubExpr());
255 S->setBody(
Record.readSubStmt());
257 S->setInit(
Record.readSubStmt());
259 S->setConditionVariableDeclStmt(cast<DeclStmt>(
Record.readSubStmt()));
261 S->setSwitchLoc(readSourceLocation());
262 S->setLParenLoc(readSourceLocation());
263 S->setRParenLoc(readSourceLocation());
271 S->setSwitchCaseList(SC);
277void ASTStmtReader::VisitWhileStmt(
WhileStmt *S) {
280 bool HasVar =
Record.readInt();
282 S->setCond(
Record.readSubExpr());
283 S->setBody(
Record.readSubStmt());
285 S->setConditionVariableDeclStmt(cast<DeclStmt>(
Record.readSubStmt()));
287 S->setWhileLoc(readSourceLocation());
288 S->setLParenLoc(readSourceLocation());
289 S->setRParenLoc(readSourceLocation());
292void ASTStmtReader::VisitDoStmt(
DoStmt *S) {
294 S->setCond(
Record.readSubExpr());
295 S->setBody(
Record.readSubStmt());
296 S->setDoLoc(readSourceLocation());
297 S->setWhileLoc(readSourceLocation());
298 S->setRParenLoc(readSourceLocation());
301void ASTStmtReader::VisitForStmt(
ForStmt *S) {
303 S->setInit(
Record.readSubStmt());
304 S->setCond(
Record.readSubExpr());
305 S->setConditionVariableDeclStmt(cast_or_null<DeclStmt>(
Record.readSubStmt()));
306 S->setInc(
Record.readSubExpr());
307 S->setBody(
Record.readSubStmt());
308 S->setForLoc(readSourceLocation());
309 S->setLParenLoc(readSourceLocation());
310 S->setRParenLoc(readSourceLocation());
313void ASTStmtReader::VisitGotoStmt(
GotoStmt *S) {
315 S->setLabel(readDeclAs<LabelDecl>());
316 S->setGotoLoc(readSourceLocation());
317 S->setLabelLoc(readSourceLocation());
322 S->setGotoLoc(readSourceLocation());
323 S->setStarLoc(readSourceLocation());
324 S->setTarget(
Record.readSubExpr());
329 S->setContinueLoc(readSourceLocation());
332void ASTStmtReader::VisitBreakStmt(
BreakStmt *S) {
334 S->setBreakLoc(readSourceLocation());
337void ASTStmtReader::VisitReturnStmt(
ReturnStmt *S) {
340 bool HasNRVOCandidate =
Record.readInt();
342 S->setRetValue(
Record.readSubExpr());
343 if (HasNRVOCandidate)
344 S->setNRVOCandidate(readDeclAs<VarDecl>());
346 S->setReturnLoc(readSourceLocation());
349void ASTStmtReader::VisitDeclStmt(
DeclStmt *S) {
351 S->setStartLoc(readSourceLocation());
352 S->setEndLoc(readSourceLocation());
361 for (
int I = 0; I < N; ++I)
362 Decls.push_back(readDecl());
369void ASTStmtReader::VisitAsmStmt(
AsmStmt *S) {
371 S->NumOutputs =
Record.readInt();
372 S->NumInputs =
Record.readInt();
373 S->NumClobbers =
Record.readInt();
374 S->setAsmLoc(readSourceLocation());
375 S->setVolatile(
Record.readInt());
376 S->setSimple(
Record.readInt());
379void ASTStmtReader::VisitGCCAsmStmt(
GCCAsmStmt *S) {
381 S->NumLabels =
Record.readInt();
382 S->setRParenLoc(readSourceLocation());
383 S->setAsmString(cast_or_null<StringLiteral>(
Record.readSubStmt()));
385 unsigned NumOutputs = S->getNumOutputs();
386 unsigned NumInputs = S->getNumInputs();
387 unsigned NumClobbers = S->getNumClobbers();
388 unsigned NumLabels = S->getNumLabels();
394 for (
unsigned I = 0, N = NumOutputs + NumInputs; I != N; ++I) {
395 Names.push_back(
Record.readIdentifier());
396 Constraints.push_back(cast_or_null<StringLiteral>(
Record.readSubStmt()));
397 Exprs.push_back(
Record.readSubStmt());
402 for (
unsigned I = 0; I != NumClobbers; ++I)
403 Clobbers.push_back(cast_or_null<StringLiteral>(
Record.readSubStmt()));
406 for (
unsigned I = 0, N = NumLabels; I != N; ++I) {
407 Names.push_back(
Record.readIdentifier());
408 Exprs.push_back(
Record.readSubStmt());
411 S->setOutputsAndInputsAndClobbers(
Record.getContext(),
412 Names.data(), Constraints.data(),
413 Exprs.data(), NumOutputs, NumInputs,
415 Clobbers.data(), NumClobbers);
418void ASTStmtReader::VisitMSAsmStmt(
MSAsmStmt *S) {
420 S->LBraceLoc = readSourceLocation();
421 S->EndLoc = readSourceLocation();
422 S->NumAsmToks =
Record.readInt();
423 std::string AsmStr = readString();
427 AsmToks.reserve(S->NumAsmToks);
428 for (
unsigned i = 0, e = S->NumAsmToks; i != e; ++i) {
429 AsmToks.push_back(
Record.readToken());
438 ClobbersData.reserve(S->NumClobbers);
439 Clobbers.reserve(S->NumClobbers);
440 for (
unsigned i = 0, e = S->NumClobbers; i != e; ++i) {
441 ClobbersData.push_back(readString());
442 Clobbers.push_back(ClobbersData.back());
446 unsigned NumOperands = S->NumOutputs + S->NumInputs;
450 Exprs.reserve(NumOperands);
451 ConstraintsData.reserve(NumOperands);
452 Constraints.reserve(NumOperands);
453 for (
unsigned i = 0; i != NumOperands; ++i) {
454 Exprs.push_back(cast<Expr>(
Record.readSubStmt()));
455 ConstraintsData.push_back(readString());
456 Constraints.push_back(ConstraintsData.back());
459 S->initialize(
Record.getContext(), AsmStr, AsmToks,
460 Constraints, Exprs, Clobbers);
465 assert(
Record.peekInt() == S->NumParams);
467 auto *StoredStmts = S->getStoredStmts();
469 i < CoroutineBodyStmt::SubStmt::FirstParamMove + S->NumParams; ++i)
470 StoredStmts[i] =
Record.readSubStmt();
475 S->CoreturnLoc =
Record.readSourceLocation();
476 for (
auto &SubStmt: S->SubStmts)
477 SubStmt =
Record.readSubStmt();
478 S->IsImplicit =
Record.readInt() != 0;
481void ASTStmtReader::VisitCoawaitExpr(
CoawaitExpr *E) {
483 E->KeywordLoc = readSourceLocation();
484 for (
auto &SubExpr: E->SubExprs)
485 SubExpr =
Record.readSubStmt();
486 E->OpaqueValue = cast_or_null<OpaqueValueExpr>(
Record.readSubStmt());
490void ASTStmtReader::VisitCoyieldExpr(
CoyieldExpr *E) {
492 E->KeywordLoc = readSourceLocation();
493 for (
auto &SubExpr: E->SubExprs)
494 SubExpr =
Record.readSubStmt();
495 E->OpaqueValue = cast_or_null<OpaqueValueExpr>(
Record.readSubStmt());
500 E->KeywordLoc = readSourceLocation();
501 for (
auto &SubExpr: E->SubExprs)
502 SubExpr =
Record.readSubStmt();
508 S->setCapturedDecl(readDeclAs<CapturedDecl>());
510 S->setCapturedRecordDecl(readDeclAs<RecordDecl>());
514 E = S->capture_init_end();
516 *I =
Record.readSubExpr();
519 S->setCapturedStmt(
Record.readSubStmt());
520 S->getCapturedDecl()->setBody(S->getCapturedStmt());
523 for (
auto &I : S->captures()) {
524 I.VarAndKind.setPointer(readDeclAs<VarDecl>());
527 I.Loc = readSourceLocation();
531void ASTStmtReader::VisitExpr(
Expr *E) {
533 CurrentUnpackingBits.emplace(
Record.readInt());
535 CurrentUnpackingBits->getNextBits(5)));
537 CurrentUnpackingBits->getNextBits(2)));
539 CurrentUnpackingBits->getNextBits(3)));
543 "Incorrect expression field count");
558 switch (StorageKind) {
563 E->Int64Result() =
Record.readInt();
567 E->APValueResult() =
Record.readAPValue();
570 Record.getContext().addDestruction(&E->APValueResult());
581 E->setLocation(readSourceLocation());
582 E->setLParenLocation(readSourceLocation());
583 E->setRParenLocation(readSourceLocation());
585 E->setTypeSourceInfo(
Record.readTypeSourceInfo());
590 bool HasFunctionName =
Record.readInt();
596 E->setFunctionName(cast<StringLiteral>(
Record.readSubExpr()));
599void ASTStmtReader::VisitDeclRefExpr(
DeclRefExpr *E) {
602 CurrentUnpackingBits.emplace(
Record.readInt());
603 E->
DeclRefExprBits.HadMultipleCandidates = CurrentUnpackingBits->getNextBit();
605 CurrentUnpackingBits->getNextBit();
607 CurrentUnpackingBits->getNextBits(2);
608 E->
DeclRefExprBits.IsImmediateEscalating = CurrentUnpackingBits->getNextBit();
612 CurrentUnpackingBits->getNextBit();
613 E->
DeclRefExprBits.CapturedByCopyInLambdaWithExplicitObjectParameter =
false;
614 unsigned NumTemplateArgs = 0;
616 NumTemplateArgs =
Record.readInt();
622 if (E->hasFoundDecl())
623 *E->getTrailingObjects<
NamedDecl *>() = readDeclAs<NamedDecl>();
630 E->D = readDeclAs<ValueDecl>();
651 static_cast<llvm::APFloatBase::Semantics
>(
Record.readInt()));
667 unsigned NumConcatenated =
Record.readInt();
668 unsigned Length =
Record.readInt();
669 unsigned CharByteWidth =
Record.readInt();
671 "Wrong number of concatenated tokens!");
672 assert((Length == E->
getLength()) &&
"Wrong Length!");
673 assert((CharByteWidth == E->
getCharByteWidth()) &&
"Wrong character width!");
680 assert((CharByteWidth ==
681 StringLiteral::mapCharByteWidth(
Record.getContext().getTargetInfo(),
683 "Wrong character width!");
686 for (
unsigned I = 0; I < NumConcatenated; ++I)
687 E->setStrTokenLoc(I, readSourceLocation());
690 char *StrData = E->getStrDataAsChar();
691 for (
unsigned I = 0; I < Length * CharByteWidth; ++I)
692 StrData[I] =
Record.readInt();
702void ASTStmtReader::VisitParenExpr(
ParenExpr *E) {
711 unsigned NumExprs =
Record.readInt();
712 assert((NumExprs == E->
getNumExprs()) &&
"Wrong NumExprs!");
713 for (
unsigned I = 0; I != NumExprs; ++I)
714 E->getTrailingObjects<
Stmt *>()[I] =
Record.readSubStmt();
715 E->LParenLoc = readSourceLocation();
716 E->RParenLoc = readSourceLocation();
721 bool hasFP_Features = CurrentUnpackingBits->getNextBit();
778 if (
Record.peekInt() == 0) {
794 unsigned NumDetailRecords =
Record.readInt();
795 for (
unsigned i = 0; i != NumDetailRecords; ++i) {
799 std::string DiagMessage =
Record.readString();
800 Satisfaction.
Details.emplace_back(
801 ConstraintExpr,
new (
Record.getContext())
803 DiagLocation, DiagMessage});
805 Satisfaction.
Details.emplace_back(ConstraintExpr,
Record.readExpr());
811void ASTStmtReader::VisitConceptSpecializationExpr(
816 E->ConceptRef =
Record.readConceptReference();
824 std::string SubstitutedEntity =
Record.readString();
826 std::string DiagMessage =
Record.readString();
827 return new (
Record.getContext())
834 unsigned NumLocalParameters =
Record.readInt();
835 unsigned NumRequirements =
Record.readInt();
840 for (
unsigned i = 0; i < NumLocalParameters; ++i)
841 LocalParameters.push_back(cast<ParmVarDecl>(
Record.readDecl()));
842 std::copy(LocalParameters.begin(), LocalParameters.end(),
845 for (
unsigned i = 0; i < NumRequirements; ++i) {
855 R =
new (
Record.getContext())
858 R =
new (
Record.getContext())
873 std::optional<concepts::ExprRequirement::ReturnTypeRequirement> Req;
879 NoexceptLoc =
Record.readSourceLocation();
880 switch (
Record.readInt()) {
890 SubstitutedConstraintExpr =
891 cast<ConceptSpecializationExpr>(
Record.readExpr());
900 if (
Expr *Ex = E.dyn_cast<
Expr *>())
903 std::move(*Req), Status, SubstitutedConstraintExpr);
911 bool HasInvalidConstraint =
Record.readInt();
912 if (HasInvalidConstraint) {
913 std::string InvalidConstraint =
Record.readString();
914 char *InvalidConstraintBuf =
915 new (
Record.getContext())
char[InvalidConstraint.size()];
916 std::copy(InvalidConstraint.begin(), InvalidConstraint.end(),
917 InvalidConstraintBuf);
920 StringRef(InvalidConstraintBuf, InvalidConstraint.size()),
928 R =
new (
Record.getContext())
935 Requirements.push_back(R);
937 std::copy(Requirements.begin(), Requirements.end(),
939 E->LParenLoc =
Record.readSourceLocation();
940 E->RParenLoc =
Record.readSourceLocation();
941 E->RBraceLoc =
Record.readSourceLocation();
972 unsigned NumDims =
Record.readInt();
973 E->setBase(
Record.readSubExpr());
975 for (
unsigned I = 0; I < NumDims; ++I)
976 Dims[I] =
Record.readSubExpr();
977 E->setDimensions(Dims);
979 for (
unsigned I = 0; I < NumDims; ++I)
980 SRs[I] = readSourceRange();
981 E->setBracketsRanges(SRs);
988 unsigned NumIters =
Record.readInt();
992 for (
unsigned I = 0; I < NumIters; ++I) {
993 E->setIteratorDeclaration(I,
Record.readDeclRef());
994 E->setAssignmentLoc(I, readSourceLocation());
1001 SecColonLoc = readSourceLocation();
1002 E->setIteratorRange(I,
Begin, ColonLoc, End, SecColonLoc, Step);
1009 E->setHelper(I, HD);
1013void ASTStmtReader::VisitCallExpr(
CallExpr *E) {
1016 unsigned NumArgs =
Record.readInt();
1017 CurrentUnpackingBits.emplace(
Record.readInt());
1020 bool HasFPFeatures = CurrentUnpackingBits->getNextBit();
1021 assert((NumArgs == E->
getNumArgs()) &&
"Wrong NumArgs!");
1024 for (
unsigned I = 0; I != NumArgs; ++I)
1036void ASTStmtReader::VisitMemberExpr(
MemberExpr *E) {
1039 CurrentUnpackingBits.emplace(
Record.readInt());
1040 bool HasQualifier = CurrentUnpackingBits->getNextBit();
1041 bool HasFoundDecl = CurrentUnpackingBits->getNextBit();
1042 bool HasTemplateInfo = CurrentUnpackingBits->getNextBit();
1043 unsigned NumTemplateArgs =
Record.readInt();
1045 E->Base =
Record.readSubExpr();
1048 E->MemberLoc =
Record.readSourceLocation();
1050 E->
MemberExprBits.HasQualifierOrFoundDecl = HasQualifier || HasFoundDecl;
1052 E->
MemberExprBits.HadMultipleCandidates = CurrentUnpackingBits->getNextBit();
1054 CurrentUnpackingBits->getNextBits(2);
1057 if (HasQualifier || HasFoundDecl) {
1071 QualifierLoc =
Record.readNestedNameSpecifierLoc();
1076 if (HasTemplateInfo)
1082void ASTStmtReader::VisitObjCIsaExpr(
ObjCIsaExpr *E) {
1093 E->Operand =
Record.readSubExpr();
1094 E->setShouldCopy(
Record.readInt());
1098 VisitExplicitCastExpr(E);
1099 E->LParenLoc = readSourceLocation();
1100 E->BridgeKeywordLoc = readSourceLocation();
1101 E->Kind =
Record.readInt();
1104void ASTStmtReader::VisitCastExpr(
CastExpr *E) {
1106 unsigned NumBaseSpecs =
Record.readInt();
1109 CurrentUnpackingBits.emplace(
Record.readInt());
1111 unsigned HasFPFeatures = CurrentUnpackingBits->getNextBit();
1117 while (NumBaseSpecs--) {
1119 *BaseSpec =
Record.readCXXBaseSpecifier();
1120 *BaseI++ = BaseSpec;
1129 CurrentUnpackingBits.emplace(
Record.readInt());
1132 bool hasFP_Features = CurrentUnpackingBits->getNextBit();
1143 VisitBinaryOperator(E);
1150 E->SubExprs[ConditionalOperator::COND] =
Record.readSubExpr();
1151 E->SubExprs[ConditionalOperator::LHS] =
Record.readSubExpr();
1152 E->SubExprs[ConditionalOperator::RHS] =
Record.readSubExpr();
1153 E->QuestionLoc = readSourceLocation();
1154 E->ColonLoc = readSourceLocation();
1160 E->OpaqueValue = cast<OpaqueValueExpr>(
Record.readSubExpr());
1161 E->SubExprs[BinaryConditionalOperator::COMMON] =
Record.readSubExpr();
1162 E->SubExprs[BinaryConditionalOperator::COND] =
Record.readSubExpr();
1163 E->SubExprs[BinaryConditionalOperator::LHS] =
Record.readSubExpr();
1164 E->SubExprs[BinaryConditionalOperator::RHS] =
Record.readSubExpr();
1165 E->QuestionLoc = readSourceLocation();
1166 E->ColonLoc = readSourceLocation();
1180 VisitExplicitCastExpr(E);
1200void ASTStmtReader::VisitInitListExpr(
InitListExpr *E) {
1202 if (
auto *SyntForm = cast_or_null<InitListExpr>(
Record.readSubStmt()))
1206 bool isArrayFiller =
Record.readInt();
1207 Expr *filler =
nullptr;
1208 if (isArrayFiller) {
1209 filler =
Record.readSubExpr();
1210 E->ArrayFillerOrUnionFieldInit = filler;
1212 E->ArrayFillerOrUnionFieldInit = readDeclAs<FieldDecl>();
1214 unsigned NumInits =
Record.readInt();
1216 if (isArrayFiller) {
1217 for (
unsigned I = 0; I != NumInits; ++I) {
1222 for (
unsigned I = 0; I != NumInits; ++I)
1231 unsigned NumSubExprs =
Record.readInt();
1232 assert(NumSubExprs == E->
getNumSubExprs() &&
"Wrong number of subexprs");
1233 for (
unsigned I = 0; I != NumSubExprs; ++I)
1242 auto *
Field = readDeclAs<FieldDecl>();
1246 Field->getIdentifier(), DotLoc, FieldLoc));
1247 Designators.back().setFieldDecl(Field);
1261 unsigned Index =
Record.readInt();
1271 unsigned Index =
Record.readInt();
1276 Index, LBracketLoc, EllipsisLoc, RBracketLoc));
1282 Designators.data(), Designators.size());
1291void ASTStmtReader::VisitNoInitExpr(
NoInitExpr *E) {
1297 E->SubExprs[0] =
Record.readSubExpr();
1298 E->SubExprs[1] =
Record.readSubExpr();
1309void ASTStmtReader::VisitVAArgExpr(
VAArgExpr *E) {
1320 E->ParentContext = readDeclAs<DeclContext>();
1321 E->BuiltinLoc = readSourceLocation();
1322 E->RParenLoc = readSourceLocation();
1330 E->
setLabel(readDeclAs<LabelDecl>());
1333void ASTStmtReader::VisitStmtExpr(
StmtExpr *E) {
1341void ASTStmtReader::VisitChooseExpr(
ChooseExpr *E) {
1351void ASTStmtReader::VisitGNUNullExpr(
GNUNullExpr *E) {
1359 unsigned NumExprs =
Record.readInt();
1361 Exprs.push_back(
Record.readSubExpr());
1369 E->BuiltinLoc = readSourceLocation();
1370 E->RParenLoc = readSourceLocation();
1371 E->TInfo = readTypeSourceInfo();
1372 E->SrcExpr =
Record.readSubExpr();
1375void ASTStmtReader::VisitBlockExpr(
BlockExpr *E) {
1383 unsigned NumAssocs =
Record.readInt();
1384 assert(NumAssocs == E->
getNumAssocs() &&
"Wrong NumAssocs!");
1385 E->IsExprPredicate =
Record.readInt();
1386 E->ResultIndex =
Record.readInt();
1388 E->DefaultLoc = readSourceLocation();
1389 E->RParenLoc = readSourceLocation();
1391 Stmt **Stmts = E->getTrailingObjects<
Stmt *>();
1395 for (
unsigned I = 0, N = NumAssocs + 1; I < N; ++I)
1396 Stmts[I] =
Record.readSubExpr();
1399 for (
unsigned I = 0, N = NumAssocs; I < N; ++I)
1400 TSIs[I] = readTypeSourceInfo();
1405 unsigned numSemanticExprs =
Record.readInt();
1410 E->getSubExprsBuffer()[0] =
Record.readSubExpr();
1413 for (
unsigned i = 0; i != numSemanticExprs; ++i) {
1415 E->getSubExprsBuffer()[i+1] = subExpr;
1419void ASTStmtReader::VisitAtomicExpr(
AtomicExpr *E) {
1423 for (
unsigned I = 0; I != E->NumSubExprs; ++I)
1424 E->SubExprs[I] =
Record.readSubExpr();
1425 E->BuiltinLoc = readSourceLocation();
1426 E->RParenLoc = readSourceLocation();
1441 E->SubExpr =
Record.readSubStmt();
1442 E->BoxingMethod = readDeclAs<ObjCMethodDecl>();
1443 E->Range = readSourceRange();
1448 unsigned NumElements =
Record.readInt();
1449 assert(NumElements == E->
getNumElements() &&
"Wrong number of elements");
1451 for (
unsigned I = 0, N = NumElements; I != N; ++I)
1452 Elements[I] =
Record.readSubExpr();
1453 E->ArrayWithObjectsMethod = readDeclAs<ObjCMethodDecl>();
1454 E->Range = readSourceRange();
1459 unsigned NumElements =
Record.readInt();
1460 assert(NumElements == E->
getNumElements() &&
"Wrong number of elements");
1461 bool HasPackExpansions =
Record.readInt();
1462 assert(HasPackExpansions == E->HasPackExpansions &&
"Pack expansion mismatch");
1467 for (
unsigned I = 0; I != NumElements; ++I) {
1468 KeyValues[I].Key =
Record.readSubExpr();
1469 KeyValues[I].Value =
Record.readSubExpr();
1470 if (HasPackExpansions) {
1471 Expansions[I].EllipsisLoc = readSourceLocation();
1472 Expansions[I].NumExpansionsPlusOne =
Record.readInt();
1475 E->DictWithObjectsMethod = readDeclAs<ObjCMethodDecl>();
1476 E->Range = readSourceRange();
1497 E->ProtoLoc = readSourceLocation();
1503 E->
setDecl(readDeclAs<ObjCIvarDecl>());
1513 unsigned MethodRefFlags =
Record.readInt();
1516 auto *Getter = readDeclAs<ObjCMethodDecl>();
1517 auto *Setter = readDeclAs<ObjCMethodDecl>();
1518 E->setImplicitProperty(Getter, Setter, MethodRefFlags);
1520 E->setExplicitProperty(readDeclAs<ObjCPropertyDecl>(), MethodRefFlags);
1522 E->setLocation(readSourceLocation());
1523 E->setReceiverLocation(readSourceLocation());
1524 switch (
Record.readInt()) {
1526 E->setBase(
Record.readSubExpr());
1529 E->setSuperReceiver(
Record.readType());
1532 E->setClassReceiver(readDeclAs<ObjCInterfaceDecl>());
1542 E->GetAtIndexMethodDecl = readDeclAs<ObjCMethodDecl>();
1543 E->SetAtIndexMethodDecl = readDeclAs<ObjCMethodDecl>();
1550 unsigned NumStoredSelLocs =
Record.readInt();
1551 E->SelLocsKind =
Record.readInt();
1553 E->IsImplicit =
Record.readInt();
1580 E->LBracLoc = readSourceLocation();
1581 E->RBracLoc = readSourceLocation();
1583 for (
unsigned I = 0, N = E->
getNumArgs(); I != N; ++I)
1587 for (
unsigned I = 0; I != NumStoredSelLocs; ++I)
1588 Locs[I] = readSourceLocation();
1593 S->setElement(
Record.readSubStmt());
1594 S->setCollection(
Record.readSubExpr());
1595 S->setBody(
Record.readSubStmt());
1596 S->setForLoc(readSourceLocation());
1597 S->setRParenLoc(readSourceLocation());
1602 S->setCatchBody(
Record.readSubStmt());
1603 S->setCatchParamDecl(readDeclAs<VarDecl>());
1604 S->setAtCatchLoc(readSourceLocation());
1605 S->setRParenLoc(readSourceLocation());
1610 S->setFinallyBody(
Record.readSubStmt());
1611 S->setAtFinallyLoc(readSourceLocation());
1616 S->setSubStmt(
Record.readSubStmt());
1617 S->setAtLoc(readSourceLocation());
1622 assert(
Record.peekInt() == S->getNumCatchStmts());
1624 bool HasFinally =
Record.readInt();
1625 S->setTryBody(
Record.readSubStmt());
1626 for (
unsigned I = 0, N = S->getNumCatchStmts(); I != N; ++I)
1627 S->setCatchStmt(I, cast_or_null<ObjCAtCatchStmt>(
Record.readSubStmt()));
1630 S->setFinallyStmt(
Record.readSubStmt());
1631 S->setAtTryLoc(readSourceLocation());
1636 S->setSynchExpr(
Record.readSubStmt());
1637 S->setSynchBody(
Record.readSubStmt());
1638 S->setAtSynchronizedLoc(readSourceLocation());
1643 S->setThrowExpr(
Record.readSubStmt());
1644 S->setThrowLoc(readSourceLocation());
1658 E->VersionToCheck =
Record.readVersionTuple();
1665void ASTStmtReader::VisitCXXCatchStmt(
CXXCatchStmt *S) {
1667 S->CatchLoc = readSourceLocation();
1668 S->ExceptionDecl = readDeclAs<VarDecl>();
1669 S->HandlerBlock =
Record.readSubStmt();
1672void ASTStmtReader::VisitCXXTryStmt(
CXXTryStmt *S) {
1674 assert(
Record.peekInt() == S->getNumHandlers() &&
"NumStmtFields is wrong ?");
1676 S->TryLoc = readSourceLocation();
1677 S->getStmts()[0] =
Record.readSubStmt();
1678 for (
unsigned i = 0, e = S->getNumHandlers(); i != e; ++i)
1679 S->getStmts()[i + 1] =
Record.readSubStmt();
1684 S->ForLoc = readSourceLocation();
1685 S->CoawaitLoc = readSourceLocation();
1686 S->ColonLoc = readSourceLocation();
1687 S->RParenLoc = readSourceLocation();
1688 S->setInit(
Record.readSubStmt());
1689 S->setRangeStmt(
Record.readSubStmt());
1690 S->setBeginStmt(
Record.readSubStmt());
1691 S->setEndStmt(
Record.readSubStmt());
1692 S->setCond(
Record.readSubExpr());
1693 S->setInc(
Record.readSubExpr());
1694 S->setLoopVarStmt(
Record.readSubStmt());
1695 S->setBody(
Record.readSubStmt());
1700 S->KeywordLoc = readSourceLocation();
1701 S->IsIfExists =
Record.readInt();
1702 S->QualifierLoc =
Record.readNestedNameSpecifierLoc();
1703 S->NameInfo =
Record.readDeclarationNameInfo();
1704 S->SubStmt =
Record.readSubStmt();
1710 E->Range =
Record.readSourceRange();
1713void ASTStmtReader::VisitCXXRewrittenBinaryOperator(
1717 E->SemanticForm =
Record.readSubExpr();
1723 unsigned NumArgs =
Record.readInt();
1724 assert((NumArgs == E->
getNumArgs()) &&
"Wrong NumArgs!");
1734 E->Constructor = readDeclAs<CXXConstructorDecl>();
1735 E->ParenOrBraceRange = readSourceRange();
1737 for (
unsigned I = 0; I != NumArgs; ++I)
1743 E->Constructor = readDeclAs<CXXConstructorDecl>();
1744 E->Loc = readSourceLocation();
1745 E->ConstructsVirtualBase =
Record.readInt();
1746 E->InheritedFromVirtualBase =
Record.readInt();
1750 VisitCXXConstructExpr(E);
1751 E->TSI = readTypeSourceInfo();
1754void ASTStmtReader::VisitLambdaExpr(
LambdaExpr *E) {
1756 unsigned NumCaptures =
Record.readInt();
1759 E->IntroducerRange = readSourceRange();
1761 E->CaptureDefaultLoc = readSourceLocation();
1764 E->ClosingBrace = readSourceLocation();
1779 E->SubExpr =
Record.readSubExpr();
1783 VisitExplicitCastExpr(E);
1786 E->RParenLoc = R.
getEnd();
1787 if (CurrentUnpackingBits->getNextBit())
1788 E->AngleBrackets = readSourceRange();
1792 return VisitCXXNamedCastExpr(E);
1796 return VisitCXXNamedCastExpr(E);
1800 return VisitCXXNamedCastExpr(E);
1804 return VisitCXXNamedCastExpr(E);
1808 return VisitCXXNamedCastExpr(E);
1812 VisitExplicitCastExpr(E);
1818 VisitExplicitCastExpr(E);
1819 E->KWLoc = readSourceLocation();
1820 E->RParenLoc = readSourceLocation();
1825 E->UDSuffixLoc = readSourceLocation();
1843 E->Operand = readTypeSourceInfo();
1845 E->Operand =
Record.readSubExpr();
1848void ASTStmtReader::VisitCXXThisExpr(
CXXThisExpr *E) {
1854void ASTStmtReader::VisitCXXThrowExpr(
CXXThrowExpr *E) {
1857 E->Operand =
Record.readSubExpr();
1863 E->Param = readDeclAs<ParmVarDecl>();
1864 E->UsedContext = readDeclAs<DeclContext>();
1868 *E->getTrailingObjects<
Expr *>() =
Record.readSubExpr();
1874 E->Field = readDeclAs<FieldDecl>();
1875 E->UsedContext = readDeclAs<DeclContext>();
1878 *E->getTrailingObjects<
Expr *>() =
Record.readSubExpr();
1889 E->TypeInfo = readTypeSourceInfo();
1893void ASTStmtReader::VisitCXXNewExpr(
CXXNewExpr *E) {
1896 bool IsArray =
Record.readInt();
1897 bool HasInit =
Record.readInt();
1898 unsigned NumPlacementArgs =
Record.readInt();
1899 bool IsParenTypeId =
Record.readInt();
1907 assert((IsArray == E->
isArray()) &&
"Wrong IsArray!");
1910 "Wrong NumPlacementArgs!");
1911 assert((IsParenTypeId == E->
isParenTypeId()) &&
"Wrong IsParenTypeId!");
1914 (void)NumPlacementArgs;
1918 E->AllocatedTypeInfo = readTypeSourceInfo();
1920 E->getTrailingObjects<
SourceRange>()[0] = readSourceRange();
1921 E->Range = readSourceRange();
1922 E->DirectInitRange = readSourceRange();
1928 *I =
Record.readSubStmt();
1937 E->OperatorDelete = readDeclAs<FunctionDecl>();
1938 E->Argument =
Record.readSubExpr();
1945 E->Base =
Record.readSubExpr();
1946 E->IsArrow =
Record.readInt();
1947 E->OperatorLoc = readSourceLocation();
1948 E->QualifierLoc =
Record.readNestedNameSpecifierLoc();
1949 E->ScopeType = readTypeSourceInfo();
1950 E->ColonColonLoc = readSourceLocation();
1951 E->TildeLoc = readSourceLocation();
1963 unsigned NumObjects =
Record.readInt();
1965 for (
unsigned i = 0; i != NumObjects; ++i) {
1969 Obj = readDeclAs<BlockDecl>();
1971 Obj = cast<CompoundLiteralExpr>(
Record.readSubExpr());
1973 llvm_unreachable(
"unexpected cleanup object type");
1981void ASTStmtReader::VisitCXXDependentScopeMemberExpr(
1985 unsigned NumTemplateArgs =
Record.readInt();
1986 CurrentUnpackingBits.emplace(
Record.readInt());
1987 bool HasTemplateKWAndArgsInfo = CurrentUnpackingBits->getNextBit();
1988 bool HasFirstQualifierFoundInScope = CurrentUnpackingBits->getNextBit();
1990 assert((HasTemplateKWAndArgsInfo == E->hasTemplateKWAndArgsInfo()) &&
1991 "Wrong HasTemplateKWAndArgsInfo!");
1993 (HasFirstQualifierFoundInScope == E->hasFirstQualifierFoundInScope()) &&
1994 "Wrong HasFirstQualifierFoundInScope!");
1996 if (HasTemplateKWAndArgsInfo)
2002 "Wrong NumTemplateArgs!");
2005 CurrentUnpackingBits->getNextBit();
2007 E->BaseType =
Record.readType();
2008 E->QualifierLoc =
Record.readNestedNameSpecifierLoc();
2010 if (CurrentUnpackingBits->getNextBit())
2011 E->Base =
Record.readSubExpr();
2017 if (HasFirstQualifierFoundInScope)
2018 *E->getTrailingObjects<
NamedDecl *>() = readDeclAs<NamedDecl>();
2020 E->MemberNameInfo =
Record.readDeclarationNameInfo();
2027 if (CurrentUnpackingBits->getNextBit())
2031 CurrentUnpackingBits->getNextBits(16));
2033 E->QualifierLoc =
Record.readNestedNameSpecifierLoc();
2034 E->NameInfo =
Record.readDeclarationNameInfo();
2041 "Read wrong record during creation ?");
2043 for (
unsigned I = 0, N = E->
getNumArgs(); I != N; ++I)
2045 E->TypeAndInitForm.setPointer(readTypeSourceInfo());
2048 E->TypeAndInitForm.setInt(
Record.readInt());
2051void ASTStmtReader::VisitOverloadExpr(
OverloadExpr *E) {
2054 unsigned NumResults =
Record.readInt();
2055 CurrentUnpackingBits.emplace(
Record.readInt());
2056 bool HasTemplateKWAndArgsInfo = CurrentUnpackingBits->getNextBit();
2057 assert((E->
getNumDecls() == NumResults) &&
"Wrong NumResults!");
2059 "Wrong HasTemplateKWAndArgsInfo!");
2061 if (HasTemplateKWAndArgsInfo) {
2062 unsigned NumTemplateArgs =
Record.readInt();
2067 "Wrong NumTemplateArgs!");
2071 for (
unsigned I = 0; I != NumResults; ++I) {
2072 auto *D = readDeclAs<NamedDecl>();
2079 for (
unsigned I = 0; I != NumResults; ++I) {
2080 Results[I] = (
Iter + I).getPair();
2083 E->NameInfo =
Record.readDeclarationNameInfo();
2084 E->QualifierLoc =
Record.readNestedNameSpecifierLoc();
2088 VisitOverloadExpr(E);
2091 CurrentUnpackingBits->getNextBit();
2093 if (CurrentUnpackingBits->getNextBit())
2094 E->Base =
Record.readSubExpr();
2098 E->OperatorLoc = readSourceLocation();
2100 E->BaseType =
Record.readType();
2104 VisitOverloadExpr(E);
2107 E->NamingClass = readDeclAs<CXXRecordDecl>();
2116 E->Loc =
Range.getBegin();
2117 E->RParenLoc =
Range.getEnd();
2120 for (
unsigned I = 0, N = E->
getNumArgs(); I != N; ++I)
2121 Args[I] = readTypeSourceInfo();
2127 E->Value = (
unsigned int)
Record.readInt();
2129 E->Loc =
Range.getBegin();
2130 E->RParen =
Range.getEnd();
2131 E->QueriedType = readTypeSourceInfo();
2132 E->Dimension =
Record.readSubExpr();
2140 E->QueriedExpression =
Record.readSubExpr();
2141 E->Loc =
Range.getBegin();
2142 E->RParen =
Range.getEnd();
2148 E->Range = readSourceRange();
2149 E->Operand =
Record.readSubExpr();
2154 E->EllipsisLoc = readSourceLocation();
2155 E->NumExpansions =
Record.readInt();
2156 E->Pattern =
Record.readSubExpr();
2161 unsigned NumPartialArgs =
Record.readInt();
2162 E->OperatorLoc = readSourceLocation();
2163 E->PackLoc = readSourceLocation();
2164 E->RParenLoc = readSourceLocation();
2167 assert(E->Length == NumPartialArgs);
2169 *E = I + NumPartialArgs;
2173 E->Length =
Record.readInt();
2179 E->TransformedExpressions =
Record.readInt();
2180 E->EllipsisLoc = readSourceLocation();
2181 E->RSquareLoc = readSourceLocation();
2182 E->SubExprs[0] =
Record.readStmt();
2183 E->SubExprs[1] =
Record.readStmt();
2184 auto **Exprs = E->getTrailingObjects<
Expr *>();
2185 for (
unsigned I = 0; I < E->TransformedExpressions; ++I)
2186 Exprs[I] =
Record.readExpr();
2189void ASTStmtReader::VisitSubstNonTypeTemplateParmExpr(
2192 E->AssociatedDeclAndRef.setPointer(readDeclAs<Decl>());
2193 E->AssociatedDeclAndRef.setInt(CurrentUnpackingBits->getNextBit());
2194 E->Index = CurrentUnpackingBits->getNextBits(12);
2195 if (CurrentUnpackingBits->getNextBit())
2196 E->PackIndex =
Record.readInt();
2200 E->Replacement =
Record.readSubExpr();
2203void ASTStmtReader::VisitSubstNonTypeTemplateParmPackExpr(
2206 E->AssociatedDecl = readDeclAs<Decl>();
2207 E->Index =
Record.readInt();
2214 E->NameLoc = readSourceLocation();
2219 E->NumParameters =
Record.readInt();
2220 E->ParamPack = readDeclAs<ParmVarDecl>();
2221 E->NameLoc = readSourceLocation();
2222 auto **Parms = E->getTrailingObjects<
VarDecl *>();
2223 for (
unsigned i = 0, n = E->NumParameters; i != n; ++i)
2224 Parms[i] = readDeclAs<VarDecl>();
2229 bool HasMaterialzedDecl =
Record.readInt();
2230 if (HasMaterialzedDecl)
2231 E->State = cast<LifetimeExtendedTemporaryDecl>(
Record.readDecl());
2233 E->State =
Record.readSubExpr();
2236void ASTStmtReader::VisitCXXFoldExpr(
CXXFoldExpr *E) {
2238 E->LParenLoc = readSourceLocation();
2239 E->EllipsisLoc = readSourceLocation();
2240 E->RParenLoc = readSourceLocation();
2241 E->NumExpansions =
Record.readInt();
2242 E->SubExprs[0] =
Record.readSubExpr();
2243 E->SubExprs[1] =
Record.readSubExpr();
2244 E->SubExprs[2] =
Record.readSubExpr();
2250 unsigned ExpectedNumExprs =
Record.readInt();
2251 assert(E->NumExprs == ExpectedNumExprs &&
2252 "expected number of expressions does not equal the actual number of "
2253 "serialized expressions.");
2254 E->NumUserSpecifiedExprs =
Record.readInt();
2255 E->InitLoc = readSourceLocation();
2256 E->LParenLoc = readSourceLocation();
2257 E->RParenLoc = readSourceLocation();
2258 for (
unsigned I = 0; I < ExpectedNumExprs; I++)
2259 E->getTrailingObjects<
Expr *>()[I] =
Record.readSubExpr();
2261 bool HasArrayFillerOrUnionDecl =
Record.readBool();
2262 if (HasArrayFillerOrUnionDecl) {
2263 bool HasArrayFiller =
Record.readBool();
2264 if (HasArrayFiller) {
2275 E->SourceExpr =
Record.readSubExpr();
2280void ASTStmtReader::VisitTypoExpr(
TypoExpr *E) {
2281 llvm_unreachable(
"Cannot read TypoExpr nodes");
2284void ASTStmtReader::VisitRecoveryExpr(
RecoveryExpr *E) {
2286 unsigned NumArgs =
Record.readInt();
2287 E->BeginLoc = readSourceLocation();
2288 E->EndLoc = readSourceLocation();
2289 assert((NumArgs + 0LL ==
2294 Child =
Record.readSubStmt();
2302 E->IsArrow = (
Record.readInt() != 0);
2303 E->BaseExpr =
Record.readSubExpr();
2304 E->QualifierLoc =
Record.readNestedNameSpecifierLoc();
2305 E->MemberLoc = readSourceLocation();
2306 E->TheDecl = readDeclAs<MSPropertyDecl>();
2311 E->setBase(
Record.readSubExpr());
2312 E->setIdx(
Record.readSubExpr());
2319 E->Guid = readDeclAs<MSGuidDecl>();
2321 E->Operand = readTypeSourceInfo();
2323 E->Operand =
Record.readSubExpr();
2326void ASTStmtReader::VisitSEHLeaveStmt(
SEHLeaveStmt *S) {
2328 S->setLeaveLoc(readSourceLocation());
2333 S->Loc = readSourceLocation();
2334 S->Children[SEHExceptStmt::FILTER_EXPR] =
Record.readSubStmt();
2335 S->Children[SEHExceptStmt::BLOCK] =
Record.readSubStmt();
2340 S->Loc = readSourceLocation();
2341 S->Block =
Record.readSubStmt();
2344void ASTStmtReader::VisitSEHTryStmt(
SEHTryStmt *S) {
2346 S->IsCXXTry =
Record.readInt();
2347 S->TryLoc = readSourceLocation();
2348 S->Children[SEHTryStmt::TRY] =
Record.readSubStmt();
2349 S->Children[SEHTryStmt::HANDLER] =
Record.readSubStmt();
2364void ASTStmtReader::VisitAsTypeExpr(
AsTypeExpr *E) {
2366 E->BuiltinLoc = readSourceLocation();
2367 E->RParenLoc = readSourceLocation();
2368 E->SrcExpr =
Record.readSubExpr();
2377 for (
Stmt *&SubStmt : S->SubStmts)
2378 SubStmt =
Record.readSubStmt();
2392 VisitOMPExecutableDirective(D);
2396 VisitOMPLoopBasedDirective(D);
2403 VisitOMPExecutableDirective(D);
2408 VisitOMPExecutableDirective(D);
2409 D->setHasCancel(
Record.readBool());
2413 VisitOMPLoopDirective(D);
2416void ASTStmtReader::VisitOMPLoopTransformationDirective(
2418 VisitOMPLoopBasedDirective(D);
2423 VisitOMPLoopTransformationDirective(D);
2427 VisitOMPLoopTransformationDirective(D);
2431 VisitOMPLoopDirective(D);
2432 D->setHasCancel(
Record.readBool());
2436 VisitOMPLoopDirective(D);
2441 VisitOMPExecutableDirective(D);
2442 D->setHasCancel(
Record.readBool());
2447 VisitOMPExecutableDirective(D);
2453 VisitOMPExecutableDirective(D);
2458 VisitOMPExecutableDirective(D);
2463 VisitOMPExecutableDirective(D);
2468 VisitOMPExecutableDirective(D);
2469 D->DirName =
Record.readDeclarationNameInfo();
2473 VisitOMPLoopDirective(D);
2474 D->setHasCancel(
Record.readBool());
2477void ASTStmtReader::VisitOMPParallelForSimdDirective(
2479 VisitOMPLoopDirective(D);
2482void ASTStmtReader::VisitOMPParallelMasterDirective(
2485 VisitOMPExecutableDirective(D);
2488void ASTStmtReader::VisitOMPParallelMaskedDirective(
2491 VisitOMPExecutableDirective(D);
2494void ASTStmtReader::VisitOMPParallelSectionsDirective(
2497 VisitOMPExecutableDirective(D);
2498 D->setHasCancel(
Record.readBool());
2503 VisitOMPExecutableDirective(D);
2504 D->setHasCancel(
Record.readBool());
2509 VisitOMPExecutableDirective(D);
2514 VisitOMPExecutableDirective(D);
2521 VisitOMPExecutableDirective(D);
2528 VisitOMPExecutableDirective(D);
2533 VisitOMPExecutableDirective(D);
2538 VisitOMPExecutableDirective(D);
2543 VisitOMPExecutableDirective(D);
2548 VisitOMPExecutableDirective(D);
2553 VisitOMPExecutableDirective(D);
2558 VisitOMPExecutableDirective(D);
2559 D->Flags.IsXLHSInRHSPart =
Record.readBool() ? 1 : 0;
2560 D->Flags.IsPostfixUpdate =
Record.readBool() ? 1 : 0;
2561 D->Flags.IsFailOnly =
Record.readBool() ? 1 : 0;
2566 VisitOMPExecutableDirective(D);
2571 VisitOMPExecutableDirective(D);
2574void ASTStmtReader::VisitOMPTargetEnterDataDirective(
2577 VisitOMPExecutableDirective(D);
2580void ASTStmtReader::VisitOMPTargetExitDataDirective(
2583 VisitOMPExecutableDirective(D);
2586void ASTStmtReader::VisitOMPTargetParallelDirective(
2589 VisitOMPExecutableDirective(D);
2590 D->setHasCancel(
Record.readBool());
2593void ASTStmtReader::VisitOMPTargetParallelForDirective(
2595 VisitOMPLoopDirective(D);
2596 D->setHasCancel(
Record.readBool());
2601 VisitOMPExecutableDirective(D);
2604void ASTStmtReader::VisitOMPCancellationPointDirective(
2607 VisitOMPExecutableDirective(D);
2613 VisitOMPExecutableDirective(D);
2618 VisitOMPLoopDirective(D);
2619 D->setHasCancel(
Record.readBool());
2623 VisitOMPLoopDirective(D);
2626void ASTStmtReader::VisitOMPMasterTaskLoopDirective(
2628 VisitOMPLoopDirective(D);
2629 D->setHasCancel(
Record.readBool());
2632void ASTStmtReader::VisitOMPMaskedTaskLoopDirective(
2634 VisitOMPLoopDirective(D);
2635 D->setHasCancel(
Record.readBool());
2638void ASTStmtReader::VisitOMPMasterTaskLoopSimdDirective(
2640 VisitOMPLoopDirective(D);
2643void ASTStmtReader::VisitOMPMaskedTaskLoopSimdDirective(
2645 VisitOMPLoopDirective(D);
2648void ASTStmtReader::VisitOMPParallelMasterTaskLoopDirective(
2650 VisitOMPLoopDirective(D);
2651 D->setHasCancel(
Record.readBool());
2654void ASTStmtReader::VisitOMPParallelMaskedTaskLoopDirective(
2656 VisitOMPLoopDirective(D);
2657 D->setHasCancel(
Record.readBool());
2660void ASTStmtReader::VisitOMPParallelMasterTaskLoopSimdDirective(
2662 VisitOMPLoopDirective(D);
2665void ASTStmtReader::VisitOMPParallelMaskedTaskLoopSimdDirective(
2667 VisitOMPLoopDirective(D);
2671 VisitOMPLoopDirective(D);
2676 VisitOMPExecutableDirective(D);
2679void ASTStmtReader::VisitOMPDistributeParallelForDirective(
2681 VisitOMPLoopDirective(D);
2682 D->setHasCancel(
Record.readBool());
2685void ASTStmtReader::VisitOMPDistributeParallelForSimdDirective(
2687 VisitOMPLoopDirective(D);
2690void ASTStmtReader::VisitOMPDistributeSimdDirective(
2692 VisitOMPLoopDirective(D);
2695void ASTStmtReader::VisitOMPTargetParallelForSimdDirective(
2697 VisitOMPLoopDirective(D);
2701 VisitOMPLoopDirective(D);
2704void ASTStmtReader::VisitOMPTeamsDistributeDirective(
2706 VisitOMPLoopDirective(D);
2709void ASTStmtReader::VisitOMPTeamsDistributeSimdDirective(
2711 VisitOMPLoopDirective(D);
2714void ASTStmtReader::VisitOMPTeamsDistributeParallelForSimdDirective(
2716 VisitOMPLoopDirective(D);
2719void ASTStmtReader::VisitOMPTeamsDistributeParallelForDirective(
2721 VisitOMPLoopDirective(D);
2722 D->setHasCancel(
Record.readBool());
2727 VisitOMPExecutableDirective(D);
2730void ASTStmtReader::VisitOMPTargetTeamsDistributeDirective(
2732 VisitOMPLoopDirective(D);
2735void ASTStmtReader::VisitOMPTargetTeamsDistributeParallelForDirective(
2737 VisitOMPLoopDirective(D);
2738 D->setHasCancel(
Record.readBool());
2741void ASTStmtReader::VisitOMPTargetTeamsDistributeParallelForSimdDirective(
2743 VisitOMPLoopDirective(D);
2746void ASTStmtReader::VisitOMPTargetTeamsDistributeSimdDirective(
2748 VisitOMPLoopDirective(D);
2753 VisitOMPExecutableDirective(D);
2758 VisitOMPExecutableDirective(D);
2759 D->setTargetCallLoc(
Record.readSourceLocation());
2764 VisitOMPExecutableDirective(D);
2768 VisitOMPLoopDirective(D);
2771void ASTStmtReader::VisitOMPTeamsGenericLoopDirective(
2773 VisitOMPLoopDirective(D);
2776void ASTStmtReader::VisitOMPTargetTeamsGenericLoopDirective(
2778 VisitOMPLoopDirective(D);
2781void ASTStmtReader::VisitOMPParallelGenericLoopDirective(
2783 VisitOMPLoopDirective(D);
2786void ASTStmtReader::VisitOMPTargetParallelGenericLoopDirective(
2788 VisitOMPLoopDirective(D);
2796 S->Range =
Record.readSourceRange();
2800void ASTStmtReader::VisitOpenACCAssociatedStmtConstruct(
2802 VisitOpenACCConstructStmt(S);
2803 S->setAssociatedStmt(
Record.readSubStmt());
2808 VisitOpenACCAssociatedStmtConstruct(S);
2816 switch (ReadingKind) {
2818 llvm_unreachable(
"should not call this when not reading anything");
2821 return ReadStmtFromStream(F);
2826 llvm_unreachable(
"ReadingKind not set ?");
2830 return cast_or_null<Expr>(
ReadStmt(F));
2845 ReadingKindTracker ReadingKind(Read_Stmt, *
this);
2850 llvm::DenseMap<uint64_t, Stmt *> StmtEntries;
2853 unsigned PrevNumStmts = StmtStack.size();
2862 Cursor.advanceSkippingSubblocks();
2864 Error(
toString(MaybeEntry.takeError()));
2867 llvm::BitstreamEntry Entry = MaybeEntry.get();
2869 switch (Entry.Kind) {
2870 case llvm::BitstreamEntry::SubBlock:
2871 case llvm::BitstreamEntry::Error:
2872 Error(
"malformed block record in AST file");
2874 case llvm::BitstreamEntry::EndBlock:
2876 case llvm::BitstreamEntry::Record:
2883 bool Finished =
false;
2884 bool IsStmtReference =
false;
2886 if (!MaybeStmtCode) {
2887 Error(
toString(MaybeStmtCode.takeError()));
2890 switch ((
StmtCode)MaybeStmtCode.get()) {
2896 IsStmtReference =
true;
2897 assert(StmtEntries.contains(
Record[0]) &&
2898 "No stmt was recorded for this offset reference!");
2899 S = StmtEntries[
Record.readInt()];
2939 bool HasElse = IfStmtBits.getNextBit();
2940 bool HasVar = IfStmtBits.getNextBit();
2941 bool HasInit = IfStmtBits.getNextBit();
2960 S =
new (Context)
DoStmt(Empty);
2964 S =
new (Context)
ForStmt(Empty);
3023 DeclRefExprBits.advance(5);
3024 bool HasFoundDecl = DeclRefExprBits.getNextBit();
3025 bool HasQualifier = DeclRefExprBits.getNextBit();
3026 bool HasTemplateKWAndArgsInfo = DeclRefExprBits.getNextBit();
3027 unsigned NumTemplateArgs = HasTemplateKWAndArgsInfo
3031 HasTemplateKWAndArgsInfo, NumTemplateArgs);
3076 bool HasFPFeatures = UnaryOperatorBits.getNextBit();
3116 CallExprBits.advance(1);
3117 auto HasFPFeatures = CallExprBits.getNextBit();
3129 bool HasQualifier = ExprMemberBits.getNextBit();
3130 bool HasFoundDecl = ExprMemberBits.getNextBit();
3131 bool HasTemplateInfo = ExprMemberBits.getNextBit();
3134 HasTemplateInfo, NumTemplateArgs);
3140 BinaryOperatorBits.advance( 6);
3141 bool HasFPFeatures = BinaryOperatorBits.getNextBit();
3148 BinaryOperatorBits.advance( 6);
3149 bool HasFPFeatures = BinaryOperatorBits.getNextBit();
3165 CastExprBits.advance(7);
3166 bool HasFPFeatures = CastExprBits.getNextBit();
3174 CastExprBits.advance(7);
3175 bool HasFPFeatures = CastExprBits.getNextBit();
3304 llvm_unreachable(
"mismatching AST file");
3418 CollapsedNum, Empty);
3484 CollapsedNum, Empty);
3492 CollapsedNum, Empty);
3558 !HasAssociatedStmt, Empty);
3596 CollapsedNum, Empty);
3631 CollapsedNum, Empty);
3639 CollapsedNum, Empty);
3647 CollapsedNum, Empty);
3655 CollapsedNum, Empty);
3663 CollapsedNum, Empty);
3671 CollapsedNum, Empty);
3679 CollapsedNum, Empty);
3687 Context, NumClauses, CollapsedNum, Empty);
3695 Context, NumClauses, CollapsedNum, Empty);
3711 CollapsedNum, Empty);
3728 CollapsedNum, Empty);
3736 CollapsedNum, Empty);
3752 CollapsedNum, Empty);
3760 CollapsedNum, Empty);
3768 Context, NumClauses, CollapsedNum, Empty);
3776 Context, NumClauses, CollapsedNum, Empty);
3789 CollapsedNum, Empty);
3797 Context, NumClauses, CollapsedNum, Empty);
3805 Context, NumClauses, CollapsedNum, Empty);
3813 Context, NumClauses, CollapsedNum, Empty);
3836 CollapsedNum, Empty);
3844 CollapsedNum, Empty);
3852 CollapsedNum, Empty);
3860 CollapsedNum, Empty);
3868 Context, NumClauses, CollapsedNum, Empty);
3875 CallExprBits.advance(1);
3876 auto HasFPFeatures = CallExprBits.getNextBit();
3885 CallExprBits.advance(1);
3886 auto HasFPFeatures = CallExprBits.getNextBit();
3915 CastExprBits.advance(7);
3916 bool HasFPFeatures = CastExprBits.getNextBit();
3944 CastExprBits.advance(7);
3945 bool HasFPFeatures = CastExprBits.getNextBit();
3953 assert(PathSize == 0 &&
"Wrong PathSize!");
3962 CallExprBits.advance(1);
3963 auto HasFPFeatures = CallExprBits.getNextBit();
4057 bool HasTemplateKWAndArgsInfo = DependentScopeMemberBits.getNextBit();
4059 bool HasFirstQualifierFoundInScope =
4060 DependentScopeMemberBits.getNextBit();
4062 Context, HasTemplateKWAndArgsInfo, NumTemplateArgs,
4063 HasFirstQualifierFoundInScope);
4071 bool HasTemplateKWAndArgsInfo = DependentScopeDeclRefBits.getNextBit();
4072 unsigned NumTemplateArgs =
4073 HasTemplateKWAndArgsInfo
4074 ? DependentScopeDeclRefBits.getNextBits(16)
4077 Context, HasTemplateKWAndArgsInfo, NumTemplateArgs);
4089 auto HasTemplateKWAndArgsInfo = OverloadExprBits.getNextBit();
4090 auto NumTemplateArgs = HasTemplateKWAndArgsInfo
4094 Context, NumResults, HasTemplateKWAndArgsInfo, NumTemplateArgs);
4101 auto HasTemplateKWAndArgsInfo = OverloadExprBits.getNextBit();
4102 auto NumTemplateArgs = HasTemplateKWAndArgsInfo
4106 Context, NumResults, HasTemplateKWAndArgsInfo, NumTemplateArgs);
4176 CallExprBits.advance(1);
4177 auto HasFPFeatures = CallExprBits.getNextBit();
4245 ++NumStatementsRead;
4247 if (S && !IsStmtReference) {
4249 StmtEntries[
Cursor.GetCurrentBitNo()] = S;
4253 "Invalid deserialization of statement");
4254 StmtStack.push_back(S);
4257 assert(StmtStack.size() > PrevNumStmts &&
"Read too many sub-stmts!");
4258 assert(StmtStack.size() == PrevNumStmts + 1 &&
"Extra expressions on stack!");
4259 return StmtStack.pop_back_val();
This file provides AST data structures related to concepts.
Defines the clang::ASTContext interface.
static concepts::Requirement::SubstitutionDiagnostic * readSubstitutionDiagnostic(ASTRecordReader &Record)
static ConstraintSatisfaction readConstraintSatisfaction(ASTRecordReader &Record)
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate....
Defines the C++ template declaration subclasses.
Defines the clang::Expr interface and subclasses for C++ expressions.
Defines enumerations for expression traits intrinsics.
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.
llvm::MachO::Record Record
This file defines OpenMP AST classes for clauses.
Defines some OpenMP-specific enums and functions.
Defines an enumeration for C++ overloaded operators.
static std::string toString(const clang::SanitizerSet &Sanitizers)
Produce a string containing comma-separated names of sanitizers in Sanitizers set.
Defines the clang::SourceLocation class and associated facilities.
Defines various enumerations that describe declaration and type specifiers.
Defines the Objective-C statement AST node classes.
This file defines OpenMP AST classes for executable directives and clauses.
Defines enumerations for the type traits support.
C Language Family Type Representation.
void setValue(const ASTContext &C, const llvm::APInt &Val)
bool needsCleanup() const
Returns whether the object performed allocations.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
ASTContext & getContext()
Retrieve the AST context that this AST reader supplements.
Stmt * ReadSubStmt()
Reads a sub-statement operand during statement reading.
Expr * ReadSubExpr()
Reads a sub-expression operand during statement reading.
Expr * ReadExpr(ModuleFile &F)
Reads an expression.
Stmt * ReadStmt(ModuleFile &F)
Reads a statement.
An object for streaming information from a record.
static const unsigned NumExprFields
The number of record fields required for the Expr class itself.
static const unsigned NumStmtFields
The number of record fields required for the Stmt class itself.
static const unsigned NumExprBits
The number of bits required for the packing bits for the Expr class.
void ReadTemplateKWAndArgsInfo(ASTTemplateKWAndArgsInfo &Args, TemplateArgumentLoc *ArgsLocArray, unsigned NumTemplateArgs)
Read and initialize a ExplicitTemplateArgumentList structure.
ASTStmtReader(ASTRecordReader &Record, llvm::BitstreamCursor &Cursor)
AddrLabelExpr - The GNU address of label extension, representing &&label.
void setLabel(LabelDecl *L)
void setLabelLoc(SourceLocation L)
void setAmpAmpLoc(SourceLocation L)
Represents the index of the current element of an array being initialized by an ArrayInitLoopExpr.
Represents a loop initializing the elements of an array.
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
void setRBracketLoc(SourceLocation L)
An Embarcadero array type trait, as used in the implementation of __array_rank and __array_extent.
AsTypeExpr - Clang builtin function __builtin_astype [OpenCL 6.2.4.2] This AST node provides support ...
AsmStmt is the base class for GCCAsmStmt and MSAsmStmt.
AtomicExpr - Variadic atomic builtins: __atomic_exchange, __atomic_fetch_*, __atomic_load,...
unsigned getNumSubExprs() const
Represents an attribute applied to a statement.
static AttributedStmt * CreateEmpty(const ASTContext &C, unsigned NumAttrs)
BinaryConditionalOperator - The GNU extension to the conditional operator which allows the middle ope...
A builtin binary operation expression such as "x + y" or "x <= y".
void setHasStoredFPFeatures(bool B)
Set and fetch the bit that shows whether FPFeatures needs to be allocated in Trailing Storage.
void setOperatorLoc(SourceLocation L)
static BinaryOperator * CreateEmpty(const ASTContext &C, bool hasFPFeatures)
void setStoredFPFeatures(FPOptionsOverride F)
Set FPFeatures in trailing storage, used only by Serialization.
void setOpcode(Opcode Opc)
A simple helper class to unpack an integer to bits and consuming the bits in order.
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
void setBlockDecl(BlockDecl *BD)
BreakStmt - This represents a break.
Represents a C++2a __builtin_bit_cast(T, v) expression.
CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr....
static CStyleCastExpr * CreateEmpty(const ASTContext &Context, unsigned PathSize, bool HasFPFeatures)
void setRParenLoc(SourceLocation L)
void setLParenLoc(SourceLocation L)
Represents a call to a CUDA kernel function.
static CUDAKernelCallExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, bool HasFPFeatures, EmptyShell Empty)
A C++ addrspace_cast expression (currently only enabled for OpenCL).
static CXXAddrspaceCastExpr * CreateEmpty(const ASTContext &Context)
Represents a base class of a C++ class.
Represents binding an expression to a temporary.
void setTemporary(CXXTemporary *T)
A boolean literal, per ([C++ lex.bool] Boolean literals).
void setLocation(SourceLocation L)
CXXCatchStmt - This represents a C++ catch block.
A C++ const_cast expression (C++ [expr.const.cast]).
static CXXConstCastExpr * CreateEmpty(const ASTContext &Context)
Represents a call to a C++ constructor.
void setArg(unsigned Arg, Expr *ArgExpr)
Set the specified argument.
unsigned getNumArgs() const
Return the number of arguments to the constructor call.
static CXXConstructExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs)
Create an empty C++ construction expression.
A default argument (C++ [dcl.fct.default]).
static CXXDefaultArgExpr * CreateEmpty(const ASTContext &C, bool HasRewrittenInit)
A use of a default initializer in a constructor or in aggregate initialization.
static CXXDefaultInitExpr * CreateEmpty(const ASTContext &C, bool HasRewrittenInit)
Represents a delete expression for memory deallocation and destructor calls, e.g.
Represents a C++ member access expression where the actual member referenced could not be resolved be...
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
static CXXDependentScopeMemberExpr * CreateEmpty(const ASTContext &Ctx, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs, bool HasFirstQualifierFoundInScope)
A C++ dynamic_cast expression (C++ [expr.dynamic.cast]).
static CXXDynamicCastExpr * CreateEmpty(const ASTContext &Context, unsigned pathSize)
Represents a folding of a pack over an operator.
CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for statement, represented as 'for (ra...
Represents an explicit C++ type conversion that uses "functional" notation (C++ [expr....
void setLParenLoc(SourceLocation L)
static CXXFunctionalCastExpr * CreateEmpty(const ASTContext &Context, unsigned PathSize, bool HasFPFeatures)
void setRParenLoc(SourceLocation L)
Represents a call to an inherited base class constructor from an inheriting constructor.
Represents a call to a member function that may be written either with member call syntax (e....
static CXXMemberCallExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, bool HasFPFeatures, EmptyShell Empty)
Abstract class common to all of the C++ "named"/"keyword" casts.
Represents a new-expression for memory allocation and constructor calls, e.g: "new CXXNewExpr(foo)".
static CXXNewExpr * CreateEmpty(const ASTContext &Ctx, bool IsArray, bool HasInit, unsigned NumPlacementArgs, bool IsParenTypeId)
Create an empty c++ new expression.
bool hasInitializer() const
Whether this new-expression has any initializer at all.
void setOperatorDelete(FunctionDecl *D)
unsigned getNumPlacementArgs() const
bool isParenTypeId() const
raw_arg_iterator raw_arg_end()
raw_arg_iterator raw_arg_begin()
void setOperatorNew(FunctionDecl *D)
Represents a C++11 noexcept expression (C++ [expr.unary.noexcept]).
The null pointer literal (C++11 [lex.nullptr])
void setLocation(SourceLocation L)
A call to an overloaded operator written using operator syntax.
static CXXOperatorCallExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, bool HasFPFeatures, EmptyShell Empty)
Represents a list-initialization with parenthesis.
void setInitializedFieldInUnion(FieldDecl *FD)
static CXXParenListInitExpr * CreateEmpty(ASTContext &C, unsigned numExprs, EmptyShell Empty)
void setArrayFiller(Expr *E)
Represents a C++ pseudo-destructor (C++ [expr.pseudo]).
void setDestroyedType(IdentifierInfo *II, SourceLocation Loc)
Set the name of destroyed type for a dependent pseudo-destructor expression.
A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]).
static CXXReinterpretCastExpr * CreateEmpty(const ASTContext &Context, unsigned pathSize)
A rewritten comparison expression that was originally written using operator syntax.
An expression "T()" which creates a value-initialized rvalue of type T, which is a non-class type.
A C++ static_cast expression (C++ [expr.static.cast]).
static CXXStaticCastExpr * CreateEmpty(const ASTContext &Context, unsigned PathSize, bool hasFPFeatures)
Implicit construction of a std::initializer_list<T> object from an array temporary within list-initia...
Represents a C++ functional cast expression that builds a temporary object.
static CXXTemporaryObjectExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs)
Represents the this expression in C++.
void setLocation(SourceLocation L)
static CXXThisExpr * CreateEmpty(const ASTContext &Ctx)
A C++ throw-expression (C++ [except.throw]).
CXXTryStmt - A C++ try block, including all handlers.
static CXXTryStmt * Create(const ASTContext &C, SourceLocation tryLoc, CompoundStmt *tryBlock, ArrayRef< Stmt * > handlers)
A C++ typeid expression (C++ [expr.typeid]), which gets the type_info that corresponds to the supplie...
bool isTypeOperand() const
void setSourceRange(SourceRange R)
Describes an explicit type conversion that uses functional notion but could not be resolved because o...
void setRParenLoc(SourceLocation L)
void setArg(unsigned I, Expr *E)
void setLParenLoc(SourceLocation L)
unsigned getNumArgs() const
Retrieve the number of arguments.
static CXXUnresolvedConstructExpr * CreateEmpty(const ASTContext &Context, unsigned NumArgs)
A Microsoft C++ __uuidof expression, which gets the _GUID that corresponds to the supplied type or ex...
bool isTypeOperand() const
void setSourceRange(SourceRange R)
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
void setRParenLoc(SourceLocation L)
void setArg(unsigned Arg, Expr *ArgExpr)
setArg - Set the specified argument.
void setADLCallKind(ADLCallKind V=UsesADL)
static CallExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, bool HasFPFeatures, EmptyShell Empty)
Create an empty call expression, for deserialization.
void setPreArg(unsigned I, Stmt *PreArg)
void setStoredFPFeatures(FPOptionsOverride F)
Set FPOptionsOverride in trailing storage. Used only by Serialization.
unsigned getNumArgs() const
getNumArgs - Return the number of actual arguments to this call.
This captures a statement into a function.
static CapturedStmt * CreateDeserialized(const ASTContext &Context, unsigned NumCaptures)
VariableCaptureKind
The different capture forms: by 'this', by reference, capture for variable-length array type etc.
CaseStmt - Represent a case statement.
static CaseStmt * CreateEmpty(const ASTContext &Ctx, bool CaseStmtIsGNURange)
Build an empty case statement.
CastExpr - Base class for type casts, including both implicit casts (ImplicitCastExpr) and explicit c...
FPOptionsOverride * getTrailingFPFeatures()
Return a pointer to the trailing FPOptions.
path_iterator path_begin()
unsigned path_size() const
void setCastKind(CastKind K)
bool hasStoredFPFeatures() const
void setValue(unsigned Val)
void setLocation(SourceLocation Location)
void setKind(CharacterLiteralKind kind)
ChooseExpr - GNU builtin-in function __builtin_choose_expr.
void setRParenLoc(SourceLocation L)
void setIsConditionTrue(bool isTrue)
void setBuiltinLoc(SourceLocation L)
Represents a 'co_await' expression.
void setIsImplicit(bool value=true)
CompoundAssignOperator - For compound assignments (e.g.
void setComputationResultType(QualType T)
static CompoundAssignOperator * CreateEmpty(const ASTContext &C, bool hasFPFeatures)
void setComputationLHSType(QualType T)
CompoundLiteralExpr - [C99 6.5.2.5].
void setFileScope(bool FS)
void setTypeSourceInfo(TypeSourceInfo *tinfo)
void setLParenLoc(SourceLocation L)
void setInitializer(Expr *E)
CompoundStmt - This represents a group of statements like { stmt stmt }.
static CompoundStmt * CreateEmpty(const ASTContext &C, unsigned NumStmts, bool HasFPFeatures)
Represents the specialization of a concept - evaluates to a prvalue of type bool.
ConditionalOperator - The ?: ternary operator.
ConstantExpr - An expression that occurs in a constant context and optionally the result of evaluatin...
ConstantResultStorageKind getResultStorageKind() const
static ConstantExpr * CreateEmpty(const ASTContext &Context, ConstantResultStorageKind StorageKind)
The result of a constraint satisfaction check, containing the necessary information to diagnose an un...
llvm::SmallVector< std::pair< const Expr *, Detail >, 4 > Details
Pairs of unsatisfied atomic constraint expressions along with the substituted constraint expr,...
std::pair< SourceLocation, StringRef > SubstitutionDiagnostic
ContinueStmt - This represents a continue.
ConvertVectorExpr - Clang builtin function __builtin_convertvector This AST node provides support for...
Represents a 'co_return' statement in the C++ Coroutines TS.
Represents the body of a coroutine.
static CoroutineBodyStmt * Create(const ASTContext &C, CtorArgs const &Args)
Represents a 'co_yield' expression.
A POD class for pairing a NamedDecl* with an access specifier.
static DeclAccessPair make(NamedDecl *D, AccessSpecifier AS)
static DeclGroup * Create(ASTContext &C, Decl **Decls, unsigned NumDecls)
A reference to a declared variable, function, enum, etc.
bool hasTemplateKWAndArgsInfo() const
static DeclRefExpr * CreateEmpty(const ASTContext &Context, bool HasQualifier, bool HasFoundDecl, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
Construct an empty declaration reference expression.
void setLocation(SourceLocation L)
bool hasQualifier() const
Determine whether this declaration reference was preceded by a C++ nested-name-specifier,...
DeclStmt - Adaptor class for mixing declarations with statements and expressions.
Decl - This represents one declaration (or definition), e.g.
AccessSpecifier getAccess() const
Represents a 'co_await' expression while the type of the promise is dependent.
A qualified reference to a name whose declaration cannot yet be resolved.
static DependentScopeDeclRefExpr * CreateEmpty(const ASTContext &Context, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
Represents a single C99 designator.
Represents a C99 designated initializer expression.
static DesignatedInitExpr * CreateEmpty(const ASTContext &C, unsigned NumIndexExprs)
void setSubExpr(unsigned Idx, Expr *E)
void setGNUSyntax(bool GNU)
void setEqualOrColonLoc(SourceLocation L)
void setDesignators(const ASTContext &C, const Designator *Desigs, unsigned NumDesigs)
unsigned getNumSubExprs() const
Retrieve the total number of subexpressions in this designated initializer expression,...
void setUpdater(Expr *Updater)
Designator - A designator in a C99 designated initializer.
static Designator CreateArrayRangeDesignator(Expr *Start, Expr *End, SourceLocation LBracketLoc, SourceLocation EllipsisLoc)
Creates a GNU array-range designator.
static Designator CreateArrayDesignator(Expr *Index, SourceLocation LBracketLoc)
Creates an array designator.
static Designator CreateFieldDesignator(const IdentifierInfo *FieldName, SourceLocation DotLoc, SourceLocation FieldLoc)
Creates a field designator.
DoStmt - This represents a 'do/while' stmt.
ExplicitCastExpr - An explicit cast written in the source code.
void setTypeInfoAsWritten(TypeSourceInfo *writtenTy)
Represents an expression – generally a full-expression – that introduces cleanups to be run at the en...
unsigned getNumObjects() const
llvm::PointerUnion< BlockDecl *, CompoundLiteralExpr * > CleanupObject
The type of objects that are kept in the cleanup.
static ExprWithCleanups * Create(const ASTContext &C, EmptyShell empty, unsigned numObjects)
This represents one expression.
bool isValueDependent() const
Determines whether the value of this expression depends on.
bool isInstantiationDependent() const
Whether this expression is instantiation-dependent, meaning that it depends in some way on.
void setValueKind(ExprValueKind Cat)
setValueKind - Set the value kind produced by this expression.
void setObjectKind(ExprObjectKind Cat)
setObjectKind - Set the object kind produced by this expression.
void setDependence(ExprDependence Deps)
Each concrete expr subclass is expected to compute its dependence and call this in the constructor.
An expression trait intrinsic.
ExtVectorElementExpr - This represents access to specific elements of a vector, and may occur on the ...
void setAccessor(IdentifierInfo *II)
void setAccessorLoc(SourceLocation L)
static FPOptionsOverride getFromOpaqueInt(storage_type I)
static FixedPointLiteral * Create(const ASTContext &C, EmptyShell Empty)
Returns an empty fixed-point literal.
void setLocation(SourceLocation Location)
void setScale(unsigned S)
static FloatingLiteral * Create(const ASTContext &C, const llvm::APFloat &V, bool isexact, QualType Type, SourceLocation L)
const llvm::fltSemantics & getSemantics() const
Return the APFloat semantics this literal uses.
void setValue(const ASTContext &C, const llvm::APFloat &Val)
void setRawSemantics(llvm::APFloatBase::Semantics Sem)
Set the raw enumeration value representing the floating-point semantics of this literal (32-bit IEEE,...
void setLocation(SourceLocation L)
ForStmt - This represents a 'for (init;cond;inc)' stmt.
void setSubExpr(Expr *E)
As with any mutator of the AST, be very careful when modifying an existing AST to preserve its invari...
Represents a reference to a function parameter pack or init-capture pack that has been substituted bu...
static FunctionParmPackExpr * CreateEmpty(const ASTContext &Context, unsigned NumParams)
This represents a GCC inline-assembly statement extension.
GNUNullExpr - Implements the GNU __null extension, which is a name for a null pointer constant that h...
void setTokenLocation(SourceLocation L)
Represents a C11 generic selection.
unsigned getNumAssocs() const
The number of association expressions.
static GenericSelectionExpr * CreateEmpty(const ASTContext &Context, unsigned NumAssocs)
Create an empty generic selection expression for deserialization.
GotoStmt - This represents a direct goto.
One of these records is kept for each identifier that is lexed.
IfStmt - This represents an if/then/else.
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...
ImaginaryLiteral - We support imaginary integer and floating point literals, like "1....
ImplicitCastExpr - Allows us to explicitly represent implicit type conversions, which have no direct ...
static ImplicitCastExpr * CreateEmpty(const ASTContext &Context, unsigned PathSize, bool HasFPFeatures)
void setIsPartOfExplicitCast(bool PartOfExplicitCast)
Represents an implicitly-generated value initialization of an object of a given type.
IndirectGotoStmt - This represents an indirect goto.
Describes an C or C++ initializer list.
void setSyntacticForm(InitListExpr *Init)
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...
void setLBraceLoc(SourceLocation Loc)
void setRBraceLoc(SourceLocation Loc)
void sawArrayRangeDesignator(bool ARD=true)
void reserveInits(const ASTContext &C, unsigned NumInits)
Reserve space for some number of initializers.
void setLocation(SourceLocation Location)
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'.
LabelStmt - Represents a label, which has a substatement.
A C++ lambda expression, which produces a function object (of unspecified type) that can be invoked l...
static LambdaExpr * CreateDeserialized(const ASTContext &C, unsigned NumCaptures)
Construct a new lambda expression that will be deserialized from an external source.
capture_init_iterator capture_init_end()
Retrieve the iterator pointing one past the last initialization argument for this lambda expression.
capture_init_iterator capture_init_begin()
Retrieve the first initialization argument for this lambda expression (which initializes the first ca...
This represents a Microsoft inline-assembly statement extension.
Representation of a Microsoft __if_exists or __if_not_exists statement with a dependent name.
A member reference to an MSPropertyDecl.
MS property subscript expression.
void setRBracketLoc(SourceLocation L)
Represents a prvalue temporary that is written into memory so that a reference can bind to it.
MatrixSubscriptExpr - Matrix subscript expression for the MatrixType extension.
void setColumnIdx(Expr *E)
void setRBracketLoc(SourceLocation L)
MemberExpr - [C99 6.5.2.3] Structure and Union Members.
static MemberExpr * CreateEmpty(const ASTContext &Context, bool HasQualifier, bool HasFoundDecl, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
This represents a decl that may have a name.
DeclarationName getDeclName() const
Get the actual, stored name of the declaration, which may be a special name.
A C++ nested-name-specifier augmented with source location information.
Represents a place-holder for an object not to be initialized by anything.
NullStmt - This is the null statement ";": C99 6.8.3p3.
OpenMP 5.0 [2.1.5, Array Sections].
void setStride(Expr *E)
Set length of the array section.
void setLength(Expr *E)
Set length of the array section.
void setColonLocFirst(SourceLocation L)
void setLowerBound(Expr *E)
Set lower bound of the array section.
void setRBracketLoc(SourceLocation L)
void setBase(Expr *E)
Set base of the array section.
void setColonLocSecond(SourceLocation L)
An explicit cast in C or a C-style cast in C++, which uses the syntax ([s1][s2]......
void setLParenLoc(SourceLocation L)
static OMPArrayShapingExpr * CreateEmpty(const ASTContext &Context, unsigned NumDims)
void setRParenLoc(SourceLocation L)
This represents '#pragma omp atomic' directive.
static OMPAtomicDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp barrier' directive.
static OMPBarrierDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
This represents '#pragma omp cancel' directive.
static OMPCancelDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
This represents '#pragma omp cancellation point' directive.
static OMPCancellationPointDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
Representation of an OpenMP canonical loop.
static OMPCanonicalLoop * createEmpty(const ASTContext &Ctx)
Create an empty OMPCanonicalLoop for deserialization.
This represents '#pragma omp critical' directive.
static OMPCriticalDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
This represents '#pragma omp depobj' directive.
static OMPDepobjDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp dispatch' directive.
static OMPDispatchDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp distribute' directive.
static OMPDistributeDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp distribute parallel for' composite directive.
static OMPDistributeParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp distribute parallel for simd' composite directive.
static OMPDistributeParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp distribute simd' composite directive.
static OMPDistributeSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp error' directive.
static OMPErrorDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
This is a basic class for representing single OpenMP executable directive.
void setLocStart(SourceLocation Loc)
Set starting location of directive kind.
OMPChildren * Data
Data, associated with the directive.
void setLocEnd(SourceLocation Loc)
Set ending location of directive.
void setMappedDirective(OpenMPDirectiveKind MappedDirective)
This represents '#pragma omp flush' directive.
static OMPFlushDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp for' directive.
static OMPForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp for simd' directive.
static OMPForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp loop' directive.
static OMPGenericLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with a place for NumClauses clauses.
This represents '#pragma omp interop' directive.
static OMPInteropDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
OpenMP 5.0 [2.1.6 Iterators] Iterators are identifiers that expand to multiple values in the clause o...
void setLParenLoc(SourceLocation L)
static OMPIteratorExpr * CreateEmpty(const ASTContext &Context, unsigned NumIterators)
void setRParenLoc(SourceLocation L)
void setIteratorKwLoc(SourceLocation L)
The base class for all loop-based directives, including loop transformation directives.
This is a common base class for loop directives ('omp simd', 'omp for', 'omp for simd' etc....
This represents '#pragma omp masked' directive.
static OMPMaskedDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
This represents '#pragma omp masked taskloop' directive.
static OMPMaskedTaskLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp masked taskloop simd' directive.
static OMPMaskedTaskLoopSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp master' directive.
static OMPMasterDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
This represents '#pragma omp master taskloop' directive.
static OMPMasterTaskLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp master taskloop simd' directive.
static OMPMasterTaskLoopSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp ordered' directive.
static OMPOrderedDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, bool IsStandalone, EmptyShell)
Creates an empty directive.
This represents '#pragma omp parallel' directive.
static OMPParallelDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for N clauses.
This represents '#pragma omp parallel for' directive.
static OMPParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel for simd' directive.
static OMPParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel loop' directive.
static OMPParallelGenericLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel masked' directive.
static OMPParallelMaskedDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel masked taskloop' directive.
static OMPParallelMaskedTaskLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel masked taskloop simd' directive.
static OMPParallelMaskedTaskLoopSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel master' directive.
static OMPParallelMasterDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel master taskloop' directive.
static OMPParallelMasterTaskLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel master taskloop simd' directive.
static OMPParallelMasterTaskLoopSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp parallel sections' directive.
static OMPParallelSectionsDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp scan' directive.
static OMPScanDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp scope' directive.
static OMPScopeDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
This represents '#pragma omp section' directive.
static OMPSectionDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
void setHasCancel(bool Has)
Set cancel state.
This represents '#pragma omp sections' directive.
static OMPSectionsDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp simd' directive.
static OMPSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp single' directive.
static OMPSingleDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target data' directive.
static OMPTargetDataDirective * CreateEmpty(const ASTContext &C, unsigned N, EmptyShell)
Creates an empty directive with the place for N clauses.
This represents '#pragma omp target' directive.
static OMPTargetDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target enter data' directive.
static OMPTargetEnterDataDirective * CreateEmpty(const ASTContext &C, unsigned N, EmptyShell)
Creates an empty directive with the place for N clauses.
This represents '#pragma omp target exit data' directive.
static OMPTargetExitDataDirective * CreateEmpty(const ASTContext &C, unsigned N, EmptyShell)
Creates an empty directive with the place for N clauses.
This represents '#pragma omp target parallel' directive.
static OMPTargetParallelDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target parallel for' directive.
static OMPTargetParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target parallel for simd' directive.
static OMPTargetParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target parallel loop' directive.
static OMPTargetParallelGenericLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target simd' directive.
static OMPTargetSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target teams' directive.
static OMPTargetTeamsDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target teams distribute' combined directive.
static OMPTargetTeamsDistributeDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target teams distribute parallel for' combined directive.
static OMPTargetTeamsDistributeParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target teams distribute parallel for simd' combined directive.
static OMPTargetTeamsDistributeParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target teams distribute simd' combined directive.
static OMPTargetTeamsDistributeSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target teams loop' directive.
static OMPTargetTeamsGenericLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp target update' directive.
static OMPTargetUpdateDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp task' directive.
static OMPTaskDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp taskloop' directive.
static OMPTaskLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp taskloop simd' directive.
static OMPTaskLoopSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp taskgroup' directive.
static OMPTaskgroupDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
This represents '#pragma omp taskwait' directive.
static OMPTaskwaitDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive.
This represents '#pragma omp taskyield' directive.
static OMPTaskyieldDirective * CreateEmpty(const ASTContext &C, EmptyShell)
Creates an empty directive.
This represents '#pragma omp teams' directive.
static OMPTeamsDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp teams distribute' directive.
static OMPTeamsDistributeDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp teams distribute parallel for' composite directive.
static OMPTeamsDistributeParallelForDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp teams distribute parallel for simd' composite directive.
static OMPTeamsDistributeParallelForSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp teams distribute simd' combined directive.
static OMPTeamsDistributeSimdDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents '#pragma omp teams loop' directive.
static OMPTeamsGenericLoopDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell)
Creates an empty directive with the place for NumClauses clauses.
This represents the '#pragma omp tile' loop transformation directive.
static OMPTileDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned NumLoops)
Build an empty '#pragma omp tile' AST node for deserialization.
This represents the '#pragma omp unroll' loop transformation directive.
static OMPUnrollDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses)
Build an empty '#pragma omp unroll' AST node for deserialization.
ObjCArrayLiteral - used for objective-c array containers; as in: @["Hello", NSApp,...
static ObjCArrayLiteral * CreateEmpty(const ASTContext &C, unsigned NumElements)
Expr ** getElements()
Retrieve elements of array of literals.
unsigned getNumElements() const
getNumElements - Return number of elements of objective-c array literal.
Represents Objective-C's @catch statement.
Represents Objective-C's @finally statement.
Represents Objective-C's @synchronized statement.
Represents Objective-C's @throw statement.
Represents Objective-C's @try ... @catch ... @finally statement.
static ObjCAtTryStmt * CreateEmpty(const ASTContext &Context, unsigned NumCatchStmts, bool HasFinally)
Represents Objective-C's @autoreleasepool Statement.
A runtime availability query.
ObjCBoolLiteralExpr - Objective-C Boolean Literal.
void setLocation(SourceLocation L)
ObjCBoxedExpr - used for generalized expression boxing.
An Objective-C "bridged" cast expression, which casts between Objective-C pointers and C pointers,...
ObjCDictionaryLiteral - AST node to represent objective-c dictionary literals; as in:"name" : NSUserN...
static ObjCDictionaryLiteral * CreateEmpty(const ASTContext &C, unsigned NumElements, bool HasPackExpansions)
unsigned getNumElements() const
getNumElements - Return number of elements of objective-c dictionary literal.
ObjCEncodeExpr, used for @encode in Objective-C.
void setEncodedTypeSourceInfo(TypeSourceInfo *EncType)
void setRParenLoc(SourceLocation L)
void setAtLoc(SourceLocation L)
Represents Objective-C's collection statement.
ObjCIndirectCopyRestoreExpr - Represents the passing of a function argument by indirect copy-restore ...
ObjCIsaExpr - Represent X->isa and X.isa when X is an ObjC 'id' type.
void setIsaMemberLoc(SourceLocation L)
void setOpLoc(SourceLocation L)
ObjCIvarRefExpr - A reference to an ObjC instance variable.
void setDecl(ObjCIvarDecl *d)
void setIsFreeIvar(bool A)
void setOpLoc(SourceLocation L)
void setLocation(SourceLocation L)
An expression that sends a message to the given Objective-C object or class.
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 setMethodDecl(ObjCMethodDecl *MD)
void setClassReceiver(TypeSourceInfo *TSInfo)
void setInstanceReceiver(Expr *rec)
Turn this message send into an instance message that computes the receiver object with the given expr...
void setSuper(SourceLocation Loc, QualType T, bool IsInstanceSuper)
ReceiverKind
The kind of receiver this message is sending to.
@ SuperInstance
The receiver is the instance of the superclass object.
@ Instance
The receiver is an object instance.
@ SuperClass
The receiver is a superclass.
@ Class
The receiver is a class.
void setDelegateInitCall(bool isDelegate)
ReceiverKind getReceiverKind() const
Determine the kind of receiver that this message is being sent to.
unsigned getNumArgs() const
Return the number of actual arguments in this message, not counting the receiver.
void setSelector(Selector S)
void setArg(unsigned Arg, Expr *ArgExpr)
setArg - Set the specified argument.
ObjCPropertyRefExpr - A dot-syntax expression to access an ObjC property.
ObjCProtocolExpr used for protocol expression in Objective-C.
void setProtocol(ObjCProtocolDecl *P)
void setRParenLoc(SourceLocation L)
void setAtLoc(SourceLocation L)
ObjCSelectorExpr used for @selector in Objective-C.
void setSelector(Selector S)
void setAtLoc(SourceLocation L)
void setRParenLoc(SourceLocation L)
ObjCStringLiteral, used for Objective-C string literals i.e.
void setAtLoc(SourceLocation L)
void setString(StringLiteral *S)
ObjCSubscriptRefExpr - used for array and dictionary subscripting.
void setRBracket(SourceLocation RB)
void setBaseExpr(Stmt *S)
OffsetOfExpr - [C99 7.17] - This represents an expression of the form offsetof(record-type,...
void setOperatorLoc(SourceLocation L)
static OffsetOfExpr * CreateEmpty(const ASTContext &C, unsigned NumComps, unsigned NumExprs)
void setIndexExpr(unsigned Idx, Expr *E)
void setTypeSourceInfo(TypeSourceInfo *tsi)
void setComponent(unsigned Idx, OffsetOfNode ON)
unsigned getNumExpressions() const
void setRParenLoc(SourceLocation R)
unsigned getNumComponents() const
Helper class for OffsetOfExpr.
Kind
The kind of offsetof node we have.
@ Array
An index into an array.
@ Identifier
A field in a dependent type, known only by its name.
@ Base
An implicit indirection through a C++ base class, when the field found is in a base class.
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class.
This is a base class for any OpenACC statement-level constructs that have an associated statement.
This class represents a compute construct, representing a 'Kind' of ‘parallel’, 'serial',...
static OpenACCComputeConstruct * CreateEmpty(const ASTContext &C, EmptyShell)
This is the base class for an OpenACC statement-level construct, other construct types are expected t...
A reference to an overloaded function set, either an UnresolvedLookupExpr or an UnresolvedMemberExpr.
ASTTemplateKWAndArgsInfo * getTrailingASTTemplateKWAndArgsInfo()
Return the optional template keyword and arguments info.
unsigned getNumDecls() const
Gets the number of declarations in the unresolved set.
TemplateArgumentLoc * getTrailingTemplateArgumentLoc()
Return the optional template arguments.
DeclAccessPair * getTrailingResults()
Return the results. Defined after UnresolvedMemberExpr.
bool hasTemplateKWAndArgsInfo() const
unsigned getNumTemplateArgs() const
Represents a C++11 pack expansion that produces a sequence of expressions.
static PackIndexingExpr * CreateDeserialized(ASTContext &Context, unsigned NumTransformedExprs)
ParenExpr - This represents a parethesized expression, e.g.
void setLParen(SourceLocation Loc)
void setRParen(SourceLocation Loc)
static ParenListExpr * CreateEmpty(const ASTContext &Ctx, unsigned NumExprs)
Create an empty paren list.
unsigned getNumExprs() const
Return the number of expressions in this paren list.
Represents a parameter to a function.
[C99 6.4.2.2] - A predefined identifier such as func.
void setLocation(SourceLocation L)
static PredefinedExpr * CreateEmpty(const ASTContext &Ctx, bool HasFunctionName)
Create an empty PredefinedExpr.
PseudoObjectExpr - An expression which accesses a pseudo-object l-value.
static PseudoObjectExpr * Create(const ASTContext &Context, Expr *syntactic, ArrayRef< Expr * > semantic, unsigned resultIndex)
A (possibly-)qualified type.
Frontend produces RecoveryExprs on semantic errors that prevent creating other well-formed expression...
static RecoveryExpr * CreateEmpty(ASTContext &Ctx, unsigned NumSubExprs)
Represents the body of a requires-expression.
C++2a [expr.prim.req]: A requires-expression provides a concise way to express requirements on templa...
static RequiresExpr * Create(ASTContext &C, SourceLocation RequiresKWLoc, RequiresExprBodyDecl *Body, SourceLocation LParenLoc, ArrayRef< ParmVarDecl * > LocalParameters, SourceLocation RParenLoc, ArrayRef< concepts::Requirement * > Requirements, SourceLocation RBraceLoc)
ReturnStmt - This represents a return, optionally of an expression: return; return 4;.
static ReturnStmt * CreateEmpty(const ASTContext &Ctx, bool HasNRVOCandidate)
Create an empty return statement, optionally with storage for an NRVO candidate.
Represents a __leave statement.
static SYCLUniqueStableNameExpr * CreateEmpty(const ASTContext &Ctx)
ShuffleVectorExpr - clang-specific builtin-in function __builtin_shufflevector.
void setExprs(const ASTContext &C, ArrayRef< Expr * > Exprs)
void setRParenLoc(SourceLocation L)
void setBuiltinLoc(SourceLocation L)
Represents an expression that computes the length of a parameter pack.
static SizeOfPackExpr * CreateDeserialized(ASTContext &Context, unsigned NumPartialArgs)
bool isPartiallySubstituted() const
Determine whether this represents a partially-substituted sizeof... expression, such as is produced f...
Represents a function call to one of __builtin_LINE(), __builtin_COLUMN(), __builtin_FUNCTION(),...
Encodes a location in the source.
A trivial tuple used to represent a source range.
SourceLocation getEnd() const
SourceLocation getBegin() const
StmtExpr - This is the GNU Statement Expression extension: ({int X=4; X;}).
void setRParenLoc(SourceLocation L)
void setLParenLoc(SourceLocation L)
void setSubStmt(CompoundStmt *S)
StmtVisitor - This class implements a simple visitor for Stmt subclasses.
Stmt - This represents one statement.
GenericSelectionExprBitfields GenericSelectionExprBits
LambdaExprBitfields LambdaExprBits
UnresolvedLookupExprBitfields UnresolvedLookupExprBits
SubstNonTypeTemplateParmExprBitfields SubstNonTypeTemplateParmExprBits
CXXNoexceptExprBitfields CXXNoexceptExprBits
CXXRewrittenBinaryOperatorBitfields CXXRewrittenBinaryOperatorBits
ExprWithCleanupsBitfields ExprWithCleanupsBits
CXXScalarValueInitExprBitfields CXXScalarValueInitExprBits
CXXConstructExprBitfields CXXConstructExprBits
CXXDependentScopeMemberExprBitfields CXXDependentScopeMemberExprBits
TypeTraitExprBitfields TypeTraitExprBits
CXXNewExprBitfields CXXNewExprBits
SourceLocExprBitfields SourceLocExprBits
ConstantExprBitfields ConstantExprBits
RequiresExprBitfields RequiresExprBits
StmtExprBitfields StmtExprBits
StringLiteralBitfields StringLiteralBits
OpaqueValueExprBitfields OpaqueValueExprBits
CXXThrowExprBitfields CXXThrowExprBits
MemberExprBitfields MemberExprBits
DeclRefExprBitfields DeclRefExprBits
CXXOperatorCallExprBitfields CXXOperatorCallExprBits
CXXDefaultInitExprBitfields CXXDefaultInitExprBits
PredefinedExprBitfields PredefinedExprBits
UnresolvedMemberExprBitfields UnresolvedMemberExprBits
PseudoObjectExprBitfields PseudoObjectExprBits
CXXDeleteExprBitfields CXXDeleteExprBits
CXXDefaultArgExprBitfields CXXDefaultArgExprBits
StringLiteral - This represents a string literal expression, e.g.
unsigned getLength() const
StringLiteralKind getKind() const
static StringLiteral * CreateEmpty(const ASTContext &Ctx, unsigned NumConcatenated, unsigned Length, unsigned CharByteWidth)
Construct an empty string literal.
unsigned getNumConcatenated() const
getNumConcatenated - Get the number of string literal tokens that were concatenated in translation ph...
unsigned getCharByteWidth() const
Represents a reference to a non-type template parameter that has been substituted with a template arg...
Represents a reference to a non-type template parameter pack that has been substituted with a non-tem...
void setNextSwitchCase(SwitchCase *SC)
SwitchStmt - This represents a 'switch' stmt.
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 convenient class for passing around template argument information.
void setLAngleLoc(SourceLocation Loc)
void setRAngleLoc(SourceLocation Loc)
void addArgument(const TemplateArgumentLoc &Loc)
Location wrapper for a TemplateArgument.
Represents a template argument.
pack_iterator pack_begin() const
Iterator referencing the first argument of a template argument pack.
unsigned pack_size() const
The number of template arguments in the given template argument pack.
@ Pack
The template argument is actually a parameter pack.
ArgKind getKind() const
Return the kind of stored template argument.
Stores a list of template parameters for a TemplateDecl and its derived classes.
A container of type source information.
A type trait used in the implementation of various C++11 and Library TR1 trait templates.
static TypeTraitExpr * CreateDeserialized(const ASTContext &C, unsigned NumArgs)
unsigned getNumArgs() const
Determine the number of arguments to this type trait.
TypoExpr - Internal placeholder for expressions where typo correction still needs to be performed and...
UnaryExprOrTypeTraitExpr - expression with either a type or (unevaluated) expression operand.
void setKind(UnaryExprOrTypeTrait K)
void setOperatorLoc(SourceLocation L)
void setRParenLoc(SourceLocation L)
void setArgument(Expr *E)
UnaryOperator - This represents the unary-expression's (except sizeof and alignof),...
void setOperatorLoc(SourceLocation L)
void setCanOverflow(bool C)
bool hasStoredFPFeatures() const
Is FPFeatures in Trailing Storage?
void setOpcode(Opcode Opc)
void setStoredFPFeatures(FPOptionsOverride F)
Set FPFeatures in trailing storage, used by Serialization & ASTImporter.
static UnaryOperator * CreateEmpty(const ASTContext &C, bool hasFPFeatures)
A reference to a name which we were able to look up during parsing but could not resolve to a specifi...
static UnresolvedLookupExpr * CreateEmpty(const ASTContext &Context, unsigned NumResults, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
Represents a C++ member access expression for which lookup produced a set of overloaded functions.
static UnresolvedMemberExpr * CreateEmpty(const ASTContext &Context, unsigned NumResults, bool HasTemplateKWAndArgsInfo, unsigned NumTemplateArgs)
void addDecl(NamedDecl *D)
The iterator over UnresolvedSets.
A set of unresolved declarations.
A call to a literal operator (C++11 [over.literal]) written as a user-defined literal (C++11 [lit....
static UserDefinedLiteral * CreateEmpty(const ASTContext &Ctx, unsigned NumArgs, bool HasFPOptions, EmptyShell Empty)
Represents a call to the builtin function __builtin_va_arg.
void setRParenLoc(SourceLocation L)
void setIsMicrosoftABI(bool IsMS)
void setBuiltinLoc(SourceLocation L)
void setWrittenTypeInfo(TypeSourceInfo *TI)
Represent the declaration of a variable (in which case it is an lvalue) a function (in which case it ...
Represents a variable declaration or definition.
WhileStmt - This represents a 'while' stmt.
static WhileStmt * CreateEmpty(const ASTContext &Ctx, bool HasVar)
Create an empty while statement optionally with storage for a condition variable.
A requires-expression requirement which queries the validity and properties of an expression ('simple...
@ SS_ConstraintsNotSatisfied
@ SS_ExprSubstitutionFailure
A requires-expression requirement which is satisfied when a general constraint expression is satisfie...
A static requirement that can be used in a requires-expression to check properties of types and expre...
A requires-expression requirement which queries the existence of a type name or type template special...
Information about a module that has been loaded by the ASTReader.
llvm::BitstreamCursor DeclsCursor
DeclsCursor - This is a cursor to the start of the DECLTYPES_BLOCK block.
StmtCode
Record codes for each kind of statement or expression.
DesignatorTypes
The kinds of designators that can occur in a DesignatedInitExpr.
@ STMT_OMP_SECTION_DIRECTIVE
@ EXPR_DESIGNATED_INIT
A DesignatedInitExpr record.
@ EXPR_COMPOUND_LITERAL
A CompoundLiteralExpr record.
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ EXPR_OBJC_IVAR_REF_EXPR
An ObjCIvarRefExpr record.
@ STMT_OMP_SCOPE_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
@ EXPR_MEMBER
A MemberExpr record.
@ STMT_OMP_TARGET_TEAMS_DIRECTIVE
@ EXPR_CXX_TEMPORARY_OBJECT
A CXXTemporaryObjectExpr record.
@ EXPR_CXX_UNRESOLVED_LOOKUP
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ EXPR_COMPOUND_ASSIGN_OPERATOR
A CompoundAssignOperator record.
@ EXPR_EXPR_WITH_CLEANUPS
@ EXPR_CXX_STATIC_CAST
A CXXStaticCastExpr record.
@ STMT_OMP_META_DIRECTIVE
@ EXPR_OBJC_STRING_LITERAL
An ObjCStringLiteral record.
@ EXPR_CXX_PROPERTY_REF_EXPR
@ EXPR_SYCL_UNIQUE_STABLE_NAME
@ STMT_OMP_TARGET_DATA_DIRECTIVE
@ STMT_OMP_BARRIER_DIRECTIVE
@ EXPR_VA_ARG
A VAArgExpr record.
@ STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ EXPR_OBJC_ISA
An ObjCIsa Expr record.
@ STMT_OMP_SINGLE_DIRECTIVE
@ EXPR_CXX_OPERATOR_CALL
A CXXOperatorCallExpr record.
@ STMT_OBJC_AT_TRY
An ObjCAtTryStmt record.
@ STMT_OMP_TARGET_EXIT_DATA_DIRECTIVE
@ EXPR_CXX_UNRESOLVED_CONSTRUCT
@ EXPR_FIXEDPOINT_LITERAL
@ STMT_DO
A DoStmt record.
@ STMT_OBJC_CATCH
An ObjCAtCatchStmt record.
@ STMT_OMP_TARGET_DIRECTIVE
@ STMT_IF
An IfStmt record.
@ EXPR_CXX_EXPRESSION_TRAIT
@ EXPR_STRING_LITERAL
A StringLiteral record.
@ EXPR_OBJC_AVAILABILITY_CHECK
An ObjCAvailabilityCheckExpr record.
@ STMT_OMP_PARALLEL_MASKED_TASKLOOP_DIRECTIVE
@ EXPR_MATRIX_SUBSCRIPT
An MatrixSubscriptExpr record.
@ EXPR_PSEUDO_OBJECT
A PseudoObjectExpr record.
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ EXPR_IMPLICIT_CAST
An ImplicitCastExpr record.
@ STMT_OMP_FLUSH_DIRECTIVE
@ STMT_CAPTURED
A CapturedStmt record.
@ STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
@ STMT_OMP_TILE_DIRECTIVE
@ STMT_OMP_CANCELLATION_POINT_DIRECTIVE
@ STMT_GCCASM
A GCC-style AsmStmt record.
@ EXPR_IMAGINARY_LITERAL
An ImaginaryLiteral record.
@ STMT_WHILE
A WhileStmt record.
@ EXPR_CONVERT_VECTOR
A ConvertVectorExpr record.
@ EXPR_OBJC_SUBSCRIPT_REF_EXPR
An ObjCSubscriptRefExpr record.
@ STMT_OPENACC_COMPUTE_CONSTRUCT
@ STMT_OMP_TASKWAIT_DIRECTIVE
@ STMT_OMP_TASKYIELD_DIRECTIVE
@ EXPR_STMT
A StmtExpr record.
@ STMT_OMP_PARALLEL_GENERIC_LOOP_DIRECTIVE
@ EXPR_CXX_REINTERPRET_CAST
A CXXReinterpretCastExpr record.
@ EXPR_DESIGNATED_INIT_UPDATE
A DesignatedInitUpdateExpr record.
@ STMT_OBJC_AT_SYNCHRONIZED
An ObjCAtSynchronizedStmt record.
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TASKLOOP_SIMD_DIRECTIVE
@ STMT_MS_DEPENDENT_EXISTS
@ EXPR_BUILTIN_BIT_CAST
A BuiltinBitCastExpr record.
@ EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ EXPR_CXX_PSEUDO_DESTRUCTOR
@ STMT_OMP_MASKED_DIRECTIVE
@ STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
@ EXPR_CHARACTER_LITERAL
A CharacterLiteral record.
@ EXPR_OBJC_ENCODE
An ObjCEncodeExpr record.
@ STMT_OMP_PARALLEL_SECTIONS_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_DIRECTIVE
@ EXPR_CSTYLE_CAST
A CStyleCastExpr record.
@ STMT_OMP_PARALLEL_DIRECTIVE
@ EXPR_OBJC_BOXED_EXPRESSION
@ EXPR_OBJC_BOOL_LITERAL
An ObjCBoolLiteralExpr record.
@ EXPR_CXX_BIND_TEMPORARY
@ STMT_OMP_ATOMIC_DIRECTIVE
@ STMT_OMP_ORDERED_DIRECTIVE
@ EXPR_EXT_VECTOR_ELEMENT
An ExtVectorElementExpr record.
@ STMT_OMP_TEAMS_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_CRITICAL_DIRECTIVE
@ EXPR_ATOMIC
An AtomicExpr record.
@ STMT_OMP_CANCEL_DIRECTIVE
@ EXPR_OFFSETOF
An OffsetOfExpr record.
@ STMT_RETURN
A ReturnStmt record.
@ STMT_OBJC_FOR_COLLECTION
An ObjCForCollectionStmt record.
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_DIRECTIVE
@ EXPR_ARRAY_INIT_LOOP
An ArrayInitLoopExpr record.
@ STMT_OMP_PARALLEL_MASTER_TASKLOOP_DIRECTIVE
@ STMT_OMP_PARALLEL_MASKED_TASKLOOP_SIMD_DIRECTIVE
@ STMT_CONTINUE
A ContinueStmt record.
@ EXPR_PREDEFINED
A PredefinedExpr record.
@ STMT_OMP_DEPOBJ_DIRECTIVE
@ EXPR_CXX_BOOL_LITERAL
A CXXBoolLiteralExpr record.
@ EXPR_PAREN_LIST
A ParenListExpr record.
@ EXPR_CXX_PAREN_LIST_INIT
A CXXParenListInitExpr record.
@ STMT_OMP_DISPATCH_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_TASKLOOP_DIRECTIVE
@ STMT_COMPOUND
A CompoundStmt record.
@ STMT_OMP_CANONICAL_LOOP
@ STMT_FOR
A ForStmt record.
@ STMT_ATTRIBUTED
An AttributedStmt record.
@ STMT_OMP_PARALLEL_MASTER_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_TEAMS_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_DIRECTIVE
@ EXPR_CXX_REWRITTEN_BINARY_OPERATOR
A CXXRewrittenBinaryOperator record.
@ STMT_GOTO
A GotoStmt record.
@ EXPR_NO_INIT
An NoInitExpr record.
@ EXPR_OBJC_ARRAY_LITERAL
@ STMT_OMP_ERROR_DIRECTIVE
@ EXPR_OBJC_PROTOCOL_EXPR
An ObjCProtocolExpr record.
@ STMT_OMP_GENERIC_LOOP_DIRECTIVE
@ EXPR_ARRAY_INIT_INDEX
An ArrayInitIndexExpr record.
@ STMT_OMP_TASK_DIRECTIVE
@ EXPR_CXX_CONSTRUCT
A CXXConstructExpr record.
@ STMT_OMP_PARALLEL_MASKED_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_PARALLEL_MASTER_TASKLOOP_SIMD_DIRECTIVE
@ EXPR_OBJC_DICTIONARY_LITERAL
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ EXPR_CXX_DYNAMIC_CAST
A CXXDynamicCastExpr record.
@ STMT_CXX_TRY
A CXXTryStmt record.
@ EXPR_GENERIC_SELECTION
A GenericSelectionExpr record.
@ STMT_OMP_TARGET_SIMD_DIRECTIVE
@ EXPR_OBJC_INDIRECT_COPY_RESTORE
An ObjCIndirectCopyRestoreExpr record.
@ EXPR_CXX_INHERITED_CTOR_INIT
A CXXInheritedCtorInitExpr record.
@ EXPR_CALL
A CallExpr record.
@ EXPR_GNU_NULL
A GNUNullExpr record.
@ EXPR_BINARY_CONDITIONAL_OPERATOR
@ EXPR_OBJC_PROPERTY_REF_EXPR
An ObjCPropertyRefExpr record.
@ STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_FOR_SIMD_DIRECTIVE
@ STMT_OMP_MASKED_TASKLOOP_DIRECTIVE
@ EXPR_CXX_CONST_CAST
A CXXConstCastExpr record.
@ STMT_OMP_SCAN_DIRECTIVE
@ STMT_REF_PTR
A reference to a previously [de]serialized Stmt record.
@ EXPR_OBJC_MESSAGE_EXPR
An ObjCMessageExpr record.
@ EXPR_CXX_DEPENDENT_SCOPE_DECL_REF
@ STMT_OMP_TEAMS_DISTRIBUTE_DIRECTIVE
@ STMT_CASE
A CaseStmt record.
@ EXPR_CONSTANT
A constant expression context.
@ EXPR_FUNCTION_PARM_PACK
@ STMT_STOP
A marker record that indicates that we are at the end of an expression.
@ EXPR_CXX_NULL_PTR_LITERAL
@ STMT_OMP_TARGET_UPDATE_DIRECTIVE
@ STMT_MSASM
A MS-style AsmStmt record.
@ STMT_OMP_DISTRIBUTE_DIRECTIVE
@ EXPR_CONDITIONAL_OPERATOR
A ConditionOperator record.
@ EXPR_BINARY_OPERATOR
A BinaryOperator record.
@ EXPR_CXX_STD_INITIALIZER_LIST
A CXXStdInitializerListExpr record.
@ STMT_OMP_TASKGROUP_DIRECTIVE
@ EXPR_SHUFFLE_VECTOR
A ShuffleVectorExpr record.
@ STMT_OBJC_FINALLY
An ObjCAtFinallyStmt record.
@ EXPR_OBJC_SELECTOR_EXPR
An ObjCSelectorExpr record.
@ EXPR_FLOATING_LITERAL
A FloatingLiteral record.
@ STMT_OMP_MASTER_DIRECTIVE
@ EXPR_CXX_DEPENDENT_SCOPE_MEMBER
@ STMT_NULL_PTR
A NULL expression.
@ STMT_DEFAULT
A DefaultStmt record.
@ EXPR_CHOOSE
A ChooseExpr record.
@ STMT_OMP_UNROLL_DIRECTIVE
@ STMT_NULL
A NullStmt record.
@ STMT_OMP_SIMD_DIRECTIVE
@ EXPR_DECL_REF
A DeclRefExpr record.
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
@ EXPR_INIT_LIST
An InitListExpr record.
@ EXPR_IMPLICIT_VALUE_INIT
An ImplicitValueInitExpr record.
@ STMT_OBJC_AUTORELEASE_POOL
An ObjCAutoreleasePoolStmt record.
@ EXPR_RECOVERY
A RecoveryExpr record.
@ EXPR_PAREN
A ParenExpr record.
@ STMT_OMP_TARGET_PARALLEL_GENERIC_LOOP_DIRECTIVE
@ STMT_LABEL
A LabelStmt record.
@ EXPR_CXX_FUNCTIONAL_CAST
A CXXFunctionalCastExpr record.
@ EXPR_USER_DEFINED_LITERAL
A UserDefinedLiteral record.
@ EXPR_INTEGER_LITERAL
An IntegerLiteral record.
@ EXPR_SOURCE_LOC
A SourceLocExpr record.
@ EXPR_MATERIALIZE_TEMPORARY
@ EXPR_CXX_MEMBER_CALL
A CXXMemberCallExpr record.
@ STMT_OMP_INTEROP_DIRECTIVE
@ STMT_SWITCH
A SwitchStmt record.
@ STMT_DECL
A DeclStmt record.
@ EXPR_CXX_UNRESOLVED_MEMBER
@ EXPR_OBJC_KVC_REF_EXPR
UNUSED.
@ STMT_OMP_SECTIONS_DIRECTIVE
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK
@ EXPR_CXX_SCALAR_VALUE_INIT
@ STMT_OMP_MASKED_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
@ EXPR_SIZEOF_ALIGN_OF
A SizefAlignOfExpr record.
@ STMT_BREAK
A BreakStmt record.
@ STMT_OBJC_AT_THROW
An ObjCAtThrowStmt record.
@ EXPR_ADDR_LABEL
An AddrLabelExpr record.
@ STMT_CXX_FOR_RANGE
A CXXForRangeStmt record.
@ EXPR_CXX_ADDRSPACE_CAST
A CXXAddrspaceCastExpr record.
@ EXPR_ARRAY_SUBSCRIPT
An ArraySubscriptExpr record.
@ EXPR_CONCEPT_SPECIALIZATION
@ EXPR_UNARY_OPERATOR
A UnaryOperator record.
@ STMT_CXX_CATCH
A CXXCatchStmt record.
@ STMT_INDIRECT_GOTO
An IndirectGotoStmt record.
@ DESIG_ARRAY_RANGE
GNU array range designator.
@ DESIG_FIELD_NAME
Field designator where only the field name is known.
@ DESIG_FIELD_DECL
Field designator where the field has been resolved to a declaration.
@ DESIG_ARRAY
Array designator.
The JSON file list parser is used to communicate input to InstallAPI.
ConstantResultStorageKind
Describes the kind of result that can be tail-allocated.
ArrayTypeTrait
Names for the array type traits.
llvm::omp::Directive OpenMPDirectiveKind
OpenMP directives.
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.
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.
ExprValueKind
The categorization of expression values, currently following the C++11 scheme.
AccessSpecifier
A C++ access specifier (public, private, protected), plus the special value "none" which means differ...
static ASTConstraintSatisfaction * Create(const ASTContext &C, const ConstraintSatisfaction &Satisfaction)
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".
void initializeFrom(SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &List, TemplateArgumentLoc *OutArgArray)
DeclarationNameInfo - A collector data type for bundling together a DeclarationName and the correspon...
Extra data stored in some MemberExpr objects.
Helper expressions and declaration for OMPIteratorExpr class for each iteration space.
Expr * CounterUpdate
Updater for the internal counter: ++CounterVD;.
Expr * Upper
Normalized upper bound.
Expr * Update
Update expression for the originally specified iteration variable, calculated as VD = Begin + Counter...
VarDecl * CounterVD
Internal normalized counter.
Internal struct to describes an element that is a pack expansion, used if any of the elements in the ...
Internal struct for storing Key/value pair.
A placeholder type used to construct an empty shell of a type, that will be filled in later (e....