clang  14.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(HasElse);
142  Record.push_back(HasVar);
143  Record.push_back(HasInit);
144  Record.push_back(static_cast<uint64_t>(S->getStatementKind()));
145  Record.AddStmt(S->getCond());
146  Record.AddStmt(S->getThen());
147  if (HasElse)
148  Record.AddStmt(S->getElse());
149  if (HasVar)
150  Record.AddDeclRef(S->getConditionVariable());
151  if (HasInit)
152  Record.AddStmt(S->getInit());
153 
154  Record.AddSourceLocation(S->getIfLoc());
155  Record.AddSourceLocation(S->getLParenLoc());
156  Record.AddSourceLocation(S->getRParenLoc());
157  if (HasElse)
158  Record.AddSourceLocation(S->getElseLoc());
159 
160  Code = serialization::STMT_IF;
161 }
162 
163 void ASTStmtWriter::VisitSwitchStmt(SwitchStmt *S) {
164  VisitStmt(S);
165 
166  bool HasInit = S->getInit() != nullptr;
167  bool HasVar = S->getConditionVariableDeclStmt() != nullptr;
168  Record.push_back(HasInit);
169  Record.push_back(HasVar);
170  Record.push_back(S->isAllEnumCasesCovered());
171 
172  Record.AddStmt(S->getCond());
173  Record.AddStmt(S->getBody());
174  if (HasInit)
175  Record.AddStmt(S->getInit());
176  if (HasVar)
177  Record.AddDeclRef(S->getConditionVariable());
178 
179  Record.AddSourceLocation(S->getSwitchLoc());
180  Record.AddSourceLocation(S->getLParenLoc());
181  Record.AddSourceLocation(S->getRParenLoc());
182 
183  for (SwitchCase *SC = S->getSwitchCaseList(); SC;
184  SC = SC->getNextSwitchCase())
185  Record.push_back(Writer.RecordSwitchCaseID(SC));
187 }
188 
189 void ASTStmtWriter::VisitWhileStmt(WhileStmt *S) {
190  VisitStmt(S);
191 
192  bool HasVar = S->getConditionVariableDeclStmt() != nullptr;
193  Record.push_back(HasVar);
194 
195  Record.AddStmt(S->getCond());
196  Record.AddStmt(S->getBody());
197  if (HasVar)
198  Record.AddDeclRef(S->getConditionVariable());
199 
200  Record.AddSourceLocation(S->getWhileLoc());
201  Record.AddSourceLocation(S->getLParenLoc());
202  Record.AddSourceLocation(S->getRParenLoc());
204 }
205 
206 void ASTStmtWriter::VisitDoStmt(DoStmt *S) {
207  VisitStmt(S);
208  Record.AddStmt(S->getCond());
209  Record.AddStmt(S->getBody());
210  Record.AddSourceLocation(S->getDoLoc());
211  Record.AddSourceLocation(S->getWhileLoc());
212  Record.AddSourceLocation(S->getRParenLoc());
213  Code = serialization::STMT_DO;
214 }
215 
216 void ASTStmtWriter::VisitForStmt(ForStmt *S) {
217  VisitStmt(S);
218  Record.AddStmt(S->getInit());
219  Record.AddStmt(S->getCond());
220  Record.AddDeclRef(S->getConditionVariable());
221  Record.AddStmt(S->getInc());
222  Record.AddStmt(S->getBody());
223  Record.AddSourceLocation(S->getForLoc());
224  Record.AddSourceLocation(S->getLParenLoc());
225  Record.AddSourceLocation(S->getRParenLoc());
227 }
228 
229 void ASTStmtWriter::VisitGotoStmt(GotoStmt *S) {
230  VisitStmt(S);
231  Record.AddDeclRef(S->getLabel());
232  Record.AddSourceLocation(S->getGotoLoc());
233  Record.AddSourceLocation(S->getLabelLoc());
235 }
236 
237 void ASTStmtWriter::VisitIndirectGotoStmt(IndirectGotoStmt *S) {
238  VisitStmt(S);
239  Record.AddSourceLocation(S->getGotoLoc());
240  Record.AddSourceLocation(S->getStarLoc());
241  Record.AddStmt(S->getTarget());
243 }
244 
245 void ASTStmtWriter::VisitContinueStmt(ContinueStmt *S) {
246  VisitStmt(S);
247  Record.AddSourceLocation(S->getContinueLoc());
249 }
250 
251 void ASTStmtWriter::VisitBreakStmt(BreakStmt *S) {
252  VisitStmt(S);
253  Record.AddSourceLocation(S->getBreakLoc());
255 }
256 
257 void ASTStmtWriter::VisitReturnStmt(ReturnStmt *S) {
258  VisitStmt(S);
259 
260  bool HasNRVOCandidate = S->getNRVOCandidate() != nullptr;
261  Record.push_back(HasNRVOCandidate);
262 
263  Record.AddStmt(S->getRetValue());
264  if (HasNRVOCandidate)
265  Record.AddDeclRef(S->getNRVOCandidate());
266 
267  Record.AddSourceLocation(S->getReturnLoc());
269 }
270 
271 void ASTStmtWriter::VisitDeclStmt(DeclStmt *S) {
272  VisitStmt(S);
273  Record.AddSourceLocation(S->getBeginLoc());
274  Record.AddSourceLocation(S->getEndLoc());
275  DeclGroupRef DG = S->getDeclGroup();
276  for (DeclGroupRef::iterator D = DG.begin(), DEnd = DG.end(); D != DEnd; ++D)
277  Record.AddDeclRef(*D);
279 }
280 
281 void ASTStmtWriter::VisitAsmStmt(AsmStmt *S) {
282  VisitStmt(S);
283  Record.push_back(S->getNumOutputs());
284  Record.push_back(S->getNumInputs());
285  Record.push_back(S->getNumClobbers());
286  Record.AddSourceLocation(S->getAsmLoc());
287  Record.push_back(S->isVolatile());
288  Record.push_back(S->isSimple());
289 }
290 
291 void ASTStmtWriter::VisitGCCAsmStmt(GCCAsmStmt *S) {
292  VisitAsmStmt(S);
293  Record.push_back(S->getNumLabels());
294  Record.AddSourceLocation(S->getRParenLoc());
295  Record.AddStmt(S->getAsmString());
296 
297  // Outputs
298  for (unsigned I = 0, N = S->getNumOutputs(); I != N; ++I) {
299  Record.AddIdentifierRef(S->getOutputIdentifier(I));
300  Record.AddStmt(S->getOutputConstraintLiteral(I));
301  Record.AddStmt(S->getOutputExpr(I));
302  }
303 
304  // Inputs
305  for (unsigned I = 0, N = S->getNumInputs(); I != N; ++I) {
306  Record.AddIdentifierRef(S->getInputIdentifier(I));
307  Record.AddStmt(S->getInputConstraintLiteral(I));
308  Record.AddStmt(S->getInputExpr(I));
309  }
310 
311  // Clobbers
312  for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I)
313  Record.AddStmt(S->getClobberStringLiteral(I));
314 
315  // Labels
316  for (auto *E : S->labels()) Record.AddStmt(E);
317 
319 }
320 
321 void ASTStmtWriter::VisitMSAsmStmt(MSAsmStmt *S) {
322  VisitAsmStmt(S);
323  Record.AddSourceLocation(S->getLBraceLoc());
324  Record.AddSourceLocation(S->getEndLoc());
325  Record.push_back(S->getNumAsmToks());
326  Record.AddString(S->getAsmString());
327 
328  // Tokens
329  for (unsigned I = 0, N = S->getNumAsmToks(); I != N; ++I) {
330  // FIXME: Move this to ASTRecordWriter?
331  Writer.AddToken(S->getAsmToks()[I], Record.getRecordData());
332  }
333 
334  // Clobbers
335  for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I) {
336  Record.AddString(S->getClobber(I));
337  }
338 
339  // Outputs
340  for (unsigned I = 0, N = S->getNumOutputs(); I != N; ++I) {
341  Record.AddStmt(S->getOutputExpr(I));
342  Record.AddString(S->getOutputConstraint(I));
343  }
344 
345  // Inputs
346  for (unsigned I = 0, N = S->getNumInputs(); I != N; ++I) {
347  Record.AddStmt(S->getInputExpr(I));
348  Record.AddString(S->getInputConstraint(I));
349  }
350 
352 }
353 
354 void ASTStmtWriter::VisitCoroutineBodyStmt(CoroutineBodyStmt *CoroStmt) {
355  VisitStmt(CoroStmt);
356  Record.push_back(CoroStmt->getParamMoves().size());
357  for (Stmt *S : CoroStmt->children())
358  Record.AddStmt(S);
360 }
361 
362 void ASTStmtWriter::VisitCoreturnStmt(CoreturnStmt *S) {
363  VisitStmt(S);
364  Record.AddSourceLocation(S->getKeywordLoc());
365  Record.AddStmt(S->getOperand());
366  Record.AddStmt(S->getPromiseCall());
367  Record.push_back(S->isImplicit());
369 }
370 
371 void ASTStmtWriter::VisitCoroutineSuspendExpr(CoroutineSuspendExpr *E) {
372  VisitExpr(E);
373  Record.AddSourceLocation(E->getKeywordLoc());
374  for (Stmt *S : E->children())
375  Record.AddStmt(S);
376  Record.AddStmt(E->getOpaqueValue());
377 }
378 
379 void ASTStmtWriter::VisitCoawaitExpr(CoawaitExpr *E) {
380  VisitCoroutineSuspendExpr(E);
381  Record.push_back(E->isImplicit());
383 }
384 
385 void ASTStmtWriter::VisitCoyieldExpr(CoyieldExpr *E) {
386  VisitCoroutineSuspendExpr(E);
388 }
389 
390 void ASTStmtWriter::VisitDependentCoawaitExpr(DependentCoawaitExpr *E) {
391  VisitExpr(E);
392  Record.AddSourceLocation(E->getKeywordLoc());
393  for (Stmt *S : E->children())
394  Record.AddStmt(S);
396 }
397 
398 static void
400  const ASTConstraintSatisfaction &Satisfaction) {
401  Record.push_back(Satisfaction.IsSatisfied);
402  if (!Satisfaction.IsSatisfied) {
403  Record.push_back(Satisfaction.NumRecords);
404  for (const auto &DetailRecord : Satisfaction) {
405  Record.AddStmt(const_cast<Expr *>(DetailRecord.first));
406  auto *E = DetailRecord.second.dyn_cast<Expr *>();
407  Record.push_back(E == nullptr);
408  if (E)
409  Record.AddStmt(E);
410  else {
411  auto *Diag = DetailRecord.second.get<std::pair<SourceLocation,
412  StringRef> *>();
413  Record.AddSourceLocation(Diag->first);
414  Record.AddString(Diag->second);
415  }
416  }
417  }
418 }
419 
420 static void
422  ASTRecordWriter &Record,
424  Record.AddString(D->SubstitutedEntity);
425  Record.AddSourceLocation(D->DiagLoc);
426  Record.AddString(D->DiagMessage);
427 }
428 
429 void ASTStmtWriter::VisitConceptSpecializationExpr(
431  VisitExpr(E);
433  Record.push_back(TemplateArgs.size());
435  Record.AddSourceLocation(E->getTemplateKWLoc());
437  Record.AddDeclRef(E->getNamedConcept());
438  Record.AddDeclRef(E->getFoundDecl());
440  for (const TemplateArgument &Arg : TemplateArgs)
441  Record.AddTemplateArgument(Arg);
442  if (!E->isValueDependent())
444 
446 }
447 
448 void ASTStmtWriter::VisitRequiresExpr(RequiresExpr *E) {
449  VisitExpr(E);
450  Record.push_back(E->getLocalParameters().size());
451  Record.push_back(E->getRequirements().size());
452  Record.AddSourceLocation(E->RequiresExprBits.RequiresKWLoc);
453  Record.push_back(E->RequiresExprBits.IsSatisfied);
454  Record.AddDeclRef(E->getBody());
455  for (ParmVarDecl *P : E->getLocalParameters())
456  Record.AddDeclRef(P);
457  for (concepts::Requirement *R : E->getRequirements()) {
458  if (auto *TypeReq = dyn_cast<concepts::TypeRequirement>(R)) {
460  Record.push_back(TypeReq->Status);
462  addSubstitutionDiagnostic(Record, TypeReq->getSubstitutionDiagnostic());
463  else
464  Record.AddTypeSourceInfo(TypeReq->getType());
465  } else if (auto *ExprReq = dyn_cast<concepts::ExprRequirement>(R)) {
466  Record.push_back(ExprReq->getKind());
467  Record.push_back(ExprReq->Status);
468  if (ExprReq->isExprSubstitutionFailure()) {
470  ExprReq->Value.get<concepts::Requirement::SubstitutionDiagnostic *>());
471  } else
472  Record.AddStmt(ExprReq->Value.get<Expr *>());
473  if (ExprReq->getKind() == concepts::Requirement::RK_Compound) {
474  Record.AddSourceLocation(ExprReq->NoexceptLoc);
475  const auto &RetReq = ExprReq->getReturnTypeRequirement();
476  if (RetReq.isSubstitutionFailure()) {
477  Record.push_back(2);
478  addSubstitutionDiagnostic(Record, RetReq.getSubstitutionDiagnostic());
479  } else if (RetReq.isTypeConstraint()) {
480  Record.push_back(1);
482  RetReq.getTypeConstraintTemplateParameterList());
483  if (ExprReq->Status >=
485  Record.AddStmt(
486  ExprReq->getReturnTypeRequirementSubstitutedConstraintExpr());
487  } else {
488  assert(RetReq.isEmpty());
489  Record.push_back(0);
490  }
491  }
492  } else {
493  auto *NestedReq = cast<concepts::NestedRequirement>(R);
495  Record.push_back(NestedReq->isSubstitutionFailure());
496  if (NestedReq->isSubstitutionFailure()){
498  NestedReq->getSubstitutionDiagnostic());
499  } else {
500  Record.AddStmt(NestedReq->Value.get<Expr *>());
501  if (!NestedReq->isDependent())
502  addConstraintSatisfaction(Record, *NestedReq->Satisfaction);
503  }
504  }
505  }
506  Record.AddSourceLocation(E->getEndLoc());
507 
509 }
510 
511 
512 void ASTStmtWriter::VisitCapturedStmt(CapturedStmt *S) {
513  VisitStmt(S);
514  // NumCaptures
515  Record.push_back(std::distance(S->capture_begin(), S->capture_end()));
516 
517  // CapturedDecl and captured region kind
518  Record.AddDeclRef(S->getCapturedDecl());
519  Record.push_back(S->getCapturedRegionKind());
520 
521  Record.AddDeclRef(S->getCapturedRecordDecl());
522 
523  // Capture inits
524  for (auto *I : S->capture_inits())
525  Record.AddStmt(I);
526 
527  // Body
528  Record.AddStmt(S->getCapturedStmt());
529 
530  // Captures
531  for (const auto &I : S->captures()) {
532  if (I.capturesThis() || I.capturesVariableArrayType())
533  Record.AddDeclRef(nullptr);
534  else
535  Record.AddDeclRef(I.getCapturedVar());
536  Record.push_back(I.getCaptureKind());
537  Record.AddSourceLocation(I.getLocation());
538  }
539 
541 }
542 
543 void ASTStmtWriter::VisitExpr(Expr *E) {
544  VisitStmt(E);
545  Record.AddTypeRef(E->getType());
546  Record.push_back(E->isTypeDependent());
547  Record.push_back(E->isValueDependent());
548  Record.push_back(E->isInstantiationDependent());
550  Record.push_back(E->containsErrors());
551  Record.push_back(E->getValueKind());
552  Record.push_back(E->getObjectKind());
553 }
554 
555 void ASTStmtWriter::VisitConstantExpr(ConstantExpr *E) {
556  VisitExpr(E);
557  Record.push_back(E->ConstantExprBits.ResultKind);
558 
559  Record.push_back(E->ConstantExprBits.APValueKind);
560  Record.push_back(E->ConstantExprBits.IsUnsigned);
561  Record.push_back(E->ConstantExprBits.BitWidth);
562  // HasCleanup not serialized since we can just query the APValue.
563  Record.push_back(E->ConstantExprBits.IsImmediateInvocation);
564 
565  switch (E->ConstantExprBits.ResultKind) {
567  break;
569  Record.push_back(E->Int64Result());
570  break;
572  Record.AddAPValue(E->APValueResult());
573  break;
574  default:
575  llvm_unreachable("unexpected ResultKind!");
576  }
577 
578  Record.AddStmt(E->getSubExpr());
580 }
581 
582 void ASTStmtWriter::VisitSYCLUniqueStableNameExpr(SYCLUniqueStableNameExpr *E) {
583  VisitExpr(E);
584 
585  Record.AddSourceLocation(E->getLocation());
589 
591 }
592 
593 void ASTStmtWriter::VisitPredefinedExpr(PredefinedExpr *E) {
594  VisitExpr(E);
595 
596  bool HasFunctionName = E->getFunctionName() != nullptr;
597  Record.push_back(HasFunctionName);
598  Record.push_back(E->getIdentKind()); // FIXME: stable encoding
599  Record.AddSourceLocation(E->getLocation());
600  if (HasFunctionName)
601  Record.AddStmt(E->getFunctionName());
603 }
604 
605 void ASTStmtWriter::VisitDeclRefExpr(DeclRefExpr *E) {
606  VisitExpr(E);
607 
608  Record.push_back(E->hasQualifier());
609  Record.push_back(E->getDecl() != E->getFoundDecl());
610  Record.push_back(E->hasTemplateKWAndArgsInfo());
611  Record.push_back(E->hadMultipleCandidates());
613  Record.push_back(E->isNonOdrUse());
614 
615  if (E->hasTemplateKWAndArgsInfo()) {
616  unsigned NumTemplateArgs = E->getNumTemplateArgs();
617  Record.push_back(NumTemplateArgs);
618  }
619 
621 
622  if ((!E->hasTemplateKWAndArgsInfo()) && (!E->hasQualifier()) &&
623  (E->getDecl() == E->getFoundDecl()) &&
626  AbbrevToUse = Writer.getDeclRefExprAbbrev();
627  }
628 
629  if (E->hasQualifier())
631 
632  if (E->getDecl() != E->getFoundDecl())
633  Record.AddDeclRef(E->getFoundDecl());
634 
635  if (E->hasTemplateKWAndArgsInfo())
636  AddTemplateKWAndArgsInfo(*E->getTrailingObjects<ASTTemplateKWAndArgsInfo>(),
637  E->getTrailingObjects<TemplateArgumentLoc>());
638 
639  Record.AddDeclRef(E->getDecl());
640  Record.AddSourceLocation(E->getLocation());
641  Record.AddDeclarationNameLoc(E->DNLoc, E->getDecl()->getDeclName());
643 }
644 
645 void ASTStmtWriter::VisitIntegerLiteral(IntegerLiteral *E) {
646  VisitExpr(E);
647  Record.AddSourceLocation(E->getLocation());
648  Record.AddAPInt(E->getValue());
649 
650  if (E->getValue().getBitWidth() == 32) {
651  AbbrevToUse = Writer.getIntegerLiteralAbbrev();
652  }
653 
655 }
656 
657 void ASTStmtWriter::VisitFixedPointLiteral(FixedPointLiteral *E) {
658  VisitExpr(E);
659  Record.AddSourceLocation(E->getLocation());
660  Record.push_back(E->getScale());
661  Record.AddAPInt(E->getValue());
663 }
664 
665 void ASTStmtWriter::VisitFloatingLiteral(FloatingLiteral *E) {
666  VisitExpr(E);
667  Record.push_back(E->getRawSemantics());
668  Record.push_back(E->isExact());
669  Record.AddAPFloat(E->getValue());
670  Record.AddSourceLocation(E->getLocation());
672 }
673 
674 void ASTStmtWriter::VisitImaginaryLiteral(ImaginaryLiteral *E) {
675  VisitExpr(E);
676  Record.AddStmt(E->getSubExpr());
678 }
679 
680 void ASTStmtWriter::VisitStringLiteral(StringLiteral *E) {
681  VisitExpr(E);
682 
683  // Store the various bits of data of StringLiteral.
684  Record.push_back(E->getNumConcatenated());
685  Record.push_back(E->getLength());
686  Record.push_back(E->getCharByteWidth());
687  Record.push_back(E->getKind());
688  Record.push_back(E->isPascal());
689 
690  // Store the trailing array of SourceLocation.
691  for (unsigned I = 0, N = E->getNumConcatenated(); I != N; ++I)
692  Record.AddSourceLocation(E->getStrTokenLoc(I));
693 
694  // Store the trailing array of char holding the string data.
695  StringRef StrData = E->getBytes();
696  for (unsigned I = 0, N = E->getByteLength(); I != N; ++I)
697  Record.push_back(StrData[I]);
698 
700 }
701 
702 void ASTStmtWriter::VisitCharacterLiteral(CharacterLiteral *E) {
703  VisitExpr(E);
704  Record.push_back(E->getValue());
705  Record.AddSourceLocation(E->getLocation());
706  Record.push_back(E->getKind());
707 
708  AbbrevToUse = Writer.getCharacterLiteralAbbrev();
709 
711 }
712 
713 void ASTStmtWriter::VisitParenExpr(ParenExpr *E) {
714  VisitExpr(E);
715  Record.AddSourceLocation(E->getLParen());
716  Record.AddSourceLocation(E->getRParen());
717  Record.AddStmt(E->getSubExpr());
719 }
720 
721 void ASTStmtWriter::VisitParenListExpr(ParenListExpr *E) {
722  VisitExpr(E);
723  Record.push_back(E->getNumExprs());
724  for (auto *SubStmt : E->exprs())
725  Record.AddStmt(SubStmt);
726  Record.AddSourceLocation(E->getLParenLoc());
727  Record.AddSourceLocation(E->getRParenLoc());
729 }
730 
731 void ASTStmtWriter::VisitUnaryOperator(UnaryOperator *E) {
732  VisitExpr(E);
733  bool HasFPFeatures = E->hasStoredFPFeatures();
734  // Write this first for easy access when deserializing, as they affect the
735  // size of the UnaryOperator.
736  Record.push_back(HasFPFeatures);
737  Record.AddStmt(E->getSubExpr());
738  Record.push_back(E->getOpcode()); // FIXME: stable encoding
739  Record.AddSourceLocation(E->getOperatorLoc());
740  Record.push_back(E->canOverflow());
741  if (HasFPFeatures)
744 }
745 
746 void ASTStmtWriter::VisitOffsetOfExpr(OffsetOfExpr *E) {
747  VisitExpr(E);
748  Record.push_back(E->getNumComponents());
749  Record.push_back(E->getNumExpressions());
750  Record.AddSourceLocation(E->getOperatorLoc());
751  Record.AddSourceLocation(E->getRParenLoc());
753  for (unsigned I = 0, N = E->getNumComponents(); I != N; ++I) {
754  const OffsetOfNode &ON = E->getComponent(I);
755  Record.push_back(ON.getKind()); // FIXME: Stable encoding
757  Record.AddSourceLocation(ON.getSourceRange().getEnd());
758  switch (ON.getKind()) {
759  case OffsetOfNode::Array:
760  Record.push_back(ON.getArrayExprIndex());
761  break;
762 
763  case OffsetOfNode::Field:
764  Record.AddDeclRef(ON.getField());
765  break;
766 
768  Record.AddIdentifierRef(ON.getFieldName());
769  break;
770 
771  case OffsetOfNode::Base:
772  Record.AddCXXBaseSpecifier(*ON.getBase());
773  break;
774  }
775  }
776  for (unsigned I = 0, N = E->getNumExpressions(); I != N; ++I)
777  Record.AddStmt(E->getIndexExpr(I));
779 }
780 
781 void ASTStmtWriter::VisitUnaryExprOrTypeTraitExpr(UnaryExprOrTypeTraitExpr *E) {
782  VisitExpr(E);
783  Record.push_back(E->getKind());
784  if (E->isArgumentType())
786  else {
787  Record.push_back(0);
788  Record.AddStmt(E->getArgumentExpr());
789  }
790  Record.AddSourceLocation(E->getOperatorLoc());
791  Record.AddSourceLocation(E->getRParenLoc());
793 }
794 
795 void ASTStmtWriter::VisitArraySubscriptExpr(ArraySubscriptExpr *E) {
796  VisitExpr(E);
797  Record.AddStmt(E->getLHS());
798  Record.AddStmt(E->getRHS());
799  Record.AddSourceLocation(E->getRBracketLoc());
801 }
802 
803 void ASTStmtWriter::VisitMatrixSubscriptExpr(MatrixSubscriptExpr *E) {
804  VisitExpr(E);
805  Record.AddStmt(E->getBase());
806  Record.AddStmt(E->getRowIdx());
807  Record.AddStmt(E->getColumnIdx());
808  Record.AddSourceLocation(E->getRBracketLoc());
810 }
811 
812 void ASTStmtWriter::VisitOMPArraySectionExpr(OMPArraySectionExpr *E) {
813  VisitExpr(E);
814  Record.AddStmt(E->getBase());
815  Record.AddStmt(E->getLowerBound());
816  Record.AddStmt(E->getLength());
817  Record.AddStmt(E->getStride());
818  Record.AddSourceLocation(E->getColonLocFirst());
820  Record.AddSourceLocation(E->getRBracketLoc());
822 }
823 
824 void ASTStmtWriter::VisitOMPArrayShapingExpr(OMPArrayShapingExpr *E) {
825  VisitExpr(E);
826  Record.push_back(E->getDimensions().size());
827  Record.AddStmt(E->getBase());
828  for (Expr *Dim : E->getDimensions())
829  Record.AddStmt(Dim);
830  for (SourceRange SR : E->getBracketsRanges())
831  Record.AddSourceRange(SR);
832  Record.AddSourceLocation(E->getLParenLoc());
833  Record.AddSourceLocation(E->getRParenLoc());
835 }
836 
837 void ASTStmtWriter::VisitOMPIteratorExpr(OMPIteratorExpr *E) {
838  VisitExpr(E);
839  Record.push_back(E->numOfIterators());
840  Record.AddSourceLocation(E->getIteratorKwLoc());
841  Record.AddSourceLocation(E->getLParenLoc());
842  Record.AddSourceLocation(E->getRParenLoc());
843  for (unsigned I = 0, End = E->numOfIterators(); I < End; ++I) {
844  Record.AddDeclRef(E->getIteratorDecl(I));
845  Record.AddSourceLocation(E->getAssignLoc(I));
847  Record.AddStmt(Range.Begin);
848  Record.AddStmt(Range.End);
849  Record.AddStmt(Range.Step);
850  Record.AddSourceLocation(E->getColonLoc(I));
851  if (Range.Step)
852  Record.AddSourceLocation(E->getSecondColonLoc(I));
853  // Serialize helpers
854  OMPIteratorHelperData &HD = E->getHelper(I);
855  Record.AddDeclRef(HD.CounterVD);
856  Record.AddStmt(HD.Upper);
857  Record.AddStmt(HD.Update);
858  Record.AddStmt(HD.CounterUpdate);
859  }
861 }
862 
863 void ASTStmtWriter::VisitCallExpr(CallExpr *E) {
864  VisitExpr(E);
865  Record.push_back(E->getNumArgs());
866  Record.push_back(E->hasStoredFPFeatures());
867  Record.AddSourceLocation(E->getRParenLoc());
868  Record.AddStmt(E->getCallee());
869  for (CallExpr::arg_iterator Arg = E->arg_begin(), ArgEnd = E->arg_end();
870  Arg != ArgEnd; ++Arg)
871  Record.AddStmt(*Arg);
872  Record.push_back(static_cast<unsigned>(E->getADLCallKind()));
873  if (E->hasStoredFPFeatures())
874  Record.push_back(E->getFPFeatures().getAsOpaqueInt());
876 }
877 
878 void ASTStmtWriter::VisitRecoveryExpr(RecoveryExpr *E) {
879  VisitExpr(E);
880  Record.push_back(std::distance(E->children().begin(), E->children().end()));
881  Record.AddSourceLocation(E->getBeginLoc());
882  Record.AddSourceLocation(E->getEndLoc());
883  for (Stmt *Child : E->children())
884  Record.AddStmt(Child);
886 }
887 
888 void ASTStmtWriter::VisitMemberExpr(MemberExpr *E) {
889  VisitExpr(E);
890 
891  bool HasQualifier = E->hasQualifier();
892  bool HasFoundDecl =
893  E->hasQualifierOrFoundDecl() &&
894  (E->getFoundDecl().getDecl() != E->getMemberDecl() ||
895  E->getFoundDecl().getAccess() != E->getMemberDecl()->getAccess());
896  bool HasTemplateInfo = E->hasTemplateKWAndArgsInfo();
897  unsigned NumTemplateArgs = E->getNumTemplateArgs();
898 
899  // Write these first for easy access when deserializing, as they affect the
900  // size of the MemberExpr.
901  Record.push_back(HasQualifier);
902  Record.push_back(HasFoundDecl);
903  Record.push_back(HasTemplateInfo);
904  Record.push_back(NumTemplateArgs);
905 
906  Record.AddStmt(E->getBase());
907  Record.AddDeclRef(E->getMemberDecl());
908  Record.AddDeclarationNameLoc(E->MemberDNLoc,
909  E->getMemberDecl()->getDeclName());
910  Record.AddSourceLocation(E->getMemberLoc());
911  Record.push_back(E->isArrow());
912  Record.push_back(E->hadMultipleCandidates());
913  Record.push_back(E->isNonOdrUse());
914  Record.AddSourceLocation(E->getOperatorLoc());
915 
916  if (HasFoundDecl) {
917  DeclAccessPair FoundDecl = E->getFoundDecl();
918  Record.AddDeclRef(FoundDecl.getDecl());
919  Record.push_back(FoundDecl.getAccess());
920  }
921 
922  if (HasQualifier)
924 
925  if (HasTemplateInfo)
926  AddTemplateKWAndArgsInfo(*E->getTrailingObjects<ASTTemplateKWAndArgsInfo>(),
927  E->getTrailingObjects<TemplateArgumentLoc>());
928 
930 }
931 
932 void ASTStmtWriter::VisitObjCIsaExpr(ObjCIsaExpr *E) {
933  VisitExpr(E);
934  Record.AddStmt(E->getBase());
935  Record.AddSourceLocation(E->getIsaMemberLoc());
936  Record.AddSourceLocation(E->getOpLoc());
937  Record.push_back(E->isArrow());
939 }
940 
941 void ASTStmtWriter::
942 VisitObjCIndirectCopyRestoreExpr(ObjCIndirectCopyRestoreExpr *E) {
943  VisitExpr(E);
944  Record.AddStmt(E->getSubExpr());
945  Record.push_back(E->shouldCopy());
947 }
948 
949 void ASTStmtWriter::VisitObjCBridgedCastExpr(ObjCBridgedCastExpr *E) {
950  VisitExplicitCastExpr(E);
951  Record.AddSourceLocation(E->getLParenLoc());
953  Record.push_back(E->getBridgeKind()); // FIXME: Stable encoding
955 }
956 
957 void ASTStmtWriter::VisitCastExpr(CastExpr *E) {
958  VisitExpr(E);
959  Record.push_back(E->path_size());
960  Record.push_back(E->hasStoredFPFeatures());
961  Record.AddStmt(E->getSubExpr());
962  Record.push_back(E->getCastKind()); // FIXME: stable encoding
963 
965  PI = E->path_begin(), PE = E->path_end(); PI != PE; ++PI)
966  Record.AddCXXBaseSpecifier(**PI);
967 
968  if (E->hasStoredFPFeatures())
969  Record.push_back(E->getFPFeatures().getAsOpaqueInt());
970 }
971 
972 void ASTStmtWriter::VisitBinaryOperator(BinaryOperator *E) {
973  VisitExpr(E);
974  bool HasFPFeatures = E->hasStoredFPFeatures();
975  // Write this first for easy access when deserializing, as they affect the
976  // size of the UnaryOperator.
977  Record.push_back(HasFPFeatures);
978  Record.push_back(E->getOpcode()); // FIXME: stable encoding
979  Record.AddStmt(E->getLHS());
980  Record.AddStmt(E->getRHS());
981  Record.AddSourceLocation(E->getOperatorLoc());
982  if (HasFPFeatures)
985 }
986 
987 void ASTStmtWriter::VisitCompoundAssignOperator(CompoundAssignOperator *E) {
988  VisitBinaryOperator(E);
989  Record.AddTypeRef(E->getComputationLHSType());
992 }
993 
994 void ASTStmtWriter::VisitConditionalOperator(ConditionalOperator *E) {
995  VisitExpr(E);
996  Record.AddStmt(E->getCond());
997  Record.AddStmt(E->getLHS());
998  Record.AddStmt(E->getRHS());
999  Record.AddSourceLocation(E->getQuestionLoc());
1000  Record.AddSourceLocation(E->getColonLoc());
1002 }
1003 
1004 void
1005 ASTStmtWriter::VisitBinaryConditionalOperator(BinaryConditionalOperator *E) {
1006  VisitExpr(E);
1007  Record.AddStmt(E->getOpaqueValue());
1008  Record.AddStmt(E->getCommon());
1009  Record.AddStmt(E->getCond());
1010  Record.AddStmt(E->getTrueExpr());
1011  Record.AddStmt(E->getFalseExpr());
1012  Record.AddSourceLocation(E->getQuestionLoc());
1013  Record.AddSourceLocation(E->getColonLoc());
1015 }
1016 
1017 void ASTStmtWriter::VisitImplicitCastExpr(ImplicitCastExpr *E) {
1018  VisitCastExpr(E);
1019  Record.push_back(E->isPartOfExplicitCast());
1020 
1021  if (E->path_size() == 0 && !E->hasStoredFPFeatures())
1022  AbbrevToUse = Writer.getExprImplicitCastAbbrev();
1023 
1025 }
1026 
1027 void ASTStmtWriter::VisitExplicitCastExpr(ExplicitCastExpr *E) {
1028  VisitCastExpr(E);
1030 }
1031 
1032 void ASTStmtWriter::VisitCStyleCastExpr(CStyleCastExpr *E) {
1033  VisitExplicitCastExpr(E);
1034  Record.AddSourceLocation(E->getLParenLoc());
1035  Record.AddSourceLocation(E->getRParenLoc());
1037 }
1038 
1039 void ASTStmtWriter::VisitCompoundLiteralExpr(CompoundLiteralExpr *E) {
1040  VisitExpr(E);
1041  Record.AddSourceLocation(E->getLParenLoc());
1042  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1043  Record.AddStmt(E->getInitializer());
1044  Record.push_back(E->isFileScope());
1046 }
1047 
1048 void ASTStmtWriter::VisitExtVectorElementExpr(ExtVectorElementExpr *E) {
1049  VisitExpr(E);
1050  Record.AddStmt(E->getBase());
1051  Record.AddIdentifierRef(&E->getAccessor());
1052  Record.AddSourceLocation(E->getAccessorLoc());
1054 }
1055 
1056 void ASTStmtWriter::VisitInitListExpr(InitListExpr *E) {
1057  VisitExpr(E);
1058  // NOTE: only add the (possibly null) syntactic form.
1059  // No need to serialize the isSemanticForm flag and the semantic form.
1060  Record.AddStmt(E->getSyntacticForm());
1061  Record.AddSourceLocation(E->getLBraceLoc());
1062  Record.AddSourceLocation(E->getRBraceLoc());
1063  bool isArrayFiller = E->ArrayFillerOrUnionFieldInit.is<Expr*>();
1064  Record.push_back(isArrayFiller);
1065  if (isArrayFiller)
1066  Record.AddStmt(E->getArrayFiller());
1067  else
1069  Record.push_back(E->hadArrayRangeDesignator());
1070  Record.push_back(E->getNumInits());
1071  if (isArrayFiller) {
1072  // ArrayFiller may have filled "holes" due to designated initializer.
1073  // Replace them by 0 to indicate that the filler goes in that place.
1074  Expr *filler = E->getArrayFiller();
1075  for (unsigned I = 0, N = E->getNumInits(); I != N; ++I)
1076  Record.AddStmt(E->getInit(I) != filler ? E->getInit(I) : nullptr);
1077  } else {
1078  for (unsigned I = 0, N = E->getNumInits(); I != N; ++I)
1079  Record.AddStmt(E->getInit(I));
1080  }
1082 }
1083 
1084 void ASTStmtWriter::VisitDesignatedInitExpr(DesignatedInitExpr *E) {
1085  VisitExpr(E);
1086  Record.push_back(E->getNumSubExprs());
1087  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1088  Record.AddStmt(E->getSubExpr(I));
1090  Record.push_back(E->usesGNUSyntax());
1091  for (const DesignatedInitExpr::Designator &D : E->designators()) {
1092  if (D.isFieldDesignator()) {
1093  if (FieldDecl *Field = D.getField()) {
1095  Record.AddDeclRef(Field);
1096  } else {
1098  Record.AddIdentifierRef(D.getFieldName());
1099  }
1100  Record.AddSourceLocation(D.getDotLoc());
1101  Record.AddSourceLocation(D.getFieldLoc());
1102  } else if (D.isArrayDesignator()) {
1104  Record.push_back(D.getFirstExprIndex());
1105  Record.AddSourceLocation(D.getLBracketLoc());
1106  Record.AddSourceLocation(D.getRBracketLoc());
1107  } else {
1108  assert(D.isArrayRangeDesignator() && "Unknown designator");
1110  Record.push_back(D.getFirstExprIndex());
1111  Record.AddSourceLocation(D.getLBracketLoc());
1112  Record.AddSourceLocation(D.getEllipsisLoc());
1113  Record.AddSourceLocation(D.getRBracketLoc());
1114  }
1115  }
1117 }
1118 
1119 void ASTStmtWriter::VisitDesignatedInitUpdateExpr(DesignatedInitUpdateExpr *E) {
1120  VisitExpr(E);
1121  Record.AddStmt(E->getBase());
1122  Record.AddStmt(E->getUpdater());
1124 }
1125 
1126 void ASTStmtWriter::VisitNoInitExpr(NoInitExpr *E) {
1127  VisitExpr(E);
1129 }
1130 
1131 void ASTStmtWriter::VisitArrayInitLoopExpr(ArrayInitLoopExpr *E) {
1132  VisitExpr(E);
1133  Record.AddStmt(E->SubExprs[0]);
1134  Record.AddStmt(E->SubExprs[1]);
1136 }
1137 
1138 void ASTStmtWriter::VisitArrayInitIndexExpr(ArrayInitIndexExpr *E) {
1139  VisitExpr(E);
1141 }
1142 
1143 void ASTStmtWriter::VisitImplicitValueInitExpr(ImplicitValueInitExpr *E) {
1144  VisitExpr(E);
1146 }
1147 
1148 void ASTStmtWriter::VisitVAArgExpr(VAArgExpr *E) {
1149  VisitExpr(E);
1150  Record.AddStmt(E->getSubExpr());
1152  Record.AddSourceLocation(E->getBuiltinLoc());
1153  Record.AddSourceLocation(E->getRParenLoc());
1154  Record.push_back(E->isMicrosoftABI());
1156 }
1157 
1158 void ASTStmtWriter::VisitSourceLocExpr(SourceLocExpr *E) {
1159  VisitExpr(E);
1160  Record.AddDeclRef(cast_or_null<Decl>(E->getParentContext()));
1161  Record.AddSourceLocation(E->getBeginLoc());
1162  Record.AddSourceLocation(E->getEndLoc());
1163  Record.push_back(E->getIdentKind());
1165 }
1166 
1167 void ASTStmtWriter::VisitAddrLabelExpr(AddrLabelExpr *E) {
1168  VisitExpr(E);
1169  Record.AddSourceLocation(E->getAmpAmpLoc());
1170  Record.AddSourceLocation(E->getLabelLoc());
1171  Record.AddDeclRef(E->getLabel());
1173 }
1174 
1175 void ASTStmtWriter::VisitStmtExpr(StmtExpr *E) {
1176  VisitExpr(E);
1177  Record.AddStmt(E->getSubStmt());
1178  Record.AddSourceLocation(E->getLParenLoc());
1179  Record.AddSourceLocation(E->getRParenLoc());
1180  Record.push_back(E->getTemplateDepth());
1181  Code = serialization::EXPR_STMT;
1182 }
1183 
1184 void ASTStmtWriter::VisitChooseExpr(ChooseExpr *E) {
1185  VisitExpr(E);
1186  Record.AddStmt(E->getCond());
1187  Record.AddStmt(E->getLHS());
1188  Record.AddStmt(E->getRHS());
1189  Record.AddSourceLocation(E->getBuiltinLoc());
1190  Record.AddSourceLocation(E->getRParenLoc());
1191  Record.push_back(E->isConditionDependent() ? false : E->isConditionTrue());
1193 }
1194 
1195 void ASTStmtWriter::VisitGNUNullExpr(GNUNullExpr *E) {
1196  VisitExpr(E);
1197  Record.AddSourceLocation(E->getTokenLocation());
1199 }
1200 
1201 void ASTStmtWriter::VisitShuffleVectorExpr(ShuffleVectorExpr *E) {
1202  VisitExpr(E);
1203  Record.push_back(E->getNumSubExprs());
1204  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1205  Record.AddStmt(E->getExpr(I));
1206  Record.AddSourceLocation(E->getBuiltinLoc());
1207  Record.AddSourceLocation(E->getRParenLoc());
1209 }
1210 
1211 void ASTStmtWriter::VisitConvertVectorExpr(ConvertVectorExpr *E) {
1212  VisitExpr(E);
1213  Record.AddSourceLocation(E->getBuiltinLoc());
1214  Record.AddSourceLocation(E->getRParenLoc());
1215  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1216  Record.AddStmt(E->getSrcExpr());
1218 }
1219 
1220 void ASTStmtWriter::VisitBlockExpr(BlockExpr *E) {
1221  VisitExpr(E);
1222  Record.AddDeclRef(E->getBlockDecl());
1224 }
1225 
1226 void ASTStmtWriter::VisitGenericSelectionExpr(GenericSelectionExpr *E) {
1227  VisitExpr(E);
1228 
1229  Record.push_back(E->getNumAssocs());
1230  Record.push_back(E->ResultIndex);
1231  Record.AddSourceLocation(E->getGenericLoc());
1232  Record.AddSourceLocation(E->getDefaultLoc());
1233  Record.AddSourceLocation(E->getRParenLoc());
1234 
1235  Stmt **Stmts = E->getTrailingObjects<Stmt *>();
1236  // Add 1 to account for the controlling expression which is the first
1237  // expression in the trailing array of Stmt *. This is not needed for
1238  // the trailing array of TypeSourceInfo *.
1239  for (unsigned I = 0, N = E->getNumAssocs() + 1; I < N; ++I)
1240  Record.AddStmt(Stmts[I]);
1241 
1242  TypeSourceInfo **TSIs = E->getTrailingObjects<TypeSourceInfo *>();
1243  for (unsigned I = 0, N = E->getNumAssocs(); I < N; ++I)
1244  Record.AddTypeSourceInfo(TSIs[I]);
1245 
1247 }
1248 
1249 void ASTStmtWriter::VisitPseudoObjectExpr(PseudoObjectExpr *E) {
1250  VisitExpr(E);
1251  Record.push_back(E->getNumSemanticExprs());
1252 
1253  // Push the result index. Currently, this needs to exactly match
1254  // the encoding used internally for ResultIndex.
1255  unsigned result = E->getResultExprIndex();
1256  result = (result == PseudoObjectExpr::NoResult ? 0 : result + 1);
1257  Record.push_back(result);
1258 
1259  Record.AddStmt(E->getSyntacticForm());
1261  i = E->semantics_begin(), e = E->semantics_end(); i != e; ++i) {
1262  Record.AddStmt(*i);
1263  }
1265 }
1266 
1267 void ASTStmtWriter::VisitAtomicExpr(AtomicExpr *E) {
1268  VisitExpr(E);
1269  Record.push_back(E->getOp());
1270  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1271  Record.AddStmt(E->getSubExprs()[I]);
1272  Record.AddSourceLocation(E->getBuiltinLoc());
1273  Record.AddSourceLocation(E->getRParenLoc());
1275 }
1276 
1277 //===----------------------------------------------------------------------===//
1278 // Objective-C Expressions and Statements.
1279 //===----------------------------------------------------------------------===//
1280 
1281 void ASTStmtWriter::VisitObjCStringLiteral(ObjCStringLiteral *E) {
1282  VisitExpr(E);
1283  Record.AddStmt(E->getString());
1284  Record.AddSourceLocation(E->getAtLoc());
1286 }
1287 
1288 void ASTStmtWriter::VisitObjCBoxedExpr(ObjCBoxedExpr *E) {
1289  VisitExpr(E);
1290  Record.AddStmt(E->getSubExpr());
1291  Record.AddDeclRef(E->getBoxingMethod());
1292  Record.AddSourceRange(E->getSourceRange());
1294 }
1295 
1296 void ASTStmtWriter::VisitObjCArrayLiteral(ObjCArrayLiteral *E) {
1297  VisitExpr(E);
1298  Record.push_back(E->getNumElements());
1299  for (unsigned i = 0; i < E->getNumElements(); i++)
1300  Record.AddStmt(E->getElement(i));
1302  Record.AddSourceRange(E->getSourceRange());
1304 }
1305 
1306 void ASTStmtWriter::VisitObjCDictionaryLiteral(ObjCDictionaryLiteral *E) {
1307  VisitExpr(E);
1308  Record.push_back(E->getNumElements());
1309  Record.push_back(E->HasPackExpansions);
1310  for (unsigned i = 0; i < E->getNumElements(); i++) {
1311  ObjCDictionaryElement Element = E->getKeyValueElement(i);
1312  Record.AddStmt(Element.Key);
1313  Record.AddStmt(Element.Value);
1314  if (E->HasPackExpansions) {
1315  Record.AddSourceLocation(Element.EllipsisLoc);
1316  unsigned NumExpansions = 0;
1317  if (Element.NumExpansions)
1318  NumExpansions = *Element.NumExpansions + 1;
1319  Record.push_back(NumExpansions);
1320  }
1321  }
1322 
1323  Record.AddDeclRef(E->getDictWithObjectsMethod());
1324  Record.AddSourceRange(E->getSourceRange());
1326 }
1327 
1328 void ASTStmtWriter::VisitObjCEncodeExpr(ObjCEncodeExpr *E) {
1329  VisitExpr(E);
1331  Record.AddSourceLocation(E->getAtLoc());
1332  Record.AddSourceLocation(E->getRParenLoc());
1334 }
1335 
1336 void ASTStmtWriter::VisitObjCSelectorExpr(ObjCSelectorExpr *E) {
1337  VisitExpr(E);
1338  Record.AddSelectorRef(E->getSelector());
1339  Record.AddSourceLocation(E->getAtLoc());
1340  Record.AddSourceLocation(E->getRParenLoc());
1342 }
1343 
1344 void ASTStmtWriter::VisitObjCProtocolExpr(ObjCProtocolExpr *E) {
1345  VisitExpr(E);
1346  Record.AddDeclRef(E->getProtocol());
1347  Record.AddSourceLocation(E->getAtLoc());
1348  Record.AddSourceLocation(E->ProtoLoc);
1349  Record.AddSourceLocation(E->getRParenLoc());
1351 }
1352 
1353 void ASTStmtWriter::VisitObjCIvarRefExpr(ObjCIvarRefExpr *E) {
1354  VisitExpr(E);
1355  Record.AddDeclRef(E->getDecl());
1356  Record.AddSourceLocation(E->getLocation());
1357  Record.AddSourceLocation(E->getOpLoc());
1358  Record.AddStmt(E->getBase());
1359  Record.push_back(E->isArrow());
1360  Record.push_back(E->isFreeIvar());
1362 }
1363 
1364 void ASTStmtWriter::VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *E) {
1365  VisitExpr(E);
1366  Record.push_back(E->SetterAndMethodRefFlags.getInt());
1367  Record.push_back(E->isImplicitProperty());
1368  if (E->isImplicitProperty()) {
1371  } else {
1372  Record.AddDeclRef(E->getExplicitProperty());
1373  }
1374  Record.AddSourceLocation(E->getLocation());
1376  if (E->isObjectReceiver()) {
1377  Record.push_back(0);
1378  Record.AddStmt(E->getBase());
1379  } else if (E->isSuperReceiver()) {
1380  Record.push_back(1);
1381  Record.AddTypeRef(E->getSuperReceiverType());
1382  } else {
1383  Record.push_back(2);
1384  Record.AddDeclRef(E->getClassReceiver());
1385  }
1386 
1388 }
1389 
1390 void ASTStmtWriter::VisitObjCSubscriptRefExpr(ObjCSubscriptRefExpr *E) {
1391  VisitExpr(E);
1392  Record.AddSourceLocation(E->getRBracket());
1393  Record.AddStmt(E->getBaseExpr());
1394  Record.AddStmt(E->getKeyExpr());
1395  Record.AddDeclRef(E->getAtIndexMethodDecl());
1396  Record.AddDeclRef(E->setAtIndexMethodDecl());
1397 
1399 }
1400 
1401 void ASTStmtWriter::VisitObjCMessageExpr(ObjCMessageExpr *E) {
1402  VisitExpr(E);
1403  Record.push_back(E->getNumArgs());
1404  Record.push_back(E->getNumStoredSelLocs());
1405  Record.push_back(E->SelLocsKind);
1406  Record.push_back(E->isDelegateInitCall());
1407  Record.push_back(E->IsImplicit);
1408  Record.push_back((unsigned)E->getReceiverKind()); // FIXME: stable encoding
1409  switch (E->getReceiverKind()) {
1411  Record.AddStmt(E->getInstanceReceiver());
1412  break;
1413 
1416  break;
1417 
1420  Record.AddTypeRef(E->getSuperType());
1421  Record.AddSourceLocation(E->getSuperLoc());
1422  break;
1423  }
1424 
1425  if (E->getMethodDecl()) {
1426  Record.push_back(1);
1427  Record.AddDeclRef(E->getMethodDecl());
1428  } else {
1429  Record.push_back(0);
1430  Record.AddSelectorRef(E->getSelector());
1431  }
1432 
1433  Record.AddSourceLocation(E->getLeftLoc());
1434  Record.AddSourceLocation(E->getRightLoc());
1435 
1436  for (CallExpr::arg_iterator Arg = E->arg_begin(), ArgEnd = E->arg_end();
1437  Arg != ArgEnd; ++Arg)
1438  Record.AddStmt(*Arg);
1439 
1440  SourceLocation *Locs = E->getStoredSelLocs();
1441  for (unsigned i = 0, e = E->getNumStoredSelLocs(); i != e; ++i)
1442  Record.AddSourceLocation(Locs[i]);
1443 
1445 }
1446 
1447 void ASTStmtWriter::VisitObjCForCollectionStmt(ObjCForCollectionStmt *S) {
1448  VisitStmt(S);
1449  Record.AddStmt(S->getElement());
1450  Record.AddStmt(S->getCollection());
1451  Record.AddStmt(S->getBody());
1452  Record.AddSourceLocation(S->getForLoc());
1453  Record.AddSourceLocation(S->getRParenLoc());
1455 }
1456 
1457 void ASTStmtWriter::VisitObjCAtCatchStmt(ObjCAtCatchStmt *S) {
1458  VisitStmt(S);
1459  Record.AddStmt(S->getCatchBody());
1460  Record.AddDeclRef(S->getCatchParamDecl());
1461  Record.AddSourceLocation(S->getAtCatchLoc());
1462  Record.AddSourceLocation(S->getRParenLoc());
1464 }
1465 
1466 void ASTStmtWriter::VisitObjCAtFinallyStmt(ObjCAtFinallyStmt *S) {
1467  VisitStmt(S);
1468  Record.AddStmt(S->getFinallyBody());
1469  Record.AddSourceLocation(S->getAtFinallyLoc());
1471 }
1472 
1473 void ASTStmtWriter::VisitObjCAutoreleasePoolStmt(ObjCAutoreleasePoolStmt *S) {
1474  VisitStmt(S); // FIXME: no test coverage.
1475  Record.AddStmt(S->getSubStmt());
1476  Record.AddSourceLocation(S->getAtLoc());
1478 }
1479 
1480 void ASTStmtWriter::VisitObjCAtTryStmt(ObjCAtTryStmt *S) {
1481  VisitStmt(S);
1482  Record.push_back(S->getNumCatchStmts());
1483  Record.push_back(S->getFinallyStmt() != nullptr);
1484  Record.AddStmt(S->getTryBody());
1485  for (unsigned I = 0, N = S->getNumCatchStmts(); I != N; ++I)
1486  Record.AddStmt(S->getCatchStmt(I));
1487  if (S->getFinallyStmt())
1488  Record.AddStmt(S->getFinallyStmt());
1489  Record.AddSourceLocation(S->getAtTryLoc());
1491 }
1492 
1493 void ASTStmtWriter::VisitObjCAtSynchronizedStmt(ObjCAtSynchronizedStmt *S) {
1494  VisitStmt(S); // FIXME: no test coverage.
1495  Record.AddStmt(S->getSynchExpr());
1496  Record.AddStmt(S->getSynchBody());
1497  Record.AddSourceLocation(S->getAtSynchronizedLoc());
1499 }
1500 
1501 void ASTStmtWriter::VisitObjCAtThrowStmt(ObjCAtThrowStmt *S) {
1502  VisitStmt(S); // FIXME: no test coverage.
1503  Record.AddStmt(S->getThrowExpr());
1504  Record.AddSourceLocation(S->getThrowLoc());
1506 }
1507 
1508 void ASTStmtWriter::VisitObjCBoolLiteralExpr(ObjCBoolLiteralExpr *E) {
1509  VisitExpr(E);
1510  Record.push_back(E->getValue());
1511  Record.AddSourceLocation(E->getLocation());
1513 }
1514 
1515 void ASTStmtWriter::VisitObjCAvailabilityCheckExpr(ObjCAvailabilityCheckExpr *E) {
1516  VisitExpr(E);
1517  Record.AddSourceRange(E->getSourceRange());
1518  Record.AddVersionTuple(E->getVersion());
1520 }
1521 
1522 //===----------------------------------------------------------------------===//
1523 // C++ Expressions and Statements.
1524 //===----------------------------------------------------------------------===//
1525 
1526 void ASTStmtWriter::VisitCXXCatchStmt(CXXCatchStmt *S) {
1527  VisitStmt(S);
1528  Record.AddSourceLocation(S->getCatchLoc());
1529  Record.AddDeclRef(S->getExceptionDecl());
1530  Record.AddStmt(S->getHandlerBlock());
1532 }
1533 
1534 void ASTStmtWriter::VisitCXXTryStmt(CXXTryStmt *S) {
1535  VisitStmt(S);
1536  Record.push_back(S->getNumHandlers());
1537  Record.AddSourceLocation(S->getTryLoc());
1538  Record.AddStmt(S->getTryBlock());
1539  for (unsigned i = 0, e = S->getNumHandlers(); i != e; ++i)
1540  Record.AddStmt(S->getHandler(i));
1542 }
1543 
1544 void ASTStmtWriter::VisitCXXForRangeStmt(CXXForRangeStmt *S) {
1545  VisitStmt(S);
1546  Record.AddSourceLocation(S->getForLoc());
1547  Record.AddSourceLocation(S->getCoawaitLoc());
1548  Record.AddSourceLocation(S->getColonLoc());
1549  Record.AddSourceLocation(S->getRParenLoc());
1550  Record.AddStmt(S->getInit());
1551  Record.AddStmt(S->getRangeStmt());
1552  Record.AddStmt(S->getBeginStmt());
1553  Record.AddStmt(S->getEndStmt());
1554  Record.AddStmt(S->getCond());
1555  Record.AddStmt(S->getInc());
1556  Record.AddStmt(S->getLoopVarStmt());
1557  Record.AddStmt(S->getBody());
1559 }
1560 
1561 void ASTStmtWriter::VisitMSDependentExistsStmt(MSDependentExistsStmt *S) {
1562  VisitStmt(S);
1563  Record.AddSourceLocation(S->getKeywordLoc());
1564  Record.push_back(S->isIfExists());
1565  Record.AddNestedNameSpecifierLoc(S->getQualifierLoc());
1566  Record.AddDeclarationNameInfo(S->getNameInfo());
1567  Record.AddStmt(S->getSubStmt());
1569 }
1570 
1571 void ASTStmtWriter::VisitCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
1572  VisitCallExpr(E);
1573  Record.push_back(E->getOperator());
1574  Record.AddSourceRange(E->Range);
1576 }
1577 
1578 void ASTStmtWriter::VisitCXXMemberCallExpr(CXXMemberCallExpr *E) {
1579  VisitCallExpr(E);
1581 }
1582 
1583 void ASTStmtWriter::VisitCXXRewrittenBinaryOperator(
1585  VisitExpr(E);
1586  Record.push_back(E->isReversed());
1587  Record.AddStmt(E->getSemanticForm());
1589 }
1590 
1591 void ASTStmtWriter::VisitCXXConstructExpr(CXXConstructExpr *E) {
1592  VisitExpr(E);
1593 
1594  Record.push_back(E->getNumArgs());
1595  Record.push_back(E->isElidable());
1596  Record.push_back(E->hadMultipleCandidates());
1597  Record.push_back(E->isListInitialization());
1600  Record.push_back(E->getConstructionKind()); // FIXME: stable encoding
1601  Record.AddSourceLocation(E->getLocation());
1602  Record.AddDeclRef(E->getConstructor());
1603  Record.AddSourceRange(E->getParenOrBraceRange());
1604 
1605  for (unsigned I = 0, N = E->getNumArgs(); I != N; ++I)
1606  Record.AddStmt(E->getArg(I));
1607 
1609 }
1610 
1611 void ASTStmtWriter::VisitCXXInheritedCtorInitExpr(CXXInheritedCtorInitExpr *E) {
1612  VisitExpr(E);
1613  Record.AddDeclRef(E->getConstructor());
1614  Record.AddSourceLocation(E->getLocation());
1615  Record.push_back(E->constructsVBase());
1616  Record.push_back(E->inheritedFromVBase());
1618 }
1619 
1620 void ASTStmtWriter::VisitCXXTemporaryObjectExpr(CXXTemporaryObjectExpr *E) {
1621  VisitCXXConstructExpr(E);
1622  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1624 }
1625 
1626 void ASTStmtWriter::VisitLambdaExpr(LambdaExpr *E) {
1627  VisitExpr(E);
1628  Record.push_back(E->LambdaExprBits.NumCaptures);
1629  Record.AddSourceRange(E->IntroducerRange);
1630  Record.push_back(E->LambdaExprBits.CaptureDefault); // FIXME: stable encoding
1631  Record.AddSourceLocation(E->CaptureDefaultLoc);
1632  Record.push_back(E->LambdaExprBits.ExplicitParams);
1633  Record.push_back(E->LambdaExprBits.ExplicitResultType);
1634  Record.AddSourceLocation(E->ClosingBrace);
1635 
1636  // Add capture initializers.
1638  CEnd = E->capture_init_end();
1639  C != CEnd; ++C) {
1640  Record.AddStmt(*C);
1641  }
1642 
1643  // Don't serialize the body. It belongs to the call operator declaration.
1644  // LambdaExpr only stores a copy of the Stmt *.
1645 
1647 }
1648 
1649 void ASTStmtWriter::VisitCXXStdInitializerListExpr(CXXStdInitializerListExpr *E) {
1650  VisitExpr(E);
1651  Record.AddStmt(E->getSubExpr());
1653 }
1654 
1655 void ASTStmtWriter::VisitCXXNamedCastExpr(CXXNamedCastExpr *E) {
1656  VisitExplicitCastExpr(E);
1658  Record.AddSourceRange(E->getAngleBrackets());
1659 }
1660 
1661 void ASTStmtWriter::VisitCXXStaticCastExpr(CXXStaticCastExpr *E) {
1662  VisitCXXNamedCastExpr(E);
1664 }
1665 
1666 void ASTStmtWriter::VisitCXXDynamicCastExpr(CXXDynamicCastExpr *E) {
1667  VisitCXXNamedCastExpr(E);
1669 }
1670 
1671 void ASTStmtWriter::VisitCXXReinterpretCastExpr(CXXReinterpretCastExpr *E) {
1672  VisitCXXNamedCastExpr(E);
1674 }
1675 
1676 void ASTStmtWriter::VisitCXXConstCastExpr(CXXConstCastExpr *E) {
1677  VisitCXXNamedCastExpr(E);
1679 }
1680 
1681 void ASTStmtWriter::VisitCXXAddrspaceCastExpr(CXXAddrspaceCastExpr *E) {
1682  VisitCXXNamedCastExpr(E);
1684 }
1685 
1686 void ASTStmtWriter::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr *E) {
1687  VisitExplicitCastExpr(E);
1688  Record.AddSourceLocation(E->getLParenLoc());
1689  Record.AddSourceLocation(E->getRParenLoc());
1691 }
1692 
1693 void ASTStmtWriter::VisitBuiltinBitCastExpr(BuiltinBitCastExpr *E) {
1694  VisitExplicitCastExpr(E);
1695  Record.AddSourceLocation(E->getBeginLoc());
1696  Record.AddSourceLocation(E->getEndLoc());
1698 }
1699 
1700 void ASTStmtWriter::VisitUserDefinedLiteral(UserDefinedLiteral *E) {
1701  VisitCallExpr(E);
1702  Record.AddSourceLocation(E->UDSuffixLoc);
1704 }
1705 
1706 void ASTStmtWriter::VisitCXXBoolLiteralExpr(CXXBoolLiteralExpr *E) {
1707  VisitExpr(E);
1708  Record.push_back(E->getValue());
1709  Record.AddSourceLocation(E->getLocation());
1711 }
1712 
1713 void ASTStmtWriter::VisitCXXNullPtrLiteralExpr(CXXNullPtrLiteralExpr *E) {
1714  VisitExpr(E);
1715  Record.AddSourceLocation(E->getLocation());
1717 }
1718 
1719 void ASTStmtWriter::VisitCXXTypeidExpr(CXXTypeidExpr *E) {
1720  VisitExpr(E);
1721  Record.AddSourceRange(E->getSourceRange());
1722  if (E->isTypeOperand()) {
1725  } else {
1726  Record.AddStmt(E->getExprOperand());
1728  }
1729 }
1730 
1731 void ASTStmtWriter::VisitCXXThisExpr(CXXThisExpr *E) {
1732  VisitExpr(E);
1733  Record.AddSourceLocation(E->getLocation());
1734  Record.push_back(E->isImplicit());
1736 }
1737 
1738 void ASTStmtWriter::VisitCXXThrowExpr(CXXThrowExpr *E) {
1739  VisitExpr(E);
1740  Record.AddSourceLocation(E->getThrowLoc());
1741  Record.AddStmt(E->getSubExpr());
1742  Record.push_back(E->isThrownVariableInScope());
1744 }
1745 
1746 void ASTStmtWriter::VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
1747  VisitExpr(E);
1748  Record.AddDeclRef(E->getParam());
1749  Record.AddDeclRef(cast_or_null<Decl>(E->getUsedContext()));
1750  Record.AddSourceLocation(E->getUsedLocation());
1752 }
1753 
1754 void ASTStmtWriter::VisitCXXDefaultInitExpr(CXXDefaultInitExpr *E) {
1755  VisitExpr(E);
1756  Record.AddDeclRef(E->getField());
1757  Record.AddDeclRef(cast_or_null<Decl>(E->getUsedContext()));
1758  Record.AddSourceLocation(E->getExprLoc());
1760 }
1761 
1762 void ASTStmtWriter::VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *E) {
1763  VisitExpr(E);
1764  Record.AddCXXTemporary(E->getTemporary());
1765  Record.AddStmt(E->getSubExpr());
1767 }
1768 
1769 void ASTStmtWriter::VisitCXXScalarValueInitExpr(CXXScalarValueInitExpr *E) {
1770  VisitExpr(E);
1771  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1772  Record.AddSourceLocation(E->getRParenLoc());
1774 }
1775 
1776 void ASTStmtWriter::VisitCXXNewExpr(CXXNewExpr *E) {
1777  VisitExpr(E);
1778 
1779  Record.push_back(E->isArray());
1780  Record.push_back(E->hasInitializer());
1781  Record.push_back(E->getNumPlacementArgs());
1782  Record.push_back(E->isParenTypeId());
1783 
1784  Record.push_back(E->isGlobalNew());
1785  Record.push_back(E->passAlignment());
1787  Record.push_back(E->CXXNewExprBits.StoredInitializationStyle);
1788 
1789  Record.AddDeclRef(E->getOperatorNew());
1790  Record.AddDeclRef(E->getOperatorDelete());
1792  if (E->isParenTypeId())
1793  Record.AddSourceRange(E->getTypeIdParens());
1794  Record.AddSourceRange(E->getSourceRange());
1795  Record.AddSourceRange(E->getDirectInitRange());
1796 
1797  for (CXXNewExpr::arg_iterator I = E->raw_arg_begin(), N = E->raw_arg_end();
1798  I != N; ++I)
1799  Record.AddStmt(*I);
1800 
1802 }
1803 
1804 void ASTStmtWriter::VisitCXXDeleteExpr(CXXDeleteExpr *E) {
1805  VisitExpr(E);
1806  Record.push_back(E->isGlobalDelete());
1807  Record.push_back(E->isArrayForm());
1808  Record.push_back(E->isArrayFormAsWritten());
1810  Record.AddDeclRef(E->getOperatorDelete());
1811  Record.AddStmt(E->getArgument());
1812  Record.AddSourceLocation(E->getBeginLoc());
1813 
1815 }
1816 
1817 void ASTStmtWriter::VisitCXXPseudoDestructorExpr(CXXPseudoDestructorExpr *E) {
1818  VisitExpr(E);
1819 
1820  Record.AddStmt(E->getBase());
1821  Record.push_back(E->isArrow());
1822  Record.AddSourceLocation(E->getOperatorLoc());
1824  Record.AddTypeSourceInfo(E->getScopeTypeInfo());
1825  Record.AddSourceLocation(E->getColonColonLoc());
1826  Record.AddSourceLocation(E->getTildeLoc());
1827 
1828  // PseudoDestructorTypeStorage.
1830  if (E->getDestroyedTypeIdentifier())
1832  else
1834 
1836 }
1837 
1838 void ASTStmtWriter::VisitExprWithCleanups(ExprWithCleanups *E) {
1839  VisitExpr(E);
1840  Record.push_back(E->getNumObjects());
1841  for (auto &Obj : E->getObjects()) {
1842  if (auto *BD = Obj.dyn_cast<BlockDecl *>()) {
1844  Record.AddDeclRef(BD);
1845  } else if (auto *CLE = Obj.dyn_cast<CompoundLiteralExpr *>()) {
1847  Record.AddStmt(CLE);
1848  }
1849  }
1850 
1851  Record.push_back(E->cleanupsHaveSideEffects());
1852  Record.AddStmt(E->getSubExpr());
1854 }
1855 
1856 void ASTStmtWriter::VisitCXXDependentScopeMemberExpr(
1858  VisitExpr(E);
1859 
1860  // Don't emit anything here (or if you do you will have to update
1861  // the corresponding deserialization function).
1862 
1863  Record.push_back(E->hasTemplateKWAndArgsInfo());
1864  Record.push_back(E->getNumTemplateArgs());
1865  Record.push_back(E->hasFirstQualifierFoundInScope());
1866 
1867  if (E->hasTemplateKWAndArgsInfo()) {
1868  const ASTTemplateKWAndArgsInfo &ArgInfo =
1869  *E->getTrailingObjects<ASTTemplateKWAndArgsInfo>();
1870  AddTemplateKWAndArgsInfo(ArgInfo,
1871  E->getTrailingObjects<TemplateArgumentLoc>());
1872  }
1873 
1874  Record.push_back(E->isArrow());
1875  Record.AddSourceLocation(E->getOperatorLoc());
1876  Record.AddTypeRef(E->getBaseType());
1878  if (!E->isImplicitAccess())
1879  Record.AddStmt(E->getBase());
1880  else
1881  Record.AddStmt(nullptr);
1882 
1883  if (E->hasFirstQualifierFoundInScope())
1885 
1886  Record.AddDeclarationNameInfo(E->MemberNameInfo);
1888 }
1889 
1890 void
1891 ASTStmtWriter::VisitDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E) {
1892  VisitExpr(E);
1893 
1894  // Don't emit anything here, HasTemplateKWAndArgsInfo must be
1895  // emitted first.
1896 
1897  Record.push_back(E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo);
1898  if (E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo) {
1899  const ASTTemplateKWAndArgsInfo &ArgInfo =
1900  *E->getTrailingObjects<ASTTemplateKWAndArgsInfo>();
1901  Record.push_back(ArgInfo.NumTemplateArgs);
1902  AddTemplateKWAndArgsInfo(ArgInfo,
1903  E->getTrailingObjects<TemplateArgumentLoc>());
1904  }
1905 
1907  Record.AddDeclarationNameInfo(E->NameInfo);
1909 }
1910 
1911 void
1912 ASTStmtWriter::VisitCXXUnresolvedConstructExpr(CXXUnresolvedConstructExpr *E) {
1913  VisitExpr(E);
1914  Record.push_back(E->getNumArgs());
1916  ArgI = E->arg_begin(), ArgE = E->arg_end(); ArgI != ArgE; ++ArgI)
1917  Record.AddStmt(*ArgI);
1918  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1919  Record.AddSourceLocation(E->getLParenLoc());
1920  Record.AddSourceLocation(E->getRParenLoc());
1922 }
1923 
1924 void ASTStmtWriter::VisitOverloadExpr(OverloadExpr *E) {
1925  VisitExpr(E);
1926 
1927  Record.push_back(E->getNumDecls());
1928  Record.push_back(E->hasTemplateKWAndArgsInfo());
1929  if (E->hasTemplateKWAndArgsInfo()) {
1930  const ASTTemplateKWAndArgsInfo &ArgInfo =
1932  Record.push_back(ArgInfo.NumTemplateArgs);
1934  }
1935 
1936  for (OverloadExpr::decls_iterator OvI = E->decls_begin(),
1937  OvE = E->decls_end();
1938  OvI != OvE; ++OvI) {
1939  Record.AddDeclRef(OvI.getDecl());
1940  Record.push_back(OvI.getAccess());
1941  }
1942 
1943  Record.AddDeclarationNameInfo(E->getNameInfo());
1945 }
1946 
1947 void ASTStmtWriter::VisitUnresolvedMemberExpr(UnresolvedMemberExpr *E) {
1948  VisitOverloadExpr(E);
1949  Record.push_back(E->isArrow());
1950  Record.push_back(E->hasUnresolvedUsing());
1951  Record.AddStmt(!E->isImplicitAccess() ? E->getBase() : nullptr);
1952  Record.AddTypeRef(E->getBaseType());
1953  Record.AddSourceLocation(E->getOperatorLoc());
1955 }
1956 
1957 void ASTStmtWriter::VisitUnresolvedLookupExpr(UnresolvedLookupExpr *E) {
1958  VisitOverloadExpr(E);
1959  Record.push_back(E->requiresADL());
1960  Record.push_back(E->isOverloaded());
1961  Record.AddDeclRef(E->getNamingClass());
1963 }
1964 
1965 void ASTStmtWriter::VisitTypeTraitExpr(TypeTraitExpr *E) {
1966  VisitExpr(E);
1967  Record.push_back(E->TypeTraitExprBits.NumArgs);
1968  Record.push_back(E->TypeTraitExprBits.Kind); // FIXME: Stable encoding
1969  Record.push_back(E->TypeTraitExprBits.Value);
1970  Record.AddSourceRange(E->getSourceRange());
1971  for (unsigned I = 0, N = E->getNumArgs(); I != N; ++I)
1972  Record.AddTypeSourceInfo(E->getArg(I));
1974 }
1975 
1976 void ASTStmtWriter::VisitArrayTypeTraitExpr(ArrayTypeTraitExpr *E) {
1977  VisitExpr(E);
1978  Record.push_back(E->getTrait());
1979  Record.push_back(E->getValue());
1980  Record.AddSourceRange(E->getSourceRange());
1982  Record.AddStmt(E->getDimensionExpression());
1984 }
1985 
1986 void ASTStmtWriter::VisitExpressionTraitExpr(ExpressionTraitExpr *E) {
1987  VisitExpr(E);
1988  Record.push_back(E->getTrait());
1989  Record.push_back(E->getValue());
1990  Record.AddSourceRange(E->getSourceRange());
1991  Record.AddStmt(E->getQueriedExpression());
1993 }
1994 
1995 void ASTStmtWriter::VisitCXXNoexceptExpr(CXXNoexceptExpr *E) {
1996  VisitExpr(E);
1997  Record.push_back(E->getValue());
1998  Record.AddSourceRange(E->getSourceRange());
1999  Record.AddStmt(E->getOperand());
2001 }
2002 
2003 void ASTStmtWriter::VisitPackExpansionExpr(PackExpansionExpr *E) {
2004  VisitExpr(E);
2005  Record.AddSourceLocation(E->getEllipsisLoc());
2006  Record.push_back(E->NumExpansions);
2007  Record.AddStmt(E->getPattern());
2009 }
2010 
2011 void ASTStmtWriter::VisitSizeOfPackExpr(SizeOfPackExpr *E) {
2012  VisitExpr(E);
2013  Record.push_back(E->isPartiallySubstituted() ? E->getPartialArguments().size()
2014  : 0);
2015  Record.AddSourceLocation(E->OperatorLoc);
2016  Record.AddSourceLocation(E->PackLoc);
2017  Record.AddSourceLocation(E->RParenLoc);
2018  Record.AddDeclRef(E->Pack);
2019  if (E->isPartiallySubstituted()) {
2020  for (const auto &TA : E->getPartialArguments())
2021  Record.AddTemplateArgument(TA);
2022  } else if (!E->isValueDependent()) {
2023  Record.push_back(E->getPackLength());
2024  }
2026 }
2027 
2028 void ASTStmtWriter::VisitSubstNonTypeTemplateParmExpr(
2030  VisitExpr(E);
2031  Record.AddDeclRef(E->getParameter());
2032  Record.push_back(E->isReferenceParameter());
2033  Record.AddSourceLocation(E->getNameLoc());
2034  Record.AddStmt(E->getReplacement());
2036 }
2037 
2038 void ASTStmtWriter::VisitSubstNonTypeTemplateParmPackExpr(
2040  VisitExpr(E);
2041  Record.AddDeclRef(E->getParameterPack());
2042  Record.AddTemplateArgument(E->getArgumentPack());
2045 }
2046 
2047 void ASTStmtWriter::VisitFunctionParmPackExpr(FunctionParmPackExpr *E) {
2048  VisitExpr(E);
2049  Record.push_back(E->getNumExpansions());
2050  Record.AddDeclRef(E->getParameterPack());
2052  for (FunctionParmPackExpr::iterator I = E->begin(), End = E->end();
2053  I != End; ++I)
2054  Record.AddDeclRef(*I);
2056 }
2057 
2058 void ASTStmtWriter::VisitMaterializeTemporaryExpr(MaterializeTemporaryExpr *E) {
2059  VisitExpr(E);
2060  Record.push_back(static_cast<bool>(E->getLifetimeExtendedTemporaryDecl()));
2063  else
2064  Record.AddStmt(E->getSubExpr());
2066 }
2067 
2068 void ASTStmtWriter::VisitCXXFoldExpr(CXXFoldExpr *E) {
2069  VisitExpr(E);
2070  Record.AddSourceLocation(E->LParenLoc);
2071  Record.AddSourceLocation(E->EllipsisLoc);
2072  Record.AddSourceLocation(E->RParenLoc);
2073  Record.push_back(E->NumExpansions);
2074  Record.AddStmt(E->SubExprs[0]);
2075  Record.AddStmt(E->SubExprs[1]);
2076  Record.AddStmt(E->SubExprs[2]);
2077  Record.push_back(E->Opcode);
2079 }
2080 
2081 void ASTStmtWriter::VisitOpaqueValueExpr(OpaqueValueExpr *E) {
2082  VisitExpr(E);
2083  Record.AddStmt(E->getSourceExpr());
2084  Record.AddSourceLocation(E->getLocation());
2085  Record.push_back(E->isUnique());
2087 }
2088 
2089 void ASTStmtWriter::VisitTypoExpr(TypoExpr *E) {
2090  VisitExpr(E);
2091  // TODO: Figure out sane writer behavior for a TypoExpr, if necessary
2092  llvm_unreachable("Cannot write TypoExpr nodes");
2093 }
2094 
2095 //===----------------------------------------------------------------------===//
2096 // CUDA Expressions and Statements.
2097 //===----------------------------------------------------------------------===//
2098 
2099 void ASTStmtWriter::VisitCUDAKernelCallExpr(CUDAKernelCallExpr *E) {
2100  VisitCallExpr(E);
2101  Record.AddStmt(E->getConfig());
2103 }
2104 
2105 //===----------------------------------------------------------------------===//
2106 // OpenCL Expressions and Statements.
2107 //===----------------------------------------------------------------------===//
2108 void ASTStmtWriter::VisitAsTypeExpr(AsTypeExpr *E) {
2109  VisitExpr(E);
2110  Record.AddSourceLocation(E->getBuiltinLoc());
2111  Record.AddSourceLocation(E->getRParenLoc());
2112  Record.AddStmt(E->getSrcExpr());
2114 }
2115 
2116 //===----------------------------------------------------------------------===//
2117 // Microsoft Expressions and Statements.
2118 //===----------------------------------------------------------------------===//
2119 void ASTStmtWriter::VisitMSPropertyRefExpr(MSPropertyRefExpr *E) {
2120  VisitExpr(E);
2121  Record.push_back(E->isArrow());
2122  Record.AddStmt(E->getBaseExpr());
2124  Record.AddSourceLocation(E->getMemberLoc());
2125  Record.AddDeclRef(E->getPropertyDecl());
2127 }
2128 
2129 void ASTStmtWriter::VisitMSPropertySubscriptExpr(MSPropertySubscriptExpr *E) {
2130  VisitExpr(E);
2131  Record.AddStmt(E->getBase());
2132  Record.AddStmt(E->getIdx());
2133  Record.AddSourceLocation(E->getRBracketLoc());
2135 }
2136 
2137 void ASTStmtWriter::VisitCXXUuidofExpr(CXXUuidofExpr *E) {
2138  VisitExpr(E);
2139  Record.AddSourceRange(E->getSourceRange());
2140  Record.AddDeclRef(E->getGuidDecl());
2141  if (E->isTypeOperand()) {
2144  } else {
2145  Record.AddStmt(E->getExprOperand());
2147  }
2148 }
2149 
2150 void ASTStmtWriter::VisitSEHExceptStmt(SEHExceptStmt *S) {
2151  VisitStmt(S);
2152  Record.AddSourceLocation(S->getExceptLoc());
2153  Record.AddStmt(S->getFilterExpr());
2154  Record.AddStmt(S->getBlock());
2156 }
2157 
2158 void ASTStmtWriter::VisitSEHFinallyStmt(SEHFinallyStmt *S) {
2159  VisitStmt(S);
2160  Record.AddSourceLocation(S->getFinallyLoc());
2161  Record.AddStmt(S->getBlock());
2163 }
2164 
2165 void ASTStmtWriter::VisitSEHTryStmt(SEHTryStmt *S) {
2166  VisitStmt(S);
2167  Record.push_back(S->getIsCXXTry());
2168  Record.AddSourceLocation(S->getTryLoc());
2169  Record.AddStmt(S->getTryBlock());
2170  Record.AddStmt(S->getHandler());
2172 }
2173 
2174 void ASTStmtWriter::VisitSEHLeaveStmt(SEHLeaveStmt *S) {
2175  VisitStmt(S);
2176  Record.AddSourceLocation(S->getLeaveLoc());
2178 }
2179 
2180 //===----------------------------------------------------------------------===//
2181 // OpenMP Directives.
2182 //===----------------------------------------------------------------------===//
2183 
2184 void ASTStmtWriter::VisitOMPCanonicalLoop(OMPCanonicalLoop *S) {
2185  VisitStmt(S);
2186  for (Stmt *SubStmt : S->SubStmts)
2187  Record.AddStmt(SubStmt);
2189 }
2190 
2191 void ASTStmtWriter::VisitOMPExecutableDirective(OMPExecutableDirective *E) {
2192  Record.writeOMPChildren(E->Data);
2193  Record.AddSourceLocation(E->getBeginLoc());
2194  Record.AddSourceLocation(E->getEndLoc());
2195 }
2196 
2197 void ASTStmtWriter::VisitOMPLoopBasedDirective(OMPLoopBasedDirective *D) {
2198  VisitStmt(D);
2199  Record.writeUInt32(D->getLoopsNumber());
2200  VisitOMPExecutableDirective(D);
2201 }
2202 
2203 void ASTStmtWriter::VisitOMPLoopDirective(OMPLoopDirective *D) {
2204  VisitOMPLoopBasedDirective(D);
2205 }
2206 
2207 void ASTStmtWriter::VisitOMPMetaDirective(OMPMetaDirective *D) {
2208  VisitStmt(D);
2209  Record.push_back(D->getNumClauses());
2210  VisitOMPExecutableDirective(D);
2212 }
2213 
2214 void ASTStmtWriter::VisitOMPParallelDirective(OMPParallelDirective *D) {
2215  VisitStmt(D);
2216  VisitOMPExecutableDirective(D);
2217  Record.writeBool(D->hasCancel());
2219 }
2220 
2221 void ASTStmtWriter::VisitOMPSimdDirective(OMPSimdDirective *D) {
2222  VisitOMPLoopDirective(D);
2224 }
2225 
2226 void ASTStmtWriter::VisitOMPLoopTransformationDirective(
2228  VisitOMPLoopBasedDirective(D);
2229  Record.writeUInt32(D->getNumGeneratedLoops());
2230 }
2231 
2232 void ASTStmtWriter::VisitOMPTileDirective(OMPTileDirective *D) {
2233  VisitOMPLoopTransformationDirective(D);
2235 }
2236 
2237 void ASTStmtWriter::VisitOMPUnrollDirective(OMPUnrollDirective *D) {
2238  VisitOMPLoopTransformationDirective(D);
2240 }
2241 
2242 void ASTStmtWriter::VisitOMPForDirective(OMPForDirective *D) {
2243  VisitOMPLoopDirective(D);
2244  Record.writeBool(D->hasCancel());
2246 }
2247 
2248 void ASTStmtWriter::VisitOMPForSimdDirective(OMPForSimdDirective *D) {
2249  VisitOMPLoopDirective(D);
2251 }
2252 
2253 void ASTStmtWriter::VisitOMPSectionsDirective(OMPSectionsDirective *D) {
2254  VisitStmt(D);
2255  VisitOMPExecutableDirective(D);
2256  Record.writeBool(D->hasCancel());
2258 }
2259 
2260 void ASTStmtWriter::VisitOMPSectionDirective(OMPSectionDirective *D) {
2261  VisitStmt(D);
2262  VisitOMPExecutableDirective(D);
2263  Record.writeBool(D->hasCancel());
2265 }
2266 
2267 void ASTStmtWriter::VisitOMPSingleDirective(OMPSingleDirective *D) {
2268  VisitStmt(D);
2269  VisitOMPExecutableDirective(D);
2271 }
2272 
2273 void ASTStmtWriter::VisitOMPMasterDirective(OMPMasterDirective *D) {
2274  VisitStmt(D);
2275  VisitOMPExecutableDirective(D);
2277 }
2278 
2279 void ASTStmtWriter::VisitOMPCriticalDirective(OMPCriticalDirective *D) {
2280  VisitStmt(D);
2281  VisitOMPExecutableDirective(D);
2284 }
2285 
2286 void ASTStmtWriter::VisitOMPParallelForDirective(OMPParallelForDirective *D) {
2287  VisitOMPLoopDirective(D);
2288  Record.writeBool(D->hasCancel());
2290 }
2291 
2292 void ASTStmtWriter::VisitOMPParallelForSimdDirective(
2294  VisitOMPLoopDirective(D);
2296 }
2297 
2298 void ASTStmtWriter::VisitOMPParallelMasterDirective(
2300  VisitStmt(D);
2301  VisitOMPExecutableDirective(D);
2303 }
2304 
2305 void ASTStmtWriter::VisitOMPParallelSectionsDirective(
2307  VisitStmt(D);
2308  VisitOMPExecutableDirective(D);
2309  Record.writeBool(D->hasCancel());
2311 }
2312 
2313 void ASTStmtWriter::VisitOMPTaskDirective(OMPTaskDirective *D) {
2314  VisitStmt(D);
2315  VisitOMPExecutableDirective(D);
2316  Record.writeBool(D->hasCancel());
2318 }
2319 
2320 void ASTStmtWriter::VisitOMPAtomicDirective(OMPAtomicDirective *D) {
2321  VisitStmt(D);
2322  VisitOMPExecutableDirective(D);
2323  Record.writeBool(D->isXLHSInRHSPart());
2324  Record.writeBool(D->isPostfixUpdate());
2326 }
2327 
2328 void ASTStmtWriter::VisitOMPTargetDirective(OMPTargetDirective *D) {
2329  VisitStmt(D);
2330  VisitOMPExecutableDirective(D);
2332 }
2333 
2334 void ASTStmtWriter::VisitOMPTargetDataDirective(OMPTargetDataDirective *D) {
2335  VisitStmt(D);
2336  VisitOMPExecutableDirective(D);
2338 }
2339 
2340 void ASTStmtWriter::VisitOMPTargetEnterDataDirective(
2342  VisitStmt(D);
2343  VisitOMPExecutableDirective(D);
2345 }
2346 
2347 void ASTStmtWriter::VisitOMPTargetExitDataDirective(
2349  VisitStmt(D);
2350  VisitOMPExecutableDirective(D);
2352 }
2353 
2354 void ASTStmtWriter::VisitOMPTargetParallelDirective(
2356  VisitStmt(D);
2357  VisitOMPExecutableDirective(D);
2358  Record.writeBool(D->hasCancel());
2360 }
2361 
2362 void ASTStmtWriter::VisitOMPTargetParallelForDirective(
2364  VisitOMPLoopDirective(D);
2365  Record.writeBool(D->hasCancel());
2367 }
2368 
2369 void ASTStmtWriter::VisitOMPTaskyieldDirective(OMPTaskyieldDirective *D) {
2370  VisitStmt(D);
2371  VisitOMPExecutableDirective(D);
2373 }
2374 
2375 void ASTStmtWriter::VisitOMPBarrierDirective(OMPBarrierDirective *D) {
2376  VisitStmt(D);
2377  VisitOMPExecutableDirective(D);
2379 }
2380 
2381 void ASTStmtWriter::VisitOMPTaskwaitDirective(OMPTaskwaitDirective *D) {
2382  VisitStmt(D);
2383  VisitOMPExecutableDirective(D);
2385 }
2386 
2387 void ASTStmtWriter::VisitOMPTaskgroupDirective(OMPTaskgroupDirective *D) {
2388  VisitStmt(D);
2389  VisitOMPExecutableDirective(D);
2391 }
2392 
2393 void ASTStmtWriter::VisitOMPFlushDirective(OMPFlushDirective *D) {
2394  VisitStmt(D);
2395  VisitOMPExecutableDirective(D);
2397 }
2398 
2399 void ASTStmtWriter::VisitOMPDepobjDirective(OMPDepobjDirective *D) {
2400  VisitStmt(D);
2401  VisitOMPExecutableDirective(D);
2403 }
2404 
2405 void ASTStmtWriter::VisitOMPScanDirective(OMPScanDirective *D) {
2406  VisitStmt(D);
2407  VisitOMPExecutableDirective(D);
2409 }
2410 
2411 void ASTStmtWriter::VisitOMPOrderedDirective(OMPOrderedDirective *D) {
2412  VisitStmt(D);
2413  VisitOMPExecutableDirective(D);
2415 }
2416 
2417 void ASTStmtWriter::VisitOMPTeamsDirective(OMPTeamsDirective *D) {
2418  VisitStmt(D);
2419  VisitOMPExecutableDirective(D);
2421 }
2422 
2423 void ASTStmtWriter::VisitOMPCancellationPointDirective(
2425  VisitStmt(D);
2426  VisitOMPExecutableDirective(D);
2427  Record.writeEnum(D->getCancelRegion());
2429 }
2430 
2431 void ASTStmtWriter::VisitOMPCancelDirective(OMPCancelDirective *D) {
2432  VisitStmt(D);
2433  VisitOMPExecutableDirective(D);
2434  Record.writeEnum(D->getCancelRegion());
2436 }
2437 
2438 void ASTStmtWriter::VisitOMPTaskLoopDirective(OMPTaskLoopDirective *D) {
2439  VisitOMPLoopDirective(D);
2440  Record.writeBool(D->hasCancel());
2442 }
2443 
2444 void ASTStmtWriter::VisitOMPTaskLoopSimdDirective(OMPTaskLoopSimdDirective *D) {
2445  VisitOMPLoopDirective(D);
2447 }
2448 
2449 void ASTStmtWriter::VisitOMPMasterTaskLoopDirective(
2451  VisitOMPLoopDirective(D);
2452  Record.writeBool(D->hasCancel());
2454 }
2455 
2456 void ASTStmtWriter::VisitOMPMasterTaskLoopSimdDirective(
2458  VisitOMPLoopDirective(D);
2460 }
2461 
2462 void ASTStmtWriter::VisitOMPParallelMasterTaskLoopDirective(
2464  VisitOMPLoopDirective(D);
2465  Record.writeBool(D->hasCancel());
2467 }
2468 
2469 void ASTStmtWriter::VisitOMPParallelMasterTaskLoopSimdDirective(
2471  VisitOMPLoopDirective(D);
2473 }
2474 
2475 void ASTStmtWriter::VisitOMPDistributeDirective(OMPDistributeDirective *D) {
2476  VisitOMPLoopDirective(D);
2478 }
2479 
2480 void ASTStmtWriter::VisitOMPTargetUpdateDirective(OMPTargetUpdateDirective *D) {
2481  VisitStmt(D);
2482  VisitOMPExecutableDirective(D);
2484 }
2485 
2486 void ASTStmtWriter::VisitOMPDistributeParallelForDirective(
2488  VisitOMPLoopDirective(D);
2489  Record.writeBool(D->hasCancel());
2491 }
2492 
2493 void ASTStmtWriter::VisitOMPDistributeParallelForSimdDirective(
2495  VisitOMPLoopDirective(D);
2497 }
2498 
2499 void ASTStmtWriter::VisitOMPDistributeSimdDirective(
2501  VisitOMPLoopDirective(D);
2503 }
2504 
2505 void ASTStmtWriter::VisitOMPTargetParallelForSimdDirective(
2507  VisitOMPLoopDirective(D);
2509 }
2510 
2511 void ASTStmtWriter::VisitOMPTargetSimdDirective(OMPTargetSimdDirective *D) {
2512  VisitOMPLoopDirective(D);
2514 }
2515 
2516 void ASTStmtWriter::VisitOMPTeamsDistributeDirective(
2518  VisitOMPLoopDirective(D);
2520 }
2521 
2522 void ASTStmtWriter::VisitOMPTeamsDistributeSimdDirective(
2524  VisitOMPLoopDirective(D);
2526 }
2527 
2528 void ASTStmtWriter::VisitOMPTeamsDistributeParallelForSimdDirective(
2530  VisitOMPLoopDirective(D);
2532 }
2533 
2534 void ASTStmtWriter::VisitOMPTeamsDistributeParallelForDirective(
2536  VisitOMPLoopDirective(D);
2537  Record.writeBool(D->hasCancel());
2539 }
2540 
2541 void ASTStmtWriter::VisitOMPTargetTeamsDirective(OMPTargetTeamsDirective *D) {
2542  VisitStmt(D);
2543  VisitOMPExecutableDirective(D);
2545 }
2546 
2547 void ASTStmtWriter::VisitOMPTargetTeamsDistributeDirective(
2549  VisitOMPLoopDirective(D);
2551 }
2552 
2553 void ASTStmtWriter::VisitOMPTargetTeamsDistributeParallelForDirective(
2555  VisitOMPLoopDirective(D);
2556  Record.writeBool(D->hasCancel());
2558 }
2559 
2560 void ASTStmtWriter::VisitOMPTargetTeamsDistributeParallelForSimdDirective(
2562  VisitOMPLoopDirective(D);
2563  Code = serialization::
2565 }
2566 
2567 void ASTStmtWriter::VisitOMPTargetTeamsDistributeSimdDirective(
2569  VisitOMPLoopDirective(D);
2571 }
2572 
2573 void ASTStmtWriter::VisitOMPInteropDirective(OMPInteropDirective *D) {
2574  VisitStmt(D);
2575  VisitOMPExecutableDirective(D);
2577 }
2578 
2579 void ASTStmtWriter::VisitOMPDispatchDirective(OMPDispatchDirective *D) {
2580  VisitStmt(D);
2581  VisitOMPExecutableDirective(D);
2582  Record.AddSourceLocation(D->getTargetCallLoc());
2584 }
2585 
2586 void ASTStmtWriter::VisitOMPMaskedDirective(OMPMaskedDirective *D) {
2587  VisitStmt(D);
2588  VisitOMPExecutableDirective(D);
2590 }
2591 
2592 //===----------------------------------------------------------------------===//
2593 // ASTWriter Implementation
2594 //===----------------------------------------------------------------------===//
2595 
2597  assert(SwitchCaseIDs.find(S) == SwitchCaseIDs.end() &&
2598  "SwitchCase recorded twice");
2599  unsigned NextID = SwitchCaseIDs.size();
2600  SwitchCaseIDs[S] = NextID;
2601  return NextID;
2602 }
2603 
2605  assert(SwitchCaseIDs.find(S) != SwitchCaseIDs.end() &&
2606  "SwitchCase hasn't been seen yet");
2607  return SwitchCaseIDs[S];
2608 }
2609 
2611  SwitchCaseIDs.clear();
2612 }
2613 
2614 /// Write the given substatement or subexpression to the
2615 /// bitstream.
2616 void ASTWriter::WriteSubStmt(Stmt *S) {
2617  RecordData Record;
2618  ASTStmtWriter Writer(*this, Record);
2619  ++NumStatements;
2620 
2621  if (!S) {
2622  Stream.EmitRecord(serialization::STMT_NULL_PTR, Record);
2623  return;
2624  }
2625 
2626  llvm::DenseMap<Stmt *, uint64_t>::iterator I = SubStmtEntries.find(S);
2627  if (I != SubStmtEntries.end()) {
2628  Record.push_back(I->second);
2629  Stream.EmitRecord(serialization::STMT_REF_PTR, Record);
2630  return;
2631  }
2632 
2633 #ifndef NDEBUG
2634  assert(!ParentStmts.count(S) && "There is a Stmt cycle!");
2635 
2636  struct ParentStmtInserterRAII {
2637  Stmt *S;
2638  llvm::DenseSet<Stmt *> &ParentStmts;
2639 
2640  ParentStmtInserterRAII(Stmt *S, llvm::DenseSet<Stmt *> &ParentStmts)
2641  : S(S), ParentStmts(ParentStmts) {
2642  ParentStmts.insert(S);
2643  }
2644  ~ParentStmtInserterRAII() {
2645  ParentStmts.erase(S);
2646  }
2647  };
2648 
2649  ParentStmtInserterRAII ParentStmtInserter(S, ParentStmts);
2650 #endif
2651 
2652  Writer.Visit(S);
2653 
2654  uint64_t Offset = Writer.Emit();
2655  SubStmtEntries[S] = Offset;
2656 }
2657 
2658 /// Flush all of the statements that have been added to the
2659 /// queue via AddStmt().
2660 void ASTRecordWriter::FlushStmts() {
2661  // We expect to be the only consumer of the two temporary statement maps,
2662  // assert that they are empty.
2663  assert(Writer->SubStmtEntries.empty() && "unexpected entries in sub-stmt map");
2664  assert(Writer->ParentStmts.empty() && "unexpected entries in parent stmt map");
2665 
2666  for (unsigned I = 0, N = StmtsToEmit.size(); I != N; ++I) {
2667  Writer->WriteSubStmt(StmtsToEmit[I]);
2668 
2669  assert(N == StmtsToEmit.size() && "record modified while being written!");
2670 
2671  // Note that we are at the end of a full expression. Any
2672  // expression records that follow this one are part of a different
2673  // expression.
2674  Writer->Stream.EmitRecord(serialization::STMT_STOP, ArrayRef<uint32_t>());
2675 
2676  Writer->SubStmtEntries.clear();
2677  Writer->ParentStmts.clear();
2678  }
2679 
2680  StmtsToEmit.clear();
2681 }
2682 
2683 void ASTRecordWriter::FlushSubStmts() {
2684  // For a nested statement, write out the substatements in reverse order (so
2685  // that a simple stack machine can be used when loading), and don't emit a
2686  // STMT_STOP after each one.
2687  for (unsigned I = 0, N = StmtsToEmit.size(); I != N; ++I) {
2688  Writer->WriteSubStmt(StmtsToEmit[N - I - 1]);
2689  assert(N == StmtsToEmit.size() && "record modified while being written!");
2690  }
2691 
2692  StmtsToEmit.clear();
2693 }
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:5469
clang::UnaryOperator::getStoredFPFeatures
FPOptionsOverride getStoredFPFeatures() const
Get FPFeatures from trailing storage.
Definition: Expr.h:2303
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:2644
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:3366
clang::UnaryExprOrTypeTraitExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:2619
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:1799
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:1607
clang::ExpressionTraitExpr
An expression trait intrinsic.
Definition: ExprCXX.h:2823
clang::serialization::STMT_CXX_TRY
@ STMT_CXX_TRY
A CXXTryStmt record.
Definition: ASTBitCodes.h:1789
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:1607
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:1967
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:4084
clang::MatrixSubscriptExpr
MatrixSubscriptExpr - Matrix subscript expression for the MatrixType extension.
Definition: Expr.h:2717
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:6429
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:4947
clang::OMPDistributeParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:4135
clang::serialization::STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1930
clang::VAArgExpr::isMicrosoftABI
bool isMicrosoftABI() const
Returns whether this is really a Win64 ABI va_arg expression.
Definition: Expr.h:4650
clang::DeclRefExpr::getFoundDecl
NamedDecl * getFoundDecl()
Get the NamedDecl through which this reference occurred.
Definition: Expr.h:1326
clang::VAArgExpr::getWrittenTypeInfo
TypeSourceInfo * getWrittenTypeInfo() const
Definition: Expr.h:4653
clang::AtomicExpr
AtomicExpr - Variadic atomic builtins: __atomic_exchange, __atomic_fetch_*, __atomic_load,...
Definition: Expr.h:6229
clang::OMPMasterTaskLoopSimdDirective
This represents '#pragma omp master taskloop simd' directive.
Definition: StmtOpenMP.h:3724
clang::CaseStmt
CaseStmt - Represent a case statement.
Definition: Stmt.h:1567
clang::OMPTaskyieldDirective
This represents '#pragma omp taskyield' directive.
Definition: StmtOpenMP.h:2438
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:77
clang::serialization::EXPR_OBJC_PROPERTY_REF_EXPR
@ EXPR_OBJC_PROPERTY_REF_EXPR
An ObjCPropertyRefExpr record.
Definition: ASTBitCodes.h:1739
clang::ImaginaryLiteral
ImaginaryLiteral - We support imaginary integer and floating point literals, like "1....
Definition: Expr.h:1712
clang::serialization::EXPR_PSEUDO_OBJECT
@ EXPR_PSEUDO_OBJECT
A PseudoObjectExpr record.
Definition: ASTBitCodes.h:1709
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:1574
clang::UnresolvedMemberExpr::getBaseType
QualType getBaseType() const
Definition: ExprCXX.h:3896
clang::AtomicExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:6320
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:3042
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:3039
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:1706
clang::AsTypeExpr
AsTypeExpr - Clang builtin function __builtin_astype [OpenCL 6.2.4.2] This AST node provides support ...
Definition: Expr.h:6026
clang::OffsetOfExpr
OffsetOfExpr - [C99 7.17] - This represents an expression of the form offsetof(record-type,...
Definition: Expr.h:2438
clang::serialization::STMT_CAPTURED
@ STMT_CAPTURED
A CapturedStmt record.
Definition: ASTBitCodes.h:1577
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:1926
clang::serialization::STMT_CASE
@ STMT_CASE
A CaseStmt record.
Definition: ASTBitCodes.h:1532
clang::CXXPseudoDestructorExpr
Represents a C++ pseudo-destructor (C++ [expr.pseudo]).
Definition: ExprCXX.h:2517
clang::DeclRefExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1297
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:5279
clang::serialization::EXPR_INTEGER_LITERAL
@ EXPR_INTEGER_LITERAL
An IntegerLiteral record.
Definition: ASTBitCodes.h:1595
clang::ObjCDictionaryElement
An element in an Objective-C dictionary literal.
Definition: ExprObjC.h:263
clang::VAArgExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:4645
clang::MemberExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: Expr.h:3327
clang::serialization::EXPR_SHUFFLE_VECTOR
@ EXPR_SHUFFLE_VECTOR
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1697
clang::AddrLabelExpr::getAmpAmpLoc
SourceLocation getAmpAmpLoc() const
Definition: Expr.h:4315
clang::DeclarationName::Identifier
@ Identifier
Definition: DeclarationName.h:203
clang::OMPTileDirective
This represents the '#pragma omp tile' loop transformation directive.
Definition: StmtOpenMP.h:5056
clang::PseudoObjectExpr::semantics_begin
semantics_iterator semantics_begin()
Definition: Expr.h:6163
clang::SwitchStmt
SwitchStmt - This represents a 'switch' stmt.
Definition: Stmt.h:2150
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:1772
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:2743
clang::OMPMaskedDirective
This represents '#pragma omp masked' directive.
Definition: StmtOpenMP.h:5383
clang::ASTRecordWriter::AddASTTemplateArgumentListInfo
void AddASTTemplateArgumentListInfo(const ASTTemplateArgumentListInfo *ASTTemplArgList)
Emits an AST template argument list info.
Definition: ASTWriter.cpp:5472
clang::VAArgExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4659
clang::serialization::EXPR_CXX_UNRESOLVED_LOOKUP
@ EXPR_CXX_UNRESOLVED_LOOKUP
Definition: ASTBitCodes.h:1862
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:4238
clang::IntegerLiteral::getLocation
SourceLocation getLocation() const
Retrieve the location of the literal.
Definition: Expr.h:1514
clang::serialization::EXPR_OMP_ARRAY_SECTION
@ EXPR_OMP_ARRAY_SECTION
Definition: ASTBitCodes.h:1960
clang::Stmt::CXXNewExprBits
CXXNewExprBitfields CXXNewExprBits
Definition: Stmt.h:1055
clang::WhileStmt
WhileStmt - This represents a 'while' stmt.
Definition: Stmt.h:2341
clang::OffsetOfExpr::getIndexExpr
Expr * getIndexExpr(unsigned Idx)
Definition: Expr.h:2501
clang::OMPCancellationPointDirective::getCancelRegion
OpenMPDirectiveKind getCancelRegion() const
Get cancellation region for the current cancellation point.
Definition: StmtOpenMP.h:3435
clang::SourceLocExpr::getParentContext
const DeclContext * getParentContext() const
If the SourceLocExpr has been resolved return the subexpression representing the resolved value.
Definition: Expr.h:4718
clang::NullStmt
NullStmt - This is the null statement ";": C99 6.8.3p3.
Definition: Stmt.h:1364
clang::serialization::STMT_NULL
@ STMT_NULL
A NullStmt record.
Definition: ASTBitCodes.h:1526
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:1900
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:1861
clang::serialization::STMT_MSASM
@ STMT_MSASM
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1583
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:1955
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::OMPExecutableDirective::getNumClauses
unsigned getNumClauses() const
Get number of clauses.
Definition: StmtOpenMP.h:504
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:1700
clang::BinaryConditionalOperator::getTrueExpr
Expr * getTrueExpr() const
getTrueExpr - Return the subexpression which will be evaluated if the condition evaluates to true; th...
Definition: Expr.h:4250
clang::ConditionalOperator::getLHS
Expr * getLHS() const
Definition: Expr.h:4175
clang::OpaqueValueExpr::getLocation
SourceLocation getLocation() const
Retrieve the location of this expression.
Definition: Expr.h:1151
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:2604
clang::CXXConstructExpr::getParenOrBraceRange
SourceRange getParenOrBraceRange() const
Definition: ExprCXX.h:1628
clang::BuiltinBitCastExpr::getBeginLoc
SourceLocation getBeginLoc() const LLVM_READONLY
Definition: ExprCXX.h:4895
clang::ObjCMessageExpr::getSelector
Selector getSelector() const
Definition: ExprObjC.cpp:293
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:3790
clang::serialization::EXPR_PACK_EXPANSION
@ EXPR_PACK_EXPANSION
Definition: ASTBitCodes.h:1872
clang::FloatingLiteral::getValue
llvm::APFloat getValue() const
Definition: Expr.h:1647
clang::DesignatedInitUpdateExpr::getBase
Expr * getBase() const
Definition: Expr.h:5381
clang::StringLiteral::isPascal
bool isPascal() const
Definition: Expr.h:1885
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:1859
clang::InitListExpr::getRBraceLoc
SourceLocation getRBraceLoc() const
Definition: Expr.h:4937
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:1649
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:1643
clang::RequiresExpr::getRequirements
ArrayRef< concepts::Requirement * > getRequirements() const
Definition: ExprConcepts.h:518
clang::DesignatedInitExpr
Represents a C99 designated initializer expression.
Definition: Expr.h:5024
clang::OMPTargetTeamsDistributeDirective
This represents '#pragma omp target teams distribute' combined directive.
Definition: StmtOpenMP.h:4763
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:4998
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:1938
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:4894
clang::MSPropertyRefExpr
A member reference to an MSPropertyDecl.
Definition: ExprCXX.h:923
clang::CallExpr::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:2957
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:6045
clang::AtomicExpr::getOp
AtomicOp getOp() const
Definition: Expr.h:6293
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:2914
clang::CoroutineSuspendExpr::getKeywordLoc
SourceLocation getKeywordLoc() const
Definition: ExprCXX.h:4722
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1956
clang::ParenListExpr
Definition: Expr.h:5532
clang::SourceRange::getBegin
SourceLocation getBegin() const
Definition: SourceLocation.h:221
clang::CharacterLiteral::getValue
unsigned getValue() const
Definition: Expr.h:1612
clang::OffsetOfNode::getKind
Kind getKind() const
Determine what kind of offsetof node this is.
Definition: Expr.h:2388
clang::DesignatedInitExpr::getEqualOrColonLoc
SourceLocation getEqualOrColonLoc() const
Retrieve the location of the '=' that precedes the initializer value itself, if present.
Definition: Expr.h:5252
clang::serialization::EXPR_OBJC_BOOL_LITERAL
@ EXPR_OBJC_BOOL_LITERAL
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1778
clang::OMPMasterDirective
This represents '#pragma omp master' directive.
Definition: StmtOpenMP.h:1950
clang::serialization::EXPR_STRING_LITERAL
@ EXPR_STRING_LITERAL
A StringLiteral record.
Definition: ASTBitCodes.h:1604
clang::ShuffleVectorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4414
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:3524
clang::NoInitExpr
Represents a place-holder for an object not to be initialized by anything.
Definition: Expr.h:5325
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:2616
clang::OffsetOfNode::Array
@ Array
An index into an array.
Definition: Expr.h:2339
clang::CXXNewExpr::getTypeIdParens
SourceRange getTypeIdParens() const
Definition: ExprCXX.h:2293
clang::OMPTaskwaitDirective
This represents '#pragma omp taskwait' directive.
Definition: StmtOpenMP.h:2530
clang::CStyleCastExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:3769
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:154
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:1556
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:1057
clang::serialization::EXPR_OBJC_ARRAY_LITERAL
@ EXPR_OBJC_ARRAY_LITERAL
Definition: ASTBitCodes.h:1723
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:1769
clang::CompoundLiteralExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: Expr.h:3436
clang::OMPSectionDirective
This represents '#pragma omp section' directive.
Definition: StmtOpenMP.h:1837
clang::serialization::EXPR_CXX_PROPERTY_REF_EXPR
@ EXPR_CXX_PROPERTY_REF_EXPR
Definition: ASTBitCodes.h:1889
clang::serialization::EXPR_IMPLICIT_VALUE_INIT
@ EXPR_IMPLICIT_VALUE_INIT
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1676
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:1828
clang::PseudoObjectExpr::getNumSemanticExprs
unsigned getNumSemanticExprs() const
Definition: Expr.h:6159
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:1875
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:2835
clang::serialization::EXPR_OBJC_MESSAGE_EXPR
@ EXPR_OBJC_MESSAGE_EXPR
An ObjCMessageExpr record.
Definition: ASTBitCodes.h:1748
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:1529
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:2419
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:1665
clang::MSPropertyRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Definition: ExprCXX.h:980
clang::Stmt::ConstantExprBits
ConstantExprBitfields ConstantExprBits
Definition: Stmt.h:1023
DeclCXX.h
clang::DeclRefExpr::isNonOdrUse
NonOdrUseReason isNonOdrUse() const
Is this expression a non-odr-use reference, and if so, why?
Definition: Expr.h:1413
clang::OMPTargetParallelDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3227
clang::OMPTeamsDistributeSimdDirective
This represents '#pragma omp teams distribute simd' combined directive.
Definition: StmtOpenMP.h:4480
clang::BinaryConditionalOperator::getCond
Expr * getCond() const
getCond - Return the condition expression; this is defined in terms of the opaque value.
Definition: Expr.h:4245
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:1565
clang::OMPTargetParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3323
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:1908
clang::IfStmt
IfStmt - This represents an if/then/else.
Definition: Stmt.h:1904
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:6412
clang::serialization::EXPR_STMT
@ EXPR_STMT
A StmtExpr record.
Definition: ASTBitCodes.h:1685
clang::ParenExpr::getLParen
SourceLocation getLParen() const
Get the location of the left parentheses '('.
Definition: Expr.h:2129
clang::OMPExecutableDirective::getEndLoc
SourceLocation getEndLoc() const
Returns ending location of directive.
Definition: StmtOpenMP.h:490
clang::AddrLabelExpr::getLabelLoc
SourceLocation getLabelLoc() const
Definition: Expr.h:4317
clang::serialization::EXPR_CXX_DELETE
@ EXPR_CXX_DELETE
Definition: ASTBitCodes.h:1853
clang::GotoStmt
GotoStmt - This represents a direct goto.
Definition: Stmt.h:2605
clang::StmtExpr::getSubStmt
CompoundStmt * getSubStmt()
Definition: Expr.h:4362
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:4786
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:2408
clang::DeclGroupRef::begin
iterator begin()
Definition: DeclGroup.h:99
clang::serialization::EXPR_CXX_TYPEID_TYPE
@ EXPR_CXX_TYPEID_TYPE
Definition: ASTBitCodes.h:1844
clang::serialization::EXPR_CXX_PSEUDO_DESTRUCTOR
@ EXPR_CXX_PSEUDO_DESTRUCTOR
Definition: ASTBitCodes.h:1854
clang::OffsetOfNode::getFieldName
IdentifierInfo * getFieldName() const
For a field or identifier offsetof node, returns the name of the field.
Definition: Expr.cpp:1606
clang::ExpressionTraitExpr::getTrait
ExpressionTrait getTrait() const
Definition: ExprCXX.h:2858
clang::OMPLoopTransformationDirective
The base class for all loop transformation directives.
Definition: StmtOpenMP.h:959
clang::ASTRecordWriter::writeOMPChildren
void writeOMPChildren(OMPChildren *Data)
Writes data related to the OpenMP directives.
Definition: ASTWriter.cpp:6741
clang::AsTypeExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
getBuiltinLoc - Return the location of the __builtin_astype token.
Definition: Expr.h:6048
clang::serialization::STMT_OMP_DISTRIBUTE_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_DIRECTIVE
Definition: ASTBitCodes.h:1941
clang::serialization::STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1913
clang::serialization::STMT_OMP_ORDERED_DIRECTIVE
@ STMT_OMP_ORDERED_DIRECTIVE
Definition: ASTBitCodes.h:1923
clang::serialization::EXPR_CXX_SCALAR_VALUE_INIT
@ EXPR_CXX_SCALAR_VALUE_INIT
Definition: ASTBitCodes.h:1851
clang::UnaryOperator
UnaryOperator - This represents the unary-expression's (except sizeof and alignof),...
Definition: Expr.h:2157
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:1673
clang::CoroutineBodyStmt::children
child_range children()
Definition: StmtCXX.h:429
clang::serialization::STMT_OMP_MASKED_DIRECTIVE
@ STMT_OMP_MASKED_DIRECTIVE
Definition: ASTBitCodes.h:1959
clang::OffsetOfExpr::getNumExpressions
unsigned getNumExpressions() const
Definition: Expr.h:2516
clang::serialization::STMT_OMP_META_DIRECTIVE
@ STMT_OMP_META_DIRECTIVE
Definition: ASTBitCodes.h:1899
clang::ObjCBoolLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprObjC.h:107
clang::CallExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:3109
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:1953
clang::serialization::EXPR_COAWAIT
@ EXPR_COAWAIT
Definition: ASTBitCodes.h:1971
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:4197
clang::ArrayInitLoopExpr
Represents a loop initializing the elements of an array.
Definition: Expr.h:5416
clang::PseudoObjectExpr::semantics_end
semantics_iterator semantics_end()
Definition: Expr.h:6169
clang::BinaryOperator::getOpcode
Opcode getOpcode() const
Definition: Expr.h:3847
clang::UnaryExprOrTypeTraitExpr::getArgumentExpr
Expr * getArgumentExpr()
Definition: Expr.h:2593
clang::serialization::STMT_OMP_SIMD_DIRECTIVE
@ STMT_OMP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1902
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:5445
clang::ASTRecordWriter::AddTypeSourceInfo
void AddTypeSourceInfo(TypeSourceInfo *TInfo)
Emits a reference to a declarator info.
Definition: ASTWriter.cpp:5181
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:3989
clang::serialization::EXPR_CXX_NOEXCEPT
@ EXPR_CXX_NOEXCEPT
Definition: ASTBitCodes.h:1865
clang::AtomicExpr::getSubExprs
Expr ** getSubExprs()
Definition: Expr.h:6296
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:1816
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:1947
clang::CXXTypeidExpr::getExprOperand
Expr * getExprOperand() const
Definition: ExprCXX.h:886
clang::SYCLUniqueStableNameExpr::getLParenLocation
SourceLocation getLParenLocation() const
Definition: Expr.h:2080
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:1837
clang::serialization::EXPR_CXX_BOOL_LITERAL
@ EXPR_CXX_BOOL_LITERAL
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1840
clang::OverloadExpr::decls_end
decls_iterator decls_end() const
Definition: ExprCXX.h:2975
clang::FixedPointLiteral::getScale
unsigned getScale() const
Definition: Expr.h:1560
clang::StringLiteral::getByteLength
unsigned getByteLength() const
Definition: Expr.h:1872
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:3259
clang::ASTStmtWriter
Definition: ASTWriterStmt.cpp:32
clang::OMPTargetTeamsDistributeParallelForDirective
This represents '#pragma omp target teams distribute parallel for' combined directive.
Definition: StmtOpenMP.h:4829
clang::ObjCArrayLiteral::getArrayWithObjectsMethod
ObjCMethodDecl * getArrayWithObjectsMethod() const
Definition: ExprObjC.h:241
clang::CStyleCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:3766
clang::OpaqueValueExpr
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class.
Definition: Expr.h:1129
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:3408
clang::CXXFoldExpr
Represents a folding of a pack over an operator.
Definition: ExprCXX.h:4574
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:1928
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:1038
clang::PredefinedExpr::getIdentKind
IdentKind getIdentKind() const
Definition: Expr.h:2001
clang::serialization::EXPR_CALL
@ EXPR_CALL
A CallExpr record.
Definition: ASTBitCodes.h:1631
clang::OMPTaskgroupDirective
This represents '#pragma omp taskgroup' directive.
Definition: StmtOpenMP.h:2576
clang::serialization::EXPR_OBJC_DICTIONARY_LITERAL
@ EXPR_OBJC_DICTIONARY_LITERAL
Definition: ASTBitCodes.h:1724
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:1775
clang::ConditionalOperator
ConditionalOperator - The ?: ternary operator.
Definition: Expr.h:4141
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:2335
clang::serialization::STMT_OMP_TASKLOOP_DIRECTIVE
@ STMT_OMP_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1935
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:1661
clang::serialization::EXPR_OBJC_PROTOCOL_EXPR
@ EXPR_OBJC_PROTOCOL_EXPR
An ObjCProtocolExpr record.
Definition: ASTBitCodes.h:1733
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:1682
clang::CoroutineSuspendExpr::getOpaqueValue
OpaqueValueExpr * getOpaqueValue() const
getOpaqueValue - Return the opaque value placeholder.
Definition: ExprCXX.h:4729
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:1722
clang::concepts::Requirement::SubstitutionDiagnostic::SubstitutedEntity
StringRef SubstitutedEntity
Definition: ExprConcepts.h:162
clang::FixedPointLiteral
Definition: Expr.h:1531
clang::OMPTargetExitDataDirective
This represents '#pragma omp target exit data' directive.
Definition: StmtOpenMP.h:3109
clang::CXXThisExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:1153
clang::CompoundLiteralExpr::isFileScope
bool isFileScope() const
Definition: Expr.h:3430
clang::OMPExecutableDirective::Data
OMPChildren * Data
Data, associated with the directive.
Definition: StmtOpenMP.h:286
clang::ConstantExpr::RSK_APValue
@ RSK_APValue
Definition: Expr.h:1038
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:1697
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:1846
clang::FunctionParmPackExpr::begin
iterator begin() const
Definition: ExprCXX.h:4417
clang::UnaryOperator::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Is FPFeatures in Trailing Storage?
Definition: Expr.h:2300
clang::CallExpr::getCallee
Expr * getCallee()
Definition: Expr.h:2945
clang::IntegerLiteral
Definition: Expr.h:1488
clang::ObjCMessageExpr::getRightLoc
SourceLocation getRightLoc() const
Definition: ExprObjC.h:1407
clang::serialization::STMT_OMP_UNROLL_DIRECTIVE
@ STMT_OMP_UNROLL_DIRECTIVE
Definition: ASTBitCodes.h:1904
clang::CXXTypeidExpr::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprCXX.h:893
clang::ParenListExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:5577
clang::ObjCAtCatchStmt
Represents Objective-C's @catch statement.
Definition: StmtObjC.h:77
clang::ConceptReference::getTemplateArgsAsWritten
const ASTTemplateArgumentListInfo * getTemplateArgsAsWritten() const
Definition: ASTConcept.h:158
clang::UnaryExprOrTypeTraitExpr
UnaryExprOrTypeTraitExpr - expression with either a type or (unevaluated) expression operand.
Definition: Expr.h:2543
clang::FloatingLiteral
Definition: Expr.h:1633
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:1804
clang::OffsetOfExpr::getComponent
const OffsetOfNode & getComponent(unsigned Idx) const
Definition: Expr.h:2487
clang::CompoundStmt
CompoundStmt - This represents a group of statements like { stmt stmt }.
Definition: Stmt.h:1399
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:4461
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:1858
clang::MSPropertySubscriptExpr
MS property subscript expression.
Definition: ExprCXX.h:994
clang::ChooseExpr::isConditionDependent
bool isConditionDependent() const
Definition: Expr.h:4550
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:1940
clang::CXXUuidofExpr::getGuidDecl
MSGuidDecl * getGuidDecl() const
Definition: ExprCXX.h:1102
clang::OMPParallelMasterDirective
This represents '#pragma omp parallel master' directive.
Definition: StmtOpenMP.h:2231
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:1903
clang::serialization::StmtCode
StmtCode
Record codes for each kind of statement or expression.
Definition: ASTBitCodes.h:1514
clang::serialization::EXPR_CXX_MEMBER_CALL
@ EXPR_CXX_MEMBER_CALL
A CXXMemberCallExpr record.
Definition: ASTBitCodes.h:1798
clang::serialization::STMT_OMP_TASKGROUP_DIRECTIVE
@ STMT_OMP_TASKGROUP_DIRECTIVE
Definition: ASTBitCodes.h:1932
clang::FloatingLiteral::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1688
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:4800
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:1915
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:4153
clang::CastExpr::getFPFeatures
FPOptionsOverride getFPFeatures() const
Definition: Expr.h:3577
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:1625
clang::ParenExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:2121
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:3803
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:5926
clang::ExplicitCastExpr::getTypeInfoAsWritten
TypeSourceInfo * getTypeInfoAsWritten() const
getTypeInfoAsWritten - Returns the type source info for the type that this expression is casting to.
Definition: Expr.h:3715
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:3338
clang::ConvertVectorExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
getTypeSourceInfo - Return the destination type.
Definition: Expr.h:4484
clang::serialization::STMT_SEH_LEAVE
@ STMT_SEH_LEAVE
Definition: ASTBitCodes.h:1893
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:1002
clang::ObjCAtThrowStmt
Represents Objective-C's @throw statement.
Definition: StmtObjC.h:332
clang::MemberExpr::isArrow
bool isArrow() const
Definition: Expr.h:3346
clang::RecoveryExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: Expr.h:6434
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:5391
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:5977
clang::MemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:3344
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:2747
clang::StringLiteral::getBytes
StringRef getBytes() const
Allow access to clients that need the byte representation, such as ASTWriterStmt::VisitStringLiteral(...
Definition: Expr.h:1852
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:1541
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:5212
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:1664
clang::serialization::EXPR_CXX_TYPEID_EXPR
@ EXPR_CXX_TYPEID_EXPR
Definition: ASTBitCodes.h:1843
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:1119
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:1813
clang::OMPMetaDirective
This represents '#pragma omp metadirective' directive.
Definition: StmtOpenMP.h:5434
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:2917
clang::AsTypeExpr::getRParenLoc
SourceLocation getRParenLoc() const
getRParenLoc - Return the location of final right parenthesis.
Definition: Expr.h:6051
clang::serialization::EXPR_OBJC_AVAILABILITY_CHECK
@ EXPR_OBJC_AVAILABILITY_CHECK
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1781
clang::SYCLUniqueStableNameExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:2079
clang::serialization::STMT_OMP_TILE_DIRECTIVE
@ STMT_OMP_TILE_DIRECTIVE
Definition: ASTBitCodes.h:1903
clang::serialization::EXPR_CXX_BIND_TEMPORARY
@ EXPR_CXX_BIND_TEMPORARY
Definition: ASTBitCodes.h:1849
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:5350
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:4875
addSubstitutionDiagnostic
static void addSubstitutionDiagnostic(ASTRecordWriter &Record, const concepts::Requirement::SubstitutionDiagnostic *D)
Definition: ASTWriterStmt.cpp:421
clang::serialization::STMT_OMP_FOR_SIMD_DIRECTIVE
@ STMT_OMP_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1906
clang::serialization::EXPR_SOURCE_LOC
@ EXPR_SOURCE_LOC
A SourceLocExpr record.
Definition: ASTBitCodes.h:1694
clang::serialization::STMT_DO
@ STMT_DO
A DoStmt record.
Definition: ASTBitCodes.h:1553
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:148
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:3708
clang::serialization::EXPR_IMPLICIT_CAST
@ EXPR_IMPLICIT_CAST
An ImplicitCastExpr record.
Definition: ASTBitCodes.h:1646
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:4151
clang::CastExpr::path_begin
path_iterator path_begin()
Definition: Expr.h:3544
clang::serialization::STMT_OMP_PARALLEL_DIRECTIVE
@ STMT_OMP_PARALLEL_DIRECTIVE
Definition: ASTBitCodes.h:1901
clang::ObjCAvailabilityCheckExpr::getVersion
VersionTuple getVersion()
Definition: ExprObjC.h:1709
clang::CompoundLiteralExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:3433
clang::ForStmt
ForStmt - This represents a 'for (init;cond;inc)' stmt.
Definition: Stmt.h:2534
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:1766
clang::OMPDepobjDirective
This represents '#pragma omp depobj' directive.
Definition: StmtOpenMP.h:2695
clang::CastExpr::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:3561
clang::OffsetOfExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: Expr.h:2480
clang::CharacterLiteral::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1604
clang::serialization::STMT_OBJC_FOR_COLLECTION
@ STMT_OBJC_FOR_COLLECTION
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1757
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:1681
clang::serialization::STMT_CXX_CATCH
@ STMT_CXX_CATCH
A CXXCatchStmt record.
Definition: ASTBitCodes.h:1786
clang::CallExpr::getFPFeatures
FPOptionsOverride getFPFeatures() const
Definition: Expr.h:3081
clang::PseudoObjectExpr
PseudoObjectExpr - An expression which accesses a pseudo-object l-value.
Definition: Expr.h:6095
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:4890
clang::ConditionalOperator::getRHS
Expr * getRHS() const
Definition: Expr.h:4176
clang::OffsetOfNode::getField
FieldDecl * getField() const
For a field offsetof node, returns the field.
Definition: Expr.h:2398
clang::DesignatedInitExpr::getNumSubExprs
unsigned getNumSubExprs() const
Retrieve the total number of subexpressions in this designated initializer expression,...
Definition: Expr.h:5277
clang::serialization::EXPR_ASTYPE
@ EXPR_ASTYPE
Definition: ASTBitCodes.h:1886
clang::DeclRefExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: Expr.h:1390
clang::BinaryConditionalOperator
BinaryConditionalOperator - The GNU extension to the conditional operator which allows the middle ope...
Definition: Expr.h:4203
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:3386
clang::ParenListExpr::getNumExprs
unsigned getNumExprs() const
Return the number of expressions in this paren list.
Definition: Expr.h:5558
clang::serialization::EXPR_BUILTIN_BIT_CAST
@ EXPR_BUILTIN_BIT_CAST
A BuiltinBitCastExpr record.
Definition: ASTBitCodes.h:1831
clang::DeclRefExpr::getDecl
ValueDecl * getDecl()
Definition: Expr.h:1289
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:1069
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:1879
clang::UnaryExprOrTypeTraitExpr::getArgumentTypeInfo
TypeSourceInfo * getArgumentTypeInfo() const
Definition: Expr.h:2589
clang::ImplicitValueInitExpr
Represents an implicitly-generated value initialization of an object of a given type.
Definition: Expr.h:5505
clang::ASTWriter::ClearSwitchCaseIDs
void ClearSwitchCaseIDs()
Definition: ASTWriterStmt.cpp:2610
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:3651
clang::serialization::STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1946
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:1179
clang::PseudoObjectExpr::NoResult
@ NoResult
Definition: Expr.h:6127
clang::GNUNullExpr::getTokenLocation
SourceLocation getTokenLocation() const
getTokenLocation - The location of the __null token.
Definition: Expr.h:4609
clang::OMPParallelForSimdDirective
This represents '#pragma omp parallel for simd' directive.
Definition: StmtOpenMP.h:2166
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:2008
clang::CompoundAssignOperator::getComputationResultType
QualType getComputationResultType() const
Definition: Expr.h:4087
clang::OMPTaskDirective
This represents '#pragma omp task' directive.
Definition: StmtOpenMP.h:2376
clang::OffsetOfExpr::getNumComponents
unsigned getNumComponents() const
Definition: Expr.h:2497
clang::SourceLocExpr::getIdentKind
IdentKind getIdentKind() const
Definition: Expr.h:4699
clang::AtomicExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:6319
clang::ConceptReference::getFoundDecl
NamedDecl * getFoundDecl() const
Definition: ASTConcept.h:150
clang::ASTWriter::RecordSwitchCaseID
unsigned RecordSwitchCaseID(SwitchCase *S)
Record an ID for the given switch-case statement.
Definition: ASTWriterStmt.cpp:2596
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:3351
clang::StringLiteral
StringLiteral - This represents a string literal expression, e.g.
Definition: Expr.h:1761
clang::serialization::STMT_CORETURN
@ STMT_CORETURN
Definition: ASTBitCodes.h:1970
clang::OMPTargetParallelDirective
This represents '#pragma omp target parallel' directive.
Definition: StmtOpenMP.h:3163
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:1934
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:1929
clang::BinaryOperator::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:3986
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:3500
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:2069
clang::serialization::STMT_OMP_SCAN_DIRECTIVE
@ STMT_OMP_SCAN_DIRECTIVE
Definition: ASTBitCodes.h:1922
clang::ObjCSubscriptRefExpr::getRBracket
SourceLocation getRBracket() const
Definition: ExprObjC.h:871
clang::serialization::EXPR_UNARY_OPERATOR
@ EXPR_UNARY_OPERATOR
A UnaryOperator record.
Definition: ASTBitCodes.h:1616
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:2217
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:4427
clang::serialization::STMT_OMP_DISPATCH_DIRECTIVE
@ STMT_OMP_DISPATCH_DIRECTIVE
Definition: ASTBitCodes.h:1958
clang::serialization::EXPR_OMP_ARRAY_SHAPING
@ EXPR_OMP_ARRAY_SHAPING
Definition: ASTBitCodes.h:1961
clang::CXXTryStmt
CXXTryStmt - A C++ try block, including all handlers.
Definition: StmtCXX.h:68
clang::SwitchCase
Definition: Stmt.h:1522
clang::ImaginaryLiteral::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:1724
clang::serialization::STMT_BREAK
@ STMT_BREAK
A BreakStmt record.
Definition: ASTBitCodes.h:1568
clang::serialization::STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1945
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:1931
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:1520
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:1571
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:3543
clang::OMPCriticalDirective
This represents '#pragma omp critical' directive.
Definition: StmtOpenMP.h:1998
clang::StmtExpr::getTemplateDepth
unsigned getTemplateDepth() const
Definition: Expr.h:4374
clang::DeclRefExpr::hasQualifier
bool hasQualifier() const
Determine whether this declaration reference was preceded by a C++ nested-name-specifier,...
Definition: Expr.h:1304
clang::OMPTargetParallelForSimdDirective
This represents '#pragma omp target parallel for simd' directive.
Definition: StmtOpenMP.h:4282
clang::ArraySubscriptExpr::getLHS
Expr * getLHS()
An array access can be written A[4] or 4[A] (both are equivalent).
Definition: Expr.h:2668
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:1751
clang::OMPMasterTaskLoopDirective
This represents '#pragma omp master taskloop' directive.
Definition: StmtOpenMP.h:3648
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:1979
clang::Stmt::DependentScopeDeclRefExprBits
DependentScopeDeclRefExprBitfields DependentScopeDeclRefExprBits
Definition: Stmt.h:1058
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:1026
clang::serialization::EXPR_DECL_REF
@ EXPR_DECL_REF
A DeclRefExpr record.
Definition: ASTBitCodes.h:1592
clang::ArraySubscriptExpr::getRHS
Expr * getRHS()
Definition: Expr.h:2672
clang::CoawaitExpr::isImplicit
bool isImplicit() const
Definition: ExprCXX.h:4790
clang::serialization::EXPR_MEMBER
@ EXPR_MEMBER
A MemberExpr record.
Definition: ASTBitCodes.h:1634
clang::serialization::EXPR_REQUIRES
@ EXPR_REQUIRES
Definition: ASTBitCodes.h:1880
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:4414
clang::serialization::COK_Block
@ COK_Block
Definition: ASTBitCodes.h:2009
addConstraintSatisfaction
static void addConstraintSatisfaction(ASTRecordWriter &Record, const ASTConstraintSatisfaction &Satisfaction)
Definition: ASTWriterStmt.cpp:399
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:4896
clang::OffsetOfNode
Helper class for OffsetOfExpr.
Definition: Expr.h:2334
clang::serialization::STMT_COROUTINE_BODY
@ STMT_COROUTINE_BODY
Definition: ASTBitCodes.h:1969
clang::serialization::EXPR_CXX_REWRITTEN_BINARY_OPERATOR
@ EXPR_CXX_REWRITTEN_BINARY_OPERATOR
A CXXRewrittenBinaryOperator record.
Definition: ASTBitCodes.h:1801
clang::CastExpr::getCastKind
CastKind getCastKind() const
Definition: Expr.h:3518
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:3245
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:4520
clang::serialization::EXPR_CXX_REINTERPRET_CAST
@ EXPR_CXX_REINTERPRET_CAST
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1819
clang::SEHExceptStmt
Definition: Stmt.h:3329
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:2425
clang::ExpressionTraitExpr::getQueriedExpression
Expr * getQueriedExpression() const
Definition: ExprCXX.h:2860
clang::APIntStorage::getValue
llvm::APInt getValue() const
Definition: Expr.h:1472
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:1703
clang::PseudoObjectExpr::semantics_iterator
Expr *const * semantics_iterator
Definition: Expr.h:6161
clang::serialization::EXPR_CXX_THROW
@ EXPR_CXX_THROW
Definition: ASTBitCodes.h:1846
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1954
clang::DesignatedInitExpr::usesGNUSyntax
bool usesGNUSyntax() const
Determines whether this designated initializer used the deprecated GNU syntax for designated initiali...
Definition: Expr.h:5261
clang::OMPCriticalDirective::getDirectiveName
DeclarationNameInfo getDirectiveName() const
Return name of the directive.
Definition: StmtOpenMP.h:2053
clang::serialization::EXPR_CXX_FOLD
@ EXPR_CXX_FOLD
Definition: ASTBitCodes.h:1878
clang::serialization::STMT_INDIRECT_GOTO
@ STMT_INDIRECT_GOTO
An IndirectGotoStmt record.
Definition: ASTBitCodes.h:1562
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:1535
clang::FullExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:1011
clang::serialization::STMT_OMP_TARGET_DIRECTIVE
@ STMT_OMP_TARGET_DIRECTIVE
Definition: ASTBitCodes.h:1925
clang::SizeOfPackExpr::getPackLength
unsigned getPackLength() const
Retrieve the length of the parameter pack.
Definition: ExprCXX.h:4204
clang::CharacterLiteral
Definition: Expr.h:1578
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:2392
clang::ObjCIsaExpr::isArrow
bool isArrow() const
Definition: ExprObjC.h:1509
clang::serialization::EXPR_CXX_EXPRESSION_TRAIT
@ EXPR_CXX_EXPRESSION_TRAIT
Definition: ASTBitCodes.h:1864
clang::serialization::STMT_OMP_DEPOBJ_DIRECTIVE
@ STMT_OMP_DEPOBJ_DIRECTIVE
Definition: ASTBitCodes.h:1921
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:1613
clang::OMPCancelDirective
This represents '#pragma omp cancel' directive.
Definition: StmtOpenMP.h:3449
clang::CompoundLiteralExpr
CompoundLiteralExpr - [C99 6.5.2.5].
Definition: Expr.h:3403
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:1402
clang::DesignatedInitExpr::designators
llvm::MutableArrayRef< Designator > designators()
Definition: Expr.h:5230
clang::serialization::EXPR_SIZEOF_ALIGN_OF
@ EXPR_SIZEOF_ALIGN_OF
A SizefAlignOfExpr record.
Definition: ASTBitCodes.h:1622
clang::serialization::EXPR_SIZEOF_PACK
@ EXPR_SIZEOF_PACK
Definition: ASTBitCodes.h:1873
clang::StmtExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4371
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:1760
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:4495
clang::UnaryExprOrTypeTraitExpr::isArgumentType
bool isArgumentType() const
Definition: Expr.h:2585
clang::serialization::EXPR_FUNCTION_PARM_PACK
@ EXPR_FUNCTION_PARM_PACK
Definition: ASTBitCodes.h:1876
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:4927
clang::CStyleCastExpr
CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr....
Definition: Expr.h:3731
clang::MemberExpr::getBase
Expr * getBase() const
Definition: Expr.h:3239
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:5136
clang::GCCAsmStmt
This represents a GCC inline-assembly statement extension.
Definition: Stmt.h:3002
clang::serialization::EXPR_CXX_OPERATOR_CALL
@ EXPR_CXX_OPERATOR_CALL
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1795
clang::UnaryOperator::getOperatorLoc
SourceLocation getOperatorLoc() const
getOperatorLoc - Return the location of the operator.
Definition: Expr.h:2208
clang::StringLiteral::getKind
StringKind getKind() const
Definition: Expr.h:1876
clang::serialization::STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
@ STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1927
clang::OMPFlushDirective
This represents '#pragma omp flush' directive.
Definition: StmtOpenMP.h:2643
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:2843
clang::serialization::EXPR_BINARY_OPERATOR
@ EXPR_BINARY_OPERATOR
A BinaryOperator record.
Definition: ASTBitCodes.h:1637
clang::OMPTargetEnterDataDirective
This represents '#pragma omp target enter data' directive.
Definition: StmtOpenMP.h:3054
clang::SizeOfPackExpr::getPartialArguments
ArrayRef< TemplateArgument > getPartialArguments() const
Get.
Definition: ExprCXX.h:4220
clang::DesignatedInitUpdateExpr
Definition: Expr.h:5362
clang::ExtVectorElementExpr::getBase
const Expr * getBase() const
Definition: Expr.h:5922
clang::MatrixSubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: Expr.h:2769
clang::serialization::STMT_OMP_FLUSH_DIRECTIVE
@ STMT_OMP_FLUSH_DIRECTIVE
Definition: ASTBitCodes.h:1920
clang::PseudoObjectExpr::getSyntacticForm
Expr * getSyntacticForm()
Return the syntactic form of this expression, i.e.
Definition: Expr.h:6139
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:1896
clang::serialization::EXPR_CXX_NULL_PTR_LITERAL
@ EXPR_CXX_NULL_PTR_LITERAL
Definition: ASTBitCodes.h:1842
clang::ASTRecordWriter::AddSelectorRef
void AddSelectorRef(Selector S)
Emit a Selector (which is a smart pointer reference).
Definition: ASTWriter.cpp:5113
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:4492
clang::OMPIteratorExpr::IteratorRange
Iterator range representation begin:end[:step].
Definition: ExprOpenMP.h:278
clang::OMPInteropDirective
This represents '#pragma omp interop' directive.
Definition: StmtOpenMP.h:5265
clang::serialization::DESIG_ARRAY
@ DESIG_ARRAY
Array designator.
Definition: ASTBitCodes.h:1993
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:1544
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:4923
clang::DesignatedInitUpdateExpr::getUpdater
InitListExpr * getUpdater() const
Definition: Expr.h:5384
clang::OMPDistributeDirective
This represents '#pragma omp distribute' directive.
Definition: StmtOpenMP.h:3933
clang::serialization::DESIG_FIELD_NAME
@ DESIG_FIELD_NAME
Field designator where only the field name is known.
Definition: ASTBitCodes.h:1986
clang::SourceLocExpr::getEndLoc
SourceLocation getEndLoc() const
Definition: Expr.h:4723
clang::ShuffleVectorExpr::getExpr
Expr * getExpr(unsigned Index)
getExpr - Return the Expr at the specified index.
Definition: Expr.h:4433
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:4692
clang::PredefinedExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:2005
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:2133
clang::CXXDeleteExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: ExprCXX.h:2448
clang::serialization::STMT_OMP_TASKYIELD_DIRECTIVE
@ STMT_OMP_TASKYIELD_DIRECTIVE
Definition: ASTBitCodes.h:1917
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:1899
clang::CXXFunctionalCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprCXX.h:1766
clang::serialization::STMT_OBJC_CATCH
@ STMT_OBJC_CATCH
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1760
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:3852
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:4917
clang::ParenExpr
ParenExpr - This represents a parethesized expression, e.g.
Definition: Expr.h:2106
clang::CoyieldExpr
Represents a 'co_yield' expression.
Definition: ExprCXX.h:4849
clang::serialization::EXPR_CXX_ADDRSPACE_CAST
@ EXPR_CXX_ADDRSPACE_CAST
A CXXAddrspaceCastExpr record.
Definition: ASTBitCodes.h:1825
clang::serialization::STMT_CXX_FOR_RANGE
@ STMT_CXX_FOR_RANGE
A CXXForRangeStmt record.
Definition: ASTBitCodes.h:1792
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:2973
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:1856
clang::serialization::EXPR_OBJC_INDIRECT_COPY_RESTORE
@ EXPR_OBJC_INDIRECT_COPY_RESTORE
An ObjCIndirectCopyRestoreExpr record.
Definition: ASTBitCodes.h:1754
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:81
clang::BlockExpr
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Definition: Expr.h:5965
clang::StmtExpr
StmtExpr - This is the GNU Statement Expression extension: ({int X=4; X;}).
Definition: Expr.h:4345
llvm::ArrayRef
Definition: LLVM.h:34
clang::OMPTaskLoopDirective
This represents '#pragma omp taskloop' directive.
Definition: StmtOpenMP.h:3509
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:3545
clang::serialization::EXPR_INIT_LIST
@ EXPR_INIT_LIST
An InitListExpr record.
Definition: ASTBitCodes.h:1658
clang::CXXTypeidExpr::isTypeOperand
bool isTypeOperand() const
Definition: ExprCXX.h:875
clang::serialization::STMT_OMP_INTEROP_DIRECTIVE
@ STMT_OMP_INTEROP_DIRECTIVE
Definition: ASTBitCodes.h:1957
clang::OffsetOfNode::Base
@ Base
An implicit indirection through a C++ base class, when the field found is in a base class.
Definition: Expr.h:2346
clang::ASTRecordWriter::AddDeclarationNameInfo
void AddDeclarationNameInfo(const DeclarationNameInfo &NameInfo)
Definition: ASTWriter.cpp:5377
clang::serialization::EXPR_CXX_CONST_CAST
@ EXPR_CXX_CONST_CAST
A CXXConstCastExpr record.
Definition: ASTBitCodes.h:1822
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:4300
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:5099
clang::OffsetOfExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
getOperatorLoc - Return the location of the operator.
Definition: Expr.h:2473
clang::serialization::EXPR_NO_INIT
@ EXPR_NO_INIT
An NoInitExpr record.
Definition: ASTBitCodes.h:1667
clang::CallExpr::getADLCallKind
ADLCallKind getADLCallKind() const
Definition: Expr.h:2949
clang::ChooseExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4567
clang::ArraySubscriptExpr
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
Definition: Expr.h:2639
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:2478
clang::ConvertVectorExpr::getSrcExpr
Expr * getSrcExpr() const
getSrcExpr - Return the Expr to be converted.
Definition: Expr.h:4481
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:1679
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:2341
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:1919
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:4882
clang::BinaryOperator::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:3844
clang::ASTRecordWriter::AddAPFloat
void AddAPFloat(const llvm::APFloat &Value)
Emit a floating-point value.
Definition: ASTWriter.cpp:5067
clang::serialization::STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1944
clang::RecoveryExpr::getEndLoc
SourceLocation getEndLoc() const
Definition: Expr.h:6435
clang::CoawaitExpr
Represents a 'co_await' expression.
Definition: ExprCXX.h:4764
clang::BreakStmt
BreakStmt - This represents a break.
Definition: Stmt.h:2723
clang::serialization::EXPR_OBJC_ENCODE
@ EXPR_OBJC_ENCODE
An ObjCEncodeExpr record.
Definition: ASTBitCodes.h:1727
clang::serialization::EXPR_OBJC_BRIDGED_CAST
@ EXPR_OBJC_BRIDGED_CAST
Definition: ASTBitCodes.h:1965
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:1736
clang::serialization::STMT_STOP
@ STMT_STOP
A marker record that indicates that we are at the end of an expression.
Definition: ASTBitCodes.h:1517
clang::OMPCancellationPointDirective
This represents '#pragma omp cancellation point' directive.
Definition: StmtOpenMP.h:3391
clang::OMPDispatchDirective
This represents '#pragma omp dispatch' directive.
Definition: StmtOpenMP.h:5318
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:3264
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:4910
clang::serialization::STMT_OMP_SINGLE_DIRECTIVE
@ STMT_OMP_SINGLE_DIRECTIVE
Definition: ASTBitCodes.h:1909
clang::CoroutineBodyStmt::getParamMoves
ArrayRef< Stmt const * > getParamMoves() const
Definition: StmtCXX.h:417
clang::CompoundAssignOperator
CompoundAssignOperator - For compound assignments (e.g.
Definition: Expr.h:4050
clang::ChooseExpr::getCond
Expr * getCond() const
Definition: Expr.h:4560
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:1610
clang::serialization::EXPR_CXX_DEFAULT_INIT
@ EXPR_CXX_DEFAULT_INIT
Definition: ASTBitCodes.h:1848
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:1657
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:1894
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:1580
ASTRecordWriter.h
clang::CoroutineSuspendExpr::children
child_range children()
Definition: ExprCXX.h:4749
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:1942
clang::serialization::EXPR_CUDA_KERNEL_CALL
@ EXPR_CUDA_KERNEL_CALL
Definition: ASTBitCodes.h:1883
clang::StringLiteral::getCharByteWidth
unsigned getCharByteWidth() const
Definition: Expr.h:1874
clang::serialization::STMT_OMP_PARALLEL_MASTER_DIRECTIVE
@ STMT_OMP_PARALLEL_MASTER_DIRECTIVE
Definition: ASTBitCodes.h:1914
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:1680
clang::OMPParallelSectionsDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:2361
clang::ObjCMessageExpr::getLeftLoc
SourceLocation getLeftLoc() const
Definition: ExprObjC.h:1406
clang::serialization::COK_CompoundLiteral
@ COK_CompoundLiteral
Definition: ASTBitCodes.h:2009
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:1292
clang::ContinueStmt
ContinueStmt - This represents a continue.
Definition: Stmt.h:2693
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:4257
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:2343
clang::serialization::STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1937
clang::ChooseExpr::getLHS
Expr * getLHS() const
Definition: Expr.h:4562
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:1972
clang::ExtVectorElementExpr
ExtVectorElementExpr - This represents access to specific elements of a vector, and may occur on the ...
Definition: Expr.h:5905
clang::OMPTeamsDistributeParallelForDirective
This represents '#pragma omp teams distribute parallel for' composite directive.
Definition: StmtOpenMP.h:4614
clang::TypoExpr
TypoExpr - Internal placeholder for expressions where typo correction still needs to be performed and...
Definition: Expr.h:6358
clang::PredefinedExpr
[C99 6.4.2.2] - A predefined identifier such as func.
Definition: Expr.h:1953
clang::serialization::EXPR_PREDEFINED
@ EXPR_PREDEFINED
A PredefinedExpr record.
Definition: ASTBitCodes.h:1589
clang::serialization::EXPR_CXX_UNRESOLVED_CONSTRUCT
@ EXPR_CXX_UNRESOLVED_CONSTRUCT
Definition: ASTBitCodes.h:1860
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:1939
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:1870
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:3373
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:1807
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:2575
clang::serialization::EXPR_MATERIALIZE_TEMPORARY
@ EXPR_MATERIALIZE_TEMPORARY
Definition: ASTBitCodes.h:1877
clang::CompoundLiteralExpr::getInitializer
const Expr * getInitializer() const
Definition: Expr.h:3426
clang::serialization::EXPR_RECOVERY
@ EXPR_RECOVERY
A RecoveryExpr record.
Definition: ASTBitCodes.h:1715
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:1544
clang::ChooseExpr::isConditionTrue
bool isConditionTrue() const
isConditionTrue - Return whether the condition is true (i.e.
Definition: Expr.h:4543
clang::ArraySubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: Expr.h:2687
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:2204
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:4369
clang::ObjCIvarRefExpr::isArrow
bool isArrow() const
Definition: ExprObjC.h:584
clang::serialization::STMT_OMP_SECTIONS_DIRECTIVE
@ STMT_OMP_SECTIONS_DIRECTIVE
Definition: ASTBitCodes.h:1907
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:4900
clang::serialization::EXPR_CXX_UUIDOF_EXPR
@ EXPR_CXX_UUIDOF_EXPR
Definition: ASTBitCodes.h:1891
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:4707
clang::serialization::EXPR_COMPOUND_ASSIGN_OPERATOR
@ EXPR_COMPOUND_ASSIGN_OPERATOR
A CompoundAssignOperator record.
Definition: ASTBitCodes.h:1640
clang::serialization::EXPR_EXT_VECTOR_ELEMENT
@ EXPR_EXT_VECTOR_ELEMENT
An ExtVectorElementExpr record.
Definition: ASTBitCodes.h:1655
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:6144
clang::Stmt
Stmt - This represents one statement.
Definition: Stmt.h:69
clang::SourceLocExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: Expr.h:4722
clang::OMPDistributeParallelForDirective
This represents '#pragma omp distribute parallel for' composite directive.
Definition: StmtOpenMP.h:4055
clang::GenericSelectionExpr::getGenericLoc
SourceLocation getGenericLoc() const
Definition: Expr.h:5870
clang::UnaryOperator::getOpcode
Opcode getOpcode() const
Definition: Expr.h:2199
clang::DefaultStmt
Definition: Stmt.h:1723
clang::OMPTaskLoopDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3566
clang::BinaryOperator::getRHS
Expr * getRHS() const
Definition: Expr.h:3854
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:4411
clang::FPOptionsOverride::getAsOpaqueInt
storage_type getAsOpaqueInt() const
Definition: LangOptions.h:653
clang::MatrixSubscriptExpr::getColumnIdx
Expr * getColumnIdx()
Definition: Expr.h:2751
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:5493
clang::ConditionalOperator::getCond
Expr * getCond() const
Definition: Expr.h:4164
clang::serialization::STMT_OMP_BARRIER_DIRECTIVE
@ STMT_OMP_BARRIER_DIRECTIVE
Definition: ASTBitCodes.h:1918
clang::OMPSectionsDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1824
clang::CXXNewExpr::isGlobalNew
bool isGlobalNew() const
Definition: ExprCXX.h:2298
clang::GenericSelectionExpr
Represents a C11 generic selection.
Definition: Expr.h:5623
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:4564
clang::serialization::EXPR_ATOMIC
@ EXPR_ATOMIC
An AtomicExpr record.
Definition: ASTBitCodes.h:1712
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:1924
clang::serialization::EXPR_OBJC_STRING_LITERAL
@ EXPR_OBJC_STRING_LITERAL
An ObjCStringLiteral record.
Definition: ASTBitCodes.h:1720
clang::serialization::EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
Definition: ASTBitCodes.h:1874
clang::serialization::EXPR_FIXEDPOINT_LITERAL
@ EXPR_FIXEDPOINT_LITERAL
Definition: ASTBitCodes.h:1976
clang::OMPIteratorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprOpenMP.h:369
clang::ParenListExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:5578
clang::InitListExpr::getLBraceLoc
SourceLocation getLBraceLoc() const
Definition: Expr.h:4935
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:2149
clang::serialization::EXPR_GNU_NULL
@ EXPR_GNU_NULL
A GNUNullExpr record.
Definition: ASTBitCodes.h:1691
clang::OMPCancelDirective::getCancelRegion
OpenMPDirectiveKind getCancelRegion() const
Get cancellation region for the current cancellation point.
Definition: StmtOpenMP.h:3493
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:6395
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:5138
clang::VAArgExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4656
clang::CXXNewExpr::getOperatorDelete
FunctionDecl * getOperatorDelete() const
Definition: ExprCXX.h:2259
clang::serialization::STMT_OMP_TASK_DIRECTIVE
@ STMT_OMP_TASK_DIRECTIVE
Definition: ASTBitCodes.h:1916
clang::serialization::EXPR_CXX_DEFAULT_ARG
@ EXPR_CXX_DEFAULT_ARG
Definition: ASTBitCodes.h:1847
clang::ObjCMessageExpr::getMethodDecl
const ObjCMethodDecl * getMethodDecl() const
Definition: ExprObjC.h:1346
clang::serialization::STMT_LABEL
@ STMT_LABEL
A LabelStmt record.
Definition: ASTBitCodes.h:1538
clang::AbstractConditionalOperator::getColonLoc
SourceLocation getColonLoc() const
Definition: Expr.h:4131
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:1908
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:2946
clang::ObjCSelectorExpr::getAtLoc
SourceLocation getAtLoc() const
Definition: ExprObjC.h:471
clang::OMPTargetUpdateDirective
This represents '#pragma omp target update' directive.
Definition: StmtOpenMP.h:3999
clang::ParenListExpr::exprs
ArrayRef< Expr * > exprs()
Definition: Expr.h:5573
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:4911
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:2067
clang::serialization::STMT_SEH_FINALLY
@ STMT_SEH_FINALLY
Definition: ASTBitCodes.h:1895
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:1873
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:3618
clang::VAArgExpr
Represents a call to the builtin function __builtin_va_arg.
Definition: Expr.h:4629
clang::OMPOrderedDirective
This represents '#pragma omp ordered' directive.
Definition: StmtOpenMP.h:2747
clang::SourceLocExpr
Represents a function call to one of __builtin_LINE(), __builtin_COLUMN(), __builtin_FUNCTION(),...
Definition: Expr.h:4678
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:1910
clang::MemberExpr
MemberExpr - [C99 6.5.2.3] Structure and Union Members.
Definition: Expr.h:3162
clang::serialization::EXPR_OPAQUE_VALUE
@ EXPR_OPAQUE_VALUE
Definition: ASTBitCodes.h:1867
clang::ConceptReference::getNestedNameSpecifierLoc
const NestedNameSpecifierLoc & getNestedNameSpecifierLoc() const
Definition: ASTConcept.h:138
clang::serialization::STMT_OMP_TARGET_TEAMS_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DIRECTIVE
Definition: ASTBitCodes.h:1952
clang::ArrayTypeTraitExpr::getQueriedTypeSourceInfo
TypeSourceInfo * getQueriedTypeSourceInfo() const
Definition: ExprCXX.h:2796
clang::serialization::EXPR_OFFSETOF
@ EXPR_OFFSETOF
An OffsetOfExpr record.
Definition: ASTBitCodes.h:1619
clang::serialization::EXPR_OMP_ITERATOR
@ EXPR_OMP_ITERATOR
Definition: ASTBitCodes.h:1962
clang::OMPIteratorExpr::getHelper
OMPIteratorHelperData & getHelper(unsigned I)
Fetches helper data for the specified iteration space.
Definition: Expr.cpp:4933
clang::InitListExpr::getInit
const Expr * getInit(unsigned Init) const
Definition: Expr.h:4834
clang::serialization::STMT_OMP_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1912
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:1308
clang::serialization::EXPR_CHOOSE
@ EXPR_CHOOSE
A ChooseExpr record.
Definition: ASTBitCodes.h:1688
clang::serialization::EXPR_LAMBDA
@ EXPR_LAMBDA
Definition: ASTBitCodes.h:1968
clang::serialization::STMT_OMP_CANCELLATION_POINT_DIRECTIVE
@ STMT_OMP_CANCELLATION_POINT_DIRECTIVE
Definition: ASTBitCodes.h:1933
clang::serialization::EXPR_CONSTANT
@ EXPR_CONSTANT
A constant expression context.
Definition: ASTBitCodes.h:1586
clang::OMPDistributeSimdDirective
This represents '#pragma omp distribute simd' composite directive.
Definition: StmtOpenMP.h:4216
clang::ConceptReference::getConceptNameInfo
const DeclarationNameInfo & getConceptNameInfo() const
Definition: ASTConcept.h:142
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:4678
clang::AbstractConditionalOperator::getQuestionLoc
SourceLocation getQuestionLoc() const
Definition: Expr.h:4130
clang::serialization::STMT_SWITCH
@ STMT_SWITCH
A SwitchStmt record.
Definition: ASTBitCodes.h:1547
clang::serialization::EXPR_FLOATING_LITERAL
@ EXPR_FLOATING_LITERAL
A FloatingLiteral record.
Definition: ASTBitCodes.h:1598
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:5369
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:1951
clang::serialization::EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
@ EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
Definition: ASTBitCodes.h:1890
clang::OMPParallelMasterTaskLoopSimdDirective
This represents '#pragma omp parallel master taskloop simd' directive.
Definition: StmtOpenMP.h:3868
clang::GNUNullExpr
GNUNullExpr - Implements the GNU __null extension, which is a name for a null pointer constant that h...
Definition: Expr.h:4595
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:1943
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:1419
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:1973
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:1949
clang::ObjCPropertyRefExpr::getClassReceiver
ObjCInterfaceDecl * getClassReceiver() const
Definition: ExprObjC.h:767
clang::serialization::EXPR_CXX_UUIDOF_TYPE
@ EXPR_CXX_UUIDOF_TYPE
Definition: ASTBitCodes.h:1892
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:1559
clang::serialization::EXPR_OBJC_SELECTOR_EXPR
@ EXPR_OBJC_SELECTOR_EXPR
An ObjCSelectorExpr record.
Definition: ASTBitCodes.h:1730
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:1852
clang::serialization::DESIG_ARRAY_RANGE
@ DESIG_ARRAY_RANGE
GNU array range designator.
Definition: ASTBitCodes.h:1996
clang::serialization::EXPR_TYPE_TRAIT
@ EXPR_TYPE_TRAIT
Definition: ASTBitCodes.h:1869
clang::ChooseExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4570
clang::serialization::STMT_OBJC_FINALLY
@ STMT_OBJC_FINALLY
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1763
clang::serialization::STMT_WHILE
@ STMT_WHILE
A WhileStmt record.
Definition: ASTBitCodes.h:1550
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:3000
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:1905
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:2081
clang::ObjCPropertyRefExpr::getSuperReceiverType
QualType getSuperReceiverType() const
Definition: ExprObjC.h:763
clang::serialization::EXPR_BINARY_CONDITIONAL_OPERATOR
@ EXPR_BINARY_CONDITIONAL_OPERATOR
Definition: ASTBitCodes.h:1868
clang::OMPTargetSimdDirective
This represents '#pragma omp target simd' directive.
Definition: StmtOpenMP.h:4349
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:4958
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::OMPLoopTransformationDirective::getNumGeneratedLoops
unsigned getNumGeneratedLoops()
Return the number of loops generated by this loop transformation.
Definition: StmtOpenMP.h:981
clang::MemberExpr::getFoundDecl
DeclAccessPair getFoundDecl() const
Retrieves the declaration found by lookup.
Definition: Expr.h:3249
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:3473
clang::FixedPointLiteral::getLocation
SourceLocation getLocation() const
Retrieve the location of the literal.
Definition: Expr.h:1556
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:80
clang::serialization::DESIG_FIELD_DECL
@ DESIG_FIELD_DECL
Field designator where the field has been resolved to a declaration.
Definition: ASTBitCodes.h:1990
clang::Stmt::LambdaExprBits
LambdaExprBitfields LambdaExprBits
Definition: Stmt.h:1068
clang::MSAsmStmt
This represents a Microsoft inline-assembly statement extension.
Definition: Stmt.h:3225
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:1217
clang::ASTWriter::AddToken
void AddToken(const Token &Tok, RecordDataImpl &Record)
Emit a token.
Definition: ASTWriter.cpp:4203
clang::AddrLabelExpr::getLabel
LabelDecl * getLabel() const
Definition: Expr.h:4323
clang::serialization::STMT_OMP_CRITICAL_DIRECTIVE
@ STMT_OMP_CRITICAL_DIRECTIVE
Definition: ASTBitCodes.h:1911
clang::OMPTaskLoopSimdDirective
This represents '#pragma omp taskloop simd' directive.
Definition: StmtOpenMP.h:3582
clang::OMPTargetParallelForDirective
This represents '#pragma omp target parallel for' directive.
Definition: StmtOpenMP.h:3243
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:2795
clang::OMPParallelSectionsDirective
This represents '#pragma omp parallel sections' directive.
Definition: StmtOpenMP.h:2295
clang::InitListExpr::getNumInits
unsigned getNumInits() const
Definition: Expr.h:4816
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:1948
clang::ShuffleVectorExpr
ShuffleVectorExpr - clang-specific builtin-in function __builtin_shufflevector.
Definition: Expr.h:4393
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:3851
clang::serialization::EXPR_COMPOUND_LITERAL
@ EXPR_COMPOUND_LITERAL
A CompoundLiteralExpr record.
Definition: ASTBitCodes.h:1652
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:5789
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:1038
clang::OMPAtomicDirective
This represents '#pragma omp atomic' directive.
Definition: StmtOpenMP.h:2801
clang::serialization::STMT_OMP_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1936
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:1845
clang::serialization::EXPR_CXX_TEMPORARY_OBJECT
@ EXPR_CXX_TEMPORARY_OBJECT
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1810
clang::BinaryConditionalOperator::getOpaqueValue
OpaqueValueExpr * getOpaqueValue() const
getOpaqueValue - Return the opaque value placeholder.
Definition: Expr.h:4241
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1950
clang::OpaqueValueExpr::isUnique
bool isUnique() const
Definition: Expr.h:1187
clang::OMPSectionDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1884
clang::serialization::EXPR_USER_DEFINED_LITERAL
@ EXPR_USER_DEFINED_LITERAL
A UserDefinedLiteral record.
Definition: ASTBitCodes.h:1834
clang::ExplicitCastExpr
ExplicitCastExpr - An explicit cast written in the source code.
Definition: Expr.h:3695
clang::CXXConstructExpr::isElidable
bool isElidable() const
Whether this construction is elidable.
Definition: ExprCXX.h:1538
clang::DependentCoawaitExpr::getKeywordLoc
SourceLocation getKeywordLoc() const
Definition: ExprCXX.h:4829
clang::concepts::ExprRequirement::SS_ConstraintsNotSatisfied
@ SS_ConstraintsNotSatisfied
Definition: ExprConcepts.h:265
clang::CharacterLiteral::getKind
CharacterKind getKind() const
Definition: Expr.h:1605
clang::ReturnStmt
ReturnStmt - This represents a return, optionally of an expression: return; return 4;.
Definition: Stmt.h:2760
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:4837
clang::DeclRefExpr::hasTemplateKWAndArgsInfo
bool hasTemplateKWAndArgsInfo() const
Definition: Expr.h:1336
clang::serialization::EXPR_ARRAY_INIT_LOOP
@ EXPR_ARRAY_INIT_LOOP
An ArrayInitLoopExpr record.
Definition: ASTBitCodes.h:1670
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:5873
clang::SEHLeaveStmt
Represents a __leave statement.
Definition: Stmt.h:3461
clang::serialization::EXPR_IMAGINARY_LITERAL
@ EXPR_IMAGINARY_LITERAL
An ImaginaryLiteral record.
Definition: ASTBitCodes.h:1601
clang::CoroutineSuspendExpr
Represents an expression that might suspend coroutine execution; either a co_await or co_yield expres...
Definition: ExprCXX.h:4679
clang::OMPTeamsDistributeParallelForSimdDirective
This represents '#pragma omp teams distribute parallel for simd' composite directive.
Definition: StmtOpenMP.h:4547
clang::ASTRecordWriter::AddTemplateArgumentLoc
void AddTemplateArgumentLoc(const TemplateArgumentLoc &Arg)
Emits a template argument location.
Definition: ASTWriter.cpp:5168
clang::OMPBarrierDirective
This represents '#pragma omp barrier' directive.
Definition: StmtOpenMP.h:2484
clang::serialization::STMT_REF_PTR
@ STMT_REF_PTR
A reference to a previously [de]serialized Stmt record.
Definition: ASTBitCodes.h:1523
clang::OMPArraySectionExpr::getColonLocFirst
SourceLocation getColonLocFirst() const
Definition: ExprOpenMP.h:118
clang::SYCLUniqueStableNameExpr
Definition: Expr.h:2050
clang::OffsetOfExpr::getRParenLoc
SourceLocation getRParenLoc() const
Return the location of the right parentheses.
Definition: Expr.h:2477
clang::ASTRecordWriter::AddString
void AddString(StringRef Str)
Emit a string.
Definition: ASTRecordWriter.h:282
clang::GenericSelectionExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:5874
clang::ExtVectorElementExpr::getAccessorLoc
SourceLocation getAccessorLoc() const
Definition: Expr.h:5929
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:1742