clang  13.0.0git
ASTWriterStmt.cpp
Go to the documentation of this file.
1 //===--- ASTWriterStmt.cpp - Statement and Expression Serialization -------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 ///
9 /// \file
10 /// Implements serialization for Statements and Expressions.
11 ///
12 //===----------------------------------------------------------------------===//
13 
14 #include "clang/AST/ExprOpenMP.h"
16 #include "clang/Sema/DeclSpec.h"
17 #include "clang/AST/ASTContext.h"
18 #include "clang/AST/DeclCXX.h"
19 #include "clang/AST/DeclObjC.h"
20 #include "clang/AST/DeclTemplate.h"
21 #include "clang/AST/StmtVisitor.h"
22 #include "clang/Lex/Token.h"
23 #include "llvm/Bitstream/BitstreamWriter.h"
24 using namespace clang;
25 
26 //===----------------------------------------------------------------------===//
27 // Statement/expression serialization
28 //===----------------------------------------------------------------------===//
29 
30 namespace clang {
31 
32  class ASTStmtWriter : public StmtVisitor<ASTStmtWriter, void> {
33  ASTWriter &Writer;
34  ASTRecordWriter Record;
35 
37  unsigned AbbrevToUse;
38 
39  public:
41  : Writer(Writer), Record(Writer, Record),
42  Code(serialization::STMT_NULL_PTR), AbbrevToUse(0) {}
43 
44  ASTStmtWriter(const ASTStmtWriter&) = delete;
45 
46  uint64_t Emit() {
47  assert(Code != serialization::STMT_NULL_PTR &&
48  "unhandled sub-statement writing AST file");
49  return Record.EmitStmt(Code, AbbrevToUse);
50  }
51 
53  const TemplateArgumentLoc *Args);
54 
55  void VisitStmt(Stmt *S);
56 #define STMT(Type, Base) \
57  void Visit##Type(Type *);
58 #include "clang/AST/StmtNodes.inc"
59  };
60 }
61 
63  const ASTTemplateKWAndArgsInfo &ArgInfo, const TemplateArgumentLoc *Args) {
64  Record.AddSourceLocation(ArgInfo.TemplateKWLoc);
65  Record.AddSourceLocation(ArgInfo.LAngleLoc);
66  Record.AddSourceLocation(ArgInfo.RAngleLoc);
67  for (unsigned i = 0; i != ArgInfo.NumTemplateArgs; ++i)
68  Record.AddTemplateArgumentLoc(Args[i]);
69 }
70 
72 }
73 
74 void ASTStmtWriter::VisitNullStmt(NullStmt *S) {
75  VisitStmt(S);
76  Record.AddSourceLocation(S->getSemiLoc());
77  Record.push_back(S->NullStmtBits.HasLeadingEmptyMacro);
79 }
80 
81 void ASTStmtWriter::VisitCompoundStmt(CompoundStmt *S) {
82  VisitStmt(S);
83  Record.push_back(S->size());
84  for (auto *CS : S->body())
85  Record.AddStmt(CS);
86  Record.AddSourceLocation(S->getLBracLoc());
87  Record.AddSourceLocation(S->getRBracLoc());
89 }
90 
91 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) {
92  VisitStmt(S);
93  Record.push_back(Writer.getSwitchCaseID(S));
94  Record.AddSourceLocation(S->getKeywordLoc());
95  Record.AddSourceLocation(S->getColonLoc());
96 }
97 
98 void ASTStmtWriter::VisitCaseStmt(CaseStmt *S) {
99  VisitSwitchCase(S);
100  Record.push_back(S->caseStmtIsGNURange());
101  Record.AddStmt(S->getLHS());
102  Record.AddStmt(S->getSubStmt());
103  if (S->caseStmtIsGNURange()) {
104  Record.AddStmt(S->getRHS());
105  Record.AddSourceLocation(S->getEllipsisLoc());
106  }
108 }
109 
110 void ASTStmtWriter::VisitDefaultStmt(DefaultStmt *S) {
111  VisitSwitchCase(S);
112  Record.AddStmt(S->getSubStmt());
114 }
115 
116 void ASTStmtWriter::VisitLabelStmt(LabelStmt *S) {
117  VisitStmt(S);
118  Record.push_back(S->isSideEntry());
119  Record.AddDeclRef(S->getDecl());
120  Record.AddStmt(S->getSubStmt());
121  Record.AddSourceLocation(S->getIdentLoc());
123 }
124 
125 void ASTStmtWriter::VisitAttributedStmt(AttributedStmt *S) {
126  VisitStmt(S);
127  Record.push_back(S->getAttrs().size());
128  Record.AddAttributes(S->getAttrs());
129  Record.AddStmt(S->getSubStmt());
130  Record.AddSourceLocation(S->getAttrLoc());
132 }
133 
134 void ASTStmtWriter::VisitIfStmt(IfStmt *S) {
135  VisitStmt(S);
136 
137  bool HasElse = S->getElse() != nullptr;
138  bool HasVar = S->getConditionVariableDeclStmt() != nullptr;
139  bool HasInit = S->getInit() != nullptr;
140 
141  Record.push_back(S->isConstexpr());
142  Record.push_back(HasElse);
143  Record.push_back(HasVar);
144  Record.push_back(HasInit);
145 
146  Record.AddStmt(S->getCond());
147  Record.AddStmt(S->getThen());
148  if (HasElse)
149  Record.AddStmt(S->getElse());
150  if (HasVar)
151  Record.AddDeclRef(S->getConditionVariable());
152  if (HasInit)
153  Record.AddStmt(S->getInit());
154 
155  Record.AddSourceLocation(S->getIfLoc());
156  Record.AddSourceLocation(S->getLParenLoc());
157  Record.AddSourceLocation(S->getRParenLoc());
158  if (HasElse)
159  Record.AddSourceLocation(S->getElseLoc());
160 
161  Code = serialization::STMT_IF;
162 }
163 
164 void ASTStmtWriter::VisitSwitchStmt(SwitchStmt *S) {
165  VisitStmt(S);
166 
167  bool HasInit = S->getInit() != nullptr;
168  bool HasVar = S->getConditionVariableDeclStmt() != nullptr;
169  Record.push_back(HasInit);
170  Record.push_back(HasVar);
171  Record.push_back(S->isAllEnumCasesCovered());
172 
173  Record.AddStmt(S->getCond());
174  Record.AddStmt(S->getBody());
175  if (HasInit)
176  Record.AddStmt(S->getInit());
177  if (HasVar)
178  Record.AddDeclRef(S->getConditionVariable());
179 
180  Record.AddSourceLocation(S->getSwitchLoc());
181  Record.AddSourceLocation(S->getLParenLoc());
182  Record.AddSourceLocation(S->getRParenLoc());
183 
184  for (SwitchCase *SC = S->getSwitchCaseList(); SC;
185  SC = SC->getNextSwitchCase())
186  Record.push_back(Writer.RecordSwitchCaseID(SC));
188 }
189 
190 void ASTStmtWriter::VisitWhileStmt(WhileStmt *S) {
191  VisitStmt(S);
192 
193  bool HasVar = S->getConditionVariableDeclStmt() != nullptr;
194  Record.push_back(HasVar);
195 
196  Record.AddStmt(S->getCond());
197  Record.AddStmt(S->getBody());
198  if (HasVar)
199  Record.AddDeclRef(S->getConditionVariable());
200 
201  Record.AddSourceLocation(S->getWhileLoc());
202  Record.AddSourceLocation(S->getLParenLoc());
203  Record.AddSourceLocation(S->getRParenLoc());
205 }
206 
207 void ASTStmtWriter::VisitDoStmt(DoStmt *S) {
208  VisitStmt(S);
209  Record.AddStmt(S->getCond());
210  Record.AddStmt(S->getBody());
211  Record.AddSourceLocation(S->getDoLoc());
212  Record.AddSourceLocation(S->getWhileLoc());
213  Record.AddSourceLocation(S->getRParenLoc());
214  Code = serialization::STMT_DO;
215 }
216 
217 void ASTStmtWriter::VisitForStmt(ForStmt *S) {
218  VisitStmt(S);
219  Record.AddStmt(S->getInit());
220  Record.AddStmt(S->getCond());
221  Record.AddDeclRef(S->getConditionVariable());
222  Record.AddStmt(S->getInc());
223  Record.AddStmt(S->getBody());
224  Record.AddSourceLocation(S->getForLoc());
225  Record.AddSourceLocation(S->getLParenLoc());
226  Record.AddSourceLocation(S->getRParenLoc());
228 }
229 
230 void ASTStmtWriter::VisitGotoStmt(GotoStmt *S) {
231  VisitStmt(S);
232  Record.AddDeclRef(S->getLabel());
233  Record.AddSourceLocation(S->getGotoLoc());
234  Record.AddSourceLocation(S->getLabelLoc());
236 }
237 
238 void ASTStmtWriter::VisitIndirectGotoStmt(IndirectGotoStmt *S) {
239  VisitStmt(S);
240  Record.AddSourceLocation(S->getGotoLoc());
241  Record.AddSourceLocation(S->getStarLoc());
242  Record.AddStmt(S->getTarget());
244 }
245 
246 void ASTStmtWriter::VisitContinueStmt(ContinueStmt *S) {
247  VisitStmt(S);
248  Record.AddSourceLocation(S->getContinueLoc());
250 }
251 
252 void ASTStmtWriter::VisitBreakStmt(BreakStmt *S) {
253  VisitStmt(S);
254  Record.AddSourceLocation(S->getBreakLoc());
256 }
257 
258 void ASTStmtWriter::VisitReturnStmt(ReturnStmt *S) {
259  VisitStmt(S);
260 
261  bool HasNRVOCandidate = S->getNRVOCandidate() != nullptr;
262  Record.push_back(HasNRVOCandidate);
263 
264  Record.AddStmt(S->getRetValue());
265  if (HasNRVOCandidate)
266  Record.AddDeclRef(S->getNRVOCandidate());
267 
268  Record.AddSourceLocation(S->getReturnLoc());
270 }
271 
272 void ASTStmtWriter::VisitDeclStmt(DeclStmt *S) {
273  VisitStmt(S);
274  Record.AddSourceLocation(S->getBeginLoc());
275  Record.AddSourceLocation(S->getEndLoc());
276  DeclGroupRef DG = S->getDeclGroup();
277  for (DeclGroupRef::iterator D = DG.begin(), DEnd = DG.end(); D != DEnd; ++D)
278  Record.AddDeclRef(*D);
280 }
281 
282 void ASTStmtWriter::VisitAsmStmt(AsmStmt *S) {
283  VisitStmt(S);
284  Record.push_back(S->getNumOutputs());
285  Record.push_back(S->getNumInputs());
286  Record.push_back(S->getNumClobbers());
287  Record.AddSourceLocation(S->getAsmLoc());
288  Record.push_back(S->isVolatile());
289  Record.push_back(S->isSimple());
290 }
291 
292 void ASTStmtWriter::VisitGCCAsmStmt(GCCAsmStmt *S) {
293  VisitAsmStmt(S);
294  Record.push_back(S->getNumLabels());
295  Record.AddSourceLocation(S->getRParenLoc());
296  Record.AddStmt(S->getAsmString());
297 
298  // Outputs
299  for (unsigned I = 0, N = S->getNumOutputs(); I != N; ++I) {
300  Record.AddIdentifierRef(S->getOutputIdentifier(I));
301  Record.AddStmt(S->getOutputConstraintLiteral(I));
302  Record.AddStmt(S->getOutputExpr(I));
303  }
304 
305  // Inputs
306  for (unsigned I = 0, N = S->getNumInputs(); I != N; ++I) {
307  Record.AddIdentifierRef(S->getInputIdentifier(I));
308  Record.AddStmt(S->getInputConstraintLiteral(I));
309  Record.AddStmt(S->getInputExpr(I));
310  }
311 
312  // Clobbers
313  for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I)
314  Record.AddStmt(S->getClobberStringLiteral(I));
315 
316  // Labels
317  for (auto *E : S->labels()) Record.AddStmt(E);
318 
320 }
321 
322 void ASTStmtWriter::VisitMSAsmStmt(MSAsmStmt *S) {
323  VisitAsmStmt(S);
324  Record.AddSourceLocation(S->getLBraceLoc());
325  Record.AddSourceLocation(S->getEndLoc());
326  Record.push_back(S->getNumAsmToks());
327  Record.AddString(S->getAsmString());
328 
329  // Tokens
330  for (unsigned I = 0, N = S->getNumAsmToks(); I != N; ++I) {
331  // FIXME: Move this to ASTRecordWriter?
332  Writer.AddToken(S->getAsmToks()[I], Record.getRecordData());
333  }
334 
335  // Clobbers
336  for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I) {
337  Record.AddString(S->getClobber(I));
338  }
339 
340  // Outputs
341  for (unsigned I = 0, N = S->getNumOutputs(); I != N; ++I) {
342  Record.AddStmt(S->getOutputExpr(I));
343  Record.AddString(S->getOutputConstraint(I));
344  }
345 
346  // Inputs
347  for (unsigned I = 0, N = S->getNumInputs(); I != N; ++I) {
348  Record.AddStmt(S->getInputExpr(I));
349  Record.AddString(S->getInputConstraint(I));
350  }
351 
353 }
354 
355 void ASTStmtWriter::VisitCoroutineBodyStmt(CoroutineBodyStmt *CoroStmt) {
356  VisitStmt(CoroStmt);
357  Record.push_back(CoroStmt->getParamMoves().size());
358  for (Stmt *S : CoroStmt->children())
359  Record.AddStmt(S);
361 }
362 
363 void ASTStmtWriter::VisitCoreturnStmt(CoreturnStmt *S) {
364  VisitStmt(S);
365  Record.AddSourceLocation(S->getKeywordLoc());
366  Record.AddStmt(S->getOperand());
367  Record.AddStmt(S->getPromiseCall());
368  Record.push_back(S->isImplicit());
370 }
371 
372 void ASTStmtWriter::VisitCoroutineSuspendExpr(CoroutineSuspendExpr *E) {
373  VisitExpr(E);
374  Record.AddSourceLocation(E->getKeywordLoc());
375  for (Stmt *S : E->children())
376  Record.AddStmt(S);
377  Record.AddStmt(E->getOpaqueValue());
378 }
379 
380 void ASTStmtWriter::VisitCoawaitExpr(CoawaitExpr *E) {
381  VisitCoroutineSuspendExpr(E);
382  Record.push_back(E->isImplicit());
384 }
385 
386 void ASTStmtWriter::VisitCoyieldExpr(CoyieldExpr *E) {
387  VisitCoroutineSuspendExpr(E);
389 }
390 
391 void ASTStmtWriter::VisitDependentCoawaitExpr(DependentCoawaitExpr *E) {
392  VisitExpr(E);
393  Record.AddSourceLocation(E->getKeywordLoc());
394  for (Stmt *S : E->children())
395  Record.AddStmt(S);
397 }
398 
399 static void
401  const ASTConstraintSatisfaction &Satisfaction) {
402  Record.push_back(Satisfaction.IsSatisfied);
403  if (!Satisfaction.IsSatisfied) {
404  Record.push_back(Satisfaction.NumRecords);
405  for (const auto &DetailRecord : Satisfaction) {
406  Record.AddStmt(const_cast<Expr *>(DetailRecord.first));
407  auto *E = DetailRecord.second.dyn_cast<Expr *>();
408  Record.push_back(E == nullptr);
409  if (E)
410  Record.AddStmt(E);
411  else {
412  auto *Diag = DetailRecord.second.get<std::pair<SourceLocation,
413  StringRef> *>();
414  Record.AddSourceLocation(Diag->first);
415  Record.AddString(Diag->second);
416  }
417  }
418  }
419 }
420 
421 static void
423  ASTRecordWriter &Record,
425  Record.AddString(D->SubstitutedEntity);
426  Record.AddSourceLocation(D->DiagLoc);
427  Record.AddString(D->DiagMessage);
428 }
429 
430 void ASTStmtWriter::VisitConceptSpecializationExpr(
432  VisitExpr(E);
434  Record.push_back(TemplateArgs.size());
436  Record.AddSourceLocation(E->getTemplateKWLoc());
438  Record.AddDeclRef(E->getNamedConcept());
439  Record.AddDeclRef(E->getFoundDecl());
441  for (const TemplateArgument &Arg : TemplateArgs)
442  Record.AddTemplateArgument(Arg);
443  if (!E->isValueDependent())
445 
447 }
448 
449 void ASTStmtWriter::VisitRequiresExpr(RequiresExpr *E) {
450  VisitExpr(E);
451  Record.push_back(E->getLocalParameters().size());
452  Record.push_back(E->getRequirements().size());
453  Record.AddSourceLocation(E->RequiresExprBits.RequiresKWLoc);
454  Record.push_back(E->RequiresExprBits.IsSatisfied);
455  Record.AddDeclRef(E->getBody());
456  for (ParmVarDecl *P : E->getLocalParameters())
457  Record.AddDeclRef(P);
458  for (concepts::Requirement *R : E->getRequirements()) {
459  if (auto *TypeReq = dyn_cast<concepts::TypeRequirement>(R)) {
461  Record.push_back(TypeReq->Status);
463  addSubstitutionDiagnostic(Record, TypeReq->getSubstitutionDiagnostic());
464  else
465  Record.AddTypeSourceInfo(TypeReq->getType());
466  } else if (auto *ExprReq = dyn_cast<concepts::ExprRequirement>(R)) {
467  Record.push_back(ExprReq->getKind());
468  Record.push_back(ExprReq->Status);
469  if (ExprReq->isExprSubstitutionFailure()) {
471  ExprReq->Value.get<concepts::Requirement::SubstitutionDiagnostic *>());
472  } else
473  Record.AddStmt(ExprReq->Value.get<Expr *>());
474  if (ExprReq->getKind() == concepts::Requirement::RK_Compound) {
475  Record.AddSourceLocation(ExprReq->NoexceptLoc);
476  const auto &RetReq = ExprReq->getReturnTypeRequirement();
477  if (RetReq.isSubstitutionFailure()) {
478  Record.push_back(2);
479  addSubstitutionDiagnostic(Record, RetReq.getSubstitutionDiagnostic());
480  } else if (RetReq.isTypeConstraint()) {
481  Record.push_back(1);
483  RetReq.getTypeConstraintTemplateParameterList());
484  if (ExprReq->Status >=
486  Record.AddStmt(
487  ExprReq->getReturnTypeRequirementSubstitutedConstraintExpr());
488  } else {
489  assert(RetReq.isEmpty());
490  Record.push_back(0);
491  }
492  }
493  } else {
494  auto *NestedReq = cast<concepts::NestedRequirement>(R);
496  Record.push_back(NestedReq->isSubstitutionFailure());
497  if (NestedReq->isSubstitutionFailure()){
499  NestedReq->getSubstitutionDiagnostic());
500  } else {
501  Record.AddStmt(NestedReq->Value.get<Expr *>());
502  if (!NestedReq->isDependent())
503  addConstraintSatisfaction(Record, *NestedReq->Satisfaction);
504  }
505  }
506  }
507  Record.AddSourceLocation(E->getEndLoc());
508 
510 }
511 
512 
513 void ASTStmtWriter::VisitCapturedStmt(CapturedStmt *S) {
514  VisitStmt(S);
515  // NumCaptures
516  Record.push_back(std::distance(S->capture_begin(), S->capture_end()));
517 
518  // CapturedDecl and captured region kind
519  Record.AddDeclRef(S->getCapturedDecl());
520  Record.push_back(S->getCapturedRegionKind());
521 
522  Record.AddDeclRef(S->getCapturedRecordDecl());
523 
524  // Capture inits
525  for (auto *I : S->capture_inits())
526  Record.AddStmt(I);
527 
528  // Body
529  Record.AddStmt(S->getCapturedStmt());
530 
531  // Captures
532  for (const auto &I : S->captures()) {
533  if (I.capturesThis() || I.capturesVariableArrayType())
534  Record.AddDeclRef(nullptr);
535  else
536  Record.AddDeclRef(I.getCapturedVar());
537  Record.push_back(I.getCaptureKind());
538  Record.AddSourceLocation(I.getLocation());
539  }
540 
542 }
543 
544 void ASTStmtWriter::VisitExpr(Expr *E) {
545  VisitStmt(E);
546  Record.AddTypeRef(E->getType());
547  Record.push_back(E->isTypeDependent());
548  Record.push_back(E->isValueDependent());
549  Record.push_back(E->isInstantiationDependent());
551  Record.push_back(E->containsErrors());
552  Record.push_back(E->getValueKind());
553  Record.push_back(E->getObjectKind());
554 }
555 
556 void ASTStmtWriter::VisitConstantExpr(ConstantExpr *E) {
557  VisitExpr(E);
558  Record.push_back(E->ConstantExprBits.ResultKind);
559 
560  Record.push_back(E->ConstantExprBits.APValueKind);
561  Record.push_back(E->ConstantExprBits.IsUnsigned);
562  Record.push_back(E->ConstantExprBits.BitWidth);
563  // HasCleanup not serialized since we can just query the APValue.
564  Record.push_back(E->ConstantExprBits.IsImmediateInvocation);
565 
566  switch (E->ConstantExprBits.ResultKind) {
568  break;
570  Record.push_back(E->Int64Result());
571  break;
573  Record.AddAPValue(E->APValueResult());
574  break;
575  default:
576  llvm_unreachable("unexpected ResultKind!");
577  }
578 
579  Record.AddStmt(E->getSubExpr());
581 }
582 
583 void ASTStmtWriter::VisitSYCLUniqueStableNameExpr(SYCLUniqueStableNameExpr *E) {
584  VisitExpr(E);
585 
586  Record.AddSourceLocation(E->getLocation());
590 
592 }
593 
594 void ASTStmtWriter::VisitPredefinedExpr(PredefinedExpr *E) {
595  VisitExpr(E);
596 
597  bool HasFunctionName = E->getFunctionName() != nullptr;
598  Record.push_back(HasFunctionName);
599  Record.push_back(E->getIdentKind()); // FIXME: stable encoding
600  Record.AddSourceLocation(E->getLocation());
601  if (HasFunctionName)
602  Record.AddStmt(E->getFunctionName());
604 }
605 
606 void ASTStmtWriter::VisitDeclRefExpr(DeclRefExpr *E) {
607  VisitExpr(E);
608 
609  Record.push_back(E->hasQualifier());
610  Record.push_back(E->getDecl() != E->getFoundDecl());
611  Record.push_back(E->hasTemplateKWAndArgsInfo());
612  Record.push_back(E->hadMultipleCandidates());
614  Record.push_back(E->isNonOdrUse());
615 
616  if (E->hasTemplateKWAndArgsInfo()) {
617  unsigned NumTemplateArgs = E->getNumTemplateArgs();
618  Record.push_back(NumTemplateArgs);
619  }
620 
622 
623  if ((!E->hasTemplateKWAndArgsInfo()) && (!E->hasQualifier()) &&
624  (E->getDecl() == E->getFoundDecl()) &&
627  AbbrevToUse = Writer.getDeclRefExprAbbrev();
628  }
629 
630  if (E->hasQualifier())
632 
633  if (E->getDecl() != E->getFoundDecl())
634  Record.AddDeclRef(E->getFoundDecl());
635 
636  if (E->hasTemplateKWAndArgsInfo())
637  AddTemplateKWAndArgsInfo(*E->getTrailingObjects<ASTTemplateKWAndArgsInfo>(),
638  E->getTrailingObjects<TemplateArgumentLoc>());
639 
640  Record.AddDeclRef(E->getDecl());
641  Record.AddSourceLocation(E->getLocation());
642  Record.AddDeclarationNameLoc(E->DNLoc, E->getDecl()->getDeclName());
644 }
645 
646 void ASTStmtWriter::VisitIntegerLiteral(IntegerLiteral *E) {
647  VisitExpr(E);
648  Record.AddSourceLocation(E->getLocation());
649  Record.AddAPInt(E->getValue());
650 
651  if (E->getValue().getBitWidth() == 32) {
652  AbbrevToUse = Writer.getIntegerLiteralAbbrev();
653  }
654 
656 }
657 
658 void ASTStmtWriter::VisitFixedPointLiteral(FixedPointLiteral *E) {
659  VisitExpr(E);
660  Record.AddSourceLocation(E->getLocation());
661  Record.push_back(E->getScale());
662  Record.AddAPInt(E->getValue());
664 }
665 
666 void ASTStmtWriter::VisitFloatingLiteral(FloatingLiteral *E) {
667  VisitExpr(E);
668  Record.push_back(E->getRawSemantics());
669  Record.push_back(E->isExact());
670  Record.AddAPFloat(E->getValue());
671  Record.AddSourceLocation(E->getLocation());
673 }
674 
675 void ASTStmtWriter::VisitImaginaryLiteral(ImaginaryLiteral *E) {
676  VisitExpr(E);
677  Record.AddStmt(E->getSubExpr());
679 }
680 
681 void ASTStmtWriter::VisitStringLiteral(StringLiteral *E) {
682  VisitExpr(E);
683 
684  // Store the various bits of data of StringLiteral.
685  Record.push_back(E->getNumConcatenated());
686  Record.push_back(E->getLength());
687  Record.push_back(E->getCharByteWidth());
688  Record.push_back(E->getKind());
689  Record.push_back(E->isPascal());
690 
691  // Store the trailing array of SourceLocation.
692  for (unsigned I = 0, N = E->getNumConcatenated(); I != N; ++I)
693  Record.AddSourceLocation(E->getStrTokenLoc(I));
694 
695  // Store the trailing array of char holding the string data.
696  StringRef StrData = E->getBytes();
697  for (unsigned I = 0, N = E->getByteLength(); I != N; ++I)
698  Record.push_back(StrData[I]);
699 
701 }
702 
703 void ASTStmtWriter::VisitCharacterLiteral(CharacterLiteral *E) {
704  VisitExpr(E);
705  Record.push_back(E->getValue());
706  Record.AddSourceLocation(E->getLocation());
707  Record.push_back(E->getKind());
708 
709  AbbrevToUse = Writer.getCharacterLiteralAbbrev();
710 
712 }
713 
714 void ASTStmtWriter::VisitParenExpr(ParenExpr *E) {
715  VisitExpr(E);
716  Record.AddSourceLocation(E->getLParen());
717  Record.AddSourceLocation(E->getRParen());
718  Record.AddStmt(E->getSubExpr());
720 }
721 
722 void ASTStmtWriter::VisitParenListExpr(ParenListExpr *E) {
723  VisitExpr(E);
724  Record.push_back(E->getNumExprs());
725  for (auto *SubStmt : E->exprs())
726  Record.AddStmt(SubStmt);
727  Record.AddSourceLocation(E->getLParenLoc());
728  Record.AddSourceLocation(E->getRParenLoc());
730 }
731 
732 void ASTStmtWriter::VisitUnaryOperator(UnaryOperator *E) {
733  VisitExpr(E);
734  bool HasFPFeatures = E->hasStoredFPFeatures();
735  // Write this first for easy access when deserializing, as they affect the
736  // size of the UnaryOperator.
737  Record.push_back(HasFPFeatures);
738  Record.AddStmt(E->getSubExpr());
739  Record.push_back(E->getOpcode()); // FIXME: stable encoding
740  Record.AddSourceLocation(E->getOperatorLoc());
741  Record.push_back(E->canOverflow());
742  if (HasFPFeatures)
745 }
746 
747 void ASTStmtWriter::VisitOffsetOfExpr(OffsetOfExpr *E) {
748  VisitExpr(E);
749  Record.push_back(E->getNumComponents());
750  Record.push_back(E->getNumExpressions());
751  Record.AddSourceLocation(E->getOperatorLoc());
752  Record.AddSourceLocation(E->getRParenLoc());
754  for (unsigned I = 0, N = E->getNumComponents(); I != N; ++I) {
755  const OffsetOfNode &ON = E->getComponent(I);
756  Record.push_back(ON.getKind()); // FIXME: Stable encoding
758  Record.AddSourceLocation(ON.getSourceRange().getEnd());
759  switch (ON.getKind()) {
760  case OffsetOfNode::Array:
761  Record.push_back(ON.getArrayExprIndex());
762  break;
763 
764  case OffsetOfNode::Field:
765  Record.AddDeclRef(ON.getField());
766  break;
767 
769  Record.AddIdentifierRef(ON.getFieldName());
770  break;
771 
772  case OffsetOfNode::Base:
773  Record.AddCXXBaseSpecifier(*ON.getBase());
774  break;
775  }
776  }
777  for (unsigned I = 0, N = E->getNumExpressions(); I != N; ++I)
778  Record.AddStmt(E->getIndexExpr(I));
780 }
781 
782 void ASTStmtWriter::VisitUnaryExprOrTypeTraitExpr(UnaryExprOrTypeTraitExpr *E) {
783  VisitExpr(E);
784  Record.push_back(E->getKind());
785  if (E->isArgumentType())
787  else {
788  Record.push_back(0);
789  Record.AddStmt(E->getArgumentExpr());
790  }
791  Record.AddSourceLocation(E->getOperatorLoc());
792  Record.AddSourceLocation(E->getRParenLoc());
794 }
795 
796 void ASTStmtWriter::VisitArraySubscriptExpr(ArraySubscriptExpr *E) {
797  VisitExpr(E);
798  Record.AddStmt(E->getLHS());
799  Record.AddStmt(E->getRHS());
800  Record.AddSourceLocation(E->getRBracketLoc());
802 }
803 
804 void ASTStmtWriter::VisitMatrixSubscriptExpr(MatrixSubscriptExpr *E) {
805  VisitExpr(E);
806  Record.AddStmt(E->getBase());
807  Record.AddStmt(E->getRowIdx());
808  Record.AddStmt(E->getColumnIdx());
809  Record.AddSourceLocation(E->getRBracketLoc());
811 }
812 
813 void ASTStmtWriter::VisitOMPArraySectionExpr(OMPArraySectionExpr *E) {
814  VisitExpr(E);
815  Record.AddStmt(E->getBase());
816  Record.AddStmt(E->getLowerBound());
817  Record.AddStmt(E->getLength());
818  Record.AddStmt(E->getStride());
819  Record.AddSourceLocation(E->getColonLocFirst());
821  Record.AddSourceLocation(E->getRBracketLoc());
823 }
824 
825 void ASTStmtWriter::VisitOMPArrayShapingExpr(OMPArrayShapingExpr *E) {
826  VisitExpr(E);
827  Record.push_back(E->getDimensions().size());
828  Record.AddStmt(E->getBase());
829  for (Expr *Dim : E->getDimensions())
830  Record.AddStmt(Dim);
831  for (SourceRange SR : E->getBracketsRanges())
832  Record.AddSourceRange(SR);
833  Record.AddSourceLocation(E->getLParenLoc());
834  Record.AddSourceLocation(E->getRParenLoc());
836 }
837 
838 void ASTStmtWriter::VisitOMPIteratorExpr(OMPIteratorExpr *E) {
839  VisitExpr(E);
840  Record.push_back(E->numOfIterators());
841  Record.AddSourceLocation(E->getIteratorKwLoc());
842  Record.AddSourceLocation(E->getLParenLoc());
843  Record.AddSourceLocation(E->getRParenLoc());
844  for (unsigned I = 0, End = E->numOfIterators(); I < End; ++I) {
845  Record.AddDeclRef(E->getIteratorDecl(I));
846  Record.AddSourceLocation(E->getAssignLoc(I));
848  Record.AddStmt(Range.Begin);
849  Record.AddStmt(Range.End);
850  Record.AddStmt(Range.Step);
851  Record.AddSourceLocation(E->getColonLoc(I));
852  if (Range.Step)
853  Record.AddSourceLocation(E->getSecondColonLoc(I));
854  // Serialize helpers
855  OMPIteratorHelperData &HD = E->getHelper(I);
856  Record.AddDeclRef(HD.CounterVD);
857  Record.AddStmt(HD.Upper);
858  Record.AddStmt(HD.Update);
859  Record.AddStmt(HD.CounterUpdate);
860  }
862 }
863 
864 void ASTStmtWriter::VisitCallExpr(CallExpr *E) {
865  VisitExpr(E);
866  Record.push_back(E->getNumArgs());
867  Record.push_back(E->hasStoredFPFeatures());
868  Record.AddSourceLocation(E->getRParenLoc());
869  Record.AddStmt(E->getCallee());
870  for (CallExpr::arg_iterator Arg = E->arg_begin(), ArgEnd = E->arg_end();
871  Arg != ArgEnd; ++Arg)
872  Record.AddStmt(*Arg);
873  Record.push_back(static_cast<unsigned>(E->getADLCallKind()));
874  if (E->hasStoredFPFeatures())
875  Record.push_back(E->getFPFeatures().getAsOpaqueInt());
877 }
878 
879 void ASTStmtWriter::VisitRecoveryExpr(RecoveryExpr *E) {
880  VisitExpr(E);
881  Record.push_back(std::distance(E->children().begin(), E->children().end()));
882  Record.AddSourceLocation(E->getBeginLoc());
883  Record.AddSourceLocation(E->getEndLoc());
884  for (Stmt *Child : E->children())
885  Record.AddStmt(Child);
887 }
888 
889 void ASTStmtWriter::VisitMemberExpr(MemberExpr *E) {
890  VisitExpr(E);
891 
892  bool HasQualifier = E->hasQualifier();
893  bool HasFoundDecl =
894  E->hasQualifierOrFoundDecl() &&
895  (E->getFoundDecl().getDecl() != E->getMemberDecl() ||
896  E->getFoundDecl().getAccess() != E->getMemberDecl()->getAccess());
897  bool HasTemplateInfo = E->hasTemplateKWAndArgsInfo();
898  unsigned NumTemplateArgs = E->getNumTemplateArgs();
899 
900  // Write these first for easy access when deserializing, as they affect the
901  // size of the MemberExpr.
902  Record.push_back(HasQualifier);
903  Record.push_back(HasFoundDecl);
904  Record.push_back(HasTemplateInfo);
905  Record.push_back(NumTemplateArgs);
906 
907  Record.AddStmt(E->getBase());
908  Record.AddDeclRef(E->getMemberDecl());
909  Record.AddDeclarationNameLoc(E->MemberDNLoc,
910  E->getMemberDecl()->getDeclName());
911  Record.AddSourceLocation(E->getMemberLoc());
912  Record.push_back(E->isArrow());
913  Record.push_back(E->hadMultipleCandidates());
914  Record.push_back(E->isNonOdrUse());
915  Record.AddSourceLocation(E->getOperatorLoc());
916 
917  if (HasFoundDecl) {
918  DeclAccessPair FoundDecl = E->getFoundDecl();
919  Record.AddDeclRef(FoundDecl.getDecl());
920  Record.push_back(FoundDecl.getAccess());
921  }
922 
923  if (HasQualifier)
925 
926  if (HasTemplateInfo)
927  AddTemplateKWAndArgsInfo(*E->getTrailingObjects<ASTTemplateKWAndArgsInfo>(),
928  E->getTrailingObjects<TemplateArgumentLoc>());
929 
931 }
932 
933 void ASTStmtWriter::VisitObjCIsaExpr(ObjCIsaExpr *E) {
934  VisitExpr(E);
935  Record.AddStmt(E->getBase());
936  Record.AddSourceLocation(E->getIsaMemberLoc());
937  Record.AddSourceLocation(E->getOpLoc());
938  Record.push_back(E->isArrow());
940 }
941 
942 void ASTStmtWriter::
943 VisitObjCIndirectCopyRestoreExpr(ObjCIndirectCopyRestoreExpr *E) {
944  VisitExpr(E);
945  Record.AddStmt(E->getSubExpr());
946  Record.push_back(E->shouldCopy());
948 }
949 
950 void ASTStmtWriter::VisitObjCBridgedCastExpr(ObjCBridgedCastExpr *E) {
951  VisitExplicitCastExpr(E);
952  Record.AddSourceLocation(E->getLParenLoc());
954  Record.push_back(E->getBridgeKind()); // FIXME: Stable encoding
956 }
957 
958 void ASTStmtWriter::VisitCastExpr(CastExpr *E) {
959  VisitExpr(E);
960  Record.push_back(E->path_size());
961  Record.push_back(E->hasStoredFPFeatures());
962  Record.AddStmt(E->getSubExpr());
963  Record.push_back(E->getCastKind()); // FIXME: stable encoding
964 
966  PI = E->path_begin(), PE = E->path_end(); PI != PE; ++PI)
967  Record.AddCXXBaseSpecifier(**PI);
968 
969  if (E->hasStoredFPFeatures())
970  Record.push_back(E->getFPFeatures().getAsOpaqueInt());
971 }
972 
973 void ASTStmtWriter::VisitBinaryOperator(BinaryOperator *E) {
974  VisitExpr(E);
975  bool HasFPFeatures = E->hasStoredFPFeatures();
976  // Write this first for easy access when deserializing, as they affect the
977  // size of the UnaryOperator.
978  Record.push_back(HasFPFeatures);
979  Record.push_back(E->getOpcode()); // FIXME: stable encoding
980  Record.AddStmt(E->getLHS());
981  Record.AddStmt(E->getRHS());
982  Record.AddSourceLocation(E->getOperatorLoc());
983  if (HasFPFeatures)
986 }
987 
988 void ASTStmtWriter::VisitCompoundAssignOperator(CompoundAssignOperator *E) {
989  VisitBinaryOperator(E);
990  Record.AddTypeRef(E->getComputationLHSType());
993 }
994 
995 void ASTStmtWriter::VisitConditionalOperator(ConditionalOperator *E) {
996  VisitExpr(E);
997  Record.AddStmt(E->getCond());
998  Record.AddStmt(E->getLHS());
999  Record.AddStmt(E->getRHS());
1000  Record.AddSourceLocation(E->getQuestionLoc());
1001  Record.AddSourceLocation(E->getColonLoc());
1003 }
1004 
1005 void
1006 ASTStmtWriter::VisitBinaryConditionalOperator(BinaryConditionalOperator *E) {
1007  VisitExpr(E);
1008  Record.AddStmt(E->getOpaqueValue());
1009  Record.AddStmt(E->getCommon());
1010  Record.AddStmt(E->getCond());
1011  Record.AddStmt(E->getTrueExpr());
1012  Record.AddStmt(E->getFalseExpr());
1013  Record.AddSourceLocation(E->getQuestionLoc());
1014  Record.AddSourceLocation(E->getColonLoc());
1016 }
1017 
1018 void ASTStmtWriter::VisitImplicitCastExpr(ImplicitCastExpr *E) {
1019  VisitCastExpr(E);
1020  Record.push_back(E->isPartOfExplicitCast());
1021 
1022  if (E->path_size() == 0 && !E->hasStoredFPFeatures())
1023  AbbrevToUse = Writer.getExprImplicitCastAbbrev();
1024 
1026 }
1027 
1028 void ASTStmtWriter::VisitExplicitCastExpr(ExplicitCastExpr *E) {
1029  VisitCastExpr(E);
1031 }
1032 
1033 void ASTStmtWriter::VisitCStyleCastExpr(CStyleCastExpr *E) {
1034  VisitExplicitCastExpr(E);
1035  Record.AddSourceLocation(E->getLParenLoc());
1036  Record.AddSourceLocation(E->getRParenLoc());
1038 }
1039 
1040 void ASTStmtWriter::VisitCompoundLiteralExpr(CompoundLiteralExpr *E) {
1041  VisitExpr(E);
1042  Record.AddSourceLocation(E->getLParenLoc());
1043  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1044  Record.AddStmt(E->getInitializer());
1045  Record.push_back(E->isFileScope());
1047 }
1048 
1049 void ASTStmtWriter::VisitExtVectorElementExpr(ExtVectorElementExpr *E) {
1050  VisitExpr(E);
1051  Record.AddStmt(E->getBase());
1052  Record.AddIdentifierRef(&E->getAccessor());
1053  Record.AddSourceLocation(E->getAccessorLoc());
1055 }
1056 
1057 void ASTStmtWriter::VisitInitListExpr(InitListExpr *E) {
1058  VisitExpr(E);
1059  // NOTE: only add the (possibly null) syntactic form.
1060  // No need to serialize the isSemanticForm flag and the semantic form.
1061  Record.AddStmt(E->getSyntacticForm());
1062  Record.AddSourceLocation(E->getLBraceLoc());
1063  Record.AddSourceLocation(E->getRBraceLoc());
1064  bool isArrayFiller = E->ArrayFillerOrUnionFieldInit.is<Expr*>();
1065  Record.push_back(isArrayFiller);
1066  if (isArrayFiller)
1067  Record.AddStmt(E->getArrayFiller());
1068  else
1070  Record.push_back(E->hadArrayRangeDesignator());
1071  Record.push_back(E->getNumInits());
1072  if (isArrayFiller) {
1073  // ArrayFiller may have filled "holes" due to designated initializer.
1074  // Replace them by 0 to indicate that the filler goes in that place.
1075  Expr *filler = E->getArrayFiller();
1076  for (unsigned I = 0, N = E->getNumInits(); I != N; ++I)
1077  Record.AddStmt(E->getInit(I) != filler ? E->getInit(I) : nullptr);
1078  } else {
1079  for (unsigned I = 0, N = E->getNumInits(); I != N; ++I)
1080  Record.AddStmt(E->getInit(I));
1081  }
1083 }
1084 
1085 void ASTStmtWriter::VisitDesignatedInitExpr(DesignatedInitExpr *E) {
1086  VisitExpr(E);
1087  Record.push_back(E->getNumSubExprs());
1088  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1089  Record.AddStmt(E->getSubExpr(I));
1091  Record.push_back(E->usesGNUSyntax());
1092  for (const DesignatedInitExpr::Designator &D : E->designators()) {
1093  if (D.isFieldDesignator()) {
1094  if (FieldDecl *Field = D.getField()) {
1096  Record.AddDeclRef(Field);
1097  } else {
1099  Record.AddIdentifierRef(D.getFieldName());
1100  }
1101  Record.AddSourceLocation(D.getDotLoc());
1102  Record.AddSourceLocation(D.getFieldLoc());
1103  } else if (D.isArrayDesignator()) {
1105  Record.push_back(D.getFirstExprIndex());
1106  Record.AddSourceLocation(D.getLBracketLoc());
1107  Record.AddSourceLocation(D.getRBracketLoc());
1108  } else {
1109  assert(D.isArrayRangeDesignator() && "Unknown designator");
1111  Record.push_back(D.getFirstExprIndex());
1112  Record.AddSourceLocation(D.getLBracketLoc());
1113  Record.AddSourceLocation(D.getEllipsisLoc());
1114  Record.AddSourceLocation(D.getRBracketLoc());
1115  }
1116  }
1118 }
1119 
1120 void ASTStmtWriter::VisitDesignatedInitUpdateExpr(DesignatedInitUpdateExpr *E) {
1121  VisitExpr(E);
1122  Record.AddStmt(E->getBase());
1123  Record.AddStmt(E->getUpdater());
1125 }
1126 
1127 void ASTStmtWriter::VisitNoInitExpr(NoInitExpr *E) {
1128  VisitExpr(E);
1130 }
1131 
1132 void ASTStmtWriter::VisitArrayInitLoopExpr(ArrayInitLoopExpr *E) {
1133  VisitExpr(E);
1134  Record.AddStmt(E->SubExprs[0]);
1135  Record.AddStmt(E->SubExprs[1]);
1137 }
1138 
1139 void ASTStmtWriter::VisitArrayInitIndexExpr(ArrayInitIndexExpr *E) {
1140  VisitExpr(E);
1142 }
1143 
1144 void ASTStmtWriter::VisitImplicitValueInitExpr(ImplicitValueInitExpr *E) {
1145  VisitExpr(E);
1147 }
1148 
1149 void ASTStmtWriter::VisitVAArgExpr(VAArgExpr *E) {
1150  VisitExpr(E);
1151  Record.AddStmt(E->getSubExpr());
1153  Record.AddSourceLocation(E->getBuiltinLoc());
1154  Record.AddSourceLocation(E->getRParenLoc());
1155  Record.push_back(E->isMicrosoftABI());
1157 }
1158 
1159 void ASTStmtWriter::VisitSourceLocExpr(SourceLocExpr *E) {
1160  VisitExpr(E);
1161  Record.AddDeclRef(cast_or_null<Decl>(E->getParentContext()));
1162  Record.AddSourceLocation(E->getBeginLoc());
1163  Record.AddSourceLocation(E->getEndLoc());
1164  Record.push_back(E->getIdentKind());
1166 }
1167 
1168 void ASTStmtWriter::VisitAddrLabelExpr(AddrLabelExpr *E) {
1169  VisitExpr(E);
1170  Record.AddSourceLocation(E->getAmpAmpLoc());
1171  Record.AddSourceLocation(E->getLabelLoc());
1172  Record.AddDeclRef(E->getLabel());
1174 }
1175 
1176 void ASTStmtWriter::VisitStmtExpr(StmtExpr *E) {
1177  VisitExpr(E);
1178  Record.AddStmt(E->getSubStmt());
1179  Record.AddSourceLocation(E->getLParenLoc());
1180  Record.AddSourceLocation(E->getRParenLoc());
1181  Record.push_back(E->getTemplateDepth());
1182  Code = serialization::EXPR_STMT;
1183 }
1184 
1185 void ASTStmtWriter::VisitChooseExpr(ChooseExpr *E) {
1186  VisitExpr(E);
1187  Record.AddStmt(E->getCond());
1188  Record.AddStmt(E->getLHS());
1189  Record.AddStmt(E->getRHS());
1190  Record.AddSourceLocation(E->getBuiltinLoc());
1191  Record.AddSourceLocation(E->getRParenLoc());
1192  Record.push_back(E->isConditionDependent() ? false : E->isConditionTrue());
1194 }
1195 
1196 void ASTStmtWriter::VisitGNUNullExpr(GNUNullExpr *E) {
1197  VisitExpr(E);
1198  Record.AddSourceLocation(E->getTokenLocation());
1200 }
1201 
1202 void ASTStmtWriter::VisitShuffleVectorExpr(ShuffleVectorExpr *E) {
1203  VisitExpr(E);
1204  Record.push_back(E->getNumSubExprs());
1205  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1206  Record.AddStmt(E->getExpr(I));
1207  Record.AddSourceLocation(E->getBuiltinLoc());
1208  Record.AddSourceLocation(E->getRParenLoc());
1210 }
1211 
1212 void ASTStmtWriter::VisitConvertVectorExpr(ConvertVectorExpr *E) {
1213  VisitExpr(E);
1214  Record.AddSourceLocation(E->getBuiltinLoc());
1215  Record.AddSourceLocation(E->getRParenLoc());
1216  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1217  Record.AddStmt(E->getSrcExpr());
1219 }
1220 
1221 void ASTStmtWriter::VisitBlockExpr(BlockExpr *E) {
1222  VisitExpr(E);
1223  Record.AddDeclRef(E->getBlockDecl());
1225 }
1226 
1227 void ASTStmtWriter::VisitGenericSelectionExpr(GenericSelectionExpr *E) {
1228  VisitExpr(E);
1229 
1230  Record.push_back(E->getNumAssocs());
1231  Record.push_back(E->ResultIndex);
1232  Record.AddSourceLocation(E->getGenericLoc());
1233  Record.AddSourceLocation(E->getDefaultLoc());
1234  Record.AddSourceLocation(E->getRParenLoc());
1235 
1236  Stmt **Stmts = E->getTrailingObjects<Stmt *>();
1237  // Add 1 to account for the controlling expression which is the first
1238  // expression in the trailing array of Stmt *. This is not needed for
1239  // the trailing array of TypeSourceInfo *.
1240  for (unsigned I = 0, N = E->getNumAssocs() + 1; I < N; ++I)
1241  Record.AddStmt(Stmts[I]);
1242 
1243  TypeSourceInfo **TSIs = E->getTrailingObjects<TypeSourceInfo *>();
1244  for (unsigned I = 0, N = E->getNumAssocs(); I < N; ++I)
1245  Record.AddTypeSourceInfo(TSIs[I]);
1246 
1248 }
1249 
1250 void ASTStmtWriter::VisitPseudoObjectExpr(PseudoObjectExpr *E) {
1251  VisitExpr(E);
1252  Record.push_back(E->getNumSemanticExprs());
1253 
1254  // Push the result index. Currently, this needs to exactly match
1255  // the encoding used internally for ResultIndex.
1256  unsigned result = E->getResultExprIndex();
1257  result = (result == PseudoObjectExpr::NoResult ? 0 : result + 1);
1258  Record.push_back(result);
1259 
1260  Record.AddStmt(E->getSyntacticForm());
1262  i = E->semantics_begin(), e = E->semantics_end(); i != e; ++i) {
1263  Record.AddStmt(*i);
1264  }
1266 }
1267 
1268 void ASTStmtWriter::VisitAtomicExpr(AtomicExpr *E) {
1269  VisitExpr(E);
1270  Record.push_back(E->getOp());
1271  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1272  Record.AddStmt(E->getSubExprs()[I]);
1273  Record.AddSourceLocation(E->getBuiltinLoc());
1274  Record.AddSourceLocation(E->getRParenLoc());
1276 }
1277 
1278 //===----------------------------------------------------------------------===//
1279 // Objective-C Expressions and Statements.
1280 //===----------------------------------------------------------------------===//
1281 
1282 void ASTStmtWriter::VisitObjCStringLiteral(ObjCStringLiteral *E) {
1283  VisitExpr(E);
1284  Record.AddStmt(E->getString());
1285  Record.AddSourceLocation(E->getAtLoc());
1287 }
1288 
1289 void ASTStmtWriter::VisitObjCBoxedExpr(ObjCBoxedExpr *E) {
1290  VisitExpr(E);
1291  Record.AddStmt(E->getSubExpr());
1292  Record.AddDeclRef(E->getBoxingMethod());
1293  Record.AddSourceRange(E->getSourceRange());
1295 }
1296 
1297 void ASTStmtWriter::VisitObjCArrayLiteral(ObjCArrayLiteral *E) {
1298  VisitExpr(E);
1299  Record.push_back(E->getNumElements());
1300  for (unsigned i = 0; i < E->getNumElements(); i++)
1301  Record.AddStmt(E->getElement(i));
1303  Record.AddSourceRange(E->getSourceRange());
1305 }
1306 
1307 void ASTStmtWriter::VisitObjCDictionaryLiteral(ObjCDictionaryLiteral *E) {
1308  VisitExpr(E);
1309  Record.push_back(E->getNumElements());
1310  Record.push_back(E->HasPackExpansions);
1311  for (unsigned i = 0; i < E->getNumElements(); i++) {
1312  ObjCDictionaryElement Element = E->getKeyValueElement(i);
1313  Record.AddStmt(Element.Key);
1314  Record.AddStmt(Element.Value);
1315  if (E->HasPackExpansions) {
1316  Record.AddSourceLocation(Element.EllipsisLoc);
1317  unsigned NumExpansions = 0;
1318  if (Element.NumExpansions)
1319  NumExpansions = *Element.NumExpansions + 1;
1320  Record.push_back(NumExpansions);
1321  }
1322  }
1323 
1324  Record.AddDeclRef(E->getDictWithObjectsMethod());
1325  Record.AddSourceRange(E->getSourceRange());
1327 }
1328 
1329 void ASTStmtWriter::VisitObjCEncodeExpr(ObjCEncodeExpr *E) {
1330  VisitExpr(E);
1332  Record.AddSourceLocation(E->getAtLoc());
1333  Record.AddSourceLocation(E->getRParenLoc());
1335 }
1336 
1337 void ASTStmtWriter::VisitObjCSelectorExpr(ObjCSelectorExpr *E) {
1338  VisitExpr(E);
1339  Record.AddSelectorRef(E->getSelector());
1340  Record.AddSourceLocation(E->getAtLoc());
1341  Record.AddSourceLocation(E->getRParenLoc());
1343 }
1344 
1345 void ASTStmtWriter::VisitObjCProtocolExpr(ObjCProtocolExpr *E) {
1346  VisitExpr(E);
1347  Record.AddDeclRef(E->getProtocol());
1348  Record.AddSourceLocation(E->getAtLoc());
1349  Record.AddSourceLocation(E->ProtoLoc);
1350  Record.AddSourceLocation(E->getRParenLoc());
1352 }
1353 
1354 void ASTStmtWriter::VisitObjCIvarRefExpr(ObjCIvarRefExpr *E) {
1355  VisitExpr(E);
1356  Record.AddDeclRef(E->getDecl());
1357  Record.AddSourceLocation(E->getLocation());
1358  Record.AddSourceLocation(E->getOpLoc());
1359  Record.AddStmt(E->getBase());
1360  Record.push_back(E->isArrow());
1361  Record.push_back(E->isFreeIvar());
1363 }
1364 
1365 void ASTStmtWriter::VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *E) {
1366  VisitExpr(E);
1367  Record.push_back(E->SetterAndMethodRefFlags.getInt());
1368  Record.push_back(E->isImplicitProperty());
1369  if (E->isImplicitProperty()) {
1372  } else {
1373  Record.AddDeclRef(E->getExplicitProperty());
1374  }
1375  Record.AddSourceLocation(E->getLocation());
1377  if (E->isObjectReceiver()) {
1378  Record.push_back(0);
1379  Record.AddStmt(E->getBase());
1380  } else if (E->isSuperReceiver()) {
1381  Record.push_back(1);
1382  Record.AddTypeRef(E->getSuperReceiverType());
1383  } else {
1384  Record.push_back(2);
1385  Record.AddDeclRef(E->getClassReceiver());
1386  }
1387 
1389 }
1390 
1391 void ASTStmtWriter::VisitObjCSubscriptRefExpr(ObjCSubscriptRefExpr *E) {
1392  VisitExpr(E);
1393  Record.AddSourceLocation(E->getRBracket());
1394  Record.AddStmt(E->getBaseExpr());
1395  Record.AddStmt(E->getKeyExpr());
1396  Record.AddDeclRef(E->getAtIndexMethodDecl());
1397  Record.AddDeclRef(E->setAtIndexMethodDecl());
1398 
1400 }
1401 
1402 void ASTStmtWriter::VisitObjCMessageExpr(ObjCMessageExpr *E) {
1403  VisitExpr(E);
1404  Record.push_back(E->getNumArgs());
1405  Record.push_back(E->getNumStoredSelLocs());
1406  Record.push_back(E->SelLocsKind);
1407  Record.push_back(E->isDelegateInitCall());
1408  Record.push_back(E->IsImplicit);
1409  Record.push_back((unsigned)E->getReceiverKind()); // FIXME: stable encoding
1410  switch (E->getReceiverKind()) {
1412  Record.AddStmt(E->getInstanceReceiver());
1413  break;
1414 
1417  break;
1418 
1421  Record.AddTypeRef(E->getSuperType());
1422  Record.AddSourceLocation(E->getSuperLoc());
1423  break;
1424  }
1425 
1426  if (E->getMethodDecl()) {
1427  Record.push_back(1);
1428  Record.AddDeclRef(E->getMethodDecl());
1429  } else {
1430  Record.push_back(0);
1431  Record.AddSelectorRef(E->getSelector());
1432  }
1433 
1434  Record.AddSourceLocation(E->getLeftLoc());
1435  Record.AddSourceLocation(E->getRightLoc());
1436 
1437  for (CallExpr::arg_iterator Arg = E->arg_begin(), ArgEnd = E->arg_end();
1438  Arg != ArgEnd; ++Arg)
1439  Record.AddStmt(*Arg);
1440 
1441  SourceLocation *Locs = E->getStoredSelLocs();
1442  for (unsigned i = 0, e = E->getNumStoredSelLocs(); i != e; ++i)
1443  Record.AddSourceLocation(Locs[i]);
1444 
1446 }
1447 
1448 void ASTStmtWriter::VisitObjCForCollectionStmt(ObjCForCollectionStmt *S) {
1449  VisitStmt(S);
1450  Record.AddStmt(S->getElement());
1451  Record.AddStmt(S->getCollection());
1452  Record.AddStmt(S->getBody());
1453  Record.AddSourceLocation(S->getForLoc());
1454  Record.AddSourceLocation(S->getRParenLoc());
1456 }
1457 
1458 void ASTStmtWriter::VisitObjCAtCatchStmt(ObjCAtCatchStmt *S) {
1459  VisitStmt(S);
1460  Record.AddStmt(S->getCatchBody());
1461  Record.AddDeclRef(S->getCatchParamDecl());
1462  Record.AddSourceLocation(S->getAtCatchLoc());
1463  Record.AddSourceLocation(S->getRParenLoc());
1465 }
1466 
1467 void ASTStmtWriter::VisitObjCAtFinallyStmt(ObjCAtFinallyStmt *S) {
1468  VisitStmt(S);
1469  Record.AddStmt(S->getFinallyBody());
1470  Record.AddSourceLocation(S->getAtFinallyLoc());
1472 }
1473 
1474 void ASTStmtWriter::VisitObjCAutoreleasePoolStmt(ObjCAutoreleasePoolStmt *S) {
1475  VisitStmt(S); // FIXME: no test coverage.
1476  Record.AddStmt(S->getSubStmt());
1477  Record.AddSourceLocation(S->getAtLoc());
1479 }
1480 
1481 void ASTStmtWriter::VisitObjCAtTryStmt(ObjCAtTryStmt *S) {
1482  VisitStmt(S);
1483  Record.push_back(S->getNumCatchStmts());
1484  Record.push_back(S->getFinallyStmt() != nullptr);
1485  Record.AddStmt(S->getTryBody());
1486  for (unsigned I = 0, N = S->getNumCatchStmts(); I != N; ++I)
1487  Record.AddStmt(S->getCatchStmt(I));
1488  if (S->getFinallyStmt())
1489  Record.AddStmt(S->getFinallyStmt());
1490  Record.AddSourceLocation(S->getAtTryLoc());
1492 }
1493 
1494 void ASTStmtWriter::VisitObjCAtSynchronizedStmt(ObjCAtSynchronizedStmt *S) {
1495  VisitStmt(S); // FIXME: no test coverage.
1496  Record.AddStmt(S->getSynchExpr());
1497  Record.AddStmt(S->getSynchBody());
1498  Record.AddSourceLocation(S->getAtSynchronizedLoc());
1500 }
1501 
1502 void ASTStmtWriter::VisitObjCAtThrowStmt(ObjCAtThrowStmt *S) {
1503  VisitStmt(S); // FIXME: no test coverage.
1504  Record.AddStmt(S->getThrowExpr());
1505  Record.AddSourceLocation(S->getThrowLoc());
1507 }
1508 
1509 void ASTStmtWriter::VisitObjCBoolLiteralExpr(ObjCBoolLiteralExpr *E) {
1510  VisitExpr(E);
1511  Record.push_back(E->getValue());
1512  Record.AddSourceLocation(E->getLocation());
1514 }
1515 
1516 void ASTStmtWriter::VisitObjCAvailabilityCheckExpr(ObjCAvailabilityCheckExpr *E) {
1517  VisitExpr(E);
1518  Record.AddSourceRange(E->getSourceRange());
1519  Record.AddVersionTuple(E->getVersion());
1521 }
1522 
1523 //===----------------------------------------------------------------------===//
1524 // C++ Expressions and Statements.
1525 //===----------------------------------------------------------------------===//
1526 
1527 void ASTStmtWriter::VisitCXXCatchStmt(CXXCatchStmt *S) {
1528  VisitStmt(S);
1529  Record.AddSourceLocation(S->getCatchLoc());
1530  Record.AddDeclRef(S->getExceptionDecl());
1531  Record.AddStmt(S->getHandlerBlock());
1533 }
1534 
1535 void ASTStmtWriter::VisitCXXTryStmt(CXXTryStmt *S) {
1536  VisitStmt(S);
1537  Record.push_back(S->getNumHandlers());
1538  Record.AddSourceLocation(S->getTryLoc());
1539  Record.AddStmt(S->getTryBlock());
1540  for (unsigned i = 0, e = S->getNumHandlers(); i != e; ++i)
1541  Record.AddStmt(S->getHandler(i));
1543 }
1544 
1545 void ASTStmtWriter::VisitCXXForRangeStmt(CXXForRangeStmt *S) {
1546  VisitStmt(S);
1547  Record.AddSourceLocation(S->getForLoc());
1548  Record.AddSourceLocation(S->getCoawaitLoc());
1549  Record.AddSourceLocation(S->getColonLoc());
1550  Record.AddSourceLocation(S->getRParenLoc());
1551  Record.AddStmt(S->getInit());
1552  Record.AddStmt(S->getRangeStmt());
1553  Record.AddStmt(S->getBeginStmt());
1554  Record.AddStmt(S->getEndStmt());
1555  Record.AddStmt(S->getCond());
1556  Record.AddStmt(S->getInc());
1557  Record.AddStmt(S->getLoopVarStmt());
1558  Record.AddStmt(S->getBody());
1560 }
1561 
1562 void ASTStmtWriter::VisitMSDependentExistsStmt(MSDependentExistsStmt *S) {
1563  VisitStmt(S);
1564  Record.AddSourceLocation(S->getKeywordLoc());
1565  Record.push_back(S->isIfExists());
1566  Record.AddNestedNameSpecifierLoc(S->getQualifierLoc());
1567  Record.AddDeclarationNameInfo(S->getNameInfo());
1568  Record.AddStmt(S->getSubStmt());
1570 }
1571 
1572 void ASTStmtWriter::VisitCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
1573  VisitCallExpr(E);
1574  Record.push_back(E->getOperator());
1575  Record.AddSourceRange(E->Range);
1577 }
1578 
1579 void ASTStmtWriter::VisitCXXMemberCallExpr(CXXMemberCallExpr *E) {
1580  VisitCallExpr(E);
1582 }
1583 
1584 void ASTStmtWriter::VisitCXXRewrittenBinaryOperator(
1586  VisitExpr(E);
1587  Record.push_back(E->isReversed());
1588  Record.AddStmt(E->getSemanticForm());
1590 }
1591 
1592 void ASTStmtWriter::VisitCXXConstructExpr(CXXConstructExpr *E) {
1593  VisitExpr(E);
1594 
1595  Record.push_back(E->getNumArgs());
1596  Record.push_back(E->isElidable());
1597  Record.push_back(E->hadMultipleCandidates());
1598  Record.push_back(E->isListInitialization());
1601  Record.push_back(E->getConstructionKind()); // FIXME: stable encoding
1602  Record.AddSourceLocation(E->getLocation());
1603  Record.AddDeclRef(E->getConstructor());
1604  Record.AddSourceRange(E->getParenOrBraceRange());
1605 
1606  for (unsigned I = 0, N = E->getNumArgs(); I != N; ++I)
1607  Record.AddStmt(E->getArg(I));
1608 
1610 }
1611 
1612 void ASTStmtWriter::VisitCXXInheritedCtorInitExpr(CXXInheritedCtorInitExpr *E) {
1613  VisitExpr(E);
1614  Record.AddDeclRef(E->getConstructor());
1615  Record.AddSourceLocation(E->getLocation());
1616  Record.push_back(E->constructsVBase());
1617  Record.push_back(E->inheritedFromVBase());
1619 }
1620 
1621 void ASTStmtWriter::VisitCXXTemporaryObjectExpr(CXXTemporaryObjectExpr *E) {
1622  VisitCXXConstructExpr(E);
1623  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1625 }
1626 
1627 void ASTStmtWriter::VisitLambdaExpr(LambdaExpr *E) {
1628  VisitExpr(E);
1629  Record.push_back(E->LambdaExprBits.NumCaptures);
1630  Record.AddSourceRange(E->IntroducerRange);
1631  Record.push_back(E->LambdaExprBits.CaptureDefault); // FIXME: stable encoding
1632  Record.AddSourceLocation(E->CaptureDefaultLoc);
1633  Record.push_back(E->LambdaExprBits.ExplicitParams);
1634  Record.push_back(E->LambdaExprBits.ExplicitResultType);
1635  Record.AddSourceLocation(E->ClosingBrace);
1636 
1637  // Add capture initializers.
1639  CEnd = E->capture_init_end();
1640  C != CEnd; ++C) {
1641  Record.AddStmt(*C);
1642  }
1643 
1644  // Don't serialize the body. It belongs to the call operator declaration.
1645  // LambdaExpr only stores a copy of the Stmt *.
1646 
1648 }
1649 
1650 void ASTStmtWriter::VisitCXXStdInitializerListExpr(CXXStdInitializerListExpr *E) {
1651  VisitExpr(E);
1652  Record.AddStmt(E->getSubExpr());
1654 }
1655 
1656 void ASTStmtWriter::VisitCXXNamedCastExpr(CXXNamedCastExpr *E) {
1657  VisitExplicitCastExpr(E);
1659  Record.AddSourceRange(E->getAngleBrackets());
1660 }
1661 
1662 void ASTStmtWriter::VisitCXXStaticCastExpr(CXXStaticCastExpr *E) {
1663  VisitCXXNamedCastExpr(E);
1665 }
1666 
1667 void ASTStmtWriter::VisitCXXDynamicCastExpr(CXXDynamicCastExpr *E) {
1668  VisitCXXNamedCastExpr(E);
1670 }
1671 
1672 void ASTStmtWriter::VisitCXXReinterpretCastExpr(CXXReinterpretCastExpr *E) {
1673  VisitCXXNamedCastExpr(E);
1675 }
1676 
1677 void ASTStmtWriter::VisitCXXConstCastExpr(CXXConstCastExpr *E) {
1678  VisitCXXNamedCastExpr(E);
1680 }
1681 
1682 void ASTStmtWriter::VisitCXXAddrspaceCastExpr(CXXAddrspaceCastExpr *E) {
1683  VisitCXXNamedCastExpr(E);
1685 }
1686 
1687 void ASTStmtWriter::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr *E) {
1688  VisitExplicitCastExpr(E);
1689  Record.AddSourceLocation(E->getLParenLoc());
1690  Record.AddSourceLocation(E->getRParenLoc());
1692 }
1693 
1694 void ASTStmtWriter::VisitBuiltinBitCastExpr(BuiltinBitCastExpr *E) {
1695  VisitExplicitCastExpr(E);
1696  Record.AddSourceLocation(E->getBeginLoc());
1697  Record.AddSourceLocation(E->getEndLoc());
1699 }
1700 
1701 void ASTStmtWriter::VisitUserDefinedLiteral(UserDefinedLiteral *E) {
1702  VisitCallExpr(E);
1703  Record.AddSourceLocation(E->UDSuffixLoc);
1705 }
1706 
1707 void ASTStmtWriter::VisitCXXBoolLiteralExpr(CXXBoolLiteralExpr *E) {
1708  VisitExpr(E);
1709  Record.push_back(E->getValue());
1710  Record.AddSourceLocation(E->getLocation());
1712 }
1713 
1714 void ASTStmtWriter::VisitCXXNullPtrLiteralExpr(CXXNullPtrLiteralExpr *E) {
1715  VisitExpr(E);
1716  Record.AddSourceLocation(E->getLocation());
1718 }
1719 
1720 void ASTStmtWriter::VisitCXXTypeidExpr(CXXTypeidExpr *E) {
1721  VisitExpr(E);
1722  Record.AddSourceRange(E->getSourceRange());
1723  if (E->isTypeOperand()) {
1726  } else {
1727  Record.AddStmt(E->getExprOperand());
1729  }
1730 }
1731 
1732 void ASTStmtWriter::VisitCXXThisExpr(CXXThisExpr *E) {
1733  VisitExpr(E);
1734  Record.AddSourceLocation(E->getLocation());
1735  Record.push_back(E->isImplicit());
1737 }
1738 
1739 void ASTStmtWriter::VisitCXXThrowExpr(CXXThrowExpr *E) {
1740  VisitExpr(E);
1741  Record.AddSourceLocation(E->getThrowLoc());
1742  Record.AddStmt(E->getSubExpr());
1743  Record.push_back(E->isThrownVariableInScope());
1745 }
1746 
1747 void ASTStmtWriter::VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
1748  VisitExpr(E);
1749  Record.AddDeclRef(E->getParam());
1750  Record.AddDeclRef(cast_or_null<Decl>(E->getUsedContext()));
1751  Record.AddSourceLocation(E->getUsedLocation());
1753 }
1754 
1755 void ASTStmtWriter::VisitCXXDefaultInitExpr(CXXDefaultInitExpr *E) {
1756  VisitExpr(E);
1757  Record.AddDeclRef(E->getField());
1758  Record.AddDeclRef(cast_or_null<Decl>(E->getUsedContext()));
1759  Record.AddSourceLocation(E->getExprLoc());
1761 }
1762 
1763 void ASTStmtWriter::VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *E) {
1764  VisitExpr(E);
1765  Record.AddCXXTemporary(E->getTemporary());
1766  Record.AddStmt(E->getSubExpr());
1768 }
1769 
1770 void ASTStmtWriter::VisitCXXScalarValueInitExpr(CXXScalarValueInitExpr *E) {
1771  VisitExpr(E);
1772  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1773  Record.AddSourceLocation(E->getRParenLoc());
1775 }
1776 
1777 void ASTStmtWriter::VisitCXXNewExpr(CXXNewExpr *E) {
1778  VisitExpr(E);
1779 
1780  Record.push_back(E->isArray());
1781  Record.push_back(E->hasInitializer());
1782  Record.push_back(E->getNumPlacementArgs());
1783  Record.push_back(E->isParenTypeId());
1784 
1785  Record.push_back(E->isGlobalNew());
1786  Record.push_back(E->passAlignment());
1788  Record.push_back(E->CXXNewExprBits.StoredInitializationStyle);
1789 
1790  Record.AddDeclRef(E->getOperatorNew());
1791  Record.AddDeclRef(E->getOperatorDelete());
1793  if (E->isParenTypeId())
1794  Record.AddSourceRange(E->getTypeIdParens());
1795  Record.AddSourceRange(E->getSourceRange());
1796  Record.AddSourceRange(E->getDirectInitRange());
1797 
1798  for (CXXNewExpr::arg_iterator I = E->raw_arg_begin(), N = E->raw_arg_end();
1799  I != N; ++I)
1800  Record.AddStmt(*I);
1801 
1803 }
1804 
1805 void ASTStmtWriter::VisitCXXDeleteExpr(CXXDeleteExpr *E) {
1806  VisitExpr(E);
1807  Record.push_back(E->isGlobalDelete());
1808  Record.push_back(E->isArrayForm());
1809  Record.push_back(E->isArrayFormAsWritten());
1811  Record.AddDeclRef(E->getOperatorDelete());
1812  Record.AddStmt(E->getArgument());
1813  Record.AddSourceLocation(E->getBeginLoc());
1814 
1816 }
1817 
1818 void ASTStmtWriter::VisitCXXPseudoDestructorExpr(CXXPseudoDestructorExpr *E) {
1819  VisitExpr(E);
1820 
1821  Record.AddStmt(E->getBase());
1822  Record.push_back(E->isArrow());
1823  Record.AddSourceLocation(E->getOperatorLoc());
1825  Record.AddTypeSourceInfo(E->getScopeTypeInfo());
1826  Record.AddSourceLocation(E->getColonColonLoc());
1827  Record.AddSourceLocation(E->getTildeLoc());
1828 
1829  // PseudoDestructorTypeStorage.
1831  if (E->getDestroyedTypeIdentifier())
1833  else
1835 
1837 }
1838 
1839 void ASTStmtWriter::VisitExprWithCleanups(ExprWithCleanups *E) {
1840  VisitExpr(E);
1841  Record.push_back(E->getNumObjects());
1842  for (auto &Obj : E->getObjects()) {
1843  if (auto *BD = Obj.dyn_cast<BlockDecl *>()) {
1845  Record.AddDeclRef(BD);
1846  } else if (auto *CLE = Obj.dyn_cast<CompoundLiteralExpr *>()) {
1848  Record.AddStmt(CLE);
1849  }
1850  }
1851 
1852  Record.push_back(E->cleanupsHaveSideEffects());
1853  Record.AddStmt(E->getSubExpr());
1855 }
1856 
1857 void ASTStmtWriter::VisitCXXDependentScopeMemberExpr(
1859  VisitExpr(E);
1860 
1861  // Don't emit anything here (or if you do you will have to update
1862  // the corresponding deserialization function).
1863 
1864  Record.push_back(E->hasTemplateKWAndArgsInfo());
1865  Record.push_back(E->getNumTemplateArgs());
1866  Record.push_back(E->hasFirstQualifierFoundInScope());
1867 
1868  if (E->hasTemplateKWAndArgsInfo()) {
1869  const ASTTemplateKWAndArgsInfo &ArgInfo =
1870  *E->getTrailingObjects<ASTTemplateKWAndArgsInfo>();
1871  AddTemplateKWAndArgsInfo(ArgInfo,
1872  E->getTrailingObjects<TemplateArgumentLoc>());
1873  }
1874 
1875  Record.push_back(E->isArrow());
1876  Record.AddSourceLocation(E->getOperatorLoc());
1877  Record.AddTypeRef(E->getBaseType());
1879  if (!E->isImplicitAccess())
1880  Record.AddStmt(E->getBase());
1881  else
1882  Record.AddStmt(nullptr);
1883 
1884  if (E->hasFirstQualifierFoundInScope())
1886 
1887  Record.AddDeclarationNameInfo(E->MemberNameInfo);
1889 }
1890 
1891 void
1892 ASTStmtWriter::VisitDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E) {
1893  VisitExpr(E);
1894 
1895  // Don't emit anything here, HasTemplateKWAndArgsInfo must be
1896  // emitted first.
1897 
1898  Record.push_back(E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo);
1899  if (E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo) {
1900  const ASTTemplateKWAndArgsInfo &ArgInfo =
1901  *E->getTrailingObjects<ASTTemplateKWAndArgsInfo>();
1902  Record.push_back(ArgInfo.NumTemplateArgs);
1903  AddTemplateKWAndArgsInfo(ArgInfo,
1904  E->getTrailingObjects<TemplateArgumentLoc>());
1905  }
1906 
1908  Record.AddDeclarationNameInfo(E->NameInfo);
1910 }
1911 
1912 void
1913 ASTStmtWriter::VisitCXXUnresolvedConstructExpr(CXXUnresolvedConstructExpr *E) {
1914  VisitExpr(E);
1915  Record.push_back(E->getNumArgs());
1917  ArgI = E->arg_begin(), ArgE = E->arg_end(); ArgI != ArgE; ++ArgI)
1918  Record.AddStmt(*ArgI);
1919  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1920  Record.AddSourceLocation(E->getLParenLoc());
1921  Record.AddSourceLocation(E->getRParenLoc());
1923 }
1924 
1925 void ASTStmtWriter::VisitOverloadExpr(OverloadExpr *E) {
1926  VisitExpr(E);
1927 
1928  Record.push_back(E->getNumDecls());
1929  Record.push_back(E->hasTemplateKWAndArgsInfo());
1930  if (E->hasTemplateKWAndArgsInfo()) {
1931  const ASTTemplateKWAndArgsInfo &ArgInfo =
1933  Record.push_back(ArgInfo.NumTemplateArgs);
1935  }
1936 
1937  for (OverloadExpr::decls_iterator OvI = E->decls_begin(),
1938  OvE = E->decls_end();
1939  OvI != OvE; ++OvI) {
1940  Record.AddDeclRef(OvI.getDecl());
1941  Record.push_back(OvI.getAccess());
1942  }
1943 
1944  Record.AddDeclarationNameInfo(E->getNameInfo());
1946 }
1947 
1948 void ASTStmtWriter::VisitUnresolvedMemberExpr(UnresolvedMemberExpr *E) {
1949  VisitOverloadExpr(E);
1950  Record.push_back(E->isArrow());
1951  Record.push_back(E->hasUnresolvedUsing());
1952  Record.AddStmt(!E->isImplicitAccess() ? E->getBase() : nullptr);
1953  Record.AddTypeRef(E->getBaseType());
1954  Record.AddSourceLocation(E->getOperatorLoc());
1956 }
1957 
1958 void ASTStmtWriter::VisitUnresolvedLookupExpr(UnresolvedLookupExpr *E) {
1959  VisitOverloadExpr(E);
1960  Record.push_back(E->requiresADL());
1961  Record.push_back(E->isOverloaded());
1962  Record.AddDeclRef(E->getNamingClass());
1964 }
1965 
1966 void ASTStmtWriter::VisitTypeTraitExpr(TypeTraitExpr *E) {
1967  VisitExpr(E);
1968  Record.push_back(E->TypeTraitExprBits.NumArgs);
1969  Record.push_back(E->TypeTraitExprBits.Kind); // FIXME: Stable encoding
1970  Record.push_back(E->TypeTraitExprBits.Value);
1971  Record.AddSourceRange(E->getSourceRange());
1972  for (unsigned I = 0, N = E->getNumArgs(); I != N; ++I)
1973  Record.AddTypeSourceInfo(E->getArg(I));
1975 }
1976 
1977 void ASTStmtWriter::VisitArrayTypeTraitExpr(ArrayTypeTraitExpr *E) {
1978  VisitExpr(E);
1979  Record.push_back(E->getTrait());
1980  Record.push_back(E->getValue());
1981  Record.AddSourceRange(E->getSourceRange());
1983  Record.AddStmt(E->getDimensionExpression());
1985 }
1986 
1987 void ASTStmtWriter::VisitExpressionTraitExpr(ExpressionTraitExpr *E) {
1988  VisitExpr(E);
1989  Record.push_back(E->getTrait());
1990  Record.push_back(E->getValue());
1991  Record.AddSourceRange(E->getSourceRange());
1992  Record.AddStmt(E->getQueriedExpression());
1994 }
1995 
1996 void ASTStmtWriter::VisitCXXNoexceptExpr(CXXNoexceptExpr *E) {
1997  VisitExpr(E);
1998  Record.push_back(E->getValue());
1999  Record.AddSourceRange(E->getSourceRange());
2000  Record.AddStmt(E->getOperand());
2002 }
2003 
2004 void ASTStmtWriter::VisitPackExpansionExpr(PackExpansionExpr *E) {
2005  VisitExpr(E);
2006  Record.AddSourceLocation(E->getEllipsisLoc());
2007  Record.push_back(E->NumExpansions);
2008  Record.AddStmt(E->getPattern());
2010 }
2011 
2012 void ASTStmtWriter::VisitSizeOfPackExpr(SizeOfPackExpr *E) {
2013  VisitExpr(E);
2014  Record.push_back(E->isPartiallySubstituted() ? E->getPartialArguments().size()
2015  : 0);
2016  Record.AddSourceLocation(E->OperatorLoc);
2017  Record.AddSourceLocation(E->PackLoc);
2018  Record.AddSourceLocation(E->RParenLoc);
2019  Record.AddDeclRef(E->Pack);
2020  if (E->isPartiallySubstituted()) {
2021  for (const auto &TA : E->getPartialArguments())
2022  Record.AddTemplateArgument(TA);
2023  } else if (!E->isValueDependent()) {
2024  Record.push_back(E->getPackLength());
2025  }
2027 }
2028 
2029 void ASTStmtWriter::VisitSubstNonTypeTemplateParmExpr(
2031  VisitExpr(E);
2032  Record.AddDeclRef(E->getParameter());
2033  Record.push_back(E->isReferenceParameter());
2034  Record.AddSourceLocation(E->getNameLoc());
2035  Record.AddStmt(E->getReplacement());
2037 }
2038 
2039 void ASTStmtWriter::VisitSubstNonTypeTemplateParmPackExpr(
2041  VisitExpr(E);
2042  Record.AddDeclRef(E->getParameterPack());
2043  Record.AddTemplateArgument(E->getArgumentPack());
2046 }
2047 
2048 void ASTStmtWriter::VisitFunctionParmPackExpr(FunctionParmPackExpr *E) {
2049  VisitExpr(E);
2050  Record.push_back(E->getNumExpansions());
2051  Record.AddDeclRef(E->getParameterPack());
2053  for (FunctionParmPackExpr::iterator I = E->begin(), End = E->end();
2054  I != End; ++I)
2055  Record.AddDeclRef(*I);
2057 }
2058 
2059 void ASTStmtWriter::VisitMaterializeTemporaryExpr(MaterializeTemporaryExpr *E) {
2060  VisitExpr(E);
2061  Record.push_back(static_cast<bool>(E->getLifetimeExtendedTemporaryDecl()));
2064  else
2065  Record.AddStmt(E->getSubExpr());
2067 }
2068 
2069 void ASTStmtWriter::VisitCXXFoldExpr(CXXFoldExpr *E) {
2070  VisitExpr(E);
2071  Record.AddSourceLocation(E->LParenLoc);
2072  Record.AddSourceLocation(E->EllipsisLoc);
2073  Record.AddSourceLocation(E->RParenLoc);
2074  Record.push_back(E->NumExpansions);
2075  Record.AddStmt(E->SubExprs[0]);
2076  Record.AddStmt(E->SubExprs[1]);
2077  Record.AddStmt(E->SubExprs[2]);
2078  Record.push_back(E->Opcode);
2080 }
2081 
2082 void ASTStmtWriter::VisitOpaqueValueExpr(OpaqueValueExpr *E) {
2083  VisitExpr(E);
2084  Record.AddStmt(E->getSourceExpr());
2085  Record.AddSourceLocation(E->getLocation());
2086  Record.push_back(E->isUnique());
2088 }
2089 
2090 void ASTStmtWriter::VisitTypoExpr(TypoExpr *E) {
2091  VisitExpr(E);
2092  // TODO: Figure out sane writer behavior for a TypoExpr, if necessary
2093  llvm_unreachable("Cannot write TypoExpr nodes");
2094 }
2095 
2096 //===----------------------------------------------------------------------===//
2097 // CUDA Expressions and Statements.
2098 //===----------------------------------------------------------------------===//
2099 
2100 void ASTStmtWriter::VisitCUDAKernelCallExpr(CUDAKernelCallExpr *E) {
2101  VisitCallExpr(E);
2102  Record.AddStmt(E->getConfig());
2104 }
2105 
2106 //===----------------------------------------------------------------------===//
2107 // OpenCL Expressions and Statements.
2108 //===----------------------------------------------------------------------===//
2109 void ASTStmtWriter::VisitAsTypeExpr(AsTypeExpr *E) {
2110  VisitExpr(E);
2111  Record.AddSourceLocation(E->getBuiltinLoc());
2112  Record.AddSourceLocation(E->getRParenLoc());
2113  Record.AddStmt(E->getSrcExpr());
2115 }
2116 
2117 //===----------------------------------------------------------------------===//
2118 // Microsoft Expressions and Statements.
2119 //===----------------------------------------------------------------------===//
2120 void ASTStmtWriter::VisitMSPropertyRefExpr(MSPropertyRefExpr *E) {
2121  VisitExpr(E);
2122  Record.push_back(E->isArrow());
2123  Record.AddStmt(E->getBaseExpr());
2125  Record.AddSourceLocation(E->getMemberLoc());
2126  Record.AddDeclRef(E->getPropertyDecl());
2128 }
2129 
2130 void ASTStmtWriter::VisitMSPropertySubscriptExpr(MSPropertySubscriptExpr *E) {
2131  VisitExpr(E);
2132  Record.AddStmt(E->getBase());
2133  Record.AddStmt(E->getIdx());
2134  Record.AddSourceLocation(E->getRBracketLoc());
2136 }
2137 
2138 void ASTStmtWriter::VisitCXXUuidofExpr(CXXUuidofExpr *E) {
2139  VisitExpr(E);
2140  Record.AddSourceRange(E->getSourceRange());
2141  Record.AddDeclRef(E->getGuidDecl());
2142  if (E->isTypeOperand()) {
2145  } else {
2146  Record.AddStmt(E->getExprOperand());
2148  }
2149 }
2150 
2151 void ASTStmtWriter::VisitSEHExceptStmt(SEHExceptStmt *S) {
2152  VisitStmt(S);
2153  Record.AddSourceLocation(S->getExceptLoc());
2154  Record.AddStmt(S->getFilterExpr());
2155  Record.AddStmt(S->getBlock());
2157 }
2158 
2159 void ASTStmtWriter::VisitSEHFinallyStmt(SEHFinallyStmt *S) {
2160  VisitStmt(S);
2161  Record.AddSourceLocation(S->getFinallyLoc());
2162  Record.AddStmt(S->getBlock());
2164 }
2165 
2166 void ASTStmtWriter::VisitSEHTryStmt(SEHTryStmt *S) {
2167  VisitStmt(S);
2168  Record.push_back(S->getIsCXXTry());
2169  Record.AddSourceLocation(S->getTryLoc());
2170  Record.AddStmt(S->getTryBlock());
2171  Record.AddStmt(S->getHandler());
2173 }
2174 
2175 void ASTStmtWriter::VisitSEHLeaveStmt(SEHLeaveStmt *S) {
2176  VisitStmt(S);
2177  Record.AddSourceLocation(S->getLeaveLoc());
2179 }
2180 
2181 //===----------------------------------------------------------------------===//
2182 // OpenMP Directives.
2183 //===----------------------------------------------------------------------===//
2184 
2185 void ASTStmtWriter::VisitOMPCanonicalLoop(OMPCanonicalLoop *S) {
2186  VisitStmt(S);
2187  for (Stmt *SubStmt : S->SubStmts)
2188  Record.AddStmt(SubStmt);
2190 }
2191 
2192 void ASTStmtWriter::VisitOMPExecutableDirective(OMPExecutableDirective *E) {
2193  Record.writeOMPChildren(E->Data);
2194  Record.AddSourceLocation(E->getBeginLoc());
2195  Record.AddSourceLocation(E->getEndLoc());
2196 }
2197 
2198 void ASTStmtWriter::VisitOMPLoopBasedDirective(OMPLoopBasedDirective *D) {
2199  VisitStmt(D);
2200  Record.writeUInt32(D->getLoopsNumber());
2201  VisitOMPExecutableDirective(D);
2202 }
2203 
2204 void ASTStmtWriter::VisitOMPLoopDirective(OMPLoopDirective *D) {
2205  VisitOMPLoopBasedDirective(D);
2206 }
2207 
2208 void ASTStmtWriter::VisitOMPParallelDirective(OMPParallelDirective *D) {
2209  VisitStmt(D);
2210  VisitOMPExecutableDirective(D);
2211  Record.writeBool(D->hasCancel());
2213 }
2214 
2215 void ASTStmtWriter::VisitOMPSimdDirective(OMPSimdDirective *D) {
2216  VisitOMPLoopDirective(D);
2218 }
2219 
2220 void ASTStmtWriter::VisitOMPTileDirective(OMPTileDirective *D) {
2221  VisitOMPLoopBasedDirective(D);
2223 }
2224 
2225 void ASTStmtWriter::VisitOMPUnrollDirective(OMPUnrollDirective *D) {
2226  VisitOMPLoopBasedDirective(D);
2228 }
2229 
2230 void ASTStmtWriter::VisitOMPForDirective(OMPForDirective *D) {
2231  VisitOMPLoopDirective(D);
2232  Record.writeBool(D->hasCancel());
2234 }
2235 
2236 void ASTStmtWriter::VisitOMPForSimdDirective(OMPForSimdDirective *D) {
2237  VisitOMPLoopDirective(D);
2239 }
2240 
2241 void ASTStmtWriter::VisitOMPSectionsDirective(OMPSectionsDirective *D) {
2242  VisitStmt(D);
2243  VisitOMPExecutableDirective(D);
2244  Record.writeBool(D->hasCancel());
2246 }
2247 
2248 void ASTStmtWriter::VisitOMPSectionDirective(OMPSectionDirective *D) {
2249  VisitStmt(D);
2250  VisitOMPExecutableDirective(D);
2251  Record.writeBool(D->hasCancel());
2253 }
2254 
2255 void ASTStmtWriter::VisitOMPSingleDirective(OMPSingleDirective *D) {
2256  VisitStmt(D);
2257  VisitOMPExecutableDirective(D);
2259 }
2260 
2261 void ASTStmtWriter::VisitOMPMasterDirective(OMPMasterDirective *D) {
2262  VisitStmt(D);
2263  VisitOMPExecutableDirective(D);
2265 }
2266 
2267 void ASTStmtWriter::VisitOMPCriticalDirective(OMPCriticalDirective *D) {
2268  VisitStmt(D);
2269  VisitOMPExecutableDirective(D);
2272 }
2273 
2274 void ASTStmtWriter::VisitOMPParallelForDirective(OMPParallelForDirective *D) {
2275  VisitOMPLoopDirective(D);
2276  Record.writeBool(D->hasCancel());
2278 }
2279 
2280 void ASTStmtWriter::VisitOMPParallelForSimdDirective(
2282  VisitOMPLoopDirective(D);
2284 }
2285 
2286 void ASTStmtWriter::VisitOMPParallelMasterDirective(
2288  VisitStmt(D);
2289  VisitOMPExecutableDirective(D);
2291 }
2292 
2293 void ASTStmtWriter::VisitOMPParallelSectionsDirective(
2295  VisitStmt(D);
2296  VisitOMPExecutableDirective(D);
2297  Record.writeBool(D->hasCancel());
2299 }
2300 
2301 void ASTStmtWriter::VisitOMPTaskDirective(OMPTaskDirective *D) {
2302  VisitStmt(D);
2303  VisitOMPExecutableDirective(D);
2304  Record.writeBool(D->hasCancel());
2306 }
2307 
2308 void ASTStmtWriter::VisitOMPAtomicDirective(OMPAtomicDirective *D) {
2309  VisitStmt(D);
2310  VisitOMPExecutableDirective(D);
2311  Record.writeBool(D->isXLHSInRHSPart());
2312  Record.writeBool(D->isPostfixUpdate());
2314 }
2315 
2316 void ASTStmtWriter::VisitOMPTargetDirective(OMPTargetDirective *D) {
2317  VisitStmt(D);
2318  VisitOMPExecutableDirective(D);
2320 }
2321 
2322 void ASTStmtWriter::VisitOMPTargetDataDirective(OMPTargetDataDirective *D) {
2323  VisitStmt(D);
2324  VisitOMPExecutableDirective(D);
2326 }
2327 
2328 void ASTStmtWriter::VisitOMPTargetEnterDataDirective(
2330  VisitStmt(D);
2331  VisitOMPExecutableDirective(D);
2333 }
2334 
2335 void ASTStmtWriter::VisitOMPTargetExitDataDirective(
2337  VisitStmt(D);
2338  VisitOMPExecutableDirective(D);
2340 }
2341 
2342 void ASTStmtWriter::VisitOMPTargetParallelDirective(
2344  VisitStmt(D);
2345  VisitOMPExecutableDirective(D);
2346  Record.writeBool(D->hasCancel());
2348 }
2349 
2350 void ASTStmtWriter::VisitOMPTargetParallelForDirective(
2352  VisitOMPLoopDirective(D);
2353  Record.writeBool(D->hasCancel());
2355 }
2356 
2357 void ASTStmtWriter::VisitOMPTaskyieldDirective(OMPTaskyieldDirective *D) {
2358  VisitStmt(D);
2359  VisitOMPExecutableDirective(D);
2361 }
2362 
2363 void ASTStmtWriter::VisitOMPBarrierDirective(OMPBarrierDirective *D) {
2364  VisitStmt(D);
2365  VisitOMPExecutableDirective(D);
2367 }
2368 
2369 void ASTStmtWriter::VisitOMPTaskwaitDirective(OMPTaskwaitDirective *D) {
2370  VisitStmt(D);
2371  VisitOMPExecutableDirective(D);
2373 }
2374 
2375 void ASTStmtWriter::VisitOMPTaskgroupDirective(OMPTaskgroupDirective *D) {
2376  VisitStmt(D);
2377  VisitOMPExecutableDirective(D);
2379 }
2380 
2381 void ASTStmtWriter::VisitOMPFlushDirective(OMPFlushDirective *D) {
2382  VisitStmt(D);
2383  VisitOMPExecutableDirective(D);
2385 }
2386 
2387 void ASTStmtWriter::VisitOMPDepobjDirective(OMPDepobjDirective *D) {
2388  VisitStmt(D);
2389  VisitOMPExecutableDirective(D);
2391 }
2392 
2393 void ASTStmtWriter::VisitOMPScanDirective(OMPScanDirective *D) {
2394  VisitStmt(D);
2395  VisitOMPExecutableDirective(D);
2397 }
2398 
2399 void ASTStmtWriter::VisitOMPOrderedDirective(OMPOrderedDirective *D) {
2400  VisitStmt(D);
2401  VisitOMPExecutableDirective(D);
2403 }
2404 
2405 void ASTStmtWriter::VisitOMPTeamsDirective(OMPTeamsDirective *D) {
2406  VisitStmt(D);
2407  VisitOMPExecutableDirective(D);
2409 }
2410 
2411 void ASTStmtWriter::VisitOMPCancellationPointDirective(
2413  VisitStmt(D);
2414  VisitOMPExecutableDirective(D);
2415  Record.writeEnum(D->getCancelRegion());
2417 }
2418 
2419 void ASTStmtWriter::VisitOMPCancelDirective(OMPCancelDirective *D) {
2420  VisitStmt(D);
2421  VisitOMPExecutableDirective(D);
2422  Record.writeEnum(D->getCancelRegion());
2424 }
2425 
2426 void ASTStmtWriter::VisitOMPTaskLoopDirective(OMPTaskLoopDirective *D) {
2427  VisitOMPLoopDirective(D);
2428  Record.writeBool(D->hasCancel());
2430 }
2431 
2432 void ASTStmtWriter::VisitOMPTaskLoopSimdDirective(OMPTaskLoopSimdDirective *D) {
2433  VisitOMPLoopDirective(D);
2435 }
2436 
2437 void ASTStmtWriter::VisitOMPMasterTaskLoopDirective(
2439  VisitOMPLoopDirective(D);
2440  Record.writeBool(D->hasCancel());
2442 }
2443 
2444 void ASTStmtWriter::VisitOMPMasterTaskLoopSimdDirective(
2446  VisitOMPLoopDirective(D);
2448 }
2449 
2450 void ASTStmtWriter::VisitOMPParallelMasterTaskLoopDirective(
2452  VisitOMPLoopDirective(D);
2453  Record.writeBool(D->hasCancel());
2455 }
2456 
2457 void ASTStmtWriter::VisitOMPParallelMasterTaskLoopSimdDirective(
2459  VisitOMPLoopDirective(D);
2461 }
2462 
2463 void ASTStmtWriter::VisitOMPDistributeDirective(OMPDistributeDirective *D) {
2464  VisitOMPLoopDirective(D);
2466 }
2467 
2468 void ASTStmtWriter::VisitOMPTargetUpdateDirective(OMPTargetUpdateDirective *D) {
2469  VisitStmt(D);
2470  VisitOMPExecutableDirective(D);
2472 }
2473 
2474 void ASTStmtWriter::VisitOMPDistributeParallelForDirective(
2476  VisitOMPLoopDirective(D);
2477  Record.writeBool(D->hasCancel());
2479 }
2480 
2481 void ASTStmtWriter::VisitOMPDistributeParallelForSimdDirective(
2483  VisitOMPLoopDirective(D);
2485 }
2486 
2487 void ASTStmtWriter::VisitOMPDistributeSimdDirective(
2489  VisitOMPLoopDirective(D);
2491 }
2492 
2493 void ASTStmtWriter::VisitOMPTargetParallelForSimdDirective(
2495  VisitOMPLoopDirective(D);
2497 }
2498 
2499 void ASTStmtWriter::VisitOMPTargetSimdDirective(OMPTargetSimdDirective *D) {
2500  VisitOMPLoopDirective(D);
2502 }
2503 
2504 void ASTStmtWriter::VisitOMPTeamsDistributeDirective(
2506  VisitOMPLoopDirective(D);
2508 }
2509 
2510 void ASTStmtWriter::VisitOMPTeamsDistributeSimdDirective(
2512  VisitOMPLoopDirective(D);
2514 }
2515 
2516 void ASTStmtWriter::VisitOMPTeamsDistributeParallelForSimdDirective(
2518  VisitOMPLoopDirective(D);
2520 }
2521 
2522 void ASTStmtWriter::VisitOMPTeamsDistributeParallelForDirective(
2524  VisitOMPLoopDirective(D);
2525  Record.writeBool(D->hasCancel());
2527 }
2528 
2529 void ASTStmtWriter::VisitOMPTargetTeamsDirective(OMPTargetTeamsDirective *D) {
2530  VisitStmt(D);
2531  VisitOMPExecutableDirective(D);
2533 }
2534 
2535 void ASTStmtWriter::VisitOMPTargetTeamsDistributeDirective(
2537  VisitOMPLoopDirective(D);
2539 }
2540 
2541 void ASTStmtWriter::VisitOMPTargetTeamsDistributeParallelForDirective(
2543  VisitOMPLoopDirective(D);
2544  Record.writeBool(D->hasCancel());
2546 }
2547 
2548 void ASTStmtWriter::VisitOMPTargetTeamsDistributeParallelForSimdDirective(
2550  VisitOMPLoopDirective(D);
2551  Code = serialization::
2553 }
2554 
2555 void ASTStmtWriter::VisitOMPTargetTeamsDistributeSimdDirective(
2557  VisitOMPLoopDirective(D);
2559 }
2560 
2561 void ASTStmtWriter::VisitOMPInteropDirective(OMPInteropDirective *D) {
2562  VisitStmt(D);
2563  VisitOMPExecutableDirective(D);
2565 }
2566 
2567 void ASTStmtWriter::VisitOMPDispatchDirective(OMPDispatchDirective *D) {
2568  VisitStmt(D);
2569  VisitOMPExecutableDirective(D);
2570  Record.AddSourceLocation(D->getTargetCallLoc());
2572 }
2573 
2574 void ASTStmtWriter::VisitOMPMaskedDirective(OMPMaskedDirective *D) {
2575  VisitStmt(D);
2576  VisitOMPExecutableDirective(D);
2578 }
2579 
2580 //===----------------------------------------------------------------------===//
2581 // ASTWriter Implementation
2582 //===----------------------------------------------------------------------===//
2583 
2585  assert(SwitchCaseIDs.find(S) == SwitchCaseIDs.end() &&
2586  "SwitchCase recorded twice");
2587  unsigned NextID = SwitchCaseIDs.size();
2588  SwitchCaseIDs[S] = NextID;
2589  return NextID;
2590 }
2591 
2593  assert(SwitchCaseIDs.find(S) != SwitchCaseIDs.end() &&
2594  "SwitchCase hasn't been seen yet");
2595  return SwitchCaseIDs[S];
2596 }
2597 
2599  SwitchCaseIDs.clear();
2600 }
2601 
2602 /// Write the given substatement or subexpression to the
2603 /// bitstream.
2604 void ASTWriter::WriteSubStmt(Stmt *S) {
2605  RecordData Record;
2606  ASTStmtWriter Writer(*this, Record);
2607  ++NumStatements;
2608 
2609  if (!S) {
2610  Stream.EmitRecord(serialization::STMT_NULL_PTR, Record);
2611  return;
2612  }
2613 
2614  llvm::DenseMap<Stmt *, uint64_t>::iterator I = SubStmtEntries.find(S);
2615  if (I != SubStmtEntries.end()) {
2616  Record.push_back(I->second);
2617  Stream.EmitRecord(serialization::STMT_REF_PTR, Record);
2618  return;
2619  }
2620 
2621 #ifndef NDEBUG
2622  assert(!ParentStmts.count(S) && "There is a Stmt cycle!");
2623 
2624  struct ParentStmtInserterRAII {
2625  Stmt *S;
2626  llvm::DenseSet<Stmt *> &ParentStmts;
2627 
2628  ParentStmtInserterRAII(Stmt *S, llvm::DenseSet<Stmt *> &ParentStmts)
2629  : S(S), ParentStmts(ParentStmts) {
2630  ParentStmts.insert(S);
2631  }
2632  ~ParentStmtInserterRAII() {
2633  ParentStmts.erase(S);
2634  }
2635  };
2636 
2637  ParentStmtInserterRAII ParentStmtInserter(S, ParentStmts);
2638 #endif
2639 
2640  Writer.Visit(S);
2641 
2642  uint64_t Offset = Writer.Emit();
2643  SubStmtEntries[S] = Offset;
2644 }
2645 
2646 /// Flush all of the statements that have been added to the
2647 /// queue via AddStmt().
2648 void ASTRecordWriter::FlushStmts() {
2649  // We expect to be the only consumer of the two temporary statement maps,
2650  // assert that they are empty.
2651  assert(Writer->SubStmtEntries.empty() && "unexpected entries in sub-stmt map");
2652  assert(Writer->ParentStmts.empty() && "unexpected entries in parent stmt map");
2653 
2654  for (unsigned I = 0, N = StmtsToEmit.size(); I != N; ++I) {
2655  Writer->WriteSubStmt(StmtsToEmit[I]);
2656 
2657  assert(N == StmtsToEmit.size() && "record modified while being written!");
2658 
2659  // Note that we are at the end of a full expression. Any
2660  // expression records that follow this one are part of a different
2661  // expression.
2662  Writer->Stream.EmitRecord(serialization::STMT_STOP, ArrayRef<uint32_t>());
2663 
2664  Writer->SubStmtEntries.clear();
2665  Writer->ParentStmts.clear();
2666  }
2667 
2668  StmtsToEmit.clear();
2669 }
2670 
2671 void ASTRecordWriter::FlushSubStmts() {
2672  // For a nested statement, write out the substatements in reverse order (so
2673  // that a simple stack machine can be used when loading), and don't emit a
2674  // STMT_STOP after each one.
2675  for (unsigned I = 0, N = StmtsToEmit.size(); I != N; ++I) {
2676  Writer->WriteSubStmt(StmtsToEmit[N - I - 1]);
2677  assert(N == StmtsToEmit.size() && "record modified while being written!");
2678  }
2679 
2680  StmtsToEmit.clear();
2681 }
clang::OMPIteratorHelperData::Update
Expr * Update
Update expression for the originally specified iteration variable, calculated as VD = Begin + Counter...
Definition: ExprOpenMP.h:243
clang::StmtVisitor
StmtVisitor - This class implements a simple visitor for Stmt subclasses.
Definition: StmtVisitor.h:183
clang::ArrayInitIndexExpr
Represents the index of the current element of an array being initialized by an ArrayInitLoopExpr.
Definition: Expr.h:5463
clang::UnaryOperator::getStoredFPFeatures
FPOptionsOverride getStoredFPFeatures() const
Get FPFeatures from trailing storage.
Definition: Expr.h:2297
clang::ObjCSubscriptRefExpr::setAtIndexMethodDecl
ObjCMethodDecl * setAtIndexMethodDecl() const
Definition: ExprObjC.h:890
clang::ASTWriter::getCharacterLiteralAbbrev
unsigned getCharacterLiteralAbbrev() const
Definition: ASTWriter.h:710
clang::IndirectGotoStmt
IndirectGotoStmt - This represents an indirect goto.
Definition: Stmt.h:2615
clang::MemberExpr::hadMultipleCandidates
bool hadMultipleCandidates() const
Returns true if this member expression refers to a method that was resolved from an overloaded set ha...
Definition: Expr.h:3360
clang::UnaryExprOrTypeTraitExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:2613
clang::OMPIteratorExpr::numOfIterators
unsigned numOfIterators() const
Returns number of iterator definitions.
Definition: ExprOpenMP.h:399
clang::ObjCPropertyRefExpr::getBase
const Expr * getBase() const
Definition: ExprObjC.h:752
clang::LabelStmt
LabelStmt - Represents a label, which has a substatement.
Definition: Stmt.h:1798
clang::PackExpansionExpr::getPattern
Expr * getPattern()
Retrieve the pattern of the pack expansion.
Definition: ExprCXX.h:4080
clang::serialization::EXPR_CHARACTER_LITERAL
@ EXPR_CHARACTER_LITERAL
A CharacterLiteral record.
Definition: ASTBitCodes.h:1601
clang::ExpressionTraitExpr
An expression trait intrinsic.
Definition: ExprCXX.h:2823
clang::serialization::STMT_CXX_TRY
@ STMT_CXX_TRY
A CXXTryStmt record.
Definition: ASTBitCodes.h:1783
clang::ObjCMessageExpr::SuperInstance
@ SuperInstance
The receiver is the instance of the superclass object.
Definition: ExprObjC.h:1097
clang::OMPForDirective
This represents '#pragma omp for' directive.
Definition: StmtOpenMP.h:1565
clang::CXXNewExpr::passAlignment
bool passAlignment() const
Indicates whether the required alignment should be implicitly passed to the allocation function.
Definition: ExprCXX.h:2332
clang::serialization::STMT_MS_DEPENDENT_EXISTS
@ STMT_MS_DEPENDENT_EXISTS
Definition: ASTBitCodes.h:1960
clang::OMPIteratorExpr
OpenMP 5.0 [2.1.6 Iterators] Iterators are identifiers that expand to multiple values in the clause o...
Definition: ExprOpenMP.h:272
clang::CompoundAssignOperator::getComputationLHSType
QualType getComputationLHSType() const
Definition: Expr.h:4078
clang::MatrixSubscriptExpr
MatrixSubscriptExpr - Matrix subscript expression for the MatrixType extension.
Definition: Expr.h:2711
clang::SubstNonTypeTemplateParmExpr
Represents a reference to a non-type template parameter that has been substituted with a template arg...
Definition: ExprCXX.h:4245
clang::TypeTraitExpr::getArg
TypeSourceInfo * getArg(unsigned I) const
Retrieve the Ith argument.
Definition: ExprCXX.h:2717
clang::RecoveryExpr::children
child_range children()
Definition: Expr.h:6423
clang::Expr::getValueKind
ExprValueKind getValueKind() const
getValueKind - The value kind that this expression produces.
Definition: Expr.h:430
clang::InitListExpr::getSyntacticForm
InitListExpr * getSyntacticForm() const
Definition: Expr.h:4941
clang::OMPDistributeParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:4074
clang::serialization::STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1923
clang::VAArgExpr::isMicrosoftABI
bool isMicrosoftABI() const
Returns whether this is really a Win64 ABI va_arg expression.
Definition: Expr.h:4644
clang::DeclRefExpr::getFoundDecl
NamedDecl * getFoundDecl()
Get the NamedDecl through which this reference occurred.
Definition: Expr.h:1320
clang::VAArgExpr::getWrittenTypeInfo
TypeSourceInfo * getWrittenTypeInfo() const
Definition: Expr.h:4647
clang::AtomicExpr
AtomicExpr - Variadic atomic builtins: __atomic_exchange, __atomic_fetch_*, __atomic_load,...
Definition: Expr.h:6223
clang::OMPMasterTaskLoopSimdDirective
This represents '#pragma omp master taskloop simd' directive.
Definition: StmtOpenMP.h:3663
clang::CaseStmt
CaseStmt - Represent a case statement.
Definition: Stmt.h:1566
clang::OMPTaskyieldDirective
This represents '#pragma omp taskyield' directive.
Definition: StmtOpenMP.h:2396
clang::CXXPseudoDestructorExpr::getColonColonLoc
SourceLocation getColonColonLoc() const
Retrieve the location of the '::' in a qualified pseudo-destructor expression.
Definition: ExprCXX.h:2598
clang::ASTConstraintSatisfaction
The result of a constraint satisfaction check, containing the necessary information to diagnose an un...
Definition: ASTConcept.h:78
clang::serialization::EXPR_OBJC_PROPERTY_REF_EXPR
@ EXPR_OBJC_PROPERTY_REF_EXPR
An ObjCPropertyRefExpr record.
Definition: ASTBitCodes.h:1733
clang::ImaginaryLiteral
ImaginaryLiteral - We support imaginary integer and floating point literals, like "1....
Definition: Expr.h:1706
clang::serialization::EXPR_PSEUDO_OBJECT
@ EXPR_PSEUDO_OBJECT
A PseudoObjectExpr record.
Definition: ASTBitCodes.h:1703
clang::ExpressionTraitExpr::getValue
bool getValue() const
Definition: ExprCXX.h:2862
clang::ObjCPropertyRefExpr::getImplicitPropertySetter
ObjCMethodDecl * getImplicitPropertySetter() const
Definition: ExprObjC.h:713
clang::serialization::STMT_DECL
@ STMT_DECL
A DeclStmt record.
Definition: ASTBitCodes.h:1568
clang::UnresolvedMemberExpr::getBaseType
QualType getBaseType() const
Definition: ExprCXX.h:3896
clang::AtomicExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:6314
clang::concepts::Requirement::SubstitutionDiagnostic::DiagLoc
SourceLocation DiagLoc
Definition: ExprConcepts.h:166
clang::UnresolvedLookupExpr::requiresADL
bool requiresADL() const
True if this declaration should be extended by argument-dependent lookup.
Definition: ExprCXX.h:3141
clang::ObjCPropertyRefExpr::isObjectReceiver
bool isObjectReceiver() const
Definition: ExprObjC.h:771
clang::ArrayTypeTraitExpr
An Embarcadero array type trait, as used in the implementation of __array_rank and __array_extent.
Definition: ExprCXX.h:2753
clang::ObjCProtocolExpr::getProtocol
ObjCProtocolDecl * getProtocol() const
Definition: ExprObjC.h:521
clang::ObjCBoxedExpr
ObjCBoxedExpr - used for generalized expression boxing.
Definition: ExprObjC.h:128
clang::ASTWriter::getDeclRefExprAbbrev
unsigned getDeclRefExprAbbrev() const
Definition: ASTWriter.h:709
clang::CXXBoolLiteralExpr
A boolean literal, per ([C++ lex.bool] Boolean literals).
Definition: ExprCXX.h:721
clang::CallExpr::arg_end
arg_iterator arg_end()
Definition: Expr.h:3036
clang::CXXNewExpr::doesUsualArrayDeleteWantSize
bool doesUsualArrayDeleteWantSize() const
Answers whether the usual array deallocation function for the allocated type expects the size of the ...
Definition: ExprCXX.h:2337
clang::OverloadExpr::getTrailingASTTemplateKWAndArgsInfo
ASTTemplateKWAndArgsInfo * getTrailingASTTemplateKWAndArgsInfo()
Return the optional template keyword and arguments info.
Definition: ExprCXX.h:3970
clang::CallExpr::arg_begin
arg_iterator arg_begin()
Definition: Expr.h:3033
clang::ObjCIndirectCopyRestoreExpr::shouldCopy
bool shouldCopy() const
shouldCopy - True if we should do the 'copy' part of the copy-restore.
Definition: ExprObjC.h:1594
clang::serialization::EXPR_GENERIC_SELECTION
@ EXPR_GENERIC_SELECTION
A GenericSelectionExpr record.
Definition: ASTBitCodes.h:1700
clang::AsTypeExpr
AsTypeExpr - Clang builtin function __builtin_astype [OpenCL 6.2.4.2] This AST node provides support ...
Definition: Expr.h:6020
clang::OffsetOfExpr
OffsetOfExpr - [C99 7.17] - This represents an expression of the form offsetof(record-type,...
Definition: Expr.h:2432
clang::serialization::STMT_CAPTURED
@ STMT_CAPTURED
A CapturedStmt record.
Definition: ASTBitCodes.h:1571
clang::PackExpansionExpr::getEllipsisLoc
SourceLocation getEllipsisLoc() const
Retrieve the location of the ellipsis that describes this pack expansion.
Definition: ExprCXX.h:4087
clang::serialization::STMT_OMP_TARGET_DATA_DIRECTIVE
@ STMT_OMP_TARGET_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1919
clang::serialization::STMT_CASE
@ STMT_CASE
A CaseStmt record.
Definition: ASTBitCodes.h:1526
clang::CXXPseudoDestructorExpr
Represents a C++ pseudo-destructor (C++ [expr.pseudo]).
Definition: ExprCXX.h:2517
clang::DeclRefExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1291
clang::OMPArraySectionExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: ExprOpenMP.h:124
clang::ObjCSelectorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprObjC.h:472
clang::DesignatedInitExpr::getSubExpr
Expr * getSubExpr(unsigned Idx) const
Definition: Expr.h:5273
clang::serialization::EXPR_INTEGER_LITERAL
@ EXPR_INTEGER_LITERAL
An IntegerLiteral record.
Definition: ASTBitCodes.h:1589
clang::ObjCDictionaryElement
An element in an Objective-C dictionary literal.
Definition: ExprObjC.h:263
clang::VAArgExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:4639
clang::MemberExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: Expr.h:3321
clang::serialization::EXPR_SHUFFLE_VECTOR
@ EXPR_SHUFFLE_VECTOR
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1691
clang::AddrLabelExpr::getAmpAmpLoc
SourceLocation getAmpAmpLoc() const
Definition: Expr.h:4309
clang::DeclarationName::Identifier
@ Identifier
Definition: DeclarationName.h:203
clang::OMPTileDirective
This represents the '#pragma omp tile' loop transformation directive.
Definition: StmtOpenMP.h:4995
clang::PseudoObjectExpr::semantics_begin
semantics_iterator semantics_begin()
Definition: Expr.h:6157
clang::SwitchStmt
SwitchStmt - This represents a 'switch' stmt.
Definition: Stmt.h:2121
clang::CXXScalarValueInitExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: ExprCXX.h:2112
clang::serialization::STMT_OBJC_AT_THROW
@ STMT_OBJC_AT_THROW
An ObjCAtThrowStmt record.
Definition: ASTBitCodes.h:1766
clang::ObjCDictionaryLiteral::getNumElements
unsigned getNumElements() const
getNumElements - Return number of elements of objective-c dictionary literal.
Definition: ExprObjC.h:360
clang::MatrixSubscriptExpr::getBase
Expr * getBase()
Definition: Expr.h:2737
clang::OMPMaskedDirective
This represents '#pragma omp masked' directive.
Definition: StmtOpenMP.h:5320
clang::ASTRecordWriter::AddASTTemplateArgumentListInfo
void AddASTTemplateArgumentListInfo(const ASTTemplateArgumentListInfo *ASTTemplArgList)
Emits an AST template argument list info.
Definition: ASTWriter.cpp:5444
clang::VAArgExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4653
clang::serialization::EXPR_CXX_UNRESOLVED_LOOKUP
@ EXPR_CXX_UNRESOLVED_LOOKUP
Definition: ASTBitCodes.h:1856
clang::SourceRange
A trivial tuple used to represent a source range.
Definition: SourceLocation.h:212
clang::BinaryConditionalOperator::getCommon
Expr * getCommon() const
getCommon - Return the common expression, written to the left of the condition.
Definition: Expr.h:4232
clang::IntegerLiteral::getLocation
SourceLocation getLocation() const
Retrieve the location of the literal.
Definition: Expr.h:1508
clang::serialization::EXPR_OMP_ARRAY_SECTION
@ EXPR_OMP_ARRAY_SECTION
Definition: ASTBitCodes.h:1953
clang::Stmt::CXXNewExprBits
CXXNewExprBitfields CXXNewExprBits
Definition: Stmt.h:1054
clang::WhileStmt
WhileStmt - This represents a 'while' stmt.
Definition: Stmt.h:2312
clang::OffsetOfExpr::getIndexExpr
Expr * getIndexExpr(unsigned Idx)
Definition: Expr.h:2495
clang::OMPCancellationPointDirective::getCancelRegion
OpenMPDirectiveKind getCancelRegion() const
Get cancellation region for the current cancellation point.
Definition: StmtOpenMP.h:3374
clang::SourceLocExpr::getParentContext
const DeclContext * getParentContext() const
If the SourceLocExpr has been resolved return the subexpression representing the resolved value.
Definition: Expr.h:4712
clang::NullStmt
NullStmt - This is the null statement ";": C99 6.8.3p3.
Definition: Stmt.h:1363
clang::serialization::STMT_NULL
@ STMT_NULL
A NullStmt record.
Definition: ASTBitCodes.h:1520
clang::ObjCArrayLiteral::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprObjC.h:218
clang::serialization::STMT_OMP_CANONICAL_LOOP
@ STMT_OMP_CANONICAL_LOOP
Definition: ASTBitCodes.h:1893
clang::ObjCArrayLiteral::getNumElements
unsigned getNumElements() const
getNumElements - Return number of elements of objective-c array literal.
Definition: ExprObjC.h:229
clang::serialization::EXPR_CXX_UNRESOLVED_MEMBER
@ EXPR_CXX_UNRESOLVED_MEMBER
Definition: ASTBitCodes.h:1855
clang::serialization::STMT_MSASM
@ STMT_MSASM
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1577
clang::ASTTemplateKWAndArgsInfo::RAngleLoc
SourceLocation RAngleLoc
The source location of the right angle bracket ('>').
Definition: TemplateBase.h:665
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1948
clang::CXXReinterpretCastExpr
A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]).
Definition: ExprCXX.h:521
clang::CXXNoexceptExpr::getValue
bool getValue() const
Definition: ExprCXX.h:4020
clang::TypeTraitExpr::getNumArgs
unsigned getNumArgs() const
Determine the number of arguments to this type trait.
Definition: ExprCXX.h:2714
clang::CXXConstructExpr::getNumArgs
unsigned getNumArgs() const
Return the number of arguments to the constructor call.
Definition: ExprCXX.h:1608
clang::serialization::EXPR_CONVERT_VECTOR
@ EXPR_CONVERT_VECTOR
A ConvertVectorExpr record.
Definition: ASTBitCodes.h:1694
clang::BinaryConditionalOperator::getTrueExpr
Expr * getTrueExpr() const
getTrueExpr - Return the subexpression which will be evaluated if the condition evaluates to true; th...
Definition: Expr.h:4244
clang::ConditionalOperator::getLHS
Expr * getLHS() const
Definition: Expr.h:4169
clang::OpaqueValueExpr::getLocation
SourceLocation getLocation() const
Retrieve the location of this expression.
Definition: Expr.h:1145
clang::ObjCBridgedCastExpr::getBridgeKeywordLoc
SourceLocation getBridgeKeywordLoc() const
The location of the bridge keyword.
Definition: ExprObjC.h:1660
clang::ASTWriter::getSwitchCaseID
unsigned getSwitchCaseID(SwitchCase *S)
Retrieve the ID for the given switch-case statement.
Definition: ASTWriterStmt.cpp:2592
clang::CXXConstructExpr::getParenOrBraceRange
SourceRange getParenOrBraceRange() const
Definition: ExprCXX.h:1628
clang::BuiltinBitCastExpr::getBeginLoc
SourceLocation getBeginLoc() const LLVM_READONLY
Definition: ExprCXX.h:4897
clang::ObjCMessageExpr::getSelector
Selector getSelector() const
Definition: ExprObjC.cpp:306
Diag
static DiagnosticBuilder Diag(DiagnosticsEngine *Diags, const LangOptions &Features, FullSourceLoc TokLoc, const char *TokBegin, const char *TokRangeBegin, const char *TokRangeEnd, unsigned DiagID)
Produce a diagnostic highlighting some portion of a literal.
Definition: LiteralSupport.cpp:78
clang::OMPParallelMasterTaskLoopDirective
This represents '#pragma omp parallel master taskloop' directive.
Definition: StmtOpenMP.h:3729
clang::serialization::EXPR_PACK_EXPANSION
@ EXPR_PACK_EXPANSION
Definition: ASTBitCodes.h:1866
clang::FloatingLiteral::getValue
llvm::APFloat getValue() const
Definition: Expr.h:1641
clang::DesignatedInitUpdateExpr::getBase
Expr * getBase() const
Definition: Expr.h:5375
clang::StringLiteral::isPascal
bool isPascal() const
Definition: Expr.h:1879
clang::ObjCIsaExpr::getOpLoc
SourceLocation getOpLoc() const
Definition: ExprObjC.h:1517
clang::serialization::EXPR_CXX_DEPENDENT_SCOPE_DECL_REF
@ EXPR_CXX_DEPENDENT_SCOPE_DECL_REF
Definition: ASTBitCodes.h:1853
clang::InitListExpr::getRBraceLoc
SourceLocation getRBraceLoc() const
Definition: Expr.h:4931
clang::CXXThrowExpr::isThrownVariableInScope
bool isThrownVariableInScope() const
Determines whether the variable thrown by this expression (if any!) is within the innermost try block...
Definition: ExprCXX.h:1211
clang::serialization::EXPR_CSTYLE_CAST
@ EXPR_CSTYLE_CAST
A CStyleCastExpr record.
Definition: ASTBitCodes.h:1643
clang::OMPIteratorHelperData
Helper expressions and declaration for OMPIteratorExpr class for each iteration space.
Definition: ExprOpenMP.h:235
clang::ObjCDictionaryElement::NumExpansions
Optional< unsigned > NumExpansions
The number of elements this pack expansion will expand to, if this is a pack expansion and is known.
Definition: ExprObjC.h:275
clang::serialization::EXPR_CONDITIONAL_OPERATOR
@ EXPR_CONDITIONAL_OPERATOR
A ConditionOperator record.
Definition: ASTBitCodes.h:1637
clang::RequiresExpr::getRequirements
ArrayRef< concepts::Requirement * > getRequirements() const
Definition: ExprConcepts.h:518
clang::DesignatedInitExpr
Represents a C99 designated initializer expression.
Definition: Expr.h:5018
clang::OMPTargetTeamsDistributeDirective
This represents '#pragma omp target teams distribute' combined directive.
Definition: StmtOpenMP.h:4702
clang::concepts::TypeRequirement::SS_SubstitutionFailure
@ SS_SubstitutionFailure
Definition: ExprConcepts.h:207
clang::SubstNonTypeTemplateParmPackExpr
Represents a reference to a non-type template parameter pack that has been substituted with a non-tem...
Definition: ExprCXX.h:4312
clang::OMPTargetTeamsDistributeSimdDirective
This represents '#pragma omp target teams distribute simd' combined directive.
Definition: StmtOpenMP.h:4937
clang::FunctionParmPackExpr::getParameterPack
VarDecl * getParameterPack() const
Get the parameter pack which this expression refers to.
Definition: ExprCXX.h:4409
llvm::SmallVector< uint64_t, 64 >
clang::OMPCanonicalLoop
Representation of an OpenMP canonical loop.
Definition: StmtOpenMP.h:142
clang::serialization::STMT_OMP_MASTER_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1931
clang::OverloadExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Fetches the nested-name qualifier with source-location information, if one was given.
Definition: ExprCXX.h:3001
clang::ObjCSubscriptRefExpr::getAtIndexMethodDecl
ObjCMethodDecl * getAtIndexMethodDecl() const
Definition: ExprObjC.h:886
clang::SourceLocation
Encodes a location in the source.
Definition: SourceLocation.h:88
clang::MSPropertyRefExpr::getBaseExpr
Expr * getBaseExpr() const
Definition: ExprCXX.h:976
clang::OMPIteratorExpr::getIteratorRange
IteratorRange getIteratorRange(unsigned I)
Gets the iterator range for the given iterator.
Definition: Expr.cpp:4904
clang::MSPropertyRefExpr
A member reference to an MSPropertyDecl.
Definition: ExprCXX.h:923
clang::CallExpr::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:2951
clang::MaterializeTemporaryExpr::getSubExpr
Expr * getSubExpr() const
Retrieve the temporary-generating subexpression whose value will be materialized into a glvalue.
Definition: ExprCXX.h:4479
clang::AsTypeExpr::getSrcExpr
Expr * getSrcExpr() const
getSrcExpr - Return the Expr to be converted.
Definition: Expr.h:6039
clang::AtomicExpr::getOp
AtomicOp getOp() const
Definition: Expr.h:6287
clang::ASTRecordWriter::AddIdentifierRef
void AddIdentifierRef(const IdentifierInfo *II)
Emit a reference to an identifier.
Definition: ASTRecordWriter.h:172
clang::ASTTemplateKWAndArgsInfo::TemplateKWLoc
SourceLocation TemplateKWLoc
The source location of the template keyword; this is used as part of the representation of qualified ...
Definition: TemplateBase.h:671
clang::OMPAtomicDirective::isXLHSInRHSPart
bool isXLHSInRHSPart() const
Return true if helper update expression has form 'OpaqueValueExpr(x) binop OpaqueValueExpr(expr)' and...
Definition: StmtOpenMP.h:2857
clang::CoroutineSuspendExpr::getKeywordLoc
SourceLocation getKeywordLoc() const
Definition: ExprCXX.h:4724
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1949
clang::ParenListExpr
Definition: Expr.h:5526
clang::SourceRange::getBegin
SourceLocation getBegin() const
Definition: SourceLocation.h:221
clang::CharacterLiteral::getValue
unsigned getValue() const
Definition: Expr.h:1606
clang::OffsetOfNode::getKind
Kind getKind() const
Determine what kind of offsetof node this is.
Definition: Expr.h:2382
clang::DesignatedInitExpr::getEqualOrColonLoc
SourceLocation getEqualOrColonLoc() const
Retrieve the location of the '=' that precedes the initializer value itself, if present.
Definition: Expr.h:5246
clang::serialization::EXPR_OBJC_BOOL_LITERAL
@ EXPR_OBJC_BOOL_LITERAL
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1772
clang::OMPMasterDirective
This represents '#pragma omp master' directive.
Definition: StmtOpenMP.h:1908
clang::serialization::EXPR_STRING_LITERAL
@ EXPR_STRING_LITERAL
A StringLiteral record.
Definition: ASTBitCodes.h:1598
clang::ShuffleVectorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4408
clang::CXXNewExpr::getNumPlacementArgs
unsigned getNumPlacementArgs() const
Definition: ExprCXX.h:2275
clang::ExprWithCleanups::getNumObjects
unsigned getNumObjects() const
Definition: ExprCXX.h:3375
clang::CastExpr::getSubExpr
Expr * getSubExpr()
Definition: Expr.h:3518
clang::NoInitExpr
Represents a place-holder for an object not to be initialized by anything.
Definition: Expr.h:5319
clang::CXXNewExpr::getOperatorNew
FunctionDecl * getOperatorNew() const
Definition: ExprCXX.h:2257
clang::CXXDeleteExpr::isArrayForm
bool isArrayForm() const
Definition: ExprCXX.h:2424
clang::CXXRewrittenBinaryOperator::getSemanticForm
Expr * getSemanticForm()
Get an equivalent semantic form for this expression.
Definition: ExprCXX.h:302
clang::ASTRecordWriter::push_back
void push_back(uint64_t N)
Minimal vector-like interface.
Definition: ASTRecordWriter.h:76
clang::CXXBindTemporaryExpr::getSubExpr
const Expr * getSubExpr() const
Definition: ExprCXX.h:1434
clang::UnaryExprOrTypeTraitExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:2610
clang::OffsetOfNode::Array
@ Array
An index into an array.
Definition: Expr.h:2333
clang::CXXNewExpr::getTypeIdParens
SourceRange getTypeIdParens() const
Definition: ExprCXX.h:2293
clang::OMPTaskwaitDirective
This represents '#pragma omp taskwait' directive.
Definition: StmtOpenMP.h:2488
clang::CStyleCastExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:3763
clang::Stmt::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
Definition: Stmt.cpp:324
clang::ConceptReference::getNamedConcept
ConceptDecl * getNamedConcept() const
Definition: ASTConcept.h:155
clang::UnresolvedMemberExpr
Represents a C++ member access expression for which lookup produced a set of overloaded functions.
Definition: ExprCXX.h:3810
clang::CXXConstructExpr::requiresZeroInitialization
bool requiresZeroInitialization() const
Whether this construction first requires zero-initialization before the initializer is called.
Definition: ExprCXX.h:1571
clang::serialization::STMT_FOR
@ STMT_FOR
A ForStmt record.
Definition: ASTBitCodes.h:1550
clang::Expr::getObjectKind
ExprObjectKind getObjectKind() const
getObjectKind - The object kind that this expression produces.
Definition: Expr.h:437
clang::ObjCBridgedCastExpr
An Objective-C "bridged" cast expression, which casts between Objective-C pointers and C pointers,...
Definition: ExprObjC.h:1625
clang::Stmt::TypeTraitExprBits
TypeTraitExprBitfields TypeTraitExprBits
Definition: Stmt.h:1056
clang::serialization::EXPR_OBJC_ARRAY_LITERAL
@ EXPR_OBJC_ARRAY_LITERAL
Definition: ASTBitCodes.h:1717
clang::CXXNewExpr::isArray
bool isArray() const
Definition: ExprCXX.h:2262
clang::serialization::STMT_OBJC_AT_SYNCHRONIZED
@ STMT_OBJC_AT_SYNCHRONIZED
An ObjCAtSynchronizedStmt record.
Definition: ASTBitCodes.h:1763
clang::CompoundLiteralExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: Expr.h:3430
clang::OMPSectionDirective
This represents '#pragma omp section' directive.
Definition: StmtOpenMP.h:1795
clang::serialization::EXPR_CXX_PROPERTY_REF_EXPR
@ EXPR_CXX_PROPERTY_REF_EXPR
Definition: ASTBitCodes.h:1883
clang::serialization::EXPR_IMPLICIT_VALUE_INIT
@ EXPR_IMPLICIT_VALUE_INIT
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1670
clang::ArrayTypeTraitExpr::getValue
uint64_t getValue() const
Definition: ExprCXX.h:2798
clang::serialization::EXPR_CXX_FUNCTIONAL_CAST
@ EXPR_CXX_FUNCTIONAL_CAST
A CXXFunctionalCastExpr record.
Definition: ASTBitCodes.h:1822
clang::PseudoObjectExpr::getNumSemanticExprs
unsigned getNumSemanticExprs() const
Definition: Expr.h:6153
clang::TypeTraitExpr
A type trait used in the implementation of various C++11 and Library TR1 trait templates.
Definition: ExprCXX.h:2665
clang::serialization::EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK
Definition: ASTBitCodes.h:1869
clang::DependentScopeDeclRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieve the nested-name-specifier that qualifies the name, with source location information.
Definition: ExprCXX.h:3243
clang::CXXTypeidExpr
A C++ typeid expression (C++ [expr.typeid]), which gets the type_info that corresponds to the supplie...
Definition: ExprCXX.h:839
clang::UnresolvedSetIterator
The iterator over UnresolvedSets.
Definition: UnresolvedSet.h:32
clang::concepts::Requirement::SubstitutionDiagnostic
Definition: ExprConcepts.h:161
clang::FieldDecl
Represents a member of a struct/union/class.
Definition: Decl.h:2825
clang::serialization::EXPR_OBJC_MESSAGE_EXPR
@ EXPR_OBJC_MESSAGE_EXPR
An ObjCMessageExpr record.
Definition: ASTBitCodes.h:1742
clang::RequiresExpr
C++2a [expr.prim.req]: A requires-expression provides a concise way to express requirements on templa...
Definition: ExprConcepts.h:475
clang::serialization::STMT_COMPOUND
@ STMT_COMPOUND
A CompoundStmt record.
Definition: ASTBitCodes.h:1523
clang::OverloadExpr::hasTemplateKWAndArgsInfo
bool hasTemplateKWAndArgsInfo() const
Definition: ExprCXX.h:2924
clang::OffsetOfNode::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Retrieve the source range that covers this offsetof node.
Definition: Expr.h:2413
clang::CXXInheritedCtorInitExpr::getConstructor
CXXConstructorDecl * getConstructor() const
Get the constructor that this expression will call.
Definition: ExprCXX.h:1686
clang::ParmVarDecl
Represents a parameter to a function.
Definition: Decl.h:1663
clang::MSPropertyRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Definition: ExprCXX.h:980
clang::Stmt::ConstantExprBits
ConstantExprBitfields ConstantExprBits
Definition: Stmt.h:1022
DeclCXX.h
clang::DeclRefExpr::isNonOdrUse
NonOdrUseReason isNonOdrUse() const
Is this expression a non-odr-use reference, and if so, why?
Definition: Expr.h:1407
clang::OMPTargetParallelDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3166
clang::OMPTeamsDistributeSimdDirective
This represents '#pragma omp teams distribute simd' combined directive.
Definition: StmtOpenMP.h:4419
clang::BinaryConditionalOperator::getCond
Expr * getCond() const
getCond - Return the condition expression; this is defined in terms of the opaque value.
Definition: Expr.h:4239
clang::UnresolvedMemberExpr::getBase
Expr * getBase()
Retrieve the base object of this member expressions, e.g., the x in x.m.
Definition: ExprCXX.h:3887
clang::serialization::STMT_CONTINUE
@ STMT_CONTINUE
A ContinueStmt record.
Definition: ASTBitCodes.h:1559
clang::OMPTargetParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3262
clang::CXXUuidofExpr::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprCXX.h:1106
clang::CXXNewExpr
Represents a new-expression for memory allocation and constructor calls, e.g: "new CXXNewExpr(foo)".
Definition: ExprCXX.h:2139
clang::StringLiteral::getStrTokenLoc
SourceLocation getStrTokenLoc(unsigned TokNum) const
Get one of the string literal token.
Definition: Expr.h:1902
clang::IfStmt
IfStmt - This represents an if/then/else.
Definition: Stmt.h:1903
clang::ObjCAtTryStmt
Represents Objective-C's @try ... @catch ... @finally statement.
Definition: StmtObjC.h:165
clang::RecoveryExpr
Frontend produces RecoveryExprs on semantic errors that prevent creating other well-formed expression...
Definition: Expr.h:6406
clang::serialization::EXPR_STMT
@ EXPR_STMT
A StmtExpr record.
Definition: ASTBitCodes.h:1679
clang::ParenExpr::getLParen
SourceLocation getLParen() const
Get the location of the left parentheses '('.
Definition: Expr.h:2123
clang::OMPExecutableDirective::getEndLoc
SourceLocation getEndLoc() const
Returns ending location of directive.
Definition: StmtOpenMP.h:490
clang::AddrLabelExpr::getLabelLoc
SourceLocation getLabelLoc() const
Definition: Expr.h:4311
clang::serialization::EXPR_CXX_DELETE
@ EXPR_CXX_DELETE
Definition: ASTBitCodes.h:1847
clang::GotoStmt
GotoStmt - This represents a direct goto.
Definition: Stmt.h:2576
clang::StmtExpr::getSubStmt
CompoundStmt * getSubStmt()
Definition: Expr.h:4356
clang::OMPArraySectionExpr::getStride
Expr * getStride()
Get stride of array section.
Definition: ExprOpenMP.h:108
clang::InitListExpr
Describes an C or C++ initializer list.
Definition: Expr.h:4780
distance
float __ovld __cnfn distance(float p0, float p1)
Returns the distance between p0 and p1.
clang::ObjCMessageExpr::getInstanceReceiver
Expr * getInstanceReceiver()
Returns the object expression (receiver) for an instance message, or null for a message that is not a...
Definition: ExprObjC.h:1250
clang::OffsetOfNode::getBase
CXXBaseSpecifier * getBase() const
For a base class node, returns the base specifier.
Definition: Expr.h:2402
clang::DeclGroupRef::begin
iterator begin()
Definition: DeclGroup.h:99
clang::serialization::EXPR_CXX_TYPEID_TYPE
@ EXPR_CXX_TYPEID_TYPE
Definition: ASTBitCodes.h:1838
clang::serialization::EXPR_CXX_PSEUDO_DESTRUCTOR
@ EXPR_CXX_PSEUDO_DESTRUCTOR
Definition: ASTBitCodes.h:1848
clang::OffsetOfNode::getFieldName
IdentifierInfo * getFieldName() const
For a field or identifier offsetof node, returns the name of the field.
Definition: Expr.cpp:1615
clang::ExpressionTraitExpr::getTrait
ExpressionTrait getTrait() const
Definition: ExprCXX.h:2858
clang::ASTRecordWriter::writeOMPChildren
void writeOMPChildren(OMPChildren *Data)
Writes data related to the OpenMP directives.
Definition: ASTWriter.cpp:6713
clang::AsTypeExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
getBuiltinLoc - Return the location of the __builtin_astype token.
Definition: Expr.h:6042
clang::serialization::STMT_OMP_DISTRIBUTE_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_DIRECTIVE
Definition: ASTBitCodes.h:1934
clang::serialization::STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1906
clang::serialization::STMT_OMP_ORDERED_DIRECTIVE
@ STMT_OMP_ORDERED_DIRECTIVE
Definition: ASTBitCodes.h:1916
clang::serialization::EXPR_CXX_SCALAR_VALUE_INIT
@ EXPR_CXX_SCALAR_VALUE_INIT
Definition: ASTBitCodes.h:1845
clang::UnaryOperator
UnaryOperator - This represents the unary-expression's (except sizeof and alignof),...
Definition: Expr.h:2151
clang::OMPLoopBasedDirective::getLoopsNumber
unsigned getLoopsNumber() const
Get number of collapsed loops.
Definition: StmtOpenMP.h:876
clang::serialization::EXPR_ARRAY_INIT_INDEX
@ EXPR_ARRAY_INIT_INDEX
An ArrayInitIndexExpr record.
Definition: ASTBitCodes.h:1667
clang::CoroutineBodyStmt::children
child_range children()
Definition: StmtCXX.h:429
clang::serialization::STMT_OMP_MASKED_DIRECTIVE
@ STMT_OMP_MASKED_DIRECTIVE
Definition: ASTBitCodes.h:1952
clang::OffsetOfExpr::getNumExpressions
unsigned getNumExpressions() const
Definition: Expr.h:2510
clang::ObjCBoolLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprObjC.h:107
clang::CallExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:3103
clang::ASTRecordWriter::AddSourceRange
void AddSourceRange(SourceRange Range)
Emit a source range.
Definition: ASTRecordWriter.h:139
DeclSpec.h
clang::ObjCPropertyRefExpr::isSuperReceiver
bool isSuperReceiver() const
Definition: ExprObjC.h:772
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_DIRECTIVE
Definition: ASTBitCodes.h:1946
clang::serialization::EXPR_COAWAIT
@ EXPR_COAWAIT
Definition: ASTBitCodes.h:1964
clang::CoreturnStmt
Represents a 'co_return' statement in the C++ Coroutines TS.
Definition: StmtCXX.h:456
ExprOpenMP.h
clang::CXXInheritedCtorInitExpr::getLocation
SourceLocation getLocation() const LLVM_READONLY
Definition: ExprCXX.h:1702
clang::CXXStaticCastExpr
A C++ static_cast expression (C++ [expr.static.cast]).
Definition: ExprCXX.h:431
clang::ObjCForCollectionStmt
Represents Objective-C's collection statement.
Definition: StmtObjC.h:23
clang::Expr::containsUnexpandedParameterPack
bool containsUnexpandedParameterPack() const
Whether this expression contains an unexpanded parameter pack (for C++11 variadic templates).
Definition: Expr.h:232
clang::DeclGroupRef::end
iterator end()
Definition: DeclGroup.h:105
clang::ASTRecordWriter::AddAttributes
void AddAttributes(ArrayRef< const Attr * > Attrs)
Emit a list of attributes.
Definition: ASTWriter.cpp:4169
clang::ArrayInitLoopExpr
Represents a loop initializing the elements of an array.
Definition: Expr.h:5410
clang::PseudoObjectExpr::semantics_end
semantics_iterator semantics_end()
Definition: Expr.h:6163
clang::BinaryOperator::getOpcode
Opcode getOpcode() const
Definition: Expr.h:3841
clang::UnaryExprOrTypeTraitExpr::getArgumentExpr
Expr * getArgumentExpr()
Definition: Expr.h:2587
clang::serialization::STMT_OMP_SIMD_DIRECTIVE
@ STMT_OMP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1895
clang::MSPropertyRefExpr::getPropertyDecl
MSPropertyDecl * getPropertyDecl() const
Definition: ExprCXX.h:977
clang::ASTRecordWriter::AddTemplateParameterList
void AddTemplateParameterList(const TemplateParameterList *TemplateParams)
Emit a template parameter list.
Definition: ASTWriter.cpp:5417
clang::ASTRecordWriter::AddTypeSourceInfo
void AddTypeSourceInfo(TypeSourceInfo *TInfo)
Emits a reference to a declarator info.
Definition: ASTWriter.cpp:5153
clang::ASTRecordWriter::getRecordData
ASTWriter::RecordDataImpl & getRecordData() const
Extract the underlying record storage.
Definition: ASTRecordWriter.h:72
clang::CXXNoexceptExpr::getSourceRange
SourceRange getSourceRange() const
Definition: ExprCXX.h:4018
clang::BinaryOperator::getStoredFPFeatures
FPOptionsOverride getStoredFPFeatures() const
Get FPFeatures from trailing storage.
Definition: Expr.h:3983
clang::serialization::EXPR_CXX_NOEXCEPT
@ EXPR_CXX_NOEXCEPT
Definition: ASTBitCodes.h:1859
clang::AtomicExpr::getSubExprs
Expr ** getSubExprs()
Definition: Expr.h:6290
clang::CXXNamedCastExpr::getRParenLoc
SourceLocation getRParenLoc() const
Retrieve the location of the closing parenthesis.
Definition: ExprCXX.h:407
clang::ASTTemplateKWAndArgsInfo::LAngleLoc
SourceLocation LAngleLoc
The source location of the left angle bracket ('<').
Definition: TemplateBase.h:662
clang::CXXNewExpr::getDirectInitRange
SourceRange getDirectInitRange() const
Definition: ExprCXX.h:2381
clang::CXXBindTemporaryExpr::getTemporary
CXXTemporary * getTemporary()
Definition: ExprCXX.h:1430
clang::ASTRecordWriter::AddAPInt
void AddAPInt(const llvm::APInt &Value)
Emit an integral value.
Definition: ASTRecordWriter.h:156
clang::serialization::EXPR_CXX_DYNAMIC_CAST
@ EXPR_CXX_DYNAMIC_CAST
A CXXDynamicCastExpr record.
Definition: ASTBitCodes.h:1810
clang::ObjCMessageExpr::SuperClass
@ SuperClass
The receiver is a superclass.
Definition: ExprObjC.h:1094
clang::CXXPseudoDestructorExpr::getDestroyedTypeIdentifier
IdentifierInfo * getDestroyedTypeIdentifier() const
In a dependent pseudo-destructor expression for which we do not have full type information on the des...
Definition: ExprCXX.h:2617
clang::ObjCPropertyRefExpr::isImplicitProperty
bool isImplicitProperty() const
Definition: ExprObjC.h:700
clang::CXXScalarValueInitExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprCXX.h:2116
clang::serialization::STMT_OMP_TARGET_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1940
clang::CXXTypeidExpr::getExprOperand
Expr * getExprOperand() const
Definition: ExprCXX.h:886
clang::SYCLUniqueStableNameExpr::getLParenLocation
SourceLocation getLParenLocation() const
Definition: Expr.h:2074
clang::CXXUnresolvedConstructExpr::getNumArgs
unsigned getNumArgs() const
Retrieve the number of arguments.
Definition: ExprCXX.h:3486
End
SourceLocation End
Definition: USRLocFinder.cpp:167
clang::serialization::EXPR_CXX_STD_INITIALIZER_LIST
@ EXPR_CXX_STD_INITIALIZER_LIST
A CXXStdInitializerListExpr record.
Definition: ASTBitCodes.h:1831
clang::serialization::EXPR_CXX_BOOL_LITERAL
@ EXPR_CXX_BOOL_LITERAL
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1834
clang::OverloadExpr::decls_end
decls_iterator decls_end() const
Definition: ExprCXX.h:2975
clang::FixedPointLiteral::getScale
unsigned getScale() const
Definition: Expr.h:1554
clang::StringLiteral::getByteLength
unsigned getByteLength() const
Definition: Expr.h:1866
clang::CXXDependentScopeMemberExpr::getBaseType
QualType getBaseType() const
Definition: ExprCXX.h:3653
clang::MemberExpr::hasQualifier
bool hasQualifier() const
Determines whether this member expression actually had a C++ nested-name-specifier prior to the name ...
Definition: Expr.h:3253
clang::ASTStmtWriter
Definition: ASTWriterStmt.cpp:32
clang::OMPTargetTeamsDistributeParallelForDirective
This represents '#pragma omp target teams distribute parallel for' combined directive.
Definition: StmtOpenMP.h:4768
clang::ObjCArrayLiteral::getArrayWithObjectsMethod
ObjCMethodDecl * getArrayWithObjectsMethod() const
Definition: ExprObjC.h:241
clang::CStyleCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:3760
clang::OpaqueValueExpr
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class.
Definition: Expr.h:1123
clang::CXXPseudoDestructorExpr::getScopeTypeInfo
TypeSourceInfo * getScopeTypeInfo() const
Retrieve the scope type in a qualified pseudo-destructor expression.
Definition: ExprCXX.h:2594
clang::OMPArrayShapingExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprOpenMP.h:192
clang::SEHTryStmt
Definition: Stmt.h:3379
clang::CXXFoldExpr
Represents a folding of a pack over an operator.
Definition: ExprCXX.h:4576
clang::CXXDefaultArgExpr::getUsedContext
const DeclContext * getUsedContext() const
Definition: ExprCXX.h:1283
clang::serialization::STMT_OMP_TARGET_EXIT_DATA_DIRECTIVE
@ STMT_OMP_TARGET_EXIT_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1921
clang::ObjCPropertyRefExpr::getExplicitProperty
ObjCPropertyDecl * getExplicitProperty() const
Definition: ExprObjC.h:703
clang::ObjCSubscriptRefExpr
ObjCSubscriptRefExpr - used for array and dictionary subscripting.
Definition: ExprObjC.h:841
clang::ObjCBoolLiteralExpr
ObjCBoolLiteralExpr - Objective-C Boolean Literal.
Definition: ExprObjC.h:88
clang::ConstantExpr::RSK_Int64
@ RSK_Int64
Definition: Expr.h:1032
clang::PredefinedExpr::getIdentKind
IdentKind getIdentKind() const
Definition: Expr.h:1995
clang::serialization::EXPR_CALL
@ EXPR_CALL
A CallExpr record.
Definition: ASTBitCodes.h:1625
clang::OMPTaskgroupDirective
This represents '#pragma omp taskgroup' directive.
Definition: StmtOpenMP.h:2534
clang::serialization::EXPR_OBJC_DICTIONARY_LITERAL
@ EXPR_OBJC_DICTIONARY_LITERAL
Definition: ASTBitCodes.h:1718
clang::ObjCIndirectCopyRestoreExpr
ObjCIndirectCopyRestoreExpr - Represents the passing of a function argument by indirect copy-restore ...
Definition: ExprObjC.h:1566
clang::OMPIteratorHelperData::CounterVD
VarDecl * CounterVD
Internal normalized counter.
Definition: ExprOpenMP.h:237
clang::serialization::STMT_OBJC_AUTORELEASE_POOL
@ STMT_OBJC_AUTORELEASE_POOL
An ObjCAutoreleasePoolStmt record.
Definition: ASTBitCodes.h:1769
clang::ConditionalOperator
ConditionalOperator - The ?: ternary operator.
Definition: Expr.h:4135
clang::CXXUuidofExpr::getTypeOperandSourceInfo
TypeSourceInfo * getTypeOperandSourceInfo() const
Retrieve source information for the type operand.
Definition: ExprCXX.h:1093
clang::CXXThrowExpr
A C++ throw-expression (C++ [except.throw]).
Definition: ExprCXX.h:1181
clang::ObjCArrayLiteral
ObjCArrayLiteral - used for objective-c array containers; as in: @["Hello", NSApp,...
Definition: ExprObjC.h:190
DeclObjC.h
clang::CXXDeleteExpr::doesUsualArrayDeleteWantSize
bool doesUsualArrayDeleteWantSize() const
Answers whether the usual array deallocation function for the allocated type expects the size of the ...
Definition: ExprCXX.h:2433
Offset
unsigned Offset
Definition: Format.cpp:2227
clang::serialization::STMT_OMP_TASKLOOP_DIRECTIVE
@ STMT_OMP_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1928
clang::ObjCMessageExpr::isDelegateInitCall
bool isDelegateInitCall() const
isDelegateInitCall - Answers whether this message send has been tagged as a "delegate init call",...
Definition: ExprObjC.h:1403
clang::ObjCIsaExpr::getIsaMemberLoc
SourceLocation getIsaMemberLoc() const
getMemberLoc - Return the location of the "member", in X->F, it is the location of 'F'.
Definition: ExprObjC.h:1514
clang::SubstNonTypeTemplateParmExpr::getNameLoc
SourceLocation getNameLoc() const
Definition: ExprCXX.h:4271
clang::CXXDependentScopeMemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Retrieve the location of the '->' or '.' operator.
Definition: ExprCXX.h:3660
clang::serialization::EXPR_DESIGNATED_INIT
@ EXPR_DESIGNATED_INIT
A DesignatedInitExpr record.
Definition: ASTBitCodes.h:1655
clang::serialization::EXPR_OBJC_PROTOCOL_EXPR
@ EXPR_OBJC_PROTOCOL_EXPR
An ObjCProtocolExpr record.
Definition: ASTBitCodes.h:1727
clang::ArrayTypeTraitExpr::getTrait
ArrayTypeTrait getTrait() const
Definition: ExprCXX.h:2792
clang::ObjCPropertyRefExpr
ObjCPropertyRefExpr - A dot-syntax expression to access an ObjC property.
Definition: ExprObjC.h:614
clang::serialization::EXPR_ADDR_LABEL
@ EXPR_ADDR_LABEL
An AddrLabelExpr record.
Definition: ASTBitCodes.h:1676
clang::CoroutineSuspendExpr::getOpaqueValue
OpaqueValueExpr * getOpaqueValue() const
getOpaqueValue - Return the opaque value placeholder.
Definition: ExprCXX.h:4731
clang::CXXTemporaryObjectExpr
Represents a C++ functional cast expression that builds a temporary object.
Definition: ExprCXX.h:1797
clang::ASTRecordWriter::AddTypeRef
void AddTypeRef(QualType T)
Emit a reference to a type.
Definition: ASTRecordWriter.h:195
clang::FunctionParmPackExpr
Represents a reference to a function parameter pack or init-capture pack that has been substituted bu...
Definition: ExprCXX.h:4380
clang::ObjCIvarRefExpr::getDecl
ObjCIvarDecl * getDecl()
Definition: ExprObjC.h:576
clang::serialization::EXPR_OBJC_BOXED_EXPRESSION
@ EXPR_OBJC_BOXED_EXPRESSION
Definition: ASTBitCodes.h:1716
clang::concepts::Requirement::SubstitutionDiagnostic::SubstitutedEntity
StringRef SubstitutedEntity
Definition: ExprConcepts.h:162
clang::FixedPointLiteral
Definition: Expr.h:1525
clang::OMPTargetExitDataDirective
This represents '#pragma omp target exit data' directive.
Definition: StmtOpenMP.h:3048
clang::CXXThisExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:1153
clang::CompoundLiteralExpr::isFileScope
bool isFileScope() const
Definition: Expr.h:3424
clang::OMPExecutableDirective::Data
OMPChildren * Data
Data, associated with the directive.
Definition: StmtOpenMP.h:286
clang::ConstantExpr::RSK_APValue
@ RSK_APValue
Definition: Expr.h:1032
clang::ASTRecordWriter::AddStmt
void AddStmt(Stmt *S)
Add the given statement or expression to the queue of statements to emit.
Definition: ASTRecordWriter.h:119
clang::UnresolvedMemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Retrieve the location of the '->' or '.' operator.
Definition: ExprCXX.h:3909
clang::ObjCEncodeExpr::getEncodedTypeSourceInfo
TypeSourceInfo * getEncodedTypeSourceInfo() const
Definition: ExprObjC.h:430
clang::OMPForSimdDirective
This represents '#pragma omp for simd' directive.
Definition: StmtOpenMP.h:1655
clang::ASTWriter::RecordData
SmallVector< uint64_t, 64 > RecordData
Definition: ASTWriter.h:105
clang::ObjCMessageExpr::arg_begin
arg_iterator arg_begin()
Definition: ExprObjC.h:1461
clang::AttributedStmt
Represents an attribute applied to a statement.
Definition: Stmt.h:1845
clang::FunctionParmPackExpr::begin
iterator begin() const
Definition: ExprCXX.h:4417
clang::UnaryOperator::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Is FPFeatures in Trailing Storage?
Definition: Expr.h:2294
clang::CallExpr::getCallee
Expr * getCallee()
Definition: Expr.h:2939
clang::IntegerLiteral
Definition: Expr.h:1482
clang::ObjCMessageExpr::getRightLoc
SourceLocation getRightLoc() const
Definition: ExprObjC.h:1407
clang::serialization::STMT_OMP_UNROLL_DIRECTIVE
@ STMT_OMP_UNROLL_DIRECTIVE
Definition: ASTBitCodes.h:1897
clang::CXXTypeidExpr::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprCXX.h:893
clang::ParenListExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:5571
clang::ObjCAtCatchStmt
Represents Objective-C's @catch statement.
Definition: StmtObjC.h:77
clang::ConceptReference::getTemplateArgsAsWritten
const ASTTemplateArgumentListInfo * getTemplateArgsAsWritten() const
Definition: ASTConcept.h:159
clang::UnaryExprOrTypeTraitExpr
UnaryExprOrTypeTraitExpr - expression with either a type or (unevaluated) expression operand.
Definition: Expr.h:2537
clang::FloatingLiteral
Definition: Expr.h:1627
clang::Expr::isTypeDependent
bool isTypeDependent() const
Determines whether the type of this expression depends on.
Definition: Expr.h:185
clang::serialization::EXPR_CXX_CONSTRUCT
@ EXPR_CXX_CONSTRUCT
A CXXConstructExpr record.
Definition: ASTBitCodes.h:1798
clang::OffsetOfExpr::getComponent
const OffsetOfNode & getComponent(unsigned Idx) const
Definition: Expr.h:2481
clang::CompoundStmt
CompoundStmt - This represents a group of statements like { stmt stmt }.
Definition: Stmt.h:1398
clang::OverloadExpr::getNameInfo
const DeclarationNameInfo & getNameInfo() const
Gets the full name info.
Definition: ExprCXX.h:2986
clang::ConvertVectorExpr
ConvertVectorExpr - Clang builtin function __builtin_convertvector This AST node provides support for...
Definition: Expr.h:4455
clang::ObjCSelectorExpr
ObjCSelectorExpr used for @selector in Objective-C.
Definition: ExprObjC.h:454
DeclTemplate.h
clang::serialization::EXPR_CXX_DEPENDENT_SCOPE_MEMBER
@ EXPR_CXX_DEPENDENT_SCOPE_MEMBER
Definition: ASTBitCodes.h:1852
clang::MSPropertySubscriptExpr
MS property subscript expression.
Definition: ExprCXX.h:994
clang::ChooseExpr::isConditionDependent
bool isConditionDependent() const
Definition: Expr.h:4544
clang::CXXAddrspaceCastExpr
A C++ addrspace_cast expression (currently only enabled for OpenCL).
Definition: ExprCXX.h:600
clang::serialization::STMT_OMP_PARALLEL_MASTER_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_PARALLEL_MASTER_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1933
clang::CXXUuidofExpr::getGuidDecl
MSGuidDecl * getGuidDecl() const
Definition: ExprCXX.h:1102
clang::OMPParallelMasterDirective
This represents '#pragma omp parallel master' directive.
Definition: StmtOpenMP.h:2189
clang::CXXThrowExpr::getThrowLoc
SourceLocation getThrowLoc() const
Definition: ExprCXX.h:1204
clang::UnresolvedLookupExpr
A reference to a name which we were able to look up during parsing but could not resolve to a specifi...
Definition: ExprCXX.h:3073
clang::OverloadExpr::decls_begin
decls_iterator decls_begin() const
Definition: ExprCXX.h:2972
clang::CXXRewrittenBinaryOperator
A rewritten comparison expression that was originally written using operator syntax.
Definition: ExprCXX.h:284
clang::StringLiteral::getNumConcatenated
unsigned getNumConcatenated() const
getNumConcatenated - Get the number of string literal tokens that were concatenated in translation ph...
Definition: Expr.h:1897
clang::serialization::StmtCode
StmtCode
Record codes for each kind of statement or expression.
Definition: ASTBitCodes.h:1508
clang::serialization::EXPR_CXX_MEMBER_CALL
@ EXPR_CXX_MEMBER_CALL
A CXXMemberCallExpr record.
Definition: ASTBitCodes.h:1792
clang::serialization::STMT_OMP_TASKGROUP_DIRECTIVE
@ STMT_OMP_TASKGROUP_DIRECTIVE
Definition: ASTBitCodes.h:1925
clang::FloatingLiteral::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1682
clang::Decl::getAccess
AccessSpecifier getAccess() const
Definition: DeclBase.h:478
clang::CXXBoolLiteralExpr::getValue
bool getValue() const
Definition: ExprCXX.h:733
clang::DependentCoawaitExpr
Represents a 'co_await' expression while the type of the promise is dependent.
Definition: ExprCXX.h:4802
clang::SizeOfPackExpr
Represents an expression that computes the length of a parameter pack.
Definition: ExprCXX.h:4127
clang::ASTStmtWriter::AddTemplateKWAndArgsInfo
void AddTemplateKWAndArgsInfo(const ASTTemplateKWAndArgsInfo &ArgInfo, const TemplateArgumentLoc *Args)
Definition: ASTWriterStmt.cpp:62
clang::serialization::STMT_OMP_PARALLEL_SECTIONS_DIRECTIVE
@ STMT_OMP_PARALLEL_SECTIONS_DIRECTIVE
Definition: ASTBitCodes.h:1908
clang::CXXBindTemporaryExpr
Represents binding an expression to a temporary.
Definition: ExprCXX.h:1412
clang::BlockDecl
Represents a block literal declaration, which is like an unnamed FunctionDecl.
Definition: Decl.h:4143
clang::CastExpr::getFPFeatures
FPOptionsOverride getFPFeatures() const
Definition: Expr.h:3571
clang::UnresolvedMemberExpr::isImplicitAccess
bool isImplicitAccess() const
True if this is an implicit access, i.e., one in which the member being accessed was not written in t...
Definition: ExprCXX.cpp:1489
clang::OverloadExpr::getNumDecls
unsigned getNumDecls() const
Gets the number of declarations in the unresolved set.
Definition: ExprCXX.h:2983
clang::serialization::EXPR_ARRAY_SUBSCRIPT
@ EXPR_ARRAY_SUBSCRIPT
An ArraySubscriptExpr record.
Definition: ASTBitCodes.h:1619
clang::ParenExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:2115
clang::ASTStmtWriter::VisitStmt
void VisitStmt(Stmt *S)
Definition: ASTWriterStmt.cpp:71
clang::BinaryOperator
A builtin binary operation expression such as "x + y" or "x <= y".
Definition: Expr.h:3797
clang::FunctionParmPackExpr::getNumExpansions
unsigned getNumExpansions() const
Get the number of parameters in this parameter pack.
Definition: ExprCXX.h:4421
clang::ExtVectorElementExpr::getAccessor
IdentifierInfo & getAccessor() const
Definition: Expr.h:5920
clang::ExplicitCastExpr::getTypeInfoAsWritten
TypeSourceInfo * getTypeInfoAsWritten() const
getTypeInfoAsWritten - Returns the type source info for the type that this expression is casting to.
Definition: Expr.h:3709
clang::SubstNonTypeTemplateParmExpr::isReferenceParameter
bool isReferenceParameter() const
Definition: ExprCXX.h:4283
clang::SubstNonTypeTemplateParmPackExpr::getParameterPack
NonTypeTemplateParmDecl * getParameterPack() const
Retrieve the non-type template parameter pack being substituted.
Definition: ExprCXX.h:4340
clang::OMPTeamsDirective
This represents '#pragma omp teams' directive.
Definition: StmtOpenMP.h:3277
clang::ConvertVectorExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
getTypeSourceInfo - Return the destination type.
Definition: Expr.h:4478
clang::serialization::STMT_SEH_LEAVE
@ STMT_SEH_LEAVE
Definition: ASTBitCodes.h:1887
clang::LambdaExpr
A C++ lambda expression, which produces a function object (of unspecified type) that can be invoked l...
Definition: ExprCXX.h:1865
clang::OMPLoopDirective
This is a common base class for loop directives ('omp simd', 'omp for', 'omp for simd' etc....
Definition: StmtOpenMP.h:960
clang::ObjCAtThrowStmt
Represents Objective-C's @throw statement.
Definition: StmtObjC.h:332
clang::MemberExpr::isArrow
bool isArrow() const
Definition: Expr.h:3340
clang::RecoveryExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: Expr.h:6428
clang::SubstNonTypeTemplateParmExpr::getReplacement
Expr * getReplacement() const
Definition: ExprCXX.h:4277
clang::SourceRange::getEnd
SourceLocation getEnd() const
Definition: SourceLocation.h:222
clang::MSPropertySubscriptExpr::getIdx
Expr * getIdx()
Definition: ExprCXX.h:1022
clang::ObjCSubscriptRefExpr::getKeyExpr
Expr * getKeyExpr() const
Definition: ExprObjC.h:883
clang::UnresolvedMemberExpr::isArrow
bool isArrow() const
Determine whether this member expression used the '->' operator; otherwise, it used the '.
Definition: ExprCXX.h:3906
clang::ASTRecordWriter::AddNestedNameSpecifierLoc
void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS)
Emit a nested name specifier with source-location information.
Definition: ASTWriter.cpp:5363
clang::ObjCSubscriptRefExpr::getBaseExpr
Expr * getBaseExpr() const
Definition: ExprObjC.h:880
clang::ObjCStringLiteral
ObjCStringLiteral, used for Objective-C string literals i.e.
Definition: ExprObjC.h:52
clang::BlockExpr::getBlockDecl
const BlockDecl * getBlockDecl() const
Definition: Expr.h:5971
clang::MemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:3338
clang::DeclAccessPair
A POD class for pairing a NamedDecl* with an access specifier.
Definition: DeclAccessPair.h:29
clang::MSPropertySubscriptExpr::getBase
Expr * getBase()
Definition: ExprCXX.h:1019
clang::MatrixSubscriptExpr::getRowIdx
Expr * getRowIdx()
Definition: Expr.h:2741
clang::StringLiteral::getBytes
StringRef getBytes() const
Allow access to clients that need the byte representation, such as ASTWriterStmt::VisitStringLiteral(...
Definition: Expr.h:1846
clang::ObjCDictionaryElement::Key
Expr * Key
The key for the dictionary element.
Definition: ExprObjC.h:265
clang::serialization::STMT_ATTRIBUTED
@ STMT_ATTRIBUTED
An AttributedStmt record.
Definition: ASTBitCodes.h:1535
clang::ConceptSpecializationExpr
Represents the specialization of a concept - evaluates to a prvalue of type bool.
Definition: ExprConcepts.h:40
clang::ObjCDictionaryLiteral::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprObjC.h:382
clang::OMPScanDirective
This represents '#pragma omp scan' directive.
Definition: StmtOpenMP.h:5149
clang::MaterializeTemporaryExpr
Represents a prvalue temporary that is written into memory so that a reference can bind to it.
Definition: ExprCXX.h:4462
clang::serialization::EXPR_DESIGNATED_INIT_UPDATE
@ EXPR_DESIGNATED_INIT_UPDATE
A DesignatedInitUpdateExpr record.
Definition: ASTBitCodes.h:1658
clang::serialization::EXPR_CXX_TYPEID_EXPR
@ EXPR_CXX_TYPEID_EXPR
Definition: ASTBitCodes.h:1837
clang::ASTWriter::getExprImplicitCastAbbrev
unsigned getExprImplicitCastAbbrev() const
Definition: ASTWriter.h:712
clang::Stmt::CastIterator
Iterator for iterating over Stmt * arrays that contain only T *.
Definition: Stmt.h:1118
clang::ObjCDictionaryLiteral
ObjCDictionaryLiteral - AST node to represent objective-c dictionary literals; as in:"name" : NSUserN...
Definition: ExprObjC.h:306
clang::serialization::EXPR_CXX_STATIC_CAST
@ EXPR_CXX_STATIC_CAST
A CXXStaticCastExpr record.
Definition: ASTBitCodes.h:1807
clang::CXXInheritedCtorInitExpr::constructsVBase
bool constructsVBase() const
Determine whether this constructor is actually constructing a base class (rather than a complete obje...
Definition: ExprCXX.h:1690
clang::OMPAtomicDirective::isPostfixUpdate
bool isPostfixUpdate() const
Return true if 'v' expression must be updated to original value of 'x', false if 'v' must be updated ...
Definition: StmtOpenMP.h:2860
clang::AsTypeExpr::getRParenLoc
SourceLocation getRParenLoc() const
getRParenLoc - Return the location of final right parenthesis.
Definition: Expr.h:6045
clang::serialization::EXPR_OBJC_AVAILABILITY_CHECK
@ EXPR_OBJC_AVAILABILITY_CHECK
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1775
clang::SYCLUniqueStableNameExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:2073
clang::serialization::STMT_OMP_TILE_DIRECTIVE
@ STMT_OMP_TILE_DIRECTIVE
Definition: ASTBitCodes.h:1896
clang::serialization::EXPR_CXX_BIND_TEMPORARY
@ EXPR_CXX_BIND_TEMPORARY
Definition: ASTBitCodes.h:1843
clang::CXXUnresolvedConstructExpr::getRParenLoc
SourceLocation getRParenLoc() const
Retrieve the location of the right parentheses (')') that follows the argument list.
Definition: ExprCXX.h:3477
clang::ASTRecordWriter::AddDeclarationNameLoc
void AddDeclarationNameLoc(const DeclarationNameLoc &DNLoc, DeclarationName Name)
Definition: ASTWriter.cpp:5322
clang::ExprWithCleanups::getObjects
ArrayRef< CleanupObject > getObjects() const
Definition: ExprCXX.h:3370
clang::OMPIteratorHelperData::CounterUpdate
Expr * CounterUpdate
Updater for the internal counter: ++CounterVD;.
Definition: ExprOpenMP.h:245
clang::ASTRecordWriter::AddSourceLocation
void AddSourceLocation(SourceLocation Loc)
Emit a source location.
Definition: ASTRecordWriter.h:131
clang::BuiltinBitCastExpr
Represents a C++2a __builtin_bit_cast(T, v) expression.
Definition: ExprCXX.h:4877
addSubstitutionDiagnostic
static void addSubstitutionDiagnostic(ASTRecordWriter &Record, const concepts::Requirement::SubstitutionDiagnostic *D)
Definition: ASTWriterStmt.cpp:422
clang::serialization::STMT_OMP_FOR_SIMD_DIRECTIVE
@ STMT_OMP_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1899
clang::serialization::EXPR_SOURCE_LOC
@ EXPR_SOURCE_LOC
A SourceLocExpr record.
Definition: ASTBitCodes.h:1688
clang::serialization::STMT_DO
@ STMT_DO
A DoStmt record.
Definition: ASTBitCodes.h:1547
clang::ObjCIvarRefExpr::getOpLoc
SourceLocation getOpLoc() const
Definition: ExprObjC.h:597
clang::TemplateArgument
Represents a template argument.
Definition: TemplateBase.h:62
clang::ConceptReference::getTemplateKWLoc
SourceLocation getTemplateKWLoc() const
Definition: ASTConcept.h:149
clang::RequiresExpr::getBody
RequiresExprBodyDecl * getBody() const
Definition: ExprConcepts.h:516
clang::OMPMasterTaskLoopDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3647
clang::serialization::EXPR_IMPLICIT_CAST
@ EXPR_IMPLICIT_CAST
An ImplicitCastExpr record.
Definition: ASTBitCodes.h:1640
clang::concepts::Requirement
A static requirement that can be used in a requires-expression to check properties of types and expre...
Definition: ExprConcepts.h:149
clang::OMPDistributeParallelForSimdDirective
This represents '#pragma omp distribute parallel for simd' composite directive.
Definition: StmtOpenMP.h:4090
clang::CastExpr::path_begin
path_iterator path_begin()
Definition: Expr.h:3538
clang::serialization::STMT_OMP_PARALLEL_DIRECTIVE
@ STMT_OMP_PARALLEL_DIRECTIVE
Definition: ASTBitCodes.h:1894
clang::ObjCAvailabilityCheckExpr::getVersion
VersionTuple getVersion()
Definition: ExprObjC.h:1709
clang::CompoundLiteralExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:3427
clang::ForStmt
ForStmt - This represents a 'for (init;cond;inc)' stmt.
Definition: Stmt.h:2505
clang::ObjCAvailabilityCheckExpr
A runtime availability query.
Definition: ExprObjC.h:1686
clang::Expr::containsErrors
bool containsErrors() const
Whether this expression contains subexpressions which had errors, e.g.
Definition: Expr.h:238
clang::serialization::STMT_OBJC_AT_TRY
@ STMT_OBJC_AT_TRY
An ObjCAtTryStmt record.
Definition: ASTBitCodes.h:1760
clang::OMPDepobjDirective
This represents '#pragma omp depobj' directive.
Definition: StmtOpenMP.h:2653
clang::CastExpr::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:3555
clang::OffsetOfExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: Expr.h:2474
clang::CharacterLiteral::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1598
clang::serialization::STMT_OBJC_FOR_COLLECTION
@ STMT_OBJC_FOR_COLLECTION
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1751
clang::CXXUuidofExpr::getExprOperand
Expr * getExprOperand() const
Definition: ExprCXX.h:1097
clang::OMPForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1639
clang::serialization::STMT_CXX_CATCH
@ STMT_CXX_CATCH
A CXXCatchStmt record.
Definition: ASTBitCodes.h:1780
clang::CallExpr::getFPFeatures
FPOptionsOverride getFPFeatures() const
Definition: Expr.h:3075
clang::PseudoObjectExpr
PseudoObjectExpr - An expression which accesses a pseudo-object l-value.
Definition: Expr.h:6089
clang::ObjCAtSynchronizedStmt
Represents Objective-C's @synchronized statement.
Definition: StmtObjC.h:277
clang::ObjCMessageExpr::getReceiverKind
ReceiverKind getReceiverKind() const
Determine the kind of receiver that this message is being sent to.
Definition: ExprObjC.h:1224
clang::OMPIteratorExpr::getIteratorDecl
Decl * getIteratorDecl(unsigned I)
Gets the iterator declaration for the given iterator.
Definition: Expr.cpp:4900
clang::ConditionalOperator::getRHS
Expr * getRHS() const
Definition: Expr.h:4170
clang::OffsetOfNode::getField
FieldDecl * getField() const
For a field offsetof node, returns the field.
Definition: Expr.h:2392
clang::DesignatedInitExpr::getNumSubExprs
unsigned getNumSubExprs() const
Retrieve the total number of subexpressions in this designated initializer expression,...
Definition: Expr.h:5271
clang::serialization::EXPR_ASTYPE
@ EXPR_ASTYPE
Definition: ASTBitCodes.h:1880
clang::DeclRefExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: Expr.h:1384
clang::BinaryConditionalOperator
BinaryConditionalOperator - The GNU extension to the conditional operator which allows the middle ope...
Definition: Expr.h:4197
clang::CXXNewExpr::raw_arg_end
raw_arg_iterator raw_arg_end()
Definition: ExprCXX.h:2368
clang::MemberExpr::isNonOdrUse
NonOdrUseReason isNonOdrUse() const
Is this expression a non-odr-use reference, and if so, why? This is only meaningful if the named memb...
Definition: Expr.h:3380
clang::ParenListExpr::getNumExprs
unsigned getNumExprs() const
Return the number of expressions in this paren list.
Definition: Expr.h:5552
clang::serialization::EXPR_BUILTIN_BIT_CAST
@ EXPR_BUILTIN_BIT_CAST
A BuiltinBitCastExpr record.
Definition: ASTBitCodes.h:1825
clang::DeclRefExpr::getDecl
ValueDecl * getDecl()
Definition: Expr.h:1283
clang::TemplateArgumentLoc
Location wrapper for a TemplateArgument.
Definition: TemplateBase.h:458
clang::CXXStdInitializerListExpr::getSubExpr
Expr * getSubExpr()
Definition: ExprCXX.h:807
clang::Stmt::RequiresExprBits
RequiresExprBitfields RequiresExprBits
Definition: Stmt.h:1068
clang::Expr::isInstantiationDependent
bool isInstantiationDependent() const
Whether this expression is instantiation-dependent, meaning that it depends in some way on.
Definition: Expr.h:214
clang::ObjCMessageExpr::Class
@ Class
The receiver is a class.
Definition: ExprObjC.h:1088
clang::CXXPseudoDestructorExpr::getTildeLoc
SourceLocation getTildeLoc() const
Retrieve the location of the '~'.
Definition: ExprCXX.h:2601
clang::OMPLoopBasedDirective
The base class for all loop-based directives, including loop transformation directives.
Definition: StmtOpenMP.h:682
clang::serialization::EXPR_CONCEPT_SPECIALIZATION
@ EXPR_CONCEPT_SPECIALIZATION
Definition: ASTBitCodes.h:1873
clang::UnaryExprOrTypeTraitExpr::getArgumentTypeInfo
TypeSourceInfo * getArgumentTypeInfo() const
Definition: Expr.h:2583
clang::ImplicitValueInitExpr
Represents an implicitly-generated value initialization of an object of a given type.
Definition: Expr.h:5499
clang::ASTWriter::ClearSwitchCaseIDs
void ClearSwitchCaseIDs()
Definition: ASTWriterStmt.cpp:2598
clang::CXXDependentScopeMemberExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieve the nested-name-specifier that qualifies the member name, with source location information.
Definition: ExprCXX.h:3671
clang::ImplicitCastExpr::isPartOfExplicitCast
bool isPartOfExplicitCast() const
Definition: Expr.h:3645
clang::serialization::STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1939
clang::OMPParallelDirective
This represents '#pragma omp parallel' directive.
Definition: StmtOpenMP.h:611
ASTContext.h
clang::CXXDynamicCastExpr
A C++ dynamic_cast expression (C++ [expr.dynamic.cast]).
Definition: ExprCXX.h:477
clang::RequiresExpr::getEndLoc
SourceLocation getEndLoc() const LLVM_READONLY
Definition: ExprConcepts.h:543
clang::OpaqueValueExpr::getSourceExpr
Expr * getSourceExpr() const
The source expression of an opaque value expression is the expression which originally generated the ...
Definition: Expr.h:1173
clang::PseudoObjectExpr::NoResult
@ NoResult
Definition: Expr.h:6121
clang::GNUNullExpr::getTokenLocation
SourceLocation getTokenLocation() const
getTokenLocation - The location of the __null token.
Definition: Expr.h:4603
clang::OMPParallelForSimdDirective
This represents '#pragma omp parallel for simd' directive.
Definition: StmtOpenMP.h:2124
clang::serialization::DataStreamBasicWriter::writeEnum
void writeEnum(T value)
Definition: AbstractBasicWriter.h:139
clang::OMPArraySectionExpr::getLowerBound
Expr * getLowerBound()
Get lower bound of array section.
Definition: ExprOpenMP.h:94
clang::PredefinedExpr::getFunctionName
StringLiteral * getFunctionName()
Definition: Expr.h:2002
clang::CompoundAssignOperator::getComputationResultType
QualType getComputationResultType() const
Definition: Expr.h:4081
clang::OMPTaskDirective
This represents '#pragma omp task' directive.
Definition: StmtOpenMP.h:2334
clang::OffsetOfExpr::getNumComponents
unsigned getNumComponents() const
Definition: Expr.h:2491
clang::SourceLocExpr::getIdentKind
IdentKind getIdentKind() const
Definition: Expr.h:4693
clang::AtomicExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:6313
clang::ConceptReference::getFoundDecl
NamedDecl * getFoundDecl() const
Definition: ASTConcept.h:151
clang::ASTWriter::RecordSwitchCaseID
unsigned RecordSwitchCaseID(SwitchCase *S)
Record an ID for the given switch-case statement.
Definition: ASTWriterStmt.cpp:2584
clang::OMPIteratorExpr::getIteratorKwLoc
SourceLocation getIteratorKwLoc() const
Definition: ExprOpenMP.h:372
clang::CXXDeleteExpr::getOperatorDelete
FunctionDecl * getOperatorDelete() const
Definition: ExprCXX.h:2437
clang::MemberExpr::getMemberLoc
SourceLocation getMemberLoc() const
getMemberLoc - Return the location of the "member", in X->F, it is the location of 'F'.
Definition: Expr.h:3345
clang::StringLiteral
StringLiteral - This represents a string literal expression, e.g.
Definition: Expr.h:1755
clang::serialization::STMT_CORETURN
@ STMT_CORETURN
Definition: ASTBitCodes.h:1963
clang::OMPTargetParallelDirective
This represents '#pragma omp target parallel' directive.
Definition: StmtOpenMP.h:3102
clang::CXXConstructExpr::getConstructor
CXXConstructorDecl * getConstructor() const
Get the constructor that this expression will (ultimately) call.
Definition: ExprCXX.h:1532
clang::serialization::STMT_OMP_CANCEL_DIRECTIVE
@ STMT_OMP_CANCEL_DIRECTIVE
Definition: ASTBitCodes.h:1927
clang::ExprWithCleanups
Represents an expression – generally a full-expression – that introduces cleanups to be run at the en...
Definition: ExprCXX.h:3342
clang::serialization::STMT_OMP_TARGET_PARALLEL_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_DIRECTIVE
Definition: ASTBitCodes.h:1922
clang::BinaryOperator::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:3980
clang::CXXNewExpr::getSourceRange
SourceRange getSourceRange() const
Definition: ExprCXX.h:2382
clang::ObjCDictionaryLiteral::getDictWithObjectsMethod
ObjCMethodDecl * getDictWithObjectsMethod() const
Definition: ExprObjC.h:376
clang::CapturedStmt
This captures a statement into a function.
Definition: Stmt.h:3471
clang::ObjCAtFinallyStmt
Represents Objective-C's @finally statement.
Definition: StmtObjC.h:127
llvm::DenseSet
Definition: Sema.h:78
clang::OMPParallelForDirective
This represents '#pragma omp parallel for' directive.
Definition: StmtOpenMP.h:2027
clang::serialization::STMT_OMP_SCAN_DIRECTIVE
@ STMT_OMP_SCAN_DIRECTIVE
Definition: ASTBitCodes.h:1915
clang::ObjCSubscriptRefExpr::getRBracket
SourceLocation getRBracket() const
Definition: ExprObjC.h:871
clang::serialization::EXPR_UNARY_OPERATOR
@ EXPR_UNARY_OPERATOR
A UnaryOperator record.
Definition: ASTBitCodes.h:1610
clang::UnresolvedLookupExpr::getNamingClass
CXXRecordDecl * getNamingClass()
Gets the 'naming class' (in the sense of C++0x [class.access.base]p5) of the lookup.
Definition: ExprCXX.h:3149
clang::ObjCIvarRefExpr::getLocation
SourceLocation getLocation() const
Definition: ExprObjC.h:589
clang::ObjCPropertyRefExpr::getReceiverLocation
SourceLocation getReceiverLocation() const
Definition: ExprObjC.h:761
clang::UnaryOperator::canOverflow
bool canOverflow() const
Returns true if the unary operator can cause an overflow.
Definition: Expr.h:2211
clang::CXXUnresolvedConstructExpr::arg_end
arg_iterator arg_end()
Definition: ExprCXX.h:3492
clang::ShuffleVectorExpr::getNumSubExprs
unsigned getNumSubExprs() const
getNumSubExprs - Return the size of the SubExprs array.
Definition: Expr.h:4421
clang::serialization::STMT_OMP_DISPATCH_DIRECTIVE
@ STMT_OMP_DISPATCH_DIRECTIVE
Definition: ASTBitCodes.h:1951
clang::serialization::EXPR_OMP_ARRAY_SHAPING
@ EXPR_OMP_ARRAY_SHAPING
Definition: ASTBitCodes.h:1954
clang::CXXTryStmt
CXXTryStmt - A C++ try block, including all handlers.
Definition: StmtCXX.h:68
clang::SwitchCase
Definition: Stmt.h:1521
clang::ImaginaryLiteral::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:1718
clang::serialization::STMT_BREAK
@ STMT_BREAK
A BreakStmt record.
Definition: ASTBitCodes.h:1562
clang::serialization::STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1938
clang::ASTStmtWriter::ASTStmtWriter
ASTStmtWriter(ASTWriter &Writer, ASTWriter::RecordData &Record)
Definition: ASTWriterStmt.cpp:40
clang::serialization::STMT_OMP_TEAMS_DIRECTIVE
@ STMT_OMP_TEAMS_DIRECTIVE
Definition: ASTBitCodes.h:1924
clang::ASTWriter
Writes an AST file containing the contents of a translation unit.
Definition: ASTWriter.h:99
clang::RequiresExpr::getLocalParameters
ArrayRef< ParmVarDecl * > getLocalParameters() const
Definition: ExprConcepts.h:512
clang::ObjCEncodeExpr
ObjCEncodeExpr, used for @encode in Objective-C.
Definition: ExprObjC.h:409
clang::serialization::STMT_NULL_PTR
@ STMT_NULL_PTR
A NULL expression.
Definition: ASTBitCodes.h:1514
clang::CXXInheritedCtorInitExpr
Represents a call to an inherited base class constructor from an inheriting constructor.
Definition: ExprCXX.h:1651
clang::CXXDefaultArgExpr
A default argument (C++ [dcl.fct.default]).
Definition: ExprCXX.h:1241
clang::serialization::STMT_RETURN
@ STMT_RETURN
A ReturnStmt record.
Definition: ASTBitCodes.h:1565
clang::PackExpansionExpr
Represents a C++11 pack expansion that produces a sequence of expressions.
Definition: ExprCXX.h:4051
clang::CastExpr::path_size
unsigned path_size() const
Definition: Expr.h:3537
clang::OMPCriticalDirective
This represents '#pragma omp critical' directive.
Definition: StmtOpenMP.h:1956
clang::StmtExpr::getTemplateDepth
unsigned getTemplateDepth() const
Definition: Expr.h:4368
clang::DeclRefExpr::hasQualifier
bool hasQualifier() const
Determine whether this declaration reference was preceded by a C++ nested-name-specifier,...
Definition: Expr.h:1298
clang::OMPTargetParallelForSimdDirective
This represents '#pragma omp target parallel for simd' directive.
Definition: StmtOpenMP.h:4221
clang::ArraySubscriptExpr::getLHS
Expr * getLHS()
An array access can be written A[4] or 4[A] (both are equivalent).
Definition: Expr.h:2662
clang::CXXConstructExpr::hadMultipleCandidates
bool hadMultipleCandidates() const
Whether the referred constructor was resolved from an overloaded set having size greater than 1.
Definition: ExprCXX.h:1543
clang::MSPropertyRefExpr::getMemberLoc
SourceLocation getMemberLoc() const
Definition: ExprCXX.h:979
clang::serialization::EXPR_OBJC_ISA
@ EXPR_OBJC_ISA
An ObjCIsa Expr record.
Definition: ASTBitCodes.h:1745
clang::OMPMasterTaskLoopDirective
This represents '#pragma omp master taskloop' directive.
Definition: StmtOpenMP.h:3587
clang::CXXNewExpr::getAllocatedTypeSourceInfo
TypeSourceInfo * getAllocatedTypeSourceInfo() const
Definition: ExprCXX.h:2236
clang::serialization::EXPR_SYCL_UNIQUE_STABLE_NAME
@ EXPR_SYCL_UNIQUE_STABLE_NAME
Definition: ASTBitCodes.h:1972
clang::Stmt::DependentScopeDeclRefExprBits
DependentScopeDeclRefExprBitfields DependentScopeDeclRefExprBits
Definition: Stmt.h:1057
clang::concepts::Requirement::RK_Compound
@ RK_Compound
Definition: ExprConcepts.h:153
clang::ConstantExpr
ConstantExpr - An expression that occurs in a constant context and optionally the result of evaluatin...
Definition: Expr.h:1020
clang::serialization::EXPR_DECL_REF
@ EXPR_DECL_REF
A DeclRefExpr record.
Definition: ASTBitCodes.h:1586
clang::ArraySubscriptExpr::getRHS
Expr * getRHS()
Definition: Expr.h:2666
clang::CoawaitExpr::isImplicit
bool isImplicit() const
Definition: ExprCXX.h:4792
clang::serialization::EXPR_MEMBER
@ EXPR_MEMBER
A MemberExpr record.
Definition: ASTBitCodes.h:1628
clang::serialization::EXPR_REQUIRES
@ EXPR_REQUIRES
Definition: ASTBitCodes.h:1874
clang::ObjCMessageExpr
An expression that sends a message to the given Objective-C object or class.
Definition: ExprObjC.h:940
clang::OMPTeamsDistributeDirective
This represents '#pragma omp teams distribute' directive.
Definition: StmtOpenMP.h:4353
clang::serialization::COK_Block
@ COK_Block
Definition: ASTBitCodes.h:2002
addConstraintSatisfaction
static void addConstraintSatisfaction(ASTRecordWriter &Record, const ASTConstraintSatisfaction &Satisfaction)
Definition: ASTWriterStmt.cpp:400
clang::ObjCDictionaryElement::EllipsisLoc
SourceLocation EllipsisLoc
The location of the ellipsis, if this is a pack expansion.
Definition: ExprObjC.h:271
clang::BuiltinBitCastExpr::getEndLoc
SourceLocation getEndLoc() const LLVM_READONLY
Definition: ExprCXX.h:4898
clang::OffsetOfNode
Helper class for OffsetOfExpr.
Definition: Expr.h:2328
clang::serialization::STMT_COROUTINE_BODY
@ STMT_COROUTINE_BODY
Definition: ASTBitCodes.h:1962
clang::serialization::EXPR_CXX_REWRITTEN_BINARY_OPERATOR
@ EXPR_CXX_REWRITTEN_BINARY_OPERATOR
A CXXRewrittenBinaryOperator record.
Definition: ASTBitCodes.h:1795
clang::CastExpr::getCastKind
CastKind getCastKind() const
Definition: Expr.h:3512
clang::ObjCProtocolExpr::getAtLoc
SourceLocation getAtLoc() const
Definition: ExprObjC.h:525
clang::MemberExpr::getMemberDecl
ValueDecl * getMemberDecl() const
Retrieve the member declaration to which this expression refers.
Definition: Expr.h:3239
clang::ASTRecordWriter::writeUInt32
void writeUInt32(uint32_t Value)
Definition: ASTRecordWriter.h:147
clang::ChooseExpr
ChooseExpr - GNU builtin-in function __builtin_choose_expr.
Definition: Expr.h:4514
clang::serialization::EXPR_CXX_REINTERPRET_CAST
@ EXPR_CXX_REINTERPRET_CAST
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1813
clang::SEHExceptStmt
Definition: Stmt.h:3300
clang::MSPropertyRefExpr::isArrow
bool isArrow() const
Definition: ExprCXX.h:978
clang::OMPTaskDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:2383
clang::ExpressionTraitExpr::getQueriedExpression
Expr * getQueriedExpression() const
Definition: ExprCXX.h:2860
clang::APIntStorage::getValue
llvm::APInt getValue() const
Definition: Expr.h:1466
clang::OMPArraySectionExpr::getLength
Expr * getLength()
Get length of array section.
Definition: ExprOpenMP.h:102
clang::OMPArrayShapingExpr
An explicit cast in C or a C-style cast in C++, which uses the syntax ([s1][s2]......
Definition: ExprOpenMP.h:146
clang::ASTStmtWriter::Emit
uint64_t Emit()
Definition: ASTWriterStmt.cpp:46
clang::serialization::EXPR_BLOCK
@ EXPR_BLOCK
BlockExpr.
Definition: ASTBitCodes.h:1697
clang::PseudoObjectExpr::semantics_iterator
Expr *const * semantics_iterator
Definition: Expr.h:6155
clang::serialization::EXPR_CXX_THROW
@ EXPR_CXX_THROW
Definition: ASTBitCodes.h:1840
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1947
clang::DesignatedInitExpr::usesGNUSyntax
bool usesGNUSyntax() const
Determines whether this designated initializer used the deprecated GNU syntax for designated initiali...
Definition: Expr.h:5255
clang::OMPCriticalDirective::getDirectiveName
DeclarationNameInfo getDirectiveName() const
Return name of the directive.
Definition: StmtOpenMP.h:2011
clang::serialization::EXPR_CXX_FOLD
@ EXPR_CXX_FOLD
Definition: ASTBitCodes.h:1872
clang::serialization::STMT_INDIRECT_GOTO
@ STMT_INDIRECT_GOTO
An IndirectGotoStmt record.
Definition: ASTBitCodes.h:1556
clang::CXXUnresolvedConstructExpr::getLParenLoc
SourceLocation getLParenLoc() const
Retrieve the location of the left parentheses ('(') that precedes the argument list.
Definition: ExprCXX.h:3472
clang::serialization::STMT_DEFAULT
@ STMT_DEFAULT
A DefaultStmt record.
Definition: ASTBitCodes.h:1529
clang::FullExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:1005
clang::serialization::STMT_OMP_TARGET_DIRECTIVE
@ STMT_OMP_TARGET_DIRECTIVE
Definition: ASTBitCodes.h:1918
clang::SizeOfPackExpr::getPackLength
unsigned getPackLength() const
Retrieve the length of the parameter pack.
Definition: ExprCXX.h:4204
clang::CharacterLiteral
Definition: Expr.h:1572
clang::UserDefinedLiteral
A call to a literal operator (C++11 [over.literal]) written as a user-defined literal (C++11 [lit....
Definition: ExprCXX.h:638
clang::ObjCEncodeExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprObjC.h:425
clang::OffsetOfNode::getArrayExprIndex
unsigned getArrayExprIndex() const
For an array element node, returns the index into the array of expressions.
Definition: Expr.h:2386
clang::ObjCIsaExpr::isArrow
bool isArrow() const
Definition: ExprObjC.h:1509
clang::serialization::EXPR_CXX_EXPRESSION_TRAIT
@ EXPR_CXX_EXPRESSION_TRAIT
Definition: ASTBitCodes.h:1858
clang::serialization::STMT_OMP_DEPOBJ_DIRECTIVE
@ STMT_OMP_DEPOBJ_DIRECTIVE
Definition: ASTBitCodes.h:1914
clang::transformer::EditKind::Range
@ Range
clang::ASTRecordWriter::writeBool
void writeBool(bool Value)
Definition: ASTRecordWriter.h:143
clang::serialization::EXPR_PAREN_LIST
@ EXPR_PAREN_LIST
A ParenListExpr record.
Definition: ASTBitCodes.h:1607
clang::OMPCancelDirective
This represents '#pragma omp cancel' directive.
Definition: StmtOpenMP.h:3388
clang::CompoundLiteralExpr
CompoundLiteralExpr - [C99 6.5.2.5].
Definition: Expr.h:3397
clang::ObjCDictionaryLiteral::getKeyValueElement
ObjCDictionaryElement getKeyValueElement(unsigned Index) const
Definition: ExprObjC.h:362
clang::DeclRefExpr::hadMultipleCandidates
bool hadMultipleCandidates() const
Returns true if this expression refers to a function that was resolved from an overloaded set having ...
Definition: Expr.h:1396
clang::DesignatedInitExpr::designators
llvm::MutableArrayRef< Designator > designators()
Definition: Expr.h:5224
clang::serialization::EXPR_SIZEOF_ALIGN_OF
@ EXPR_SIZEOF_ALIGN_OF
A SizefAlignOfExpr record.
Definition: ASTBitCodes.h:1616
clang::serialization::EXPR_SIZEOF_PACK
@ EXPR_SIZEOF_PACK
Definition: ASTBitCodes.h:1867
clang::StmtExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4365
clang::CXXPseudoDestructorExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieves the nested-name-specifier that qualifies the type name, with source-location information.
Definition: ExprCXX.h:2569
clang::OMPSectionsDirective
This represents '#pragma omp sections' directive.
Definition: StmtOpenMP.h:1718
clang::ASTRecordWriter::AddAPValue
void AddAPValue(const APValue &Value)
Emit an APvalue.
Definition: ASTRecordWriter.h:169
clang::MaterializeTemporaryExpr::getLifetimeExtendedTemporaryDecl
LifetimeExtendedTemporaryDecl * getLifetimeExtendedTemporaryDecl()
Definition: ExprCXX.h:4502
clang::CXXDependentScopeMemberExpr::getFirstQualifierFoundInScope
NamedDecl * getFirstQualifierFoundInScope() const
Retrieve the first part of the nested-name-specifier that was found in the scope of the member access...
Definition: ExprCXX.h:3684
clang::ConvertVectorExpr::getRParenLoc
SourceLocation getRParenLoc() const
getRParenLoc - Return the location of final right parenthesis.
Definition: Expr.h:4489
clang::UnaryExprOrTypeTraitExpr::isArgumentType
bool isArgumentType() const
Definition: Expr.h:2579
clang::serialization::EXPR_FUNCTION_PARM_PACK
@ EXPR_FUNCTION_PARM_PACK
Definition: ASTBitCodes.h:1870
clang::ObjCProtocolExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprObjC.h:526
clang::OMPTargetTeamsDistributeParallelForSimdDirective
This represents '#pragma omp target teams distribute parallel for simd' combined directive.
Definition: StmtOpenMP.h:4866
clang::CStyleCastExpr
CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr....
Definition: Expr.h:3725
clang::MemberExpr::getBase
Expr * getBase() const
Definition: Expr.h:3233
clang::CXXDependentScopeMemberExpr::getBase
Expr * getBase() const
Retrieve the base object of this member expressions, e.g., the x in x.m.
Definition: ExprCXX.h:3648
clang::ASTRecordWriter::AddCXXTemporary
void AddCXXTemporary(const CXXTemporary *Temp)
Emit a CXXTemporary.
Definition: ASTWriter.cpp:5108
clang::GCCAsmStmt
This represents a GCC inline-assembly statement extension.
Definition: Stmt.h:2973
clang::serialization::EXPR_CXX_OPERATOR_CALL
@ EXPR_CXX_OPERATOR_CALL
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1789
clang::UnaryOperator::getOperatorLoc
SourceLocation getOperatorLoc() const
getOperatorLoc - Return the location of the operator.
Definition: Expr.h:2202
clang::StringLiteral::getKind
StringKind getKind() const
Definition: Expr.h:1870
clang::serialization::STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
@ STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1920
clang::OMPFlushDirective
This represents '#pragma omp flush' directive.
Definition: StmtOpenMP.h:2601
clang::ObjCMessageExpr::getSuperLoc
SourceLocation getSuperLoc() const
Retrieve the location of the 'super' keyword for a class or instance message to 'super',...
Definition: ExprObjC.h:1291
clang::AsmStmt
AsmStmt is the base class for GCCAsmStmt and MSAsmStmt.
Definition: Stmt.h:2814
clang::serialization::EXPR_BINARY_OPERATOR
@ EXPR_BINARY_OPERATOR
A BinaryOperator record.
Definition: ASTBitCodes.h:1631
clang::OMPTargetEnterDataDirective
This represents '#pragma omp target enter data' directive.
Definition: StmtOpenMP.h:2993
clang::SizeOfPackExpr::getPartialArguments
ArrayRef< TemplateArgument > getPartialArguments() const
Get.
Definition: ExprCXX.h:4220
clang::DesignatedInitUpdateExpr
Definition: Expr.h:5356
clang::ExtVectorElementExpr::getBase
const Expr * getBase() const
Definition: Expr.h:5916
clang::MatrixSubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: Expr.h:2763
clang::serialization::STMT_OMP_FLUSH_DIRECTIVE
@ STMT_OMP_FLUSH_DIRECTIVE
Definition: ASTBitCodes.h:1913
clang::PseudoObjectExpr::getSyntacticForm
Expr * getSyntacticForm()
Return the syntactic form of this expression, i.e.
Definition: Expr.h:6133
clang::CXXOperatorCallExpr::getOperator
OverloadedOperatorKind getOperator() const
Returns the kind of overloaded operator that this expression refers to.
Definition: ExprCXX.h:112
clang::serialization::STMT_SEH_TRY
@ STMT_SEH_TRY
Definition: ASTBitCodes.h:1890
clang::serialization::EXPR_CXX_NULL_PTR_LITERAL
@ EXPR_CXX_NULL_PTR_LITERAL
Definition: ASTBitCodes.h:1836
clang::ASTRecordWriter::AddSelectorRef
void AddSelectorRef(Selector S)
Emit a Selector (which is a smart pointer reference).
Definition: ASTWriter.cpp:5085
clang::CXXBoolLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:739
clang::ConvertVectorExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
getBuiltinLoc - Return the location of the __builtin_convertvector token.
Definition: Expr.h:4486
clang::OMPIteratorExpr::IteratorRange
Iterator range representation begin:end[:step].
Definition: ExprOpenMP.h:278
clang::OMPInteropDirective
This represents '#pragma omp interop' directive.
Definition: StmtOpenMP.h:5202
clang::serialization::DESIG_ARRAY
@ DESIG_ARRAY
Array designator.
Definition: ASTBitCodes.h:1986
clang::ASTWriter::getIntegerLiteralAbbrev
unsigned getIntegerLiteralAbbrev() const
Definition: ASTWriter.h:711
clang::OMPIteratorHelperData::Upper
Expr * Upper
Normalized upper bound.
Definition: ExprOpenMP.h:240
clang::serialization::STMT_IF
@ STMT_IF
An IfStmt record.
Definition: ASTBitCodes.h:1538
clang::LambdaExpr::capture_init_end
capture_init_iterator capture_init_end()
Retrieve the iterator pointing one past the last initialization argument for this lambda expression.
Definition: ExprCXX.h:2004
clang::OMPIteratorExpr::getSecondColonLoc
SourceLocation getSecondColonLoc(unsigned I) const
Gets the location of the second ':' (if any) in the range for the given iteratori definition.
Definition: Expr.cpp:4933
clang::DesignatedInitUpdateExpr::getUpdater
InitListExpr * getUpdater() const
Definition: Expr.h:5378
clang::OMPDistributeDirective
This represents '#pragma omp distribute' directive.
Definition: StmtOpenMP.h:3872
clang::serialization::DESIG_FIELD_NAME
@ DESIG_FIELD_NAME
Field designator where only the field name is known.
Definition: ASTBitCodes.h:1979
clang::SourceLocExpr::getEndLoc
SourceLocation getEndLoc() const
Definition: Expr.h:4717
clang::ShuffleVectorExpr::getExpr
Expr * getExpr(unsigned Index)
getExpr - Return the Expr at the specified index.
Definition: Expr.h:4427
clang::OMPArrayShapingExpr::getBracketsRanges
ArrayRef< SourceRange > getBracketsRanges() const
Fetches source ranges for the brackets os the array shaping expression.
Definition: ExprOpenMP.h:209
clang::OMPTeamsDistributeParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:4631
clang::PredefinedExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1999
clang::CXXDefaultInitExpr::getUsedContext
const DeclContext * getUsedContext() const
Definition: ExprCXX.h:1355
clang::ParenExpr::getRParen
SourceLocation getRParen() const
Get the location of the right parentheses ')'.
Definition: Expr.h:2127
clang::CXXDeleteExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: ExprCXX.h:2448
clang::serialization::STMT_OMP_TASKYIELD_DIRECTIVE
@ STMT_OMP_TASKYIELD_DIRECTIVE
Definition: ASTBitCodes.h:1910
clang::CXXUnresolvedConstructExpr::arg_begin
arg_iterator arg_begin()
Definition: ExprCXX.h:3491
clang::OMPArraySectionExpr::getBase
Expr * getBase()
An array section can be written only as Base[LowerBound:Length].
Definition: ExprOpenMP.h:85
clang::OMPSingleDirective
This represents '#pragma omp single' directive.
Definition: StmtOpenMP.h:1857
clang::CXXFunctionalCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprCXX.h:1766
clang::serialization::STMT_OBJC_CATCH
@ STMT_OBJC_CATCH
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1754
clang::ObjCArrayLiteral::getElement
Expr * getElement(unsigned Index)
getElement - Return the Element at the specified index.
Definition: ExprObjC.h:232
clang::CXXPseudoDestructorExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Retrieve the location of the '.' or '->' operator.
Definition: ExprCXX.h:2583
clang::BinaryOperator::getLHS
Expr * getLHS() const
Definition: Expr.h:3846
clang::OMPIteratorExpr::getColonLoc
SourceLocation getColonLoc(unsigned I) const
Gets the location of the first ':' in the range for the given iterator definition.
Definition: Expr.cpp:4927
clang::ParenExpr
ParenExpr - This represents a parethesized expression, e.g.
Definition: Expr.h:2100
clang::CoyieldExpr
Represents a 'co_yield' expression.
Definition: ExprCXX.h:4851
clang::serialization::EXPR_CXX_ADDRSPACE_CAST
@ EXPR_CXX_ADDRSPACE_CAST
A CXXAddrspaceCastExpr record.
Definition: ASTBitCodes.h:1819
clang::serialization::STMT_CXX_FOR_RANGE
@ STMT_CXX_FOR_RANGE
A CXXForRangeStmt record.
Definition: ASTBitCodes.h:1786
clang::SubstNonTypeTemplateParmExpr::getParameter
NonTypeTemplateParmDecl * getParameter() const
Definition: ExprCXX.h:4279
clang::ObjCProtocolExpr
ObjCProtocolExpr used for protocol expression in Objective-C.
Definition: ExprObjC.h:504
clang::CallExpr::getNumArgs
unsigned getNumArgs() const
getNumArgs - Return the number of actual arguments to this call.
Definition: Expr.h:2967
clang::Expr::getExprLoc
SourceLocation getExprLoc() const LLVM_READONLY
getExprLoc - Return the preferred location for the arrow when diagnosing a problem with a generic exp...
Definition: Expr.cpp:229
clang::OMPArrayShapingExpr::getBase
Expr * getBase()
Fetches base expression of array shaping expression.
Definition: ExprOpenMP.h:214
clang::serialization::EXPR_EXPR_WITH_CLEANUPS
@ EXPR_EXPR_WITH_CLEANUPS
Definition: ASTBitCodes.h:1850
clang::serialization::EXPR_OBJC_INDIRECT_COPY_RESTORE
@ EXPR_OBJC_INDIRECT_COPY_RESTORE
An ObjCIndirectCopyRestoreExpr record.
Definition: ASTBitCodes.h:1748
clang::CXXDeleteExpr
Represents a delete expression for memory deallocation and destructor calls, e.g.
Definition: ExprCXX.h:2398
clang::ASTConstraintSatisfaction::IsSatisfied
bool IsSatisfied
Definition: ASTConcept.h:82
clang::BlockExpr
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Definition: Expr.h:5959
clang::StmtExpr
StmtExpr - This is the GNU Statement Expression extension: ({int X=4; X;}).
Definition: Expr.h:4339
llvm::ArrayRef
Definition: LLVM.h:34
clang::OMPTaskLoopDirective
This represents '#pragma omp taskloop' directive.
Definition: StmtOpenMP.h:3448
clang::OMPArrayShapingExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprOpenMP.h:195
clang::FunctionParmPackExpr::iterator
VarDecl *const * iterator
Iterators over the parameters which the parameter pack expanded into.
Definition: ExprCXX.h:4416
clang::Decl
Decl - This represents one declaration (or definition), e.g.
Definition: DeclBase.h:89
clang::CastExpr::path_end
path_iterator path_end()
Definition: Expr.h:3539
clang::serialization::EXPR_INIT_LIST
@ EXPR_INIT_LIST
An InitListExpr record.
Definition: ASTBitCodes.h:1652
clang::CXXTypeidExpr::isTypeOperand
bool isTypeOperand() const
Definition: ExprCXX.h:875
clang::serialization::STMT_OMP_INTEROP_DIRECTIVE
@ STMT_OMP_INTEROP_DIRECTIVE
Definition: ASTBitCodes.h:1950
clang::OffsetOfNode::Base
@ Base
An implicit indirection through a C++ base class, when the field found is in a base class.
Definition: Expr.h:2340
clang::ASTRecordWriter::AddDeclarationNameInfo
void AddDeclarationNameInfo(const DeclarationNameInfo &NameInfo)
Definition: ASTWriter.cpp:5349
clang::serialization::EXPR_CXX_CONST_CAST
@ EXPR_CXX_CONST_CAST
A CXXConstCastExpr record.
Definition: ASTBitCodes.h:1816
clang::CXXNamedCastExpr::getAngleBrackets
SourceRange getAngleBrackets() const LLVM_READONLY
Definition: ExprCXX.h:411
clang::AddrLabelExpr
AddrLabelExpr - The GNU address of label extension, representing &&label.
Definition: Expr.h:4294
clang::CXXFunctionalCastExpr
Represents an explicit C++ type conversion that uses "functional" notation (C++ [expr....
Definition: ExprCXX.h:1726
clang::DeclGroupRef
Definition: DeclGroup.h:51
clang::DesignatedInitExpr::Designator
Represents a single C99 designator.
Definition: Expr.h:5093
clang::OffsetOfExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
getOperatorLoc - Return the location of the operator.
Definition: Expr.h:2467
clang::serialization::EXPR_NO_INIT
@ EXPR_NO_INIT
An NoInitExpr record.
Definition: ASTBitCodes.h:1661
clang::CallExpr::getADLCallKind
ADLCallKind getADLCallKind() const
Definition: Expr.h:2943
clang::ChooseExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4561
clang::ArraySubscriptExpr
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
Definition: Expr.h:2633
clang::CXXUuidofExpr
A Microsoft C++ __uuidof expression, which gets the _GUID that corresponds to the supplied type or ex...
Definition: ExprCXX.h:1056
clang::DependentScopeDeclRefExpr
A qualified reference to a name whose declaration cannot yet be resolved.
Definition: ExprCXX.h:3191
clang::DoStmt
DoStmt - This represents a 'do/while' stmt.
Definition: Stmt.h:2449
clang::ConvertVectorExpr::getSrcExpr
Expr * getSrcExpr() const
getSrcExpr - Return the Expr to be converted.
Definition: Expr.h:4475
clang::ASTRecordWriter::EmitStmt
uint64_t EmitStmt(unsigned Code, unsigned Abbrev=0)
Emit the record to the stream, preceded by its substatements.
Definition: ASTRecordWriter.h:98
clang::serialization::EXPR_VA_ARG
@ EXPR_VA_ARG
A VAArgExpr record.
Definition: ASTBitCodes.h:1673
StmtVisitor.h
clang::CXXThrowExpr::getSubExpr
const Expr * getSubExpr() const
Definition: ExprCXX.h:1201
clang::StmtVisitorBase< std::add_pointer, ASTStmtWriter, void, ParamTys... >::P
ParamTys P
Definition: StmtVisitor.h:171
clang::CXXNullPtrLiteralExpr
The null pointer literal (C++11 [lex.nullptr])
Definition: ExprCXX.h:759
clang::CoroutineBodyStmt
Represents the body of a coroutine.
Definition: StmtCXX.h:317
clang::OffsetOfNode::Field
@ Field
A field.
Definition: Expr.h:2335
clang::DeclarationName::NameKind
NameKind
The kind of the name stored in this DeclarationName.
Definition: DeclarationName.h:202
clang::serialization::STMT_OMP_TASKWAIT_DIRECTIVE
@ STMT_OMP_TASKWAIT_DIRECTIVE
Definition: ASTBitCodes.h:1912
clang::InitListExpr::getArrayFiller
Expr * getArrayFiller()
If this initializer list initializes an array with more elements than there are initializers in the l...
Definition: Expr.h:4876
clang::BinaryOperator::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:3838
clang::ASTRecordWriter::AddAPFloat
void AddAPFloat(const llvm::APFloat &Value)
Emit a floating-point value.
Definition: ASTWriter.cpp:5039
clang::serialization::STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1937
clang::RecoveryExpr::getEndLoc
SourceLocation getEndLoc() const
Definition: Expr.h:6429
clang::CoawaitExpr
Represents a 'co_await' expression.
Definition: ExprCXX.h:4766
clang::BreakStmt
BreakStmt - This represents a break.
Definition: Stmt.h:2694
clang::serialization::EXPR_OBJC_ENCODE
@ EXPR_OBJC_ENCODE
An ObjCEncodeExpr record.
Definition: ASTBitCodes.h:1721
clang::serialization::EXPR_OBJC_BRIDGED_CAST
@ EXPR_OBJC_BRIDGED_CAST
Definition: ASTBitCodes.h:1958
clang::ObjCBoxedExpr::getBoxingMethod
ObjCMethodDecl * getBoxingMethod() const
Definition: ExprObjC.h:147
clang::OverloadExpr
A reference to an overloaded function set, either an UnresolvedLookupExpr or an UnresolvedMemberExpr.
Definition: ExprCXX.h:2880
clang::serialization::EXPR_OBJC_IVAR_REF_EXPR
@ EXPR_OBJC_IVAR_REF_EXPR
An ObjCIvarRefExpr record.
Definition: ASTBitCodes.h:1730
clang::serialization::STMT_STOP
@ STMT_STOP
A marker record that indicates that we are at the end of an expression.
Definition: ASTBitCodes.h:1511
clang::OMPCancellationPointDirective
This represents '#pragma omp cancellation point' directive.
Definition: StmtOpenMP.h:3330
clang::OMPDispatchDirective
This represents '#pragma omp dispatch' directive.
Definition: StmtOpenMP.h:5255
clang::CXXDependentScopeMemberExpr
Represents a C++ member access expression where the actual member referenced could not be resolved be...
Definition: ExprCXX.h:3550
clang::MemberExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
If the member name was qualified, retrieves the nested-name-specifier that precedes the member name,...
Definition: Expr.h:3258
clang::ASTRecordWriter
An object for streaming information to a record.
Definition: ASTRecordWriter.h:26
clang::OMPTargetTeamsDistributeParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:4849
clang::serialization::STMT_OMP_SINGLE_DIRECTIVE
@ STMT_OMP_SINGLE_DIRECTIVE
Definition: ASTBitCodes.h:1902
clang::CoroutineBodyStmt::getParamMoves
ArrayRef< Stmt const * > getParamMoves() const
Definition: StmtCXX.h:417
clang::CompoundAssignOperator
CompoundAssignOperator - For compound assignments (e.g.
Definition: Expr.h:4044
clang::ChooseExpr::getCond
Expr * getCond() const
Definition: Expr.h:4554
clang::CXXDependentScopeMemberExpr::isImplicitAccess
bool isImplicitAccess() const
True if this is an implicit access, i.e.
Definition: ExprCXX.h:3640
clang::CXXTypeidExpr::getTypeOperandSourceInfo
TypeSourceInfo * getTypeOperandSourceInfo() const
Retrieve source information for the type operand.
Definition: ExprCXX.h:882
clang::serialization::EXPR_PAREN
@ EXPR_PAREN
A ParenExpr record.
Definition: ASTBitCodes.h:1604
clang::serialization::EXPR_CXX_DEFAULT_INIT
@ EXPR_CXX_DEFAULT_INIT
Definition: ASTBitCodes.h:1842
clang::CXXInheritedCtorInitExpr::inheritedFromVBase
bool inheritedFromVBase() const
Determine whether the inherited constructor is inherited from a virtual base of the object we constru...
Definition: ExprCXX.h:1700
clang::FloatingLiteral::getRawSemantics
llvm::APFloatBase::Semantics getRawSemantics() const
Get a raw enumeration value representing the floating-point semantics of this literal (32-bit IEEE,...
Definition: Expr.h:1651
clang::CXXNoexceptExpr
Represents a C++11 noexcept expression (C++ [expr.unary.noexcept]).
Definition: ExprCXX.h:3997
clang::serialization::STMT_SEH_EXCEPT
@ STMT_SEH_EXCEPT
Definition: ASTBitCodes.h:1888
clang::Expr::isValueDependent
bool isValueDependent() const
Determines whether the value of this expression depends on.
Definition: Expr.h:168
clang::CXXUnresolvedConstructExpr
Describes an explicit type conversion that uses functional notion but could not be resolved because o...
Definition: ExprCXX.h:3428
clang::MSPropertySubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: ExprCXX.h:1031
clang::serialization::STMT_GCCASM
@ STMT_GCCASM
A GCC-style AsmStmt record.
Definition: ASTBitCodes.h:1574
ASTRecordWriter.h
clang::CoroutineSuspendExpr::children
child_range children()
Definition: ExprCXX.h:4751
clang::OMPExecutableDirective
This is a basic class for representing single OpenMP executable directive.
Definition: StmtOpenMP.h:266
clang::serialization::STMT_OMP_TARGET_UPDATE_DIRECTIVE
@ STMT_OMP_TARGET_UPDATE_DIRECTIVE
Definition: ASTBitCodes.h:1935
clang::serialization::EXPR_CUDA_KERNEL_CALL
@ EXPR_CUDA_KERNEL_CALL
Definition: ASTBitCodes.h:1877
clang::StringLiteral::getCharByteWidth
unsigned getCharByteWidth() const
Definition: Expr.h:1868
clang::serialization::STMT_OMP_PARALLEL_MASTER_DIRECTIVE
@ STMT_OMP_PARALLEL_MASTER_DIRECTIVE
Definition: ASTBitCodes.h:1907
clang::CXXForRangeStmt
CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for statement, represented as 'for (ra...
Definition: StmtCXX.h:134
clang::FloatingLiteral::isExact
bool isExact() const
Definition: Expr.h:1674
clang::OMPParallelSectionsDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:2319
clang::ObjCMessageExpr::getLeftLoc
SourceLocation getLeftLoc() const
Definition: ExprObjC.h:1406
clang::serialization::COK_CompoundLiteral
@ COK_CompoundLiteral
Definition: ASTBitCodes.h:2002
clang::CXXPseudoDestructorExpr::getDestroyedTypeInfo
TypeSourceInfo * getDestroyedTypeInfo() const
Retrieve the source location information for the type being destroyed.
Definition: ExprCXX.h:2610
clang::DeclStmt
DeclStmt - Adaptor class for mixing declarations with statements and expressions.
Definition: Stmt.h:1291
clang::ContinueStmt
ContinueStmt - This represents a continue.
Definition: Stmt.h:2664
clang::CXXPseudoDestructorExpr::getDestroyedTypeLoc
SourceLocation getDestroyedTypeLoc() const
Retrieve the starting location of the type being destroyed.
Definition: ExprCXX.h:2625
clang::BinaryConditionalOperator::getFalseExpr
Expr * getFalseExpr() const
getFalseExpr - Return the subexpression which will be evaluated if the condnition evaluates to false;...
Definition: Expr.h:4251
clang::SubstNonTypeTemplateParmPackExpr::getParameterPackLocation
SourceLocation getParameterPackLocation() const
Retrieve the location of the parameter pack name.
Definition: ExprCXX.h:4343
clang::ObjCEncodeExpr::getAtLoc
SourceLocation getAtLoc() const
Definition: ExprObjC.h:423
clang::OffsetOfNode::Identifier
@ Identifier
A field in a dependent type, known only by its name.
Definition: Expr.h:2337
clang::serialization::STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1930
clang::ChooseExpr::getLHS
Expr * getLHS() const
Definition: Expr.h:4556
clang::CXXConstCastExpr
A C++ const_cast expression (C++ [expr.const.cast]).
Definition: ExprCXX.h:562
clang::CXXThisExpr
Represents the this expression in C++.
Definition: ExprCXX.h:1142
clang::ASTRecordWriter::AddDeclRef
void AddDeclRef(const Decl *D)
Emit a reference to a declaration.
Definition: ASTRecordWriter.h:220
clang::serialization::EXPR_COYIELD
@ EXPR_COYIELD
Definition: ASTBitCodes.h:1965
clang::ExtVectorElementExpr
ExtVectorElementExpr - This represents access to specific elements of a vector, and may occur on the ...
Definition: Expr.h:5899
clang::OMPTeamsDistributeParallelForDirective
This represents '#pragma omp teams distribute parallel for' composite directive.
Definition: StmtOpenMP.h:4553
clang::TypoExpr
TypoExpr - Internal placeholder for expressions where typo correction still needs to be performed and...
Definition: Expr.h:6352
clang::PredefinedExpr
[C99 6.4.2.2] - A predefined identifier such as func.
Definition: Expr.h:1947
clang::serialization::EXPR_PREDEFINED
@ EXPR_PREDEFINED
A PredefinedExpr record.
Definition: ASTBitCodes.h:1583
clang::serialization::EXPR_CXX_UNRESOLVED_CONSTRUCT
@ EXPR_CXX_UNRESOLVED_CONSTRUCT
Definition: ASTBitCodes.h:1854
clang::MSDependentExistsStmt
Representation of a Microsoft __if_exists or __if_not_exists statement with a dependent name.
Definition: StmtCXX.h:252
clang::serialization::STMT_OMP_PARALLEL_MASTER_TASKLOOP_DIRECTIVE
@ STMT_OMP_PARALLEL_MASTER_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1932
clang::DeclAccessPair::getAccess
AccessSpecifier getAccess() const
Definition: DeclAccessPair.h:44
clang::ObjCStringLiteral::getString
StringLiteral * getString()
Definition: ExprObjC.h:65
clang::serialization::EXPR_ARRAY_TYPE_TRAIT
@ EXPR_ARRAY_TYPE_TRAIT
Definition: ASTBitCodes.h:1864
clang::CXXConstructExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:1534
clang::UnresolvedMemberExpr::hasUnresolvedUsing
bool hasUnresolvedUsing() const
Determine whether the lookup results contain an unresolved using declaration.
Definition: ExprCXX.h:3900
clang::SizeOfPackExpr::isPartiallySubstituted
bool isPartiallySubstituted() const
Determine whether this represents a partially-substituted sizeof...
Definition: ExprCXX.h:4215
clang::SEHFinallyStmt
Definition: Stmt.h:3344
clang::CUDAKernelCallExpr
Represents a call to a CUDA kernel function.
Definition: ExprCXX.h:232
clang::serialization::EXPR_CXX_INHERITED_CTOR_INIT
@ EXPR_CXX_INHERITED_CTOR_INIT
A CXXInheritedCtorInitExpr record.
Definition: ASTBitCodes.h:1801
clang::OMPArrayShapingExpr::getDimensions
ArrayRef< Expr * > getDimensions() const
Fetches the dimensions for array shaping expression.
Definition: ExprOpenMP.h:204
clang::ObjCSelectorExpr::getSelector
Selector getSelector() const
Definition: ExprObjC.h:468
clang::ObjCMessageExpr::Instance
@ Instance
The receiver is an object instance.
Definition: ExprObjC.h:1091
clang::UnaryExprOrTypeTraitExpr::getKind
UnaryExprOrTypeTrait getKind() const
Definition: Expr.h:2569
clang::serialization::EXPR_MATERIALIZE_TEMPORARY
@ EXPR_MATERIALIZE_TEMPORARY
Definition: ASTBitCodes.h:1871
clang::CompoundLiteralExpr::getInitializer
const Expr * getInitializer() const
Definition: Expr.h:3420
clang::serialization::EXPR_RECOVERY
@ EXPR_RECOVERY
A RecoveryExpr record.
Definition: ASTBitCodes.h:1709
clang::DeclarationName::getNameKind
NameKind getNameKind() const
Determine what kind of name this is.
Definition: DeclarationName.h:384
clang::OMPSimdDirective
This represents '#pragma omp simd' directive.
Definition: StmtOpenMP.h:1502
clang::ChooseExpr::isConditionTrue
bool isConditionTrue() const
isConditionTrue - Return whether the condition is true (i.e.
Definition: Expr.h:4537
clang::ArraySubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: Expr.h:2681
clang::ObjCAvailabilityCheckExpr::getSourceRange
SourceRange getSourceRange() const
Definition: ExprObjC.h:1705
clang::OMPExecutableDirective::getBeginLoc
SourceLocation getBeginLoc() const
Returns starting location of directive kind.
Definition: StmtOpenMP.h:488
clang::UnaryOperator::getSubExpr
Expr * getSubExpr() const
Definition: Expr.h:2198
clang::OMPArraySectionExpr
OpenMP 5.0 [2.1.5, Array Sections].
Definition: ExprOpenMP.h:56
clang::ConceptSpecializationExpr::getTemplateArguments
ArrayRef< TemplateArgument > getTemplateArguments() const
Definition: ExprConcepts.h:94
clang::CXXDefaultArgExpr::getUsedLocation
SourceLocation getUsedLocation() const
Retrieve the location where this default argument was actually used.
Definition: ExprCXX.h:1287
clang
Definition: CalledOnceCheck.h:17
clang::CUDAKernelCallExpr::getConfig
const CallExpr * getConfig() const
Definition: ExprCXX.h:258
clang::StmtExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:4363
clang::ObjCIvarRefExpr::isArrow
bool isArrow() const
Definition: ExprObjC.h:584
clang::serialization::STMT_OMP_SECTIONS_DIRECTIVE
@ STMT_OMP_SECTIONS_DIRECTIVE
Definition: ASTBitCodes.h:1900
clang::ObjCPropertyRefExpr::getImplicitPropertyGetter
ObjCMethodDecl * getImplicitPropertyGetter() const
Definition: ExprObjC.h:708
clang::InitListExpr::getInitializedFieldInUnion
FieldDecl * getInitializedFieldInUnion()
If this initializes a union, specifies which field in the union to initialize.
Definition: Expr.h:4894
clang::serialization::EXPR_CXX_UUIDOF_EXPR
@ EXPR_CXX_UUIDOF_EXPR
Definition: ASTBitCodes.h:1885
clang::concepts::Requirement::SubstitutionDiagnostic::DiagMessage
StringRef DiagMessage
Definition: ExprConcepts.h:167
clang::ASTRecordWriter::AddTemplateArgument
void AddTemplateArgument(const TemplateArgument &Arg)
Emit a template argument.
Definition: ASTRecordWriter.h:252
clang::CXXNullPtrLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:773
clang::CXXUnresolvedConstructExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Retrieve the type source information for the type being constructed.
Definition: ExprCXX.h:3468
clang::OMPTargetTeamsDirective
This represents '#pragma omp target teams' directive.
Definition: StmtOpenMP.h:4646
clang::serialization::EXPR_COMPOUND_ASSIGN_OPERATOR
@ EXPR_COMPOUND_ASSIGN_OPERATOR
A CompoundAssignOperator record.
Definition: ASTBitCodes.h:1634
clang::serialization::EXPR_EXT_VECTOR_ELEMENT
@ EXPR_EXT_VECTOR_ELEMENT
An ExtVectorElementExpr record.
Definition: ASTBitCodes.h:1649
clang::ConceptSpecializationExpr::getSatisfaction
const ASTConstraintSatisfaction & getSatisfaction() const
Get elaborated satisfaction info about the template arguments' satisfaction of the named concept.
Definition: ExprConcepts.h:114
clang::PseudoObjectExpr::getResultExprIndex
unsigned getResultExprIndex() const
Return the index of the result-bearing expression into the semantics expressions, or PseudoObjectExpr...
Definition: Expr.h:6138
clang::Stmt
Stmt - This represents one statement.
Definition: Stmt.h:68
clang::SourceLocExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: Expr.h:4716
clang::OMPDistributeParallelForDirective
This represents '#pragma omp distribute parallel for' composite directive.
Definition: StmtOpenMP.h:3994
clang::GenericSelectionExpr::getGenericLoc
SourceLocation getGenericLoc() const
Definition: Expr.h:5864
clang::UnaryOperator::getOpcode
Opcode getOpcode() const
Definition: Expr.h:2193
clang::DefaultStmt
Definition: Stmt.h:1722
clang::OMPTaskLoopDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3505
clang::BinaryOperator::getRHS
Expr * getRHS() const
Definition: Expr.h:3848
clang::ObjCAutoreleasePoolStmt
Represents Objective-C's @autoreleasepool Statement.
Definition: StmtObjC.h:368
clang::CXXTemporaryObjectExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: ExprCXX.h:1826
clang::ShuffleVectorExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4405
clang::FPOptionsOverride::getAsOpaqueInt
storage_type getAsOpaqueInt() const
Definition: LangOptions.h:640
clang::MatrixSubscriptExpr::getColumnIdx
Expr * getColumnIdx()
Definition: Expr.h:2745
clang::CXXNewExpr::isParenTypeId
bool isParenTypeId() const
Definition: ExprCXX.h:2292
clang::CXXCatchStmt
CXXCatchStmt - This represents a C++ catch block.
Definition: StmtCXX.h:28
clang::ASTRecordWriter::AddCXXBaseSpecifier
void AddCXXBaseSpecifier(const CXXBaseSpecifier &Base)
Emit a C++ base specifier.
Definition: ASTWriter.cpp:5465
clang::ConditionalOperator::getCond
Expr * getCond() const
Definition: Expr.h:4158
clang::serialization::STMT_OMP_BARRIER_DIRECTIVE
@ STMT_OMP_BARRIER_DIRECTIVE
Definition: ASTBitCodes.h:1911
clang::OMPSectionsDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1782
clang::CXXNewExpr::isGlobalNew
bool isGlobalNew() const
Definition: ExprCXX.h:2298
clang::GenericSelectionExpr
Represents a C11 generic selection.
Definition: Expr.h:5617
clang::CXXScalarValueInitExpr
An expression "T()" which creates a value-initialized rvalue of type T, which is a non-class type.
Definition: ExprCXX.h:2093
clang::ChooseExpr::getRHS
Expr * getRHS() const
Definition: Expr.h:4558
clang::serialization::EXPR_ATOMIC
@ EXPR_ATOMIC
An AtomicExpr record.
Definition: ASTBitCodes.h:1706
clang::ObjCIsaExpr
ObjCIsaExpr - Represent X->isa and X.isa when X is an ObjC 'id' type.
Definition: ExprObjC.h:1482
clang::serialization::STMT_OMP_ATOMIC_DIRECTIVE
@ STMT_OMP_ATOMIC_DIRECTIVE
Definition: ASTBitCodes.h:1917
clang::serialization::EXPR_OBJC_STRING_LITERAL
@ EXPR_OBJC_STRING_LITERAL
An ObjCStringLiteral record.
Definition: ASTBitCodes.h:1714
clang::serialization::EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
Definition: ASTBitCodes.h:1868
clang::serialization::EXPR_FIXEDPOINT_LITERAL
@ EXPR_FIXEDPOINT_LITERAL
Definition: ASTBitCodes.h:1969
clang::OMPIteratorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprOpenMP.h:369
clang::ParenListExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:5572
clang::InitListExpr::getLBraceLoc
SourceLocation getLBraceLoc() const
Definition: Expr.h:4929
clang::Expr::getType
QualType getType() const
Definition: Expr.h:141
clang::OMPParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:2107
clang::serialization::EXPR_GNU_NULL
@ EXPR_GNU_NULL
A GNUNullExpr record.
Definition: ASTBitCodes.h:1685
clang::OMPCancelDirective::getCancelRegion
OpenMPDirectiveKind getCancelRegion() const
Get cancellation region for the current cancellation point.
Definition: StmtOpenMP.h:3432
clang::CXXBaseSpecifier
Represents a base class of a C++ class.
Definition: DeclCXX.h:147
clang::CXXDefaultArgExpr::getParam
const ParmVarDecl * getParam() const
Definition: ExprCXX.h:1276
clang::TypeSourceInfo
A container of type source information.
Definition: Type.h:6398
clang::CXXUuidofExpr::isTypeOperand
bool isTypeOperand() const
Definition: ExprCXX.h:1086
clang::CXXDependentScopeMemberExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: ExprCXX.h:3752
clang::NamedDecl::getDeclName
DeclarationName getDeclName() const
Get the actual, stored name of the declaration, which may be a special name.
Definition: Decl.h:313
clang::OMPUnrollDirective
This represents the '#pragma omp unroll' loop transformation directive.
Definition: StmtOpenMP.h:5076
clang::VAArgExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4650
clang::CXXNewExpr::getOperatorDelete
FunctionDecl * getOperatorDelete() const
Definition: ExprCXX.h:2259
clang::serialization::STMT_OMP_TASK_DIRECTIVE
@ STMT_OMP_TASK_DIRECTIVE
Definition: ASTBitCodes.h:1909
clang::serialization::EXPR_CXX_DEFAULT_ARG
@ EXPR_CXX_DEFAULT_ARG
Definition: ASTBitCodes.h:1841
clang::ObjCMessageExpr::getMethodDecl
const ObjCMethodDecl * getMethodDecl() const
Definition: ExprObjC.h:1346
clang::serialization::STMT_LABEL
@ STMT_LABEL
A LabelStmt record.
Definition: ASTBitCodes.h:1532
clang::AbstractConditionalOperator::getColonLoc
SourceLocation getColonLoc() const
Definition: Expr.h:4125
clang::CXXNamedCastExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Retrieve the location of the cast operator keyword, e.g., static_cast.
Definition: ExprCXX.h:404
clang::ObjCStringLiteral::getAtLoc
SourceLocation getAtLoc() const
Definition: ExprObjC.h:69
clang::CXXNewExpr::hasInitializer
bool hasInitializer() const
Whether this new-expression has any initializer at all.
Definition: ExprCXX.h:2301
clang::CXXNamedCastExpr
Abstract class common to all of the C++ "named"/"keyword" casts.
Definition: ExprCXX.h:373
clang::CXXPseudoDestructorExpr::getBase
Expr * getBase() const
Definition: ExprCXX.h:2560
clang::CXXDeleteExpr::getArgument
Expr * getArgument()
Definition: ExprCXX.h:2439
clang::serialization::STMT_OMP_SECTION_DIRECTIVE
@ STMT_OMP_SECTION_DIRECTIVE
Definition: ASTBitCodes.h:1901
clang::ObjCMessageExpr::arg_end
arg_iterator arg_end()
Definition: ExprObjC.h:1463
clang::ObjCMessageExpr::getClassReceiverTypeInfo
TypeSourceInfo * getClassReceiverTypeInfo() const
Returns a type-source information of a class message send, or nullptr if the message is not a class m...
Definition: ExprObjC.h:1278
clang::OMPTargetDirective
This represents '#pragma omp target' directive.
Definition: StmtOpenMP.h:2885
clang::ObjCSelectorExpr::getAtLoc
SourceLocation getAtLoc() const
Definition: ExprObjC.h:471
clang::OMPTargetUpdateDirective
This represents '#pragma omp target update' directive.
Definition: StmtOpenMP.h:3938
clang::ParenListExpr::exprs
ArrayRef< Expr * > exprs()
Definition: Expr.h:5567
clang::CXXFunctionalCastExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprCXX.h:1768
clang::OMPIteratorExpr::getAssignLoc
SourceLocation getAssignLoc(unsigned I) const
Gets the location of '=' for the given iterator definition.
Definition: Expr.cpp:4921
clang::CXXRewrittenBinaryOperator::isReversed
bool isReversed() const
Determine whether this expression was rewritten in reverse form.
Definition: ExprCXX.h:320
clang::SYCLUniqueStableNameExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo()
Definition: Expr.h:2061
clang::serialization::STMT_SEH_FINALLY
@ STMT_SEH_FINALLY
Definition: ASTBitCodes.h:1889
clang::FunctionParmPackExpr::end
iterator end() const
Definition: ExprCXX.h:4418
clang::ObjCBoolLiteralExpr::getValue
bool getValue() const
Definition: ExprObjC.h:101
clang::StringLiteral::getLength
unsigned getLength() const
Definition: Expr.h:1867
clang::CXXPseudoDestructorExpr::isArrow
bool isArrow() const
Determine whether this pseudo-destructor expression was written using an '->' (otherwise,...
Definition: ExprCXX.h:2580
clang::ImplicitCastExpr
ImplicitCastExpr - Allows us to explicitly represent implicit type conversions, which have no direct ...
Definition: Expr.h:3612
clang::VAArgExpr
Represents a call to the builtin function __builtin_va_arg.
Definition: Expr.h:4623
clang::OMPOrderedDirective
This represents '#pragma omp ordered' directive.
Definition: StmtOpenMP.h:2705
clang::SourceLocExpr
Represents a function call to one of __builtin_LINE(), __builtin_COLUMN(), __builtin_FUNCTION(),...
Definition: Expr.h:4672
clang::ASTTemplateKWAndArgsInfo::NumTemplateArgs
unsigned NumTemplateArgs
The number of template arguments in TemplateArgs.
Definition: TemplateBase.h:674
clang::serialization::STMT_OMP_MASTER_DIRECTIVE
@ STMT_OMP_MASTER_DIRECTIVE
Definition: ASTBitCodes.h:1903
clang::MemberExpr
MemberExpr - [C99 6.5.2.3] Structure and Union Members.
Definition: Expr.h:3156
clang::serialization::EXPR_OPAQUE_VALUE
@ EXPR_OPAQUE_VALUE
Definition: ASTBitCodes.h:1861
clang::ConceptReference::getNestedNameSpecifierLoc
const NestedNameSpecifierLoc & getNestedNameSpecifierLoc() const
Definition: ASTConcept.h:139
clang::serialization::STMT_OMP_TARGET_TEAMS_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DIRECTIVE
Definition: ASTBitCodes.h:1945
clang::ArrayTypeTraitExpr::getQueriedTypeSourceInfo
TypeSourceInfo * getQueriedTypeSourceInfo() const
Definition: ExprCXX.h:2796
clang::serialization::EXPR_OFFSETOF
@ EXPR_OFFSETOF
An OffsetOfExpr record.
Definition: ASTBitCodes.h:1613
clang::serialization::EXPR_OMP_ITERATOR
@ EXPR_OMP_ITERATOR
Definition: ASTBitCodes.h:1955
clang::OMPIteratorExpr::getHelper
OMPIteratorHelperData & getHelper(unsigned I)
Fetches helper data for the specified iteration space.
Definition: Expr.cpp:4943
clang::InitListExpr::getInit
const Expr * getInit(unsigned Init) const
Definition: Expr.h:4828
clang::serialization::STMT_OMP_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1905
clang::CXXDependentScopeMemberExpr::isArrow
bool isArrow() const
Determine whether this member expression used the '->' operator; otherwise, it used the '.
Definition: ExprCXX.h:3657
clang::DeclRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
If the name was qualified, retrieves the nested-name-specifier that precedes the name,...
Definition: Expr.h:1302
clang::serialization::EXPR_CHOOSE
@ EXPR_CHOOSE
A ChooseExpr record.
Definition: ASTBitCodes.h:1682
clang::serialization::EXPR_LAMBDA
@ EXPR_LAMBDA
Definition: ASTBitCodes.h:1961
clang::serialization::STMT_OMP_CANCELLATION_POINT_DIRECTIVE
@ STMT_OMP_CANCELLATION_POINT_DIRECTIVE
Definition: ASTBitCodes.h:1926
clang::serialization::EXPR_CONSTANT
@ EXPR_CONSTANT
A constant expression context.
Definition: ASTBitCodes.h:1580
clang::OMPDistributeSimdDirective
This represents '#pragma omp distribute simd' composite directive.
Definition: StmtOpenMP.h:4155
clang::ConceptReference::getConceptNameInfo
const DeclarationNameInfo & getConceptNameInfo() const
Definition: ASTConcept.h:143
clang::CXXDeleteExpr::isGlobalDelete
bool isGlobalDelete() const
Definition: ExprCXX.h:2423
clang::AtomicExpr::getNumSubExprs
static unsigned getNumSubExprs(AtomicOp Op)
Determine the number of arguments the specified atomic builtin should have.
Definition: Expr.cpp:4688
clang::AbstractConditionalOperator::getQuestionLoc
SourceLocation getQuestionLoc() const
Definition: Expr.h:4124
clang::serialization::STMT_SWITCH
@ STMT_SWITCH
A SwitchStmt record.
Definition: ASTBitCodes.h:1541
clang::serialization::EXPR_FLOATING_LITERAL
@ EXPR_FLOATING_LITERAL
A FloatingLiteral record.
Definition: ASTBitCodes.h:1592
clang::ObjCIvarRefExpr::getBase
const Expr * getBase() const
Definition: ExprObjC.h:580
clang::ObjCPropertyRefExpr::getLocation
SourceLocation getLocation() const
Definition: ExprObjC.h:759
clang::OMPDispatchDirective::getTargetCallLoc
SourceLocation getTargetCallLoc() const
Return location of target-call.
Definition: StmtOpenMP.h:5306
clang::OverloadExpr::getTrailingTemplateArgumentLoc
TemplateArgumentLoc * getTrailingTemplateArgumentLoc()
Return the optional template arguments.
Definition: ExprCXX.h:3980
clang::CXXConstructExpr::getArg
Expr * getArg(unsigned Arg)
Return the specified argument.
Definition: ExprCXX.h:1611
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1944
clang::serialization::EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
@ EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
Definition: ASTBitCodes.h:1884
clang::OMPParallelMasterTaskLoopSimdDirective
This represents '#pragma omp parallel master taskloop simd' directive.
Definition: StmtOpenMP.h:3807
clang::GNUNullExpr
GNUNullExpr - Implements the GNU __null extension, which is a name for a null pointer constant that h...
Definition: Expr.h:4589
clang::CXXStdInitializerListExpr
Implicit construction of a std::initializer_list<T> object from an array temporary within list-initia...
Definition: ExprCXX.h:791
clang::serialization::STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1936
clang::concepts::Requirement::RK_Nested
@ RK_Nested
Definition: ExprConcepts.h:153
clang::DeclRefExpr::refersToEnclosingVariableOrCapture
bool refersToEnclosingVariableOrCapture() const
Does this DeclRefExpr refer to an enclosing local or a captured variable?
Definition: Expr.h:1413
clang::ObjCMessageExpr::getNumArgs
unsigned getNumArgs() const
Return the number of actual arguments in this message, not counting the receiver.
Definition: ExprObjC.h:1372
clang::ObjCBridgedCastExpr::getBridgeKind
ObjCBridgeCastKind getBridgeKind() const
Determine which kind of bridge is being performed via this cast.
Definition: ExprObjC.h:1652
clang::SubstNonTypeTemplateParmPackExpr::getArgumentPack
TemplateArgument getArgumentPack() const
Retrieve the template argument pack containing the substituted template arguments.
Definition: ExprCXX.cpp:1592
clang::ObjCMessageExpr::getSuperType
QualType getSuperType() const
Retrieve the type referred to by 'super'.
Definition: ExprObjC.h:1326
clang::serialization::EXPR_DEPENDENT_COAWAIT
@ EXPR_DEPENDENT_COAWAIT
Definition: ASTBitCodes.h:1966
clang::ExprWithCleanups::cleanupsHaveSideEffects
bool cleanupsHaveSideEffects() const
Definition: ExprCXX.h:3382
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1942
clang::ObjCPropertyRefExpr::getClassReceiver
ObjCInterfaceDecl * getClassReceiver() const
Definition: ExprObjC.h:767
clang::serialization::EXPR_CXX_UUIDOF_TYPE
@ EXPR_CXX_UUIDOF_TYPE
Definition: ASTBitCodes.h:1886
clang::UnresolvedLookupExpr::isOverloaded
bool isOverloaded() const
True if this lookup is overloaded.
Definition: ExprCXX.h:3144
clang::Expr
This represents one expression.
Definition: Expr.h:109
clang::serialization::STMT_GOTO
@ STMT_GOTO
A GotoStmt record.
Definition: ASTBitCodes.h:1553
clang::serialization::EXPR_OBJC_SELECTOR_EXPR
@ EXPR_OBJC_SELECTOR_EXPR
An ObjCSelectorExpr record.
Definition: ASTBitCodes.h:1724
clang::DeclAccessPair::getDecl
NamedDecl * getDecl() const
Definition: DeclAccessPair.h:41
clang::CXXConstructExpr::isListInitialization
bool isListInitialization() const
Whether this constructor call was written as list-initialization.
Definition: ExprCXX.h:1551
clang::ObjCIvarRefExpr::isFreeIvar
bool isFreeIvar() const
Definition: ExprObjC.h:585
clang::serialization::EXPR_CXX_NEW
@ EXPR_CXX_NEW
Definition: ASTBitCodes.h:1846
clang::serialization::DESIG_ARRAY_RANGE
@ DESIG_ARRAY_RANGE
GNU array range designator.
Definition: ASTBitCodes.h:1989
clang::serialization::EXPR_TYPE_TRAIT
@ EXPR_TYPE_TRAIT
Definition: ASTBitCodes.h:1863
clang::ChooseExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4564
clang::serialization::STMT_OBJC_FINALLY
@ STMT_OBJC_FINALLY
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1757
clang::serialization::STMT_WHILE
@ STMT_WHILE
A WhileStmt record.
Definition: ASTBitCodes.h:1544
clang::FunctionParmPackExpr::getParameterPackLocation
SourceLocation getParameterPackLocation() const
Get the location of the parameter pack.
Definition: ExprCXX.h:4412
clang::CXXDeleteExpr::isArrayFormAsWritten
bool isArrayFormAsWritten() const
Definition: ExprCXX.h:2425
clang::OMPTargetDataDirective
This represents '#pragma omp target data' directive.
Definition: StmtOpenMP.h:2939
clang::CXXDefaultInitExpr
A use of a default initializer in a constructor or in aggregate initialization.
Definition: ExprCXX.h:1318
clang::serialization::STMT_OMP_FOR_DIRECTIVE
@ STMT_OMP_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1898
clang::ObjCDictionaryElement::Value
Expr * Value
The value of the dictionary element.
Definition: ExprObjC.h:268
Token.h
clang::ObjCBoxedExpr::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprObjC.h:162
clang::SYCLUniqueStableNameExpr::getRParenLocation
SourceLocation getRParenLocation() const
Definition: Expr.h:2075
clang::ObjCPropertyRefExpr::getSuperReceiverType
QualType getSuperReceiverType() const
Definition: ExprObjC.h:763
clang::serialization::EXPR_BINARY_CONDITIONAL_OPERATOR
@ EXPR_BINARY_CONDITIONAL_OPERATOR
Definition: ASTBitCodes.h:1862
clang::OMPTargetSimdDirective
This represents '#pragma omp target simd' directive.
Definition: StmtOpenMP.h:4288
clang::OMPParallelDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:673
clang::InitListExpr::hadArrayRangeDesignator
bool hadArrayRangeDesignator() const
Definition: Expr.h:4952
clang::concepts::Requirement::RK_Type
@ RK_Type
Definition: ExprConcepts.h:153
clang::ASTTemplateKWAndArgsInfo
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".
Definition: TemplateBase.h:660
clang::MemberExpr::getFoundDecl
DeclAccessPair getFoundDecl() const
Retrieves the declaration found by lookup.
Definition: Expr.h:3243
clang::ObjCBoxedExpr::getSubExpr
Expr * getSubExpr()
Definition: ExprObjC.h:144
clang::CastExpr
CastExpr - Base class for type casts, including both implicit casts (ImplicitCastExpr) and explicit c...
Definition: Expr.h:3467
clang::FixedPointLiteral::getLocation
SourceLocation getLocation() const
Retrieve the location of the literal.
Definition: Expr.h:1550
clang::ArrayTypeTraitExpr::getDimensionExpression
Expr * getDimensionExpression() const
Definition: ExprCXX.h:2800
clang::CXXThisExpr::isImplicit
bool isImplicit() const
Definition: ExprCXX.h:1159
clang::ASTConstraintSatisfaction::NumRecords
std::size_t NumRecords
Definition: ASTConcept.h:81
clang::serialization::DESIG_FIELD_DECL
@ DESIG_FIELD_DECL
Field designator where the field has been resolved to a declaration.
Definition: ASTBitCodes.h:1983
clang::Stmt::LambdaExprBits
LambdaExprBitfields LambdaExprBits
Definition: Stmt.h:1067
clang::MSAsmStmt
This represents a Microsoft inline-assembly statement extension.
Definition: Stmt.h:3196
clang::CXXDefaultInitExpr::getField
FieldDecl * getField()
Get the field whose initializer will be used.
Definition: ExprCXX.h:1342
clang::DeclRefExpr
A reference to a declared variable, function, enum, etc.
Definition: Expr.h:1211
clang::ASTWriter::AddToken
void AddToken(const Token &Tok, RecordDataImpl &Record)
Emit a token.
Definition: ASTWriter.cpp:4175
clang::AddrLabelExpr::getLabel
LabelDecl * getLabel() const
Definition: Expr.h:4317
clang::serialization::STMT_OMP_CRITICAL_DIRECTIVE
@ STMT_OMP_CRITICAL_DIRECTIVE
Definition: ASTBitCodes.h:1904
clang::OMPTaskLoopSimdDirective
This represents '#pragma omp taskloop simd' directive.
Definition: StmtOpenMP.h:3521
clang::OMPTargetParallelForDirective
This represents '#pragma omp target parallel for' directive.
Definition: StmtOpenMP.h:3182
clang::OMPArraySectionExpr::getColonLocSecond
SourceLocation getColonLocSecond() const
Definition: ExprOpenMP.h:121
clang::OMPIteratorExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprOpenMP.h:366
clang::CXXNoexceptExpr::getOperand
Expr * getOperand() const
Definition: ExprCXX.h:4014
clang::CallExpr
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition: Expr.h:2789
clang::OMPParallelSectionsDirective
This represents '#pragma omp parallel sections' directive.
Definition: StmtOpenMP.h:2253
clang::InitListExpr::getNumInits
unsigned getNumInits() const
Definition: Expr.h:4810
clang::CXXOperatorCallExpr
A call to an overloaded operator written using operator syntax.
Definition: ExprCXX.h:82
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_DIRECTIVE
Definition: ASTBitCodes.h:1941
clang::ShuffleVectorExpr
ShuffleVectorExpr - clang-specific builtin-in function __builtin_shufflevector.
Definition: Expr.h:4387
clang::ObjCIsaExpr::getBase
Expr * getBase() const
Definition: ExprObjC.h:1507
clang::OMPParallelMasterTaskLoopDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3790
clang::serialization::EXPR_COMPOUND_LITERAL
@ EXPR_COMPOUND_LITERAL
A CompoundLiteralExpr record.
Definition: ASTBitCodes.h:1646
clang::CXXConstructExpr
Represents a call to a C++ constructor.
Definition: ExprCXX.h:1460
clang::ObjCIvarRefExpr
ObjCIvarRefExpr - A reference to an ObjC instance variable.
Definition: ExprObjC.h:548
clang::CXXConstructExpr::getConstructionKind
ConstructionKind getConstructionKind() const
Determine whether this constructor is actually constructing a base class (rather than a complete obje...
Definition: ExprCXX.h:1580
clang::GenericSelectionExpr::getNumAssocs
unsigned getNumAssocs() const
The number of association expressions.
Definition: Expr.h:5783
clang::CXXNewExpr::raw_arg_begin
raw_arg_iterator raw_arg_begin()
Definition: ExprCXX.h:2367
clang::ASTRecordWriter::AddVersionTuple
void AddVersionTuple(const VersionTuple &Version)
Emit a version tuple.
Definition: ASTRecordWriter.h:292
clang::ConstantExpr::RSK_None
@ RSK_None
Definition: Expr.h:1032
clang::OMPAtomicDirective
This represents '#pragma omp atomic' directive.
Definition: StmtOpenMP.h:2759
clang::serialization::STMT_OMP_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1929
clang::CXXMemberCallExpr
Represents a call to a member function that may be written either with member call syntax (e....
Definition: ExprCXX.h:177
clang::ObjCIndirectCopyRestoreExpr::getSubExpr
Expr * getSubExpr()
Definition: ExprObjC.h:1589
clang::serialization::EXPR_CXX_THIS
@ EXPR_CXX_THIS
Definition: ASTBitCodes.h:1839
clang::serialization::EXPR_CXX_TEMPORARY_OBJECT
@ EXPR_CXX_TEMPORARY_OBJECT
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1804
clang::BinaryConditionalOperator::getOpaqueValue
OpaqueValueExpr * getOpaqueValue() const
getOpaqueValue - Return the opaque value placeholder.
Definition: Expr.h:4235
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1943
clang::OpaqueValueExpr::isUnique
bool isUnique() const
Definition: Expr.h:1181
clang::OMPSectionDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1842
clang::serialization::EXPR_USER_DEFINED_LITERAL
@ EXPR_USER_DEFINED_LITERAL
A UserDefinedLiteral record.
Definition: ASTBitCodes.h:1828
clang::ExplicitCastExpr
ExplicitCastExpr - An explicit cast written in the source code.
Definition: Expr.h:3689
clang::CXXConstructExpr::isElidable
bool isElidable() const
Whether this construction is elidable.
Definition: ExprCXX.h:1538
clang::DependentCoawaitExpr::getKeywordLoc
SourceLocation getKeywordLoc() const
Definition: ExprCXX.h:4831
clang::concepts::ExprRequirement::SS_ConstraintsNotSatisfied
@ SS_ConstraintsNotSatisfied
Definition: ExprConcepts.h:265
clang::CharacterLiteral::getKind
CharacterKind getKind() const
Definition: Expr.h:1599
clang::ReturnStmt
ReturnStmt - This represents a return, optionally of an expression: return; return 4;.
Definition: Stmt.h:2731
clang::CXXConstructExpr::isStdInitListInitialization
bool isStdInitListInitialization() const
Whether this constructor call was written as list-initialization, but was interpreted as forming a st...
Definition: ExprCXX.h:1562
clang::DependentCoawaitExpr::children
child_range children()
Definition: ExprCXX.h:4839
clang::DeclRefExpr::hasTemplateKWAndArgsInfo
bool hasTemplateKWAndArgsInfo() const
Definition: Expr.h:1330
clang::serialization::EXPR_ARRAY_INIT_LOOP
@ EXPR_ARRAY_INIT_LOOP
An ArrayInitLoopExpr record.
Definition: ASTBitCodes.h:1664
clang::LambdaExpr::capture_init_begin
capture_init_iterator capture_init_begin()
Retrieve the first initialization argument for this lambda expression (which initializes the first ca...
Definition: ExprCXX.h:1992
clang::GenericSelectionExpr::getDefaultLoc
SourceLocation getDefaultLoc() const
Definition: Expr.h:5867
clang::SEHLeaveStmt
Represents a __leave statement.
Definition: Stmt.h:3432
clang::serialization::EXPR_IMAGINARY_LITERAL
@ EXPR_IMAGINARY_LITERAL
An ImaginaryLiteral record.
Definition: ASTBitCodes.h:1595
clang::CoroutineSuspendExpr
Represents an expression that might suspend coroutine execution; either a co_await or co_yield expres...
Definition: ExprCXX.h:4681
clang::OMPTeamsDistributeParallelForSimdDirective
This represents '#pragma omp teams distribute parallel for simd' composite directive.
Definition: StmtOpenMP.h:4486
clang::ASTRecordWriter::AddTemplateArgumentLoc
void AddTemplateArgumentLoc(const TemplateArgumentLoc &Arg)
Emits a template argument location.
Definition: ASTWriter.cpp:5140
clang::OMPBarrierDirective
This represents '#pragma omp barrier' directive.
Definition: StmtOpenMP.h:2442
clang::serialization::STMT_REF_PTR
@ STMT_REF_PTR
A reference to a previously [de]serialized Stmt record.
Definition: ASTBitCodes.h:1517
clang::OMPArraySectionExpr::getColonLocFirst
SourceLocation getColonLocFirst() const
Definition: ExprOpenMP.h:118
clang::SYCLUniqueStableNameExpr
Definition: Expr.h:2044
clang::OffsetOfExpr::getRParenLoc
SourceLocation getRParenLoc() const
Return the location of the right parentheses.
Definition: Expr.h:2471
clang::ASTRecordWriter::AddString
void AddString(StringRef Str)
Emit a string.
Definition: ASTRecordWriter.h:282
clang::GenericSelectionExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:5868
clang::ExtVectorElementExpr::getAccessorLoc
SourceLocation getAccessorLoc() const
Definition: Expr.h:5923
clang::ObjCBridgedCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprObjC.h:1649
clang::serialization::EXPR_OBJC_SUBSCRIPT_REF_EXPR
@ EXPR_OBJC_SUBSCRIPT_REF_EXPR
An ObjCSubscriptRefExpr record.
Definition: ASTBitCodes.h:1736