clang  16.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 
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  Record.push_back(S->hasStoredFPFeatures());
85  for (auto *CS : S->body())
86  Record.AddStmt(CS);
87  if (S->hasStoredFPFeatures())
88  Record.push_back(S->getStoredFPFeatures().getAsOpaqueInt());
89  Record.AddSourceLocation(S->getLBracLoc());
90  Record.AddSourceLocation(S->getRBracLoc());
92 }
93 
94 void ASTStmtWriter::VisitSwitchCase(SwitchCase *S) {
95  VisitStmt(S);
96  Record.push_back(Writer.getSwitchCaseID(S));
97  Record.AddSourceLocation(S->getKeywordLoc());
98  Record.AddSourceLocation(S->getColonLoc());
99 }
100 
101 void ASTStmtWriter::VisitCaseStmt(CaseStmt *S) {
102  VisitSwitchCase(S);
103  Record.push_back(S->caseStmtIsGNURange());
104  Record.AddStmt(S->getLHS());
105  Record.AddStmt(S->getSubStmt());
106  if (S->caseStmtIsGNURange()) {
107  Record.AddStmt(S->getRHS());
108  Record.AddSourceLocation(S->getEllipsisLoc());
109  }
111 }
112 
113 void ASTStmtWriter::VisitDefaultStmt(DefaultStmt *S) {
114  VisitSwitchCase(S);
115  Record.AddStmt(S->getSubStmt());
117 }
118 
119 void ASTStmtWriter::VisitLabelStmt(LabelStmt *S) {
120  VisitStmt(S);
121  Record.push_back(S->isSideEntry());
122  Record.AddDeclRef(S->getDecl());
123  Record.AddStmt(S->getSubStmt());
124  Record.AddSourceLocation(S->getIdentLoc());
126 }
127 
128 void ASTStmtWriter::VisitAttributedStmt(AttributedStmt *S) {
129  VisitStmt(S);
130  Record.push_back(S->getAttrs().size());
131  Record.AddAttributes(S->getAttrs());
132  Record.AddStmt(S->getSubStmt());
133  Record.AddSourceLocation(S->getAttrLoc());
135 }
136 
137 void ASTStmtWriter::VisitIfStmt(IfStmt *S) {
138  VisitStmt(S);
139 
140  bool HasElse = S->getElse() != nullptr;
141  bool HasVar = S->getConditionVariableDeclStmt() != nullptr;
142  bool HasInit = S->getInit() != nullptr;
143 
144  Record.push_back(HasElse);
145  Record.push_back(HasVar);
146  Record.push_back(HasInit);
147  Record.push_back(static_cast<uint64_t>(S->getStatementKind()));
148  Record.AddStmt(S->getCond());
149  Record.AddStmt(S->getThen());
150  if (HasElse)
151  Record.AddStmt(S->getElse());
152  if (HasVar)
153  Record.AddDeclRef(S->getConditionVariable());
154  if (HasInit)
155  Record.AddStmt(S->getInit());
156 
157  Record.AddSourceLocation(S->getIfLoc());
158  Record.AddSourceLocation(S->getLParenLoc());
159  Record.AddSourceLocation(S->getRParenLoc());
160  if (HasElse)
161  Record.AddSourceLocation(S->getElseLoc());
162 
163  Code = serialization::STMT_IF;
164 }
165 
166 void ASTStmtWriter::VisitSwitchStmt(SwitchStmt *S) {
167  VisitStmt(S);
168 
169  bool HasInit = S->getInit() != nullptr;
170  bool HasVar = S->getConditionVariableDeclStmt() != nullptr;
171  Record.push_back(HasInit);
172  Record.push_back(HasVar);
173  Record.push_back(S->isAllEnumCasesCovered());
174 
175  Record.AddStmt(S->getCond());
176  Record.AddStmt(S->getBody());
177  if (HasInit)
178  Record.AddStmt(S->getInit());
179  if (HasVar)
180  Record.AddDeclRef(S->getConditionVariable());
181 
182  Record.AddSourceLocation(S->getSwitchLoc());
183  Record.AddSourceLocation(S->getLParenLoc());
184  Record.AddSourceLocation(S->getRParenLoc());
185 
186  for (SwitchCase *SC = S->getSwitchCaseList(); SC;
187  SC = SC->getNextSwitchCase())
188  Record.push_back(Writer.RecordSwitchCaseID(SC));
190 }
191 
192 void ASTStmtWriter::VisitWhileStmt(WhileStmt *S) {
193  VisitStmt(S);
194 
195  bool HasVar = S->getConditionVariableDeclStmt() != nullptr;
196  Record.push_back(HasVar);
197 
198  Record.AddStmt(S->getCond());
199  Record.AddStmt(S->getBody());
200  if (HasVar)
201  Record.AddDeclRef(S->getConditionVariable());
202 
203  Record.AddSourceLocation(S->getWhileLoc());
204  Record.AddSourceLocation(S->getLParenLoc());
205  Record.AddSourceLocation(S->getRParenLoc());
207 }
208 
209 void ASTStmtWriter::VisitDoStmt(DoStmt *S) {
210  VisitStmt(S);
211  Record.AddStmt(S->getCond());
212  Record.AddStmt(S->getBody());
213  Record.AddSourceLocation(S->getDoLoc());
214  Record.AddSourceLocation(S->getWhileLoc());
215  Record.AddSourceLocation(S->getRParenLoc());
216  Code = serialization::STMT_DO;
217 }
218 
219 void ASTStmtWriter::VisitForStmt(ForStmt *S) {
220  VisitStmt(S);
221  Record.AddStmt(S->getInit());
222  Record.AddStmt(S->getCond());
223  Record.AddDeclRef(S->getConditionVariable());
224  Record.AddStmt(S->getInc());
225  Record.AddStmt(S->getBody());
226  Record.AddSourceLocation(S->getForLoc());
227  Record.AddSourceLocation(S->getLParenLoc());
228  Record.AddSourceLocation(S->getRParenLoc());
230 }
231 
232 void ASTStmtWriter::VisitGotoStmt(GotoStmt *S) {
233  VisitStmt(S);
234  Record.AddDeclRef(S->getLabel());
235  Record.AddSourceLocation(S->getGotoLoc());
236  Record.AddSourceLocation(S->getLabelLoc());
238 }
239 
240 void ASTStmtWriter::VisitIndirectGotoStmt(IndirectGotoStmt *S) {
241  VisitStmt(S);
242  Record.AddSourceLocation(S->getGotoLoc());
243  Record.AddSourceLocation(S->getStarLoc());
244  Record.AddStmt(S->getTarget());
246 }
247 
248 void ASTStmtWriter::VisitContinueStmt(ContinueStmt *S) {
249  VisitStmt(S);
250  Record.AddSourceLocation(S->getContinueLoc());
252 }
253 
254 void ASTStmtWriter::VisitBreakStmt(BreakStmt *S) {
255  VisitStmt(S);
256  Record.AddSourceLocation(S->getBreakLoc());
258 }
259 
260 void ASTStmtWriter::VisitReturnStmt(ReturnStmt *S) {
261  VisitStmt(S);
262 
263  bool HasNRVOCandidate = S->getNRVOCandidate() != nullptr;
264  Record.push_back(HasNRVOCandidate);
265 
266  Record.AddStmt(S->getRetValue());
267  if (HasNRVOCandidate)
268  Record.AddDeclRef(S->getNRVOCandidate());
269 
270  Record.AddSourceLocation(S->getReturnLoc());
272 }
273 
274 void ASTStmtWriter::VisitDeclStmt(DeclStmt *S) {
275  VisitStmt(S);
276  Record.AddSourceLocation(S->getBeginLoc());
277  Record.AddSourceLocation(S->getEndLoc());
278  DeclGroupRef DG = S->getDeclGroup();
279  for (DeclGroupRef::iterator D = DG.begin(), DEnd = DG.end(); D != DEnd; ++D)
280  Record.AddDeclRef(*D);
282 }
283 
284 void ASTStmtWriter::VisitAsmStmt(AsmStmt *S) {
285  VisitStmt(S);
286  Record.push_back(S->getNumOutputs());
287  Record.push_back(S->getNumInputs());
288  Record.push_back(S->getNumClobbers());
289  Record.AddSourceLocation(S->getAsmLoc());
290  Record.push_back(S->isVolatile());
291  Record.push_back(S->isSimple());
292 }
293 
294 void ASTStmtWriter::VisitGCCAsmStmt(GCCAsmStmt *S) {
295  VisitAsmStmt(S);
296  Record.push_back(S->getNumLabels());
297  Record.AddSourceLocation(S->getRParenLoc());
298  Record.AddStmt(S->getAsmString());
299 
300  // Outputs
301  for (unsigned I = 0, N = S->getNumOutputs(); I != N; ++I) {
302  Record.AddIdentifierRef(S->getOutputIdentifier(I));
303  Record.AddStmt(S->getOutputConstraintLiteral(I));
304  Record.AddStmt(S->getOutputExpr(I));
305  }
306 
307  // Inputs
308  for (unsigned I = 0, N = S->getNumInputs(); I != N; ++I) {
309  Record.AddIdentifierRef(S->getInputIdentifier(I));
310  Record.AddStmt(S->getInputConstraintLiteral(I));
311  Record.AddStmt(S->getInputExpr(I));
312  }
313 
314  // Clobbers
315  for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I)
316  Record.AddStmt(S->getClobberStringLiteral(I));
317 
318  // Labels
319  for (auto *E : S->labels()) Record.AddStmt(E);
320 
322 }
323 
324 void ASTStmtWriter::VisitMSAsmStmt(MSAsmStmt *S) {
325  VisitAsmStmt(S);
326  Record.AddSourceLocation(S->getLBraceLoc());
327  Record.AddSourceLocation(S->getEndLoc());
328  Record.push_back(S->getNumAsmToks());
329  Record.AddString(S->getAsmString());
330 
331  // Tokens
332  for (unsigned I = 0, N = S->getNumAsmToks(); I != N; ++I) {
333  // FIXME: Move this to ASTRecordWriter?
334  Writer.AddToken(S->getAsmToks()[I], Record.getRecordData());
335  }
336 
337  // Clobbers
338  for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I) {
339  Record.AddString(S->getClobber(I));
340  }
341 
342  // Outputs
343  for (unsigned I = 0, N = S->getNumOutputs(); I != N; ++I) {
344  Record.AddStmt(S->getOutputExpr(I));
345  Record.AddString(S->getOutputConstraint(I));
346  }
347 
348  // Inputs
349  for (unsigned I = 0, N = S->getNumInputs(); I != N; ++I) {
350  Record.AddStmt(S->getInputExpr(I));
351  Record.AddString(S->getInputConstraint(I));
352  }
353 
355 }
356 
357 void ASTStmtWriter::VisitCoroutineBodyStmt(CoroutineBodyStmt *CoroStmt) {
358  VisitStmt(CoroStmt);
359  Record.push_back(CoroStmt->getParamMoves().size());
360  for (Stmt *S : CoroStmt->children())
361  Record.AddStmt(S);
363 }
364 
365 void ASTStmtWriter::VisitCoreturnStmt(CoreturnStmt *S) {
366  VisitStmt(S);
367  Record.AddSourceLocation(S->getKeywordLoc());
368  Record.AddStmt(S->getOperand());
369  Record.AddStmt(S->getPromiseCall());
370  Record.push_back(S->isImplicit());
372 }
373 
374 void ASTStmtWriter::VisitCoroutineSuspendExpr(CoroutineSuspendExpr *E) {
375  VisitExpr(E);
376  Record.AddSourceLocation(E->getKeywordLoc());
377  for (Stmt *S : E->children())
378  Record.AddStmt(S);
379  Record.AddStmt(E->getOpaqueValue());
380 }
381 
382 void ASTStmtWriter::VisitCoawaitExpr(CoawaitExpr *E) {
383  VisitCoroutineSuspendExpr(E);
384  Record.push_back(E->isImplicit());
386 }
387 
388 void ASTStmtWriter::VisitCoyieldExpr(CoyieldExpr *E) {
389  VisitCoroutineSuspendExpr(E);
391 }
392 
393 void ASTStmtWriter::VisitDependentCoawaitExpr(DependentCoawaitExpr *E) {
394  VisitExpr(E);
395  Record.AddSourceLocation(E->getKeywordLoc());
396  for (Stmt *S : E->children())
397  Record.AddStmt(S);
399 }
400 
401 static void
403  const ASTConstraintSatisfaction &Satisfaction) {
404  Record.push_back(Satisfaction.IsSatisfied);
405  Record.push_back(Satisfaction.ContainsErrors);
406  if (!Satisfaction.IsSatisfied) {
407  Record.push_back(Satisfaction.NumRecords);
408  for (const auto &DetailRecord : Satisfaction) {
409  Record.AddStmt(const_cast<Expr *>(DetailRecord.first));
410  auto *E = DetailRecord.second.dyn_cast<Expr *>();
411  Record.push_back(E == nullptr);
412  if (E)
413  Record.AddStmt(E);
414  else {
415  auto *Diag = DetailRecord.second.get<std::pair<SourceLocation,
416  StringRef> *>();
417  Record.AddSourceLocation(Diag->first);
418  Record.AddString(Diag->second);
419  }
420  }
421  }
422 }
423 
424 static void
426  ASTRecordWriter &Record,
428  Record.AddString(D->SubstitutedEntity);
429  Record.AddSourceLocation(D->DiagLoc);
430  Record.AddString(D->DiagMessage);
431 }
432 
433 void ASTStmtWriter::VisitConceptSpecializationExpr(
435  VisitExpr(E);
437  Record.AddSourceLocation(E->getTemplateKWLoc());
439  Record.AddDeclRef(E->getNamedConcept());
440  Record.AddDeclRef(E->getFoundDecl());
441  Record.AddDeclRef(E->getSpecializationDecl());
443  if (!E->isValueDependent())
445 
447 }
448 
449 void ASTStmtWriter::VisitRequiresExpr(RequiresExpr *E) {
450  VisitExpr(E);
451  Record.push_back(E->getLocalParameters().size());
452  Record.push_back(E->getRequirements().size());
453  Record.AddSourceLocation(E->RequiresExprBits.RequiresKWLoc);
454  Record.push_back(E->RequiresExprBits.IsSatisfied);
455  Record.AddDeclRef(E->getBody());
456  for (ParmVarDecl *P : E->getLocalParameters())
457  Record.AddDeclRef(P);
458  for (concepts::Requirement *R : E->getRequirements()) {
459  if (auto *TypeReq = dyn_cast<concepts::TypeRequirement>(R)) {
461  Record.push_back(TypeReq->Status);
463  addSubstitutionDiagnostic(Record, TypeReq->getSubstitutionDiagnostic());
464  else
465  Record.AddTypeSourceInfo(TypeReq->getType());
466  } else if (auto *ExprReq = dyn_cast<concepts::ExprRequirement>(R)) {
467  Record.push_back(ExprReq->getKind());
468  Record.push_back(ExprReq->Status);
469  if (ExprReq->isExprSubstitutionFailure()) {
471  ExprReq->Value.get<concepts::Requirement::SubstitutionDiagnostic *>());
472  } else
473  Record.AddStmt(ExprReq->Value.get<Expr *>());
474  if (ExprReq->getKind() == concepts::Requirement::RK_Compound) {
475  Record.AddSourceLocation(ExprReq->NoexceptLoc);
476  const auto &RetReq = ExprReq->getReturnTypeRequirement();
477  if (RetReq.isSubstitutionFailure()) {
478  Record.push_back(2);
479  addSubstitutionDiagnostic(Record, RetReq.getSubstitutionDiagnostic());
480  } else if (RetReq.isTypeConstraint()) {
481  Record.push_back(1);
483  RetReq.getTypeConstraintTemplateParameterList());
484  if (ExprReq->Status >=
486  Record.AddStmt(
487  ExprReq->getReturnTypeRequirementSubstitutedConstraintExpr());
488  } else {
489  assert(RetReq.isEmpty());
490  Record.push_back(0);
491  }
492  }
493  } else {
494  auto *NestedReq = cast<concepts::NestedRequirement>(R);
496  Record.push_back(NestedReq->isSubstitutionFailure());
497  if (NestedReq->isSubstitutionFailure()){
499  NestedReq->getSubstitutionDiagnostic());
500  } else {
501  Record.AddStmt(NestedReq->Value.get<Expr *>());
502  if (!NestedReq->isDependent())
503  addConstraintSatisfaction(Record, *NestedReq->Satisfaction);
504  }
505  }
506  }
507  Record.AddSourceLocation(E->getEndLoc());
508 
510 }
511 
512 
513 void ASTStmtWriter::VisitCapturedStmt(CapturedStmt *S) {
514  VisitStmt(S);
515  // NumCaptures
516  Record.push_back(std::distance(S->capture_begin(), S->capture_end()));
517 
518  // CapturedDecl and captured region kind
519  Record.AddDeclRef(S->getCapturedDecl());
520  Record.push_back(S->getCapturedRegionKind());
521 
522  Record.AddDeclRef(S->getCapturedRecordDecl());
523 
524  // Capture inits
525  for (auto *I : S->capture_inits())
526  Record.AddStmt(I);
527 
528  // Body
529  Record.AddStmt(S->getCapturedStmt());
530 
531  // Captures
532  for (const auto &I : S->captures()) {
533  if (I.capturesThis() || I.capturesVariableArrayType())
534  Record.AddDeclRef(nullptr);
535  else
536  Record.AddDeclRef(I.getCapturedVar());
537  Record.push_back(I.getCaptureKind());
538  Record.AddSourceLocation(I.getLocation());
539  }
540 
542 }
543 
544 void ASTStmtWriter::VisitExpr(Expr *E) {
545  VisitStmt(E);
546  Record.AddTypeRef(E->getType());
547  Record.push_back(E->getDependence());
548  Record.push_back(E->getValueKind());
549  Record.push_back(E->getObjectKind());
550 }
551 
552 void ASTStmtWriter::VisitConstantExpr(ConstantExpr *E) {
553  VisitExpr(E);
554  Record.push_back(E->ConstantExprBits.ResultKind);
555 
556  Record.push_back(E->ConstantExprBits.APValueKind);
557  Record.push_back(E->ConstantExprBits.IsUnsigned);
558  Record.push_back(E->ConstantExprBits.BitWidth);
559  // HasCleanup not serialized since we can just query the APValue.
560  Record.push_back(E->ConstantExprBits.IsImmediateInvocation);
561 
562  switch (E->ConstantExprBits.ResultKind) {
564  break;
566  Record.push_back(E->Int64Result());
567  break;
569  Record.AddAPValue(E->APValueResult());
570  break;
571  default:
572  llvm_unreachable("unexpected ResultKind!");
573  }
574 
575  Record.AddStmt(E->getSubExpr());
577 }
578 
579 void ASTStmtWriter::VisitSYCLUniqueStableNameExpr(SYCLUniqueStableNameExpr *E) {
580  VisitExpr(E);
581 
582  Record.AddSourceLocation(E->getLocation());
586 
588 }
589 
590 void ASTStmtWriter::VisitPredefinedExpr(PredefinedExpr *E) {
591  VisitExpr(E);
592 
593  bool HasFunctionName = E->getFunctionName() != nullptr;
594  Record.push_back(HasFunctionName);
595  Record.push_back(E->getIdentKind()); // FIXME: stable encoding
596  Record.AddSourceLocation(E->getLocation());
597  if (HasFunctionName)
598  Record.AddStmt(E->getFunctionName());
600 }
601 
602 void ASTStmtWriter::VisitDeclRefExpr(DeclRefExpr *E) {
603  VisitExpr(E);
604 
605  Record.push_back(E->hasQualifier());
606  Record.push_back(E->getDecl() != E->getFoundDecl());
607  Record.push_back(E->hasTemplateKWAndArgsInfo());
608  Record.push_back(E->hadMultipleCandidates());
610  Record.push_back(E->isNonOdrUse());
611 
612  if (E->hasTemplateKWAndArgsInfo()) {
613  unsigned NumTemplateArgs = E->getNumTemplateArgs();
614  Record.push_back(NumTemplateArgs);
615  }
616 
618 
619  if ((!E->hasTemplateKWAndArgsInfo()) && (!E->hasQualifier()) &&
620  (E->getDecl() == E->getFoundDecl()) &&
623  AbbrevToUse = Writer.getDeclRefExprAbbrev();
624  }
625 
626  if (E->hasQualifier())
628 
629  if (E->getDecl() != E->getFoundDecl())
630  Record.AddDeclRef(E->getFoundDecl());
631 
632  if (E->hasTemplateKWAndArgsInfo())
633  AddTemplateKWAndArgsInfo(*E->getTrailingObjects<ASTTemplateKWAndArgsInfo>(),
634  E->getTrailingObjects<TemplateArgumentLoc>());
635 
636  Record.AddDeclRef(E->getDecl());
637  Record.AddSourceLocation(E->getLocation());
638  Record.AddDeclarationNameLoc(E->DNLoc, E->getDecl()->getDeclName());
640 }
641 
642 void ASTStmtWriter::VisitIntegerLiteral(IntegerLiteral *E) {
643  VisitExpr(E);
644  Record.AddSourceLocation(E->getLocation());
645  Record.AddAPInt(E->getValue());
646 
647  if (E->getValue().getBitWidth() == 32) {
648  AbbrevToUse = Writer.getIntegerLiteralAbbrev();
649  }
650 
652 }
653 
654 void ASTStmtWriter::VisitFixedPointLiteral(FixedPointLiteral *E) {
655  VisitExpr(E);
656  Record.AddSourceLocation(E->getLocation());
657  Record.push_back(E->getScale());
658  Record.AddAPInt(E->getValue());
660 }
661 
662 void ASTStmtWriter::VisitFloatingLiteral(FloatingLiteral *E) {
663  VisitExpr(E);
664  Record.push_back(E->getRawSemantics());
665  Record.push_back(E->isExact());
666  Record.AddAPFloat(E->getValue());
667  Record.AddSourceLocation(E->getLocation());
669 }
670 
671 void ASTStmtWriter::VisitImaginaryLiteral(ImaginaryLiteral *E) {
672  VisitExpr(E);
673  Record.AddStmt(E->getSubExpr());
675 }
676 
677 void ASTStmtWriter::VisitStringLiteral(StringLiteral *E) {
678  VisitExpr(E);
679 
680  // Store the various bits of data of StringLiteral.
681  Record.push_back(E->getNumConcatenated());
682  Record.push_back(E->getLength());
683  Record.push_back(E->getCharByteWidth());
684  Record.push_back(E->getKind());
685  Record.push_back(E->isPascal());
686 
687  // Store the trailing array of SourceLocation.
688  for (unsigned I = 0, N = E->getNumConcatenated(); I != N; ++I)
689  Record.AddSourceLocation(E->getStrTokenLoc(I));
690 
691  // Store the trailing array of char holding the string data.
692  StringRef StrData = E->getBytes();
693  for (unsigned I = 0, N = E->getByteLength(); I != N; ++I)
694  Record.push_back(StrData[I]);
695 
697 }
698 
699 void ASTStmtWriter::VisitCharacterLiteral(CharacterLiteral *E) {
700  VisitExpr(E);
701  Record.push_back(E->getValue());
702  Record.AddSourceLocation(E->getLocation());
703  Record.push_back(E->getKind());
704 
705  AbbrevToUse = Writer.getCharacterLiteralAbbrev();
706 
708 }
709 
710 void ASTStmtWriter::VisitParenExpr(ParenExpr *E) {
711  VisitExpr(E);
712  Record.AddSourceLocation(E->getLParen());
713  Record.AddSourceLocation(E->getRParen());
714  Record.AddStmt(E->getSubExpr());
716 }
717 
718 void ASTStmtWriter::VisitParenListExpr(ParenListExpr *E) {
719  VisitExpr(E);
720  Record.push_back(E->getNumExprs());
721  for (auto *SubStmt : E->exprs())
722  Record.AddStmt(SubStmt);
723  Record.AddSourceLocation(E->getLParenLoc());
724  Record.AddSourceLocation(E->getRParenLoc());
726 }
727 
728 void ASTStmtWriter::VisitUnaryOperator(UnaryOperator *E) {
729  VisitExpr(E);
730  bool HasFPFeatures = E->hasStoredFPFeatures();
731  // Write this first for easy access when deserializing, as they affect the
732  // size of the UnaryOperator.
733  Record.push_back(HasFPFeatures);
734  Record.AddStmt(E->getSubExpr());
735  Record.push_back(E->getOpcode()); // FIXME: stable encoding
736  Record.AddSourceLocation(E->getOperatorLoc());
737  Record.push_back(E->canOverflow());
738  if (HasFPFeatures)
741 }
742 
743 void ASTStmtWriter::VisitOffsetOfExpr(OffsetOfExpr *E) {
744  VisitExpr(E);
745  Record.push_back(E->getNumComponents());
746  Record.push_back(E->getNumExpressions());
747  Record.AddSourceLocation(E->getOperatorLoc());
748  Record.AddSourceLocation(E->getRParenLoc());
750  for (unsigned I = 0, N = E->getNumComponents(); I != N; ++I) {
751  const OffsetOfNode &ON = E->getComponent(I);
752  Record.push_back(ON.getKind()); // FIXME: Stable encoding
754  Record.AddSourceLocation(ON.getSourceRange().getEnd());
755  switch (ON.getKind()) {
756  case OffsetOfNode::Array:
757  Record.push_back(ON.getArrayExprIndex());
758  break;
759 
760  case OffsetOfNode::Field:
761  Record.AddDeclRef(ON.getField());
762  break;
763 
765  Record.AddIdentifierRef(ON.getFieldName());
766  break;
767 
768  case OffsetOfNode::Base:
769  Record.AddCXXBaseSpecifier(*ON.getBase());
770  break;
771  }
772  }
773  for (unsigned I = 0, N = E->getNumExpressions(); I != N; ++I)
774  Record.AddStmt(E->getIndexExpr(I));
776 }
777 
778 void ASTStmtWriter::VisitUnaryExprOrTypeTraitExpr(UnaryExprOrTypeTraitExpr *E) {
779  VisitExpr(E);
780  Record.push_back(E->getKind());
781  if (E->isArgumentType())
783  else {
784  Record.push_back(0);
785  Record.AddStmt(E->getArgumentExpr());
786  }
787  Record.AddSourceLocation(E->getOperatorLoc());
788  Record.AddSourceLocation(E->getRParenLoc());
790 }
791 
792 void ASTStmtWriter::VisitArraySubscriptExpr(ArraySubscriptExpr *E) {
793  VisitExpr(E);
794  Record.AddStmt(E->getLHS());
795  Record.AddStmt(E->getRHS());
796  Record.AddSourceLocation(E->getRBracketLoc());
798 }
799 
800 void ASTStmtWriter::VisitMatrixSubscriptExpr(MatrixSubscriptExpr *E) {
801  VisitExpr(E);
802  Record.AddStmt(E->getBase());
803  Record.AddStmt(E->getRowIdx());
804  Record.AddStmt(E->getColumnIdx());
805  Record.AddSourceLocation(E->getRBracketLoc());
807 }
808 
809 void ASTStmtWriter::VisitOMPArraySectionExpr(OMPArraySectionExpr *E) {
810  VisitExpr(E);
811  Record.AddStmt(E->getBase());
812  Record.AddStmt(E->getLowerBound());
813  Record.AddStmt(E->getLength());
814  Record.AddStmt(E->getStride());
815  Record.AddSourceLocation(E->getColonLocFirst());
817  Record.AddSourceLocation(E->getRBracketLoc());
819 }
820 
821 void ASTStmtWriter::VisitOMPArrayShapingExpr(OMPArrayShapingExpr *E) {
822  VisitExpr(E);
823  Record.push_back(E->getDimensions().size());
824  Record.AddStmt(E->getBase());
825  for (Expr *Dim : E->getDimensions())
826  Record.AddStmt(Dim);
827  for (SourceRange SR : E->getBracketsRanges())
828  Record.AddSourceRange(SR);
829  Record.AddSourceLocation(E->getLParenLoc());
830  Record.AddSourceLocation(E->getRParenLoc());
832 }
833 
834 void ASTStmtWriter::VisitOMPIteratorExpr(OMPIteratorExpr *E) {
835  VisitExpr(E);
836  Record.push_back(E->numOfIterators());
837  Record.AddSourceLocation(E->getIteratorKwLoc());
838  Record.AddSourceLocation(E->getLParenLoc());
839  Record.AddSourceLocation(E->getRParenLoc());
840  for (unsigned I = 0, End = E->numOfIterators(); I < End; ++I) {
841  Record.AddDeclRef(E->getIteratorDecl(I));
842  Record.AddSourceLocation(E->getAssignLoc(I));
844  Record.AddStmt(Range.Begin);
845  Record.AddStmt(Range.End);
846  Record.AddStmt(Range.Step);
847  Record.AddSourceLocation(E->getColonLoc(I));
848  if (Range.Step)
849  Record.AddSourceLocation(E->getSecondColonLoc(I));
850  // Serialize helpers
851  OMPIteratorHelperData &HD = E->getHelper(I);
852  Record.AddDeclRef(HD.CounterVD);
853  Record.AddStmt(HD.Upper);
854  Record.AddStmt(HD.Update);
855  Record.AddStmt(HD.CounterUpdate);
856  }
858 }
859 
860 void ASTStmtWriter::VisitCallExpr(CallExpr *E) {
861  VisitExpr(E);
862  Record.push_back(E->getNumArgs());
863  Record.push_back(E->hasStoredFPFeatures());
864  Record.AddSourceLocation(E->getRParenLoc());
865  Record.AddStmt(E->getCallee());
866  for (CallExpr::arg_iterator Arg = E->arg_begin(), ArgEnd = E->arg_end();
867  Arg != ArgEnd; ++Arg)
868  Record.AddStmt(*Arg);
869  Record.push_back(static_cast<unsigned>(E->getADLCallKind()));
870  if (E->hasStoredFPFeatures())
871  Record.push_back(E->getFPFeatures().getAsOpaqueInt());
873 }
874 
875 void ASTStmtWriter::VisitRecoveryExpr(RecoveryExpr *E) {
876  VisitExpr(E);
877  Record.push_back(std::distance(E->children().begin(), E->children().end()));
878  Record.AddSourceLocation(E->getBeginLoc());
879  Record.AddSourceLocation(E->getEndLoc());
880  for (Stmt *Child : E->children())
881  Record.AddStmt(Child);
883 }
884 
885 void ASTStmtWriter::VisitMemberExpr(MemberExpr *E) {
886  VisitExpr(E);
887 
888  bool HasQualifier = E->hasQualifier();
889  bool HasFoundDecl =
890  E->hasQualifierOrFoundDecl() &&
891  (E->getFoundDecl().getDecl() != E->getMemberDecl() ||
892  E->getFoundDecl().getAccess() != E->getMemberDecl()->getAccess());
893  bool HasTemplateInfo = E->hasTemplateKWAndArgsInfo();
894  unsigned NumTemplateArgs = E->getNumTemplateArgs();
895 
896  // Write these first for easy access when deserializing, as they affect the
897  // size of the MemberExpr.
898  Record.push_back(HasQualifier);
899  Record.push_back(HasFoundDecl);
900  Record.push_back(HasTemplateInfo);
901  Record.push_back(NumTemplateArgs);
902 
903  Record.AddStmt(E->getBase());
904  Record.AddDeclRef(E->getMemberDecl());
905  Record.AddDeclarationNameLoc(E->MemberDNLoc,
906  E->getMemberDecl()->getDeclName());
907  Record.AddSourceLocation(E->getMemberLoc());
908  Record.push_back(E->isArrow());
909  Record.push_back(E->hadMultipleCandidates());
910  Record.push_back(E->isNonOdrUse());
911  Record.AddSourceLocation(E->getOperatorLoc());
912 
913  if (HasFoundDecl) {
914  DeclAccessPair FoundDecl = E->getFoundDecl();
915  Record.AddDeclRef(FoundDecl.getDecl());
916  Record.push_back(FoundDecl.getAccess());
917  }
918 
919  if (HasQualifier)
921 
922  if (HasTemplateInfo)
923  AddTemplateKWAndArgsInfo(*E->getTrailingObjects<ASTTemplateKWAndArgsInfo>(),
924  E->getTrailingObjects<TemplateArgumentLoc>());
925 
927 }
928 
929 void ASTStmtWriter::VisitObjCIsaExpr(ObjCIsaExpr *E) {
930  VisitExpr(E);
931  Record.AddStmt(E->getBase());
932  Record.AddSourceLocation(E->getIsaMemberLoc());
933  Record.AddSourceLocation(E->getOpLoc());
934  Record.push_back(E->isArrow());
936 }
937 
938 void ASTStmtWriter::
939 VisitObjCIndirectCopyRestoreExpr(ObjCIndirectCopyRestoreExpr *E) {
940  VisitExpr(E);
941  Record.AddStmt(E->getSubExpr());
942  Record.push_back(E->shouldCopy());
944 }
945 
946 void ASTStmtWriter::VisitObjCBridgedCastExpr(ObjCBridgedCastExpr *E) {
947  VisitExplicitCastExpr(E);
948  Record.AddSourceLocation(E->getLParenLoc());
950  Record.push_back(E->getBridgeKind()); // FIXME: Stable encoding
952 }
953 
954 void ASTStmtWriter::VisitCastExpr(CastExpr *E) {
955  VisitExpr(E);
956  Record.push_back(E->path_size());
957  Record.push_back(E->hasStoredFPFeatures());
958  Record.AddStmt(E->getSubExpr());
959  Record.push_back(E->getCastKind()); // FIXME: stable encoding
960 
962  PI = E->path_begin(), PE = E->path_end(); PI != PE; ++PI)
963  Record.AddCXXBaseSpecifier(**PI);
964 
965  if (E->hasStoredFPFeatures())
966  Record.push_back(E->getFPFeatures().getAsOpaqueInt());
967 }
968 
969 void ASTStmtWriter::VisitBinaryOperator(BinaryOperator *E) {
970  VisitExpr(E);
971  bool HasFPFeatures = E->hasStoredFPFeatures();
972  // Write this first for easy access when deserializing, as they affect the
973  // size of the UnaryOperator.
974  Record.push_back(HasFPFeatures);
975  Record.push_back(E->getOpcode()); // FIXME: stable encoding
976  Record.AddStmt(E->getLHS());
977  Record.AddStmt(E->getRHS());
978  Record.AddSourceLocation(E->getOperatorLoc());
979  if (HasFPFeatures)
982 }
983 
984 void ASTStmtWriter::VisitCompoundAssignOperator(CompoundAssignOperator *E) {
985  VisitBinaryOperator(E);
986  Record.AddTypeRef(E->getComputationLHSType());
989 }
990 
991 void ASTStmtWriter::VisitConditionalOperator(ConditionalOperator *E) {
992  VisitExpr(E);
993  Record.AddStmt(E->getCond());
994  Record.AddStmt(E->getLHS());
995  Record.AddStmt(E->getRHS());
996  Record.AddSourceLocation(E->getQuestionLoc());
997  Record.AddSourceLocation(E->getColonLoc());
999 }
1000 
1001 void
1002 ASTStmtWriter::VisitBinaryConditionalOperator(BinaryConditionalOperator *E) {
1003  VisitExpr(E);
1004  Record.AddStmt(E->getOpaqueValue());
1005  Record.AddStmt(E->getCommon());
1006  Record.AddStmt(E->getCond());
1007  Record.AddStmt(E->getTrueExpr());
1008  Record.AddStmt(E->getFalseExpr());
1009  Record.AddSourceLocation(E->getQuestionLoc());
1010  Record.AddSourceLocation(E->getColonLoc());
1012 }
1013 
1014 void ASTStmtWriter::VisitImplicitCastExpr(ImplicitCastExpr *E) {
1015  VisitCastExpr(E);
1016  Record.push_back(E->isPartOfExplicitCast());
1017 
1018  if (E->path_size() == 0 && !E->hasStoredFPFeatures())
1019  AbbrevToUse = Writer.getExprImplicitCastAbbrev();
1020 
1022 }
1023 
1024 void ASTStmtWriter::VisitExplicitCastExpr(ExplicitCastExpr *E) {
1025  VisitCastExpr(E);
1027 }
1028 
1029 void ASTStmtWriter::VisitCStyleCastExpr(CStyleCastExpr *E) {
1030  VisitExplicitCastExpr(E);
1031  Record.AddSourceLocation(E->getLParenLoc());
1032  Record.AddSourceLocation(E->getRParenLoc());
1034 }
1035 
1036 void ASTStmtWriter::VisitCompoundLiteralExpr(CompoundLiteralExpr *E) {
1037  VisitExpr(E);
1038  Record.AddSourceLocation(E->getLParenLoc());
1039  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1040  Record.AddStmt(E->getInitializer());
1041  Record.push_back(E->isFileScope());
1043 }
1044 
1045 void ASTStmtWriter::VisitExtVectorElementExpr(ExtVectorElementExpr *E) {
1046  VisitExpr(E);
1047  Record.AddStmt(E->getBase());
1048  Record.AddIdentifierRef(&E->getAccessor());
1049  Record.AddSourceLocation(E->getAccessorLoc());
1051 }
1052 
1053 void ASTStmtWriter::VisitInitListExpr(InitListExpr *E) {
1054  VisitExpr(E);
1055  // NOTE: only add the (possibly null) syntactic form.
1056  // No need to serialize the isSemanticForm flag and the semantic form.
1057  Record.AddStmt(E->getSyntacticForm());
1058  Record.AddSourceLocation(E->getLBraceLoc());
1059  Record.AddSourceLocation(E->getRBraceLoc());
1060  bool isArrayFiller = E->ArrayFillerOrUnionFieldInit.is<Expr*>();
1061  Record.push_back(isArrayFiller);
1062  if (isArrayFiller)
1063  Record.AddStmt(E->getArrayFiller());
1064  else
1066  Record.push_back(E->hadArrayRangeDesignator());
1067  Record.push_back(E->getNumInits());
1068  if (isArrayFiller) {
1069  // ArrayFiller may have filled "holes" due to designated initializer.
1070  // Replace them by 0 to indicate that the filler goes in that place.
1071  Expr *filler = E->getArrayFiller();
1072  for (unsigned I = 0, N = E->getNumInits(); I != N; ++I)
1073  Record.AddStmt(E->getInit(I) != filler ? E->getInit(I) : nullptr);
1074  } else {
1075  for (unsigned I = 0, N = E->getNumInits(); I != N; ++I)
1076  Record.AddStmt(E->getInit(I));
1077  }
1079 }
1080 
1081 void ASTStmtWriter::VisitDesignatedInitExpr(DesignatedInitExpr *E) {
1082  VisitExpr(E);
1083  Record.push_back(E->getNumSubExprs());
1084  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1085  Record.AddStmt(E->getSubExpr(I));
1087  Record.push_back(E->usesGNUSyntax());
1088  for (const DesignatedInitExpr::Designator &D : E->designators()) {
1089  if (D.isFieldDesignator()) {
1090  if (FieldDecl *Field = D.getField()) {
1092  Record.AddDeclRef(Field);
1093  } else {
1095  Record.AddIdentifierRef(D.getFieldName());
1096  }
1097  Record.AddSourceLocation(D.getDotLoc());
1098  Record.AddSourceLocation(D.getFieldLoc());
1099  } else if (D.isArrayDesignator()) {
1101  Record.push_back(D.getFirstExprIndex());
1102  Record.AddSourceLocation(D.getLBracketLoc());
1103  Record.AddSourceLocation(D.getRBracketLoc());
1104  } else {
1105  assert(D.isArrayRangeDesignator() && "Unknown designator");
1107  Record.push_back(D.getFirstExprIndex());
1108  Record.AddSourceLocation(D.getLBracketLoc());
1109  Record.AddSourceLocation(D.getEllipsisLoc());
1110  Record.AddSourceLocation(D.getRBracketLoc());
1111  }
1112  }
1114 }
1115 
1116 void ASTStmtWriter::VisitDesignatedInitUpdateExpr(DesignatedInitUpdateExpr *E) {
1117  VisitExpr(E);
1118  Record.AddStmt(E->getBase());
1119  Record.AddStmt(E->getUpdater());
1121 }
1122 
1123 void ASTStmtWriter::VisitNoInitExpr(NoInitExpr *E) {
1124  VisitExpr(E);
1126 }
1127 
1128 void ASTStmtWriter::VisitArrayInitLoopExpr(ArrayInitLoopExpr *E) {
1129  VisitExpr(E);
1130  Record.AddStmt(E->SubExprs[0]);
1131  Record.AddStmt(E->SubExprs[1]);
1133 }
1134 
1135 void ASTStmtWriter::VisitArrayInitIndexExpr(ArrayInitIndexExpr *E) {
1136  VisitExpr(E);
1138 }
1139 
1140 void ASTStmtWriter::VisitImplicitValueInitExpr(ImplicitValueInitExpr *E) {
1141  VisitExpr(E);
1143 }
1144 
1145 void ASTStmtWriter::VisitVAArgExpr(VAArgExpr *E) {
1146  VisitExpr(E);
1147  Record.AddStmt(E->getSubExpr());
1149  Record.AddSourceLocation(E->getBuiltinLoc());
1150  Record.AddSourceLocation(E->getRParenLoc());
1151  Record.push_back(E->isMicrosoftABI());
1153 }
1154 
1155 void ASTStmtWriter::VisitSourceLocExpr(SourceLocExpr *E) {
1156  VisitExpr(E);
1157  Record.AddDeclRef(cast_or_null<Decl>(E->getParentContext()));
1158  Record.AddSourceLocation(E->getBeginLoc());
1159  Record.AddSourceLocation(E->getEndLoc());
1160  Record.push_back(E->getIdentKind());
1162 }
1163 
1164 void ASTStmtWriter::VisitAddrLabelExpr(AddrLabelExpr *E) {
1165  VisitExpr(E);
1166  Record.AddSourceLocation(E->getAmpAmpLoc());
1167  Record.AddSourceLocation(E->getLabelLoc());
1168  Record.AddDeclRef(E->getLabel());
1170 }
1171 
1172 void ASTStmtWriter::VisitStmtExpr(StmtExpr *E) {
1173  VisitExpr(E);
1174  Record.AddStmt(E->getSubStmt());
1175  Record.AddSourceLocation(E->getLParenLoc());
1176  Record.AddSourceLocation(E->getRParenLoc());
1177  Record.push_back(E->getTemplateDepth());
1178  Code = serialization::EXPR_STMT;
1179 }
1180 
1181 void ASTStmtWriter::VisitChooseExpr(ChooseExpr *E) {
1182  VisitExpr(E);
1183  Record.AddStmt(E->getCond());
1184  Record.AddStmt(E->getLHS());
1185  Record.AddStmt(E->getRHS());
1186  Record.AddSourceLocation(E->getBuiltinLoc());
1187  Record.AddSourceLocation(E->getRParenLoc());
1188  Record.push_back(E->isConditionDependent() ? false : E->isConditionTrue());
1190 }
1191 
1192 void ASTStmtWriter::VisitGNUNullExpr(GNUNullExpr *E) {
1193  VisitExpr(E);
1194  Record.AddSourceLocation(E->getTokenLocation());
1196 }
1197 
1198 void ASTStmtWriter::VisitShuffleVectorExpr(ShuffleVectorExpr *E) {
1199  VisitExpr(E);
1200  Record.push_back(E->getNumSubExprs());
1201  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1202  Record.AddStmt(E->getExpr(I));
1203  Record.AddSourceLocation(E->getBuiltinLoc());
1204  Record.AddSourceLocation(E->getRParenLoc());
1206 }
1207 
1208 void ASTStmtWriter::VisitConvertVectorExpr(ConvertVectorExpr *E) {
1209  VisitExpr(E);
1210  Record.AddSourceLocation(E->getBuiltinLoc());
1211  Record.AddSourceLocation(E->getRParenLoc());
1212  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1213  Record.AddStmt(E->getSrcExpr());
1215 }
1216 
1217 void ASTStmtWriter::VisitBlockExpr(BlockExpr *E) {
1218  VisitExpr(E);
1219  Record.AddDeclRef(E->getBlockDecl());
1221 }
1222 
1223 void ASTStmtWriter::VisitGenericSelectionExpr(GenericSelectionExpr *E) {
1224  VisitExpr(E);
1225 
1226  Record.push_back(E->getNumAssocs());
1227  Record.push_back(E->ResultIndex);
1228  Record.AddSourceLocation(E->getGenericLoc());
1229  Record.AddSourceLocation(E->getDefaultLoc());
1230  Record.AddSourceLocation(E->getRParenLoc());
1231 
1232  Stmt **Stmts = E->getTrailingObjects<Stmt *>();
1233  // Add 1 to account for the controlling expression which is the first
1234  // expression in the trailing array of Stmt *. This is not needed for
1235  // the trailing array of TypeSourceInfo *.
1236  for (unsigned I = 0, N = E->getNumAssocs() + 1; I < N; ++I)
1237  Record.AddStmt(Stmts[I]);
1238 
1239  TypeSourceInfo **TSIs = E->getTrailingObjects<TypeSourceInfo *>();
1240  for (unsigned I = 0, N = E->getNumAssocs(); I < N; ++I)
1241  Record.AddTypeSourceInfo(TSIs[I]);
1242 
1244 }
1245 
1246 void ASTStmtWriter::VisitPseudoObjectExpr(PseudoObjectExpr *E) {
1247  VisitExpr(E);
1248  Record.push_back(E->getNumSemanticExprs());
1249 
1250  // Push the result index. Currently, this needs to exactly match
1251  // the encoding used internally for ResultIndex.
1252  unsigned result = E->getResultExprIndex();
1253  result = (result == PseudoObjectExpr::NoResult ? 0 : result + 1);
1254  Record.push_back(result);
1255 
1256  Record.AddStmt(E->getSyntacticForm());
1258  i = E->semantics_begin(), e = E->semantics_end(); i != e; ++i) {
1259  Record.AddStmt(*i);
1260  }
1262 }
1263 
1264 void ASTStmtWriter::VisitAtomicExpr(AtomicExpr *E) {
1265  VisitExpr(E);
1266  Record.push_back(E->getOp());
1267  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1268  Record.AddStmt(E->getSubExprs()[I]);
1269  Record.AddSourceLocation(E->getBuiltinLoc());
1270  Record.AddSourceLocation(E->getRParenLoc());
1272 }
1273 
1274 //===----------------------------------------------------------------------===//
1275 // Objective-C Expressions and Statements.
1276 //===----------------------------------------------------------------------===//
1277 
1278 void ASTStmtWriter::VisitObjCStringLiteral(ObjCStringLiteral *E) {
1279  VisitExpr(E);
1280  Record.AddStmt(E->getString());
1281  Record.AddSourceLocation(E->getAtLoc());
1283 }
1284 
1285 void ASTStmtWriter::VisitObjCBoxedExpr(ObjCBoxedExpr *E) {
1286  VisitExpr(E);
1287  Record.AddStmt(E->getSubExpr());
1288  Record.AddDeclRef(E->getBoxingMethod());
1289  Record.AddSourceRange(E->getSourceRange());
1291 }
1292 
1293 void ASTStmtWriter::VisitObjCArrayLiteral(ObjCArrayLiteral *E) {
1294  VisitExpr(E);
1295  Record.push_back(E->getNumElements());
1296  for (unsigned i = 0; i < E->getNumElements(); i++)
1297  Record.AddStmt(E->getElement(i));
1299  Record.AddSourceRange(E->getSourceRange());
1301 }
1302 
1303 void ASTStmtWriter::VisitObjCDictionaryLiteral(ObjCDictionaryLiteral *E) {
1304  VisitExpr(E);
1305  Record.push_back(E->getNumElements());
1306  Record.push_back(E->HasPackExpansions);
1307  for (unsigned i = 0; i < E->getNumElements(); i++) {
1308  ObjCDictionaryElement Element = E->getKeyValueElement(i);
1309  Record.AddStmt(Element.Key);
1310  Record.AddStmt(Element.Value);
1311  if (E->HasPackExpansions) {
1312  Record.AddSourceLocation(Element.EllipsisLoc);
1313  unsigned NumExpansions = 0;
1314  if (Element.NumExpansions)
1315  NumExpansions = *Element.NumExpansions + 1;
1316  Record.push_back(NumExpansions);
1317  }
1318  }
1319 
1320  Record.AddDeclRef(E->getDictWithObjectsMethod());
1321  Record.AddSourceRange(E->getSourceRange());
1323 }
1324 
1325 void ASTStmtWriter::VisitObjCEncodeExpr(ObjCEncodeExpr *E) {
1326  VisitExpr(E);
1328  Record.AddSourceLocation(E->getAtLoc());
1329  Record.AddSourceLocation(E->getRParenLoc());
1331 }
1332 
1333 void ASTStmtWriter::VisitObjCSelectorExpr(ObjCSelectorExpr *E) {
1334  VisitExpr(E);
1335  Record.AddSelectorRef(E->getSelector());
1336  Record.AddSourceLocation(E->getAtLoc());
1337  Record.AddSourceLocation(E->getRParenLoc());
1339 }
1340 
1341 void ASTStmtWriter::VisitObjCProtocolExpr(ObjCProtocolExpr *E) {
1342  VisitExpr(E);
1343  Record.AddDeclRef(E->getProtocol());
1344  Record.AddSourceLocation(E->getAtLoc());
1345  Record.AddSourceLocation(E->ProtoLoc);
1346  Record.AddSourceLocation(E->getRParenLoc());
1348 }
1349 
1350 void ASTStmtWriter::VisitObjCIvarRefExpr(ObjCIvarRefExpr *E) {
1351  VisitExpr(E);
1352  Record.AddDeclRef(E->getDecl());
1353  Record.AddSourceLocation(E->getLocation());
1354  Record.AddSourceLocation(E->getOpLoc());
1355  Record.AddStmt(E->getBase());
1356  Record.push_back(E->isArrow());
1357  Record.push_back(E->isFreeIvar());
1359 }
1360 
1361 void ASTStmtWriter::VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *E) {
1362  VisitExpr(E);
1363  Record.push_back(E->SetterAndMethodRefFlags.getInt());
1364  Record.push_back(E->isImplicitProperty());
1365  if (E->isImplicitProperty()) {
1368  } else {
1369  Record.AddDeclRef(E->getExplicitProperty());
1370  }
1371  Record.AddSourceLocation(E->getLocation());
1373  if (E->isObjectReceiver()) {
1374  Record.push_back(0);
1375  Record.AddStmt(E->getBase());
1376  } else if (E->isSuperReceiver()) {
1377  Record.push_back(1);
1378  Record.AddTypeRef(E->getSuperReceiverType());
1379  } else {
1380  Record.push_back(2);
1381  Record.AddDeclRef(E->getClassReceiver());
1382  }
1383 
1385 }
1386 
1387 void ASTStmtWriter::VisitObjCSubscriptRefExpr(ObjCSubscriptRefExpr *E) {
1388  VisitExpr(E);
1389  Record.AddSourceLocation(E->getRBracket());
1390  Record.AddStmt(E->getBaseExpr());
1391  Record.AddStmt(E->getKeyExpr());
1392  Record.AddDeclRef(E->getAtIndexMethodDecl());
1393  Record.AddDeclRef(E->setAtIndexMethodDecl());
1394 
1396 }
1397 
1398 void ASTStmtWriter::VisitObjCMessageExpr(ObjCMessageExpr *E) {
1399  VisitExpr(E);
1400  Record.push_back(E->getNumArgs());
1401  Record.push_back(E->getNumStoredSelLocs());
1402  Record.push_back(E->SelLocsKind);
1403  Record.push_back(E->isDelegateInitCall());
1404  Record.push_back(E->IsImplicit);
1405  Record.push_back((unsigned)E->getReceiverKind()); // FIXME: stable encoding
1406  switch (E->getReceiverKind()) {
1408  Record.AddStmt(E->getInstanceReceiver());
1409  break;
1410 
1413  break;
1414 
1417  Record.AddTypeRef(E->getSuperType());
1418  Record.AddSourceLocation(E->getSuperLoc());
1419  break;
1420  }
1421 
1422  if (E->getMethodDecl()) {
1423  Record.push_back(1);
1424  Record.AddDeclRef(E->getMethodDecl());
1425  } else {
1426  Record.push_back(0);
1427  Record.AddSelectorRef(E->getSelector());
1428  }
1429 
1430  Record.AddSourceLocation(E->getLeftLoc());
1431  Record.AddSourceLocation(E->getRightLoc());
1432 
1433  for (CallExpr::arg_iterator Arg = E->arg_begin(), ArgEnd = E->arg_end();
1434  Arg != ArgEnd; ++Arg)
1435  Record.AddStmt(*Arg);
1436 
1437  SourceLocation *Locs = E->getStoredSelLocs();
1438  for (unsigned i = 0, e = E->getNumStoredSelLocs(); i != e; ++i)
1439  Record.AddSourceLocation(Locs[i]);
1440 
1442 }
1443 
1444 void ASTStmtWriter::VisitObjCForCollectionStmt(ObjCForCollectionStmt *S) {
1445  VisitStmt(S);
1446  Record.AddStmt(S->getElement());
1447  Record.AddStmt(S->getCollection());
1448  Record.AddStmt(S->getBody());
1449  Record.AddSourceLocation(S->getForLoc());
1450  Record.AddSourceLocation(S->getRParenLoc());
1452 }
1453 
1454 void ASTStmtWriter::VisitObjCAtCatchStmt(ObjCAtCatchStmt *S) {
1455  VisitStmt(S);
1456  Record.AddStmt(S->getCatchBody());
1457  Record.AddDeclRef(S->getCatchParamDecl());
1458  Record.AddSourceLocation(S->getAtCatchLoc());
1459  Record.AddSourceLocation(S->getRParenLoc());
1461 }
1462 
1463 void ASTStmtWriter::VisitObjCAtFinallyStmt(ObjCAtFinallyStmt *S) {
1464  VisitStmt(S);
1465  Record.AddStmt(S->getFinallyBody());
1466  Record.AddSourceLocation(S->getAtFinallyLoc());
1468 }
1469 
1470 void ASTStmtWriter::VisitObjCAutoreleasePoolStmt(ObjCAutoreleasePoolStmt *S) {
1471  VisitStmt(S); // FIXME: no test coverage.
1472  Record.AddStmt(S->getSubStmt());
1473  Record.AddSourceLocation(S->getAtLoc());
1475 }
1476 
1477 void ASTStmtWriter::VisitObjCAtTryStmt(ObjCAtTryStmt *S) {
1478  VisitStmt(S);
1479  Record.push_back(S->getNumCatchStmts());
1480  Record.push_back(S->getFinallyStmt() != nullptr);
1481  Record.AddStmt(S->getTryBody());
1482  for (ObjCAtCatchStmt *C : S->catch_stmts())
1483  Record.AddStmt(C);
1484  if (S->getFinallyStmt())
1485  Record.AddStmt(S->getFinallyStmt());
1486  Record.AddSourceLocation(S->getAtTryLoc());
1488 }
1489 
1490 void ASTStmtWriter::VisitObjCAtSynchronizedStmt(ObjCAtSynchronizedStmt *S) {
1491  VisitStmt(S); // FIXME: no test coverage.
1492  Record.AddStmt(S->getSynchExpr());
1493  Record.AddStmt(S->getSynchBody());
1494  Record.AddSourceLocation(S->getAtSynchronizedLoc());
1496 }
1497 
1498 void ASTStmtWriter::VisitObjCAtThrowStmt(ObjCAtThrowStmt *S) {
1499  VisitStmt(S); // FIXME: no test coverage.
1500  Record.AddStmt(S->getThrowExpr());
1501  Record.AddSourceLocation(S->getThrowLoc());
1503 }
1504 
1505 void ASTStmtWriter::VisitObjCBoolLiteralExpr(ObjCBoolLiteralExpr *E) {
1506  VisitExpr(E);
1507  Record.push_back(E->getValue());
1508  Record.AddSourceLocation(E->getLocation());
1510 }
1511 
1512 void ASTStmtWriter::VisitObjCAvailabilityCheckExpr(ObjCAvailabilityCheckExpr *E) {
1513  VisitExpr(E);
1514  Record.AddSourceRange(E->getSourceRange());
1515  Record.AddVersionTuple(E->getVersion());
1517 }
1518 
1519 //===----------------------------------------------------------------------===//
1520 // C++ Expressions and Statements.
1521 //===----------------------------------------------------------------------===//
1522 
1523 void ASTStmtWriter::VisitCXXCatchStmt(CXXCatchStmt *S) {
1524  VisitStmt(S);
1525  Record.AddSourceLocation(S->getCatchLoc());
1526  Record.AddDeclRef(S->getExceptionDecl());
1527  Record.AddStmt(S->getHandlerBlock());
1529 }
1530 
1531 void ASTStmtWriter::VisitCXXTryStmt(CXXTryStmt *S) {
1532  VisitStmt(S);
1533  Record.push_back(S->getNumHandlers());
1534  Record.AddSourceLocation(S->getTryLoc());
1535  Record.AddStmt(S->getTryBlock());
1536  for (unsigned i = 0, e = S->getNumHandlers(); i != e; ++i)
1537  Record.AddStmt(S->getHandler(i));
1539 }
1540 
1541 void ASTStmtWriter::VisitCXXForRangeStmt(CXXForRangeStmt *S) {
1542  VisitStmt(S);
1543  Record.AddSourceLocation(S->getForLoc());
1544  Record.AddSourceLocation(S->getCoawaitLoc());
1545  Record.AddSourceLocation(S->getColonLoc());
1546  Record.AddSourceLocation(S->getRParenLoc());
1547  Record.AddStmt(S->getInit());
1548  Record.AddStmt(S->getRangeStmt());
1549  Record.AddStmt(S->getBeginStmt());
1550  Record.AddStmt(S->getEndStmt());
1551  Record.AddStmt(S->getCond());
1552  Record.AddStmt(S->getInc());
1553  Record.AddStmt(S->getLoopVarStmt());
1554  Record.AddStmt(S->getBody());
1556 }
1557 
1558 void ASTStmtWriter::VisitMSDependentExistsStmt(MSDependentExistsStmt *S) {
1559  VisitStmt(S);
1560  Record.AddSourceLocation(S->getKeywordLoc());
1561  Record.push_back(S->isIfExists());
1562  Record.AddNestedNameSpecifierLoc(S->getQualifierLoc());
1563  Record.AddDeclarationNameInfo(S->getNameInfo());
1564  Record.AddStmt(S->getSubStmt());
1566 }
1567 
1568 void ASTStmtWriter::VisitCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
1569  VisitCallExpr(E);
1570  Record.push_back(E->getOperator());
1571  Record.AddSourceRange(E->Range);
1573 }
1574 
1575 void ASTStmtWriter::VisitCXXMemberCallExpr(CXXMemberCallExpr *E) {
1576  VisitCallExpr(E);
1578 }
1579 
1580 void ASTStmtWriter::VisitCXXRewrittenBinaryOperator(
1582  VisitExpr(E);
1583  Record.push_back(E->isReversed());
1584  Record.AddStmt(E->getSemanticForm());
1586 }
1587 
1588 void ASTStmtWriter::VisitCXXConstructExpr(CXXConstructExpr *E) {
1589  VisitExpr(E);
1590 
1591  Record.push_back(E->getNumArgs());
1592  Record.push_back(E->isElidable());
1593  Record.push_back(E->hadMultipleCandidates());
1594  Record.push_back(E->isListInitialization());
1597  Record.push_back(E->getConstructionKind()); // FIXME: stable encoding
1598  Record.AddSourceLocation(E->getLocation());
1599  Record.AddDeclRef(E->getConstructor());
1600  Record.AddSourceRange(E->getParenOrBraceRange());
1601 
1602  for (unsigned I = 0, N = E->getNumArgs(); I != N; ++I)
1603  Record.AddStmt(E->getArg(I));
1604 
1606 }
1607 
1608 void ASTStmtWriter::VisitCXXInheritedCtorInitExpr(CXXInheritedCtorInitExpr *E) {
1609  VisitExpr(E);
1610  Record.AddDeclRef(E->getConstructor());
1611  Record.AddSourceLocation(E->getLocation());
1612  Record.push_back(E->constructsVBase());
1613  Record.push_back(E->inheritedFromVBase());
1615 }
1616 
1617 void ASTStmtWriter::VisitCXXTemporaryObjectExpr(CXXTemporaryObjectExpr *E) {
1618  VisitCXXConstructExpr(E);
1619  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1621 }
1622 
1623 void ASTStmtWriter::VisitLambdaExpr(LambdaExpr *E) {
1624  VisitExpr(E);
1625  Record.push_back(E->LambdaExprBits.NumCaptures);
1626  Record.AddSourceRange(E->IntroducerRange);
1627  Record.push_back(E->LambdaExprBits.CaptureDefault); // FIXME: stable encoding
1628  Record.AddSourceLocation(E->CaptureDefaultLoc);
1629  Record.push_back(E->LambdaExprBits.ExplicitParams);
1630  Record.push_back(E->LambdaExprBits.ExplicitResultType);
1631  Record.AddSourceLocation(E->ClosingBrace);
1632 
1633  // Add capture initializers.
1635  CEnd = E->capture_init_end();
1636  C != CEnd; ++C) {
1637  Record.AddStmt(*C);
1638  }
1639 
1640  // Don't serialize the body. It belongs to the call operator declaration.
1641  // LambdaExpr only stores a copy of the Stmt *.
1642 
1644 }
1645 
1646 void ASTStmtWriter::VisitCXXStdInitializerListExpr(CXXStdInitializerListExpr *E) {
1647  VisitExpr(E);
1648  Record.AddStmt(E->getSubExpr());
1650 }
1651 
1652 void ASTStmtWriter::VisitCXXNamedCastExpr(CXXNamedCastExpr *E) {
1653  VisitExplicitCastExpr(E);
1655  Record.AddSourceRange(E->getAngleBrackets());
1656 }
1657 
1658 void ASTStmtWriter::VisitCXXStaticCastExpr(CXXStaticCastExpr *E) {
1659  VisitCXXNamedCastExpr(E);
1661 }
1662 
1663 void ASTStmtWriter::VisitCXXDynamicCastExpr(CXXDynamicCastExpr *E) {
1664  VisitCXXNamedCastExpr(E);
1666 }
1667 
1668 void ASTStmtWriter::VisitCXXReinterpretCastExpr(CXXReinterpretCastExpr *E) {
1669  VisitCXXNamedCastExpr(E);
1671 }
1672 
1673 void ASTStmtWriter::VisitCXXConstCastExpr(CXXConstCastExpr *E) {
1674  VisitCXXNamedCastExpr(E);
1676 }
1677 
1678 void ASTStmtWriter::VisitCXXAddrspaceCastExpr(CXXAddrspaceCastExpr *E) {
1679  VisitCXXNamedCastExpr(E);
1681 }
1682 
1683 void ASTStmtWriter::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr *E) {
1684  VisitExplicitCastExpr(E);
1685  Record.AddSourceLocation(E->getLParenLoc());
1686  Record.AddSourceLocation(E->getRParenLoc());
1688 }
1689 
1690 void ASTStmtWriter::VisitBuiltinBitCastExpr(BuiltinBitCastExpr *E) {
1691  VisitExplicitCastExpr(E);
1692  Record.AddSourceLocation(E->getBeginLoc());
1693  Record.AddSourceLocation(E->getEndLoc());
1695 }
1696 
1697 void ASTStmtWriter::VisitUserDefinedLiteral(UserDefinedLiteral *E) {
1698  VisitCallExpr(E);
1699  Record.AddSourceLocation(E->UDSuffixLoc);
1701 }
1702 
1703 void ASTStmtWriter::VisitCXXBoolLiteralExpr(CXXBoolLiteralExpr *E) {
1704  VisitExpr(E);
1705  Record.push_back(E->getValue());
1706  Record.AddSourceLocation(E->getLocation());
1708 }
1709 
1710 void ASTStmtWriter::VisitCXXNullPtrLiteralExpr(CXXNullPtrLiteralExpr *E) {
1711  VisitExpr(E);
1712  Record.AddSourceLocation(E->getLocation());
1714 }
1715 
1716 void ASTStmtWriter::VisitCXXTypeidExpr(CXXTypeidExpr *E) {
1717  VisitExpr(E);
1718  Record.AddSourceRange(E->getSourceRange());
1719  if (E->isTypeOperand()) {
1722  } else {
1723  Record.AddStmt(E->getExprOperand());
1725  }
1726 }
1727 
1728 void ASTStmtWriter::VisitCXXThisExpr(CXXThisExpr *E) {
1729  VisitExpr(E);
1730  Record.AddSourceLocation(E->getLocation());
1731  Record.push_back(E->isImplicit());
1733 }
1734 
1735 void ASTStmtWriter::VisitCXXThrowExpr(CXXThrowExpr *E) {
1736  VisitExpr(E);
1737  Record.AddSourceLocation(E->getThrowLoc());
1738  Record.AddStmt(E->getSubExpr());
1739  Record.push_back(E->isThrownVariableInScope());
1741 }
1742 
1743 void ASTStmtWriter::VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
1744  VisitExpr(E);
1745  Record.AddDeclRef(E->getParam());
1746  Record.AddDeclRef(cast_or_null<Decl>(E->getUsedContext()));
1747  Record.AddSourceLocation(E->getUsedLocation());
1749 }
1750 
1751 void ASTStmtWriter::VisitCXXDefaultInitExpr(CXXDefaultInitExpr *E) {
1752  VisitExpr(E);
1753  Record.AddDeclRef(E->getField());
1754  Record.AddDeclRef(cast_or_null<Decl>(E->getUsedContext()));
1755  Record.AddSourceLocation(E->getExprLoc());
1757 }
1758 
1759 void ASTStmtWriter::VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *E) {
1760  VisitExpr(E);
1761  Record.AddCXXTemporary(E->getTemporary());
1762  Record.AddStmt(E->getSubExpr());
1764 }
1765 
1766 void ASTStmtWriter::VisitCXXScalarValueInitExpr(CXXScalarValueInitExpr *E) {
1767  VisitExpr(E);
1768  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1769  Record.AddSourceLocation(E->getRParenLoc());
1771 }
1772 
1773 void ASTStmtWriter::VisitCXXNewExpr(CXXNewExpr *E) {
1774  VisitExpr(E);
1775 
1776  Record.push_back(E->isArray());
1777  Record.push_back(E->hasInitializer());
1778  Record.push_back(E->getNumPlacementArgs());
1779  Record.push_back(E->isParenTypeId());
1780 
1781  Record.push_back(E->isGlobalNew());
1782  Record.push_back(E->passAlignment());
1784  Record.push_back(E->CXXNewExprBits.StoredInitializationStyle);
1785 
1786  Record.AddDeclRef(E->getOperatorNew());
1787  Record.AddDeclRef(E->getOperatorDelete());
1789  if (E->isParenTypeId())
1790  Record.AddSourceRange(E->getTypeIdParens());
1791  Record.AddSourceRange(E->getSourceRange());
1792  Record.AddSourceRange(E->getDirectInitRange());
1793 
1794  for (CXXNewExpr::arg_iterator I = E->raw_arg_begin(), N = E->raw_arg_end();
1795  I != N; ++I)
1796  Record.AddStmt(*I);
1797 
1799 }
1800 
1801 void ASTStmtWriter::VisitCXXDeleteExpr(CXXDeleteExpr *E) {
1802  VisitExpr(E);
1803  Record.push_back(E->isGlobalDelete());
1804  Record.push_back(E->isArrayForm());
1805  Record.push_back(E->isArrayFormAsWritten());
1807  Record.AddDeclRef(E->getOperatorDelete());
1808  Record.AddStmt(E->getArgument());
1809  Record.AddSourceLocation(E->getBeginLoc());
1810 
1812 }
1813 
1814 void ASTStmtWriter::VisitCXXPseudoDestructorExpr(CXXPseudoDestructorExpr *E) {
1815  VisitExpr(E);
1816 
1817  Record.AddStmt(E->getBase());
1818  Record.push_back(E->isArrow());
1819  Record.AddSourceLocation(E->getOperatorLoc());
1821  Record.AddTypeSourceInfo(E->getScopeTypeInfo());
1822  Record.AddSourceLocation(E->getColonColonLoc());
1823  Record.AddSourceLocation(E->getTildeLoc());
1824 
1825  // PseudoDestructorTypeStorage.
1827  if (E->getDestroyedTypeIdentifier())
1829  else
1831 
1833 }
1834 
1835 void ASTStmtWriter::VisitExprWithCleanups(ExprWithCleanups *E) {
1836  VisitExpr(E);
1837  Record.push_back(E->getNumObjects());
1838  for (auto &Obj : E->getObjects()) {
1839  if (auto *BD = Obj.dyn_cast<BlockDecl *>()) {
1841  Record.AddDeclRef(BD);
1842  } else if (auto *CLE = Obj.dyn_cast<CompoundLiteralExpr *>()) {
1844  Record.AddStmt(CLE);
1845  }
1846  }
1847 
1848  Record.push_back(E->cleanupsHaveSideEffects());
1849  Record.AddStmt(E->getSubExpr());
1851 }
1852 
1853 void ASTStmtWriter::VisitCXXDependentScopeMemberExpr(
1855  VisitExpr(E);
1856 
1857  // Don't emit anything here (or if you do you will have to update
1858  // the corresponding deserialization function).
1859 
1860  Record.push_back(E->hasTemplateKWAndArgsInfo());
1861  Record.push_back(E->getNumTemplateArgs());
1862  Record.push_back(E->hasFirstQualifierFoundInScope());
1863 
1864  if (E->hasTemplateKWAndArgsInfo()) {
1865  const ASTTemplateKWAndArgsInfo &ArgInfo =
1866  *E->getTrailingObjects<ASTTemplateKWAndArgsInfo>();
1867  AddTemplateKWAndArgsInfo(ArgInfo,
1868  E->getTrailingObjects<TemplateArgumentLoc>());
1869  }
1870 
1871  Record.push_back(E->isArrow());
1872  Record.AddSourceLocation(E->getOperatorLoc());
1873  Record.AddTypeRef(E->getBaseType());
1875  if (!E->isImplicitAccess())
1876  Record.AddStmt(E->getBase());
1877  else
1878  Record.AddStmt(nullptr);
1879 
1880  if (E->hasFirstQualifierFoundInScope())
1882 
1883  Record.AddDeclarationNameInfo(E->MemberNameInfo);
1885 }
1886 
1887 void
1888 ASTStmtWriter::VisitDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E) {
1889  VisitExpr(E);
1890 
1891  // Don't emit anything here, HasTemplateKWAndArgsInfo must be
1892  // emitted first.
1893 
1894  Record.push_back(E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo);
1895  if (E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo) {
1896  const ASTTemplateKWAndArgsInfo &ArgInfo =
1897  *E->getTrailingObjects<ASTTemplateKWAndArgsInfo>();
1898  Record.push_back(ArgInfo.NumTemplateArgs);
1899  AddTemplateKWAndArgsInfo(ArgInfo,
1900  E->getTrailingObjects<TemplateArgumentLoc>());
1901  }
1902 
1904  Record.AddDeclarationNameInfo(E->NameInfo);
1906 }
1907 
1908 void
1909 ASTStmtWriter::VisitCXXUnresolvedConstructExpr(CXXUnresolvedConstructExpr *E) {
1910  VisitExpr(E);
1911  Record.push_back(E->getNumArgs());
1913  ArgI = E->arg_begin(), ArgE = E->arg_end(); ArgI != ArgE; ++ArgI)
1914  Record.AddStmt(*ArgI);
1915  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1916  Record.AddSourceLocation(E->getLParenLoc());
1917  Record.AddSourceLocation(E->getRParenLoc());
1919 }
1920 
1921 void ASTStmtWriter::VisitOverloadExpr(OverloadExpr *E) {
1922  VisitExpr(E);
1923 
1924  Record.push_back(E->getNumDecls());
1925  Record.push_back(E->hasTemplateKWAndArgsInfo());
1926  if (E->hasTemplateKWAndArgsInfo()) {
1927  const ASTTemplateKWAndArgsInfo &ArgInfo =
1929  Record.push_back(ArgInfo.NumTemplateArgs);
1931  }
1932 
1933  for (OverloadExpr::decls_iterator OvI = E->decls_begin(),
1934  OvE = E->decls_end();
1935  OvI != OvE; ++OvI) {
1936  Record.AddDeclRef(OvI.getDecl());
1937  Record.push_back(OvI.getAccess());
1938  }
1939 
1940  Record.AddDeclarationNameInfo(E->getNameInfo());
1942 }
1943 
1944 void ASTStmtWriter::VisitUnresolvedMemberExpr(UnresolvedMemberExpr *E) {
1945  VisitOverloadExpr(E);
1946  Record.push_back(E->isArrow());
1947  Record.push_back(E->hasUnresolvedUsing());
1948  Record.AddStmt(!E->isImplicitAccess() ? E->getBase() : nullptr);
1949  Record.AddTypeRef(E->getBaseType());
1950  Record.AddSourceLocation(E->getOperatorLoc());
1952 }
1953 
1954 void ASTStmtWriter::VisitUnresolvedLookupExpr(UnresolvedLookupExpr *E) {
1955  VisitOverloadExpr(E);
1956  Record.push_back(E->requiresADL());
1957  Record.push_back(E->isOverloaded());
1958  Record.AddDeclRef(E->getNamingClass());
1960 }
1961 
1962 void ASTStmtWriter::VisitTypeTraitExpr(TypeTraitExpr *E) {
1963  VisitExpr(E);
1964  Record.push_back(E->TypeTraitExprBits.NumArgs);
1965  Record.push_back(E->TypeTraitExprBits.Kind); // FIXME: Stable encoding
1966  Record.push_back(E->TypeTraitExprBits.Value);
1967  Record.AddSourceRange(E->getSourceRange());
1968  for (unsigned I = 0, N = E->getNumArgs(); I != N; ++I)
1969  Record.AddTypeSourceInfo(E->getArg(I));
1971 }
1972 
1973 void ASTStmtWriter::VisitArrayTypeTraitExpr(ArrayTypeTraitExpr *E) {
1974  VisitExpr(E);
1975  Record.push_back(E->getTrait());
1976  Record.push_back(E->getValue());
1977  Record.AddSourceRange(E->getSourceRange());
1979  Record.AddStmt(E->getDimensionExpression());
1981 }
1982 
1983 void ASTStmtWriter::VisitExpressionTraitExpr(ExpressionTraitExpr *E) {
1984  VisitExpr(E);
1985  Record.push_back(E->getTrait());
1986  Record.push_back(E->getValue());
1987  Record.AddSourceRange(E->getSourceRange());
1988  Record.AddStmt(E->getQueriedExpression());
1990 }
1991 
1992 void ASTStmtWriter::VisitCXXNoexceptExpr(CXXNoexceptExpr *E) {
1993  VisitExpr(E);
1994  Record.push_back(E->getValue());
1995  Record.AddSourceRange(E->getSourceRange());
1996  Record.AddStmt(E->getOperand());
1998 }
1999 
2000 void ASTStmtWriter::VisitPackExpansionExpr(PackExpansionExpr *E) {
2001  VisitExpr(E);
2002  Record.AddSourceLocation(E->getEllipsisLoc());
2003  Record.push_back(E->NumExpansions);
2004  Record.AddStmt(E->getPattern());
2006 }
2007 
2008 void ASTStmtWriter::VisitSizeOfPackExpr(SizeOfPackExpr *E) {
2009  VisitExpr(E);
2010  Record.push_back(E->isPartiallySubstituted() ? E->getPartialArguments().size()
2011  : 0);
2012  Record.AddSourceLocation(E->OperatorLoc);
2013  Record.AddSourceLocation(E->PackLoc);
2014  Record.AddSourceLocation(E->RParenLoc);
2015  Record.AddDeclRef(E->Pack);
2016  if (E->isPartiallySubstituted()) {
2017  for (const auto &TA : E->getPartialArguments())
2018  Record.AddTemplateArgument(TA);
2019  } else if (!E->isValueDependent()) {
2020  Record.push_back(E->getPackLength());
2021  }
2023 }
2024 
2025 void ASTStmtWriter::VisitSubstNonTypeTemplateParmExpr(
2027  VisitExpr(E);
2028  Record.AddDeclRef(E->getAssociatedDecl());
2029  Record.push_back(E->isReferenceParameter());
2030  Record.push_back(E->getIndex());
2031  if (auto PackIndex = E->getPackIndex())
2032  Record.push_back(*PackIndex + 1);
2033  else
2034  Record.push_back(0);
2035  Record.AddSourceLocation(E->getNameLoc());
2036  Record.AddStmt(E->getReplacement());
2038 }
2039 
2040 void ASTStmtWriter::VisitSubstNonTypeTemplateParmPackExpr(
2042  VisitExpr(E);
2043  Record.AddDeclRef(E->getAssociatedDecl());
2044  Record.push_back(E->getIndex());
2045  Record.AddTemplateArgument(E->getArgumentPack());
2048 }
2049 
2050 void ASTStmtWriter::VisitFunctionParmPackExpr(FunctionParmPackExpr *E) {
2051  VisitExpr(E);
2052  Record.push_back(E->getNumExpansions());
2053  Record.AddDeclRef(E->getParameterPack());
2055  for (FunctionParmPackExpr::iterator I = E->begin(), End = E->end();
2056  I != End; ++I)
2057  Record.AddDeclRef(*I);
2059 }
2060 
2061 void ASTStmtWriter::VisitMaterializeTemporaryExpr(MaterializeTemporaryExpr *E) {
2062  VisitExpr(E);
2063  Record.push_back(static_cast<bool>(E->getLifetimeExtendedTemporaryDecl()));
2066  else
2067  Record.AddStmt(E->getSubExpr());
2069 }
2070 
2071 void ASTStmtWriter::VisitCXXFoldExpr(CXXFoldExpr *E) {
2072  VisitExpr(E);
2073  Record.AddSourceLocation(E->LParenLoc);
2074  Record.AddSourceLocation(E->EllipsisLoc);
2075  Record.AddSourceLocation(E->RParenLoc);
2076  Record.push_back(E->NumExpansions);
2077  Record.AddStmt(E->SubExprs[0]);
2078  Record.AddStmt(E->SubExprs[1]);
2079  Record.AddStmt(E->SubExprs[2]);
2080  Record.push_back(E->Opcode);
2082 }
2083 
2084 void ASTStmtWriter::VisitOpaqueValueExpr(OpaqueValueExpr *E) {
2085  VisitExpr(E);
2086  Record.AddStmt(E->getSourceExpr());
2087  Record.AddSourceLocation(E->getLocation());
2088  Record.push_back(E->isUnique());
2090 }
2091 
2092 void ASTStmtWriter::VisitTypoExpr(TypoExpr *E) {
2093  VisitExpr(E);
2094  // TODO: Figure out sane writer behavior for a TypoExpr, if necessary
2095  llvm_unreachable("Cannot write TypoExpr nodes");
2096 }
2097 
2098 //===----------------------------------------------------------------------===//
2099 // CUDA Expressions and Statements.
2100 //===----------------------------------------------------------------------===//
2101 
2102 void ASTStmtWriter::VisitCUDAKernelCallExpr(CUDAKernelCallExpr *E) {
2103  VisitCallExpr(E);
2104  Record.AddStmt(E->getConfig());
2106 }
2107 
2108 //===----------------------------------------------------------------------===//
2109 // OpenCL Expressions and Statements.
2110 //===----------------------------------------------------------------------===//
2111 void ASTStmtWriter::VisitAsTypeExpr(AsTypeExpr *E) {
2112  VisitExpr(E);
2113  Record.AddSourceLocation(E->getBuiltinLoc());
2114  Record.AddSourceLocation(E->getRParenLoc());
2115  Record.AddStmt(E->getSrcExpr());
2117 }
2118 
2119 //===----------------------------------------------------------------------===//
2120 // Microsoft Expressions and Statements.
2121 //===----------------------------------------------------------------------===//
2122 void ASTStmtWriter::VisitMSPropertyRefExpr(MSPropertyRefExpr *E) {
2123  VisitExpr(E);
2124  Record.push_back(E->isArrow());
2125  Record.AddStmt(E->getBaseExpr());
2127  Record.AddSourceLocation(E->getMemberLoc());
2128  Record.AddDeclRef(E->getPropertyDecl());
2130 }
2131 
2132 void ASTStmtWriter::VisitMSPropertySubscriptExpr(MSPropertySubscriptExpr *E) {
2133  VisitExpr(E);
2134  Record.AddStmt(E->getBase());
2135  Record.AddStmt(E->getIdx());
2136  Record.AddSourceLocation(E->getRBracketLoc());
2138 }
2139 
2140 void ASTStmtWriter::VisitCXXUuidofExpr(CXXUuidofExpr *E) {
2141  VisitExpr(E);
2142  Record.AddSourceRange(E->getSourceRange());
2143  Record.AddDeclRef(E->getGuidDecl());
2144  if (E->isTypeOperand()) {
2147  } else {
2148  Record.AddStmt(E->getExprOperand());
2150  }
2151 }
2152 
2153 void ASTStmtWriter::VisitSEHExceptStmt(SEHExceptStmt *S) {
2154  VisitStmt(S);
2155  Record.AddSourceLocation(S->getExceptLoc());
2156  Record.AddStmt(S->getFilterExpr());
2157  Record.AddStmt(S->getBlock());
2159 }
2160 
2161 void ASTStmtWriter::VisitSEHFinallyStmt(SEHFinallyStmt *S) {
2162  VisitStmt(S);
2163  Record.AddSourceLocation(S->getFinallyLoc());
2164  Record.AddStmt(S->getBlock());
2166 }
2167 
2168 void ASTStmtWriter::VisitSEHTryStmt(SEHTryStmt *S) {
2169  VisitStmt(S);
2170  Record.push_back(S->getIsCXXTry());
2171  Record.AddSourceLocation(S->getTryLoc());
2172  Record.AddStmt(S->getTryBlock());
2173  Record.AddStmt(S->getHandler());
2175 }
2176 
2177 void ASTStmtWriter::VisitSEHLeaveStmt(SEHLeaveStmt *S) {
2178  VisitStmt(S);
2179  Record.AddSourceLocation(S->getLeaveLoc());
2181 }
2182 
2183 //===----------------------------------------------------------------------===//
2184 // OpenMP Directives.
2185 //===----------------------------------------------------------------------===//
2186 
2187 void ASTStmtWriter::VisitOMPCanonicalLoop(OMPCanonicalLoop *S) {
2188  VisitStmt(S);
2189  for (Stmt *SubStmt : S->SubStmts)
2190  Record.AddStmt(SubStmt);
2192 }
2193 
2194 void ASTStmtWriter::VisitOMPExecutableDirective(OMPExecutableDirective *E) {
2195  Record.writeOMPChildren(E->Data);
2196  Record.AddSourceLocation(E->getBeginLoc());
2197  Record.AddSourceLocation(E->getEndLoc());
2198 }
2199 
2200 void ASTStmtWriter::VisitOMPLoopBasedDirective(OMPLoopBasedDirective *D) {
2201  VisitStmt(D);
2202  Record.writeUInt32(D->getLoopsNumber());
2203  VisitOMPExecutableDirective(D);
2204 }
2205 
2206 void ASTStmtWriter::VisitOMPLoopDirective(OMPLoopDirective *D) {
2207  VisitOMPLoopBasedDirective(D);
2208 }
2209 
2210 void ASTStmtWriter::VisitOMPMetaDirective(OMPMetaDirective *D) {
2211  VisitStmt(D);
2212  Record.push_back(D->getNumClauses());
2213  VisitOMPExecutableDirective(D);
2215 }
2216 
2217 void ASTStmtWriter::VisitOMPParallelDirective(OMPParallelDirective *D) {
2218  VisitStmt(D);
2219  VisitOMPExecutableDirective(D);
2220  Record.writeBool(D->hasCancel());
2222 }
2223 
2224 void ASTStmtWriter::VisitOMPSimdDirective(OMPSimdDirective *D) {
2225  VisitOMPLoopDirective(D);
2227 }
2228 
2229 void ASTStmtWriter::VisitOMPLoopTransformationDirective(
2231  VisitOMPLoopBasedDirective(D);
2232  Record.writeUInt32(D->getNumGeneratedLoops());
2233 }
2234 
2235 void ASTStmtWriter::VisitOMPTileDirective(OMPTileDirective *D) {
2236  VisitOMPLoopTransformationDirective(D);
2238 }
2239 
2240 void ASTStmtWriter::VisitOMPUnrollDirective(OMPUnrollDirective *D) {
2241  VisitOMPLoopTransformationDirective(D);
2243 }
2244 
2245 void ASTStmtWriter::VisitOMPForDirective(OMPForDirective *D) {
2246  VisitOMPLoopDirective(D);
2247  Record.writeBool(D->hasCancel());
2249 }
2250 
2251 void ASTStmtWriter::VisitOMPForSimdDirective(OMPForSimdDirective *D) {
2252  VisitOMPLoopDirective(D);
2254 }
2255 
2256 void ASTStmtWriter::VisitOMPSectionsDirective(OMPSectionsDirective *D) {
2257  VisitStmt(D);
2258  VisitOMPExecutableDirective(D);
2259  Record.writeBool(D->hasCancel());
2261 }
2262 
2263 void ASTStmtWriter::VisitOMPSectionDirective(OMPSectionDirective *D) {
2264  VisitStmt(D);
2265  VisitOMPExecutableDirective(D);
2266  Record.writeBool(D->hasCancel());
2268 }
2269 
2270 void ASTStmtWriter::VisitOMPSingleDirective(OMPSingleDirective *D) {
2271  VisitStmt(D);
2272  VisitOMPExecutableDirective(D);
2274 }
2275 
2276 void ASTStmtWriter::VisitOMPMasterDirective(OMPMasterDirective *D) {
2277  VisitStmt(D);
2278  VisitOMPExecutableDirective(D);
2280 }
2281 
2282 void ASTStmtWriter::VisitOMPCriticalDirective(OMPCriticalDirective *D) {
2283  VisitStmt(D);
2284  VisitOMPExecutableDirective(D);
2287 }
2288 
2289 void ASTStmtWriter::VisitOMPParallelForDirective(OMPParallelForDirective *D) {
2290  VisitOMPLoopDirective(D);
2291  Record.writeBool(D->hasCancel());
2293 }
2294 
2295 void ASTStmtWriter::VisitOMPParallelForSimdDirective(
2297  VisitOMPLoopDirective(D);
2299 }
2300 
2301 void ASTStmtWriter::VisitOMPParallelMasterDirective(
2303  VisitStmt(D);
2304  VisitOMPExecutableDirective(D);
2306 }
2307 
2308 void ASTStmtWriter::VisitOMPParallelMaskedDirective(
2310  VisitStmt(D);
2311  VisitOMPExecutableDirective(D);
2313 }
2314 
2315 void ASTStmtWriter::VisitOMPParallelSectionsDirective(
2317  VisitStmt(D);
2318  VisitOMPExecutableDirective(D);
2319  Record.writeBool(D->hasCancel());
2321 }
2322 
2323 void ASTStmtWriter::VisitOMPTaskDirective(OMPTaskDirective *D) {
2324  VisitStmt(D);
2325  VisitOMPExecutableDirective(D);
2326  Record.writeBool(D->hasCancel());
2328 }
2329 
2330 void ASTStmtWriter::VisitOMPAtomicDirective(OMPAtomicDirective *D) {
2331  VisitStmt(D);
2332  VisitOMPExecutableDirective(D);
2333  Record.writeBool(D->isXLHSInRHSPart());
2334  Record.writeBool(D->isPostfixUpdate());
2335  Record.writeBool(D->isFailOnly());
2337 }
2338 
2339 void ASTStmtWriter::VisitOMPTargetDirective(OMPTargetDirective *D) {
2340  VisitStmt(D);
2341  VisitOMPExecutableDirective(D);
2343 }
2344 
2345 void ASTStmtWriter::VisitOMPTargetDataDirective(OMPTargetDataDirective *D) {
2346  VisitStmt(D);
2347  VisitOMPExecutableDirective(D);
2349 }
2350 
2351 void ASTStmtWriter::VisitOMPTargetEnterDataDirective(
2353  VisitStmt(D);
2354  VisitOMPExecutableDirective(D);
2356 }
2357 
2358 void ASTStmtWriter::VisitOMPTargetExitDataDirective(
2360  VisitStmt(D);
2361  VisitOMPExecutableDirective(D);
2363 }
2364 
2365 void ASTStmtWriter::VisitOMPTargetParallelDirective(
2367  VisitStmt(D);
2368  VisitOMPExecutableDirective(D);
2369  Record.writeBool(D->hasCancel());
2371 }
2372 
2373 void ASTStmtWriter::VisitOMPTargetParallelForDirective(
2375  VisitOMPLoopDirective(D);
2376  Record.writeBool(D->hasCancel());
2378 }
2379 
2380 void ASTStmtWriter::VisitOMPTaskyieldDirective(OMPTaskyieldDirective *D) {
2381  VisitStmt(D);
2382  VisitOMPExecutableDirective(D);
2384 }
2385 
2386 void ASTStmtWriter::VisitOMPBarrierDirective(OMPBarrierDirective *D) {
2387  VisitStmt(D);
2388  VisitOMPExecutableDirective(D);
2390 }
2391 
2392 void ASTStmtWriter::VisitOMPTaskwaitDirective(OMPTaskwaitDirective *D) {
2393  VisitStmt(D);
2394  Record.push_back(D->getNumClauses());
2395  VisitOMPExecutableDirective(D);
2397 }
2398 
2399 void ASTStmtWriter::VisitOMPErrorDirective(OMPErrorDirective *D) {
2400  VisitStmt(D);
2401  Record.push_back(D->getNumClauses());
2402  VisitOMPExecutableDirective(D);
2404 }
2405 
2406 void ASTStmtWriter::VisitOMPTaskgroupDirective(OMPTaskgroupDirective *D) {
2407  VisitStmt(D);
2408  VisitOMPExecutableDirective(D);
2410 }
2411 
2412 void ASTStmtWriter::VisitOMPFlushDirective(OMPFlushDirective *D) {
2413  VisitStmt(D);
2414  VisitOMPExecutableDirective(D);
2416 }
2417 
2418 void ASTStmtWriter::VisitOMPDepobjDirective(OMPDepobjDirective *D) {
2419  VisitStmt(D);
2420  VisitOMPExecutableDirective(D);
2422 }
2423 
2424 void ASTStmtWriter::VisitOMPScanDirective(OMPScanDirective *D) {
2425  VisitStmt(D);
2426  VisitOMPExecutableDirective(D);
2428 }
2429 
2430 void ASTStmtWriter::VisitOMPOrderedDirective(OMPOrderedDirective *D) {
2431  VisitStmt(D);
2432  VisitOMPExecutableDirective(D);
2434 }
2435 
2436 void ASTStmtWriter::VisitOMPTeamsDirective(OMPTeamsDirective *D) {
2437  VisitStmt(D);
2438  VisitOMPExecutableDirective(D);
2440 }
2441 
2442 void ASTStmtWriter::VisitOMPCancellationPointDirective(
2444  VisitStmt(D);
2445  VisitOMPExecutableDirective(D);
2446  Record.writeEnum(D->getCancelRegion());
2448 }
2449 
2450 void ASTStmtWriter::VisitOMPCancelDirective(OMPCancelDirective *D) {
2451  VisitStmt(D);
2452  VisitOMPExecutableDirective(D);
2453  Record.writeEnum(D->getCancelRegion());
2455 }
2456 
2457 void ASTStmtWriter::VisitOMPTaskLoopDirective(OMPTaskLoopDirective *D) {
2458  VisitOMPLoopDirective(D);
2459  Record.writeBool(D->hasCancel());
2461 }
2462 
2463 void ASTStmtWriter::VisitOMPTaskLoopSimdDirective(OMPTaskLoopSimdDirective *D) {
2464  VisitOMPLoopDirective(D);
2466 }
2467 
2468 void ASTStmtWriter::VisitOMPMasterTaskLoopDirective(
2470  VisitOMPLoopDirective(D);
2471  Record.writeBool(D->hasCancel());
2473 }
2474 
2475 void ASTStmtWriter::VisitOMPMaskedTaskLoopDirective(
2477  VisitOMPLoopDirective(D);
2478  Record.writeBool(D->hasCancel());
2480 }
2481 
2482 void ASTStmtWriter::VisitOMPMasterTaskLoopSimdDirective(
2484  VisitOMPLoopDirective(D);
2486 }
2487 
2488 void ASTStmtWriter::VisitOMPMaskedTaskLoopSimdDirective(
2490  VisitOMPLoopDirective(D);
2492 }
2493 
2494 void ASTStmtWriter::VisitOMPParallelMasterTaskLoopDirective(
2496  VisitOMPLoopDirective(D);
2497  Record.writeBool(D->hasCancel());
2499 }
2500 
2501 void ASTStmtWriter::VisitOMPParallelMaskedTaskLoopDirective(
2503  VisitOMPLoopDirective(D);
2504  Record.writeBool(D->hasCancel());
2506 }
2507 
2508 void ASTStmtWriter::VisitOMPParallelMasterTaskLoopSimdDirective(
2510  VisitOMPLoopDirective(D);
2512 }
2513 
2514 void ASTStmtWriter::VisitOMPParallelMaskedTaskLoopSimdDirective(
2516  VisitOMPLoopDirective(D);
2518 }
2519 
2520 void ASTStmtWriter::VisitOMPDistributeDirective(OMPDistributeDirective *D) {
2521  VisitOMPLoopDirective(D);
2523 }
2524 
2525 void ASTStmtWriter::VisitOMPTargetUpdateDirective(OMPTargetUpdateDirective *D) {
2526  VisitStmt(D);
2527  VisitOMPExecutableDirective(D);
2529 }
2530 
2531 void ASTStmtWriter::VisitOMPDistributeParallelForDirective(
2533  VisitOMPLoopDirective(D);
2534  Record.writeBool(D->hasCancel());
2536 }
2537 
2538 void ASTStmtWriter::VisitOMPDistributeParallelForSimdDirective(
2540  VisitOMPLoopDirective(D);
2542 }
2543 
2544 void ASTStmtWriter::VisitOMPDistributeSimdDirective(
2546  VisitOMPLoopDirective(D);
2548 }
2549 
2550 void ASTStmtWriter::VisitOMPTargetParallelForSimdDirective(
2552  VisitOMPLoopDirective(D);
2554 }
2555 
2556 void ASTStmtWriter::VisitOMPTargetSimdDirective(OMPTargetSimdDirective *D) {
2557  VisitOMPLoopDirective(D);
2559 }
2560 
2561 void ASTStmtWriter::VisitOMPTeamsDistributeDirective(
2563  VisitOMPLoopDirective(D);
2565 }
2566 
2567 void ASTStmtWriter::VisitOMPTeamsDistributeSimdDirective(
2569  VisitOMPLoopDirective(D);
2571 }
2572 
2573 void ASTStmtWriter::VisitOMPTeamsDistributeParallelForSimdDirective(
2575  VisitOMPLoopDirective(D);
2577 }
2578 
2579 void ASTStmtWriter::VisitOMPTeamsDistributeParallelForDirective(
2581  VisitOMPLoopDirective(D);
2582  Record.writeBool(D->hasCancel());
2584 }
2585 
2586 void ASTStmtWriter::VisitOMPTargetTeamsDirective(OMPTargetTeamsDirective *D) {
2587  VisitStmt(D);
2588  VisitOMPExecutableDirective(D);
2590 }
2591 
2592 void ASTStmtWriter::VisitOMPTargetTeamsDistributeDirective(
2594  VisitOMPLoopDirective(D);
2596 }
2597 
2598 void ASTStmtWriter::VisitOMPTargetTeamsDistributeParallelForDirective(
2600  VisitOMPLoopDirective(D);
2601  Record.writeBool(D->hasCancel());
2603 }
2604 
2605 void ASTStmtWriter::VisitOMPTargetTeamsDistributeParallelForSimdDirective(
2607  VisitOMPLoopDirective(D);
2608  Code = serialization::
2610 }
2611 
2612 void ASTStmtWriter::VisitOMPTargetTeamsDistributeSimdDirective(
2614  VisitOMPLoopDirective(D);
2616 }
2617 
2618 void ASTStmtWriter::VisitOMPInteropDirective(OMPInteropDirective *D) {
2619  VisitStmt(D);
2620  VisitOMPExecutableDirective(D);
2622 }
2623 
2624 void ASTStmtWriter::VisitOMPDispatchDirective(OMPDispatchDirective *D) {
2625  VisitStmt(D);
2626  VisitOMPExecutableDirective(D);
2627  Record.AddSourceLocation(D->getTargetCallLoc());
2629 }
2630 
2631 void ASTStmtWriter::VisitOMPMaskedDirective(OMPMaskedDirective *D) {
2632  VisitStmt(D);
2633  VisitOMPExecutableDirective(D);
2635 }
2636 
2637 void ASTStmtWriter::VisitOMPGenericLoopDirective(OMPGenericLoopDirective *D) {
2638  VisitOMPLoopDirective(D);
2640 }
2641 
2642 void ASTStmtWriter::VisitOMPTeamsGenericLoopDirective(
2644  VisitOMPLoopDirective(D);
2646 }
2647 
2648 void ASTStmtWriter::VisitOMPTargetTeamsGenericLoopDirective(
2650  VisitOMPLoopDirective(D);
2652 }
2653 
2654 void ASTStmtWriter::VisitOMPParallelGenericLoopDirective(
2656  VisitOMPLoopDirective(D);
2658 }
2659 
2660 void ASTStmtWriter::VisitOMPTargetParallelGenericLoopDirective(
2662  VisitOMPLoopDirective(D);
2664 }
2665 
2666 //===----------------------------------------------------------------------===//
2667 // ASTWriter Implementation
2668 //===----------------------------------------------------------------------===//
2669 
2671  assert(SwitchCaseIDs.find(S) == SwitchCaseIDs.end() &&
2672  "SwitchCase recorded twice");
2673  unsigned NextID = SwitchCaseIDs.size();
2674  SwitchCaseIDs[S] = NextID;
2675  return NextID;
2676 }
2677 
2679  assert(SwitchCaseIDs.find(S) != SwitchCaseIDs.end() &&
2680  "SwitchCase hasn't been seen yet");
2681  return SwitchCaseIDs[S];
2682 }
2683 
2685  SwitchCaseIDs.clear();
2686 }
2687 
2688 /// Write the given substatement or subexpression to the
2689 /// bitstream.
2690 void ASTWriter::WriteSubStmt(Stmt *S) {
2691  RecordData Record;
2692  ASTStmtWriter Writer(*this, Record);
2693  ++NumStatements;
2694 
2695  if (!S) {
2696  Stream.EmitRecord(serialization::STMT_NULL_PTR, Record);
2697  return;
2698  }
2699 
2700  llvm::DenseMap<Stmt *, uint64_t>::iterator I = SubStmtEntries.find(S);
2701  if (I != SubStmtEntries.end()) {
2702  Record.push_back(I->second);
2703  Stream.EmitRecord(serialization::STMT_REF_PTR, Record);
2704  return;
2705  }
2706 
2707 #ifndef NDEBUG
2708  assert(!ParentStmts.count(S) && "There is a Stmt cycle!");
2709 
2710  struct ParentStmtInserterRAII {
2711  Stmt *S;
2712  llvm::DenseSet<Stmt *> &ParentStmts;
2713 
2714  ParentStmtInserterRAII(Stmt *S, llvm::DenseSet<Stmt *> &ParentStmts)
2715  : S(S), ParentStmts(ParentStmts) {
2716  ParentStmts.insert(S);
2717  }
2718  ~ParentStmtInserterRAII() {
2719  ParentStmts.erase(S);
2720  }
2721  };
2722 
2723  ParentStmtInserterRAII ParentStmtInserter(S, ParentStmts);
2724 #endif
2725 
2726  Writer.Visit(S);
2727 
2728  uint64_t Offset = Writer.Emit();
2729  SubStmtEntries[S] = Offset;
2730 }
2731 
2732 /// Flush all of the statements that have been added to the
2733 /// queue via AddStmt().
2734 void ASTRecordWriter::FlushStmts() {
2735  // We expect to be the only consumer of the two temporary statement maps,
2736  // assert that they are empty.
2737  assert(Writer->SubStmtEntries.empty() && "unexpected entries in sub-stmt map");
2738  assert(Writer->ParentStmts.empty() && "unexpected entries in parent stmt map");
2739 
2740  for (unsigned I = 0, N = StmtsToEmit.size(); I != N; ++I) {
2741  Writer->WriteSubStmt(StmtsToEmit[I]);
2742 
2743  assert(N == StmtsToEmit.size() && "record modified while being written!");
2744 
2745  // Note that we are at the end of a full expression. Any
2746  // expression records that follow this one are part of a different
2747  // expression.
2748  Writer->Stream.EmitRecord(serialization::STMT_STOP, ArrayRef<uint32_t>());
2749 
2750  Writer->SubStmtEntries.clear();
2751  Writer->ParentStmts.clear();
2752  }
2753 
2754  StmtsToEmit.clear();
2755 }
2756 
2757 void ASTRecordWriter::FlushSubStmts() {
2758  // For a nested statement, write out the substatements in reverse order (so
2759  // that a simple stack machine can be used when loading), and don't emit a
2760  // STMT_STOP after each one.
2761  for (unsigned I = 0, N = StmtsToEmit.size(); I != N; ++I) {
2762  Writer->WriteSubStmt(StmtsToEmit[N - I - 1]);
2763  assert(N == StmtsToEmit.size() && "record modified while being written!");
2764  }
2765 
2766  StmtsToEmit.clear();
2767 }
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:5479
clang::UnaryOperator::getStoredFPFeatures
FPOptionsOverride getStoredFPFeatures() const
Get FPFeatures from trailing storage.
Definition: Expr.h:2318
clang::ObjCSubscriptRefExpr::setAtIndexMethodDecl
ObjCMethodDecl * setAtIndexMethodDecl() const
Definition: ExprObjC.h:890
clang::ASTWriter::getCharacterLiteralAbbrev
unsigned getCharacterLiteralAbbrev() const
Definition: ASTWriter.h:732
clang::IndirectGotoStmt
IndirectGotoStmt - This represents an indirect goto.
Definition: Stmt.h:2680
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:3373
clang::UnaryExprOrTypeTraitExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:2634
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:1835
clang::PackExpansionExpr::getPattern
Expr * getPattern()
Retrieve the pattern of the pack expansion.
Definition: ExprCXX.h:4104
clang::serialization::EXPR_CHARACTER_LITERAL
@ EXPR_CHARACTER_LITERAL
A CharacterLiteral record.
Definition: ASTBitCodes.h:1623
clang::ExpressionTraitExpr
An expression trait intrinsic.
Definition: ExprCXX.h:2847
clang::serialization::STMT_CXX_TRY
@ STMT_CXX_TRY
A CXXTryStmt record.
Definition: ASTBitCodes.h:1805
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:1632
clang::CXXNewExpr::passAlignment
bool passAlignment() const
Indicates whether the required alignment should be implicitly passed to the allocation function.
Definition: ExprCXX.h:2356
clang::serialization::STMT_MS_DEPENDENT_EXISTS
@ STMT_MS_DEPENDENT_EXISTS
Definition: ASTBitCodes.h:1994
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:4093
clang::MatrixSubscriptExpr
MatrixSubscriptExpr - Matrix subscript expression for the MatrixType extension.
Definition: Expr.h:2732
clang::SubstNonTypeTemplateParmExpr
Represents a reference to a non-type template parameter that has been substituted with a template arg...
Definition: ExprCXX.h:4269
clang::TypeTraitExpr::getArg
TypeSourceInfo * getArg(unsigned I) const
Retrieve the Ith argument.
Definition: ExprCXX.h:2741
clang::RecoveryExpr::children
child_range children()
Definition: Expr.h:6443
clang::Expr::getValueKind
ExprValueKind getValueKind() const
getValueKind - The value kind that this expression produces.
Definition: Expr.h:430
clang::Expr::getDependence
ExprDependence getDependence() const
Definition: Expr.h:155
clang::InitListExpr::getSyntacticForm
InitListExpr * getSyntacticForm() const
Definition: Expr.h:4957
clang::OMPDistributeParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:4571
clang::serialization::STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1948
clang::VAArgExpr::isMicrosoftABI
bool isMicrosoftABI() const
Returns whether this is really a Win64 ABI va_arg expression.
Definition: Expr.h:4659
clang::DeclRefExpr::getFoundDecl
NamedDecl * getFoundDecl()
Get the NamedDecl through which this reference occurred.
Definition: Expr.h:1341
clang::VAArgExpr::getWrittenTypeInfo
TypeSourceInfo * getWrittenTypeInfo() const
Definition: Expr.h:4662
clang::AtomicExpr
AtomicExpr - Variadic atomic builtins: __atomic_exchange, __atomic_fetch_*, __atomic_load,...
Definition: Expr.h:6239
clang::OMPMasterTaskLoopSimdDirective
This represents '#pragma omp master taskloop simd' directive.
Definition: StmtOpenMP.h:3950
clang::CaseStmt
CaseStmt - Represent a case statement.
Definition: Stmt.h:1603
clang::OMPTaskyieldDirective
This represents '#pragma omp taskyield' directive.
Definition: StmtOpenMP.h:2526
clang::CXXPseudoDestructorExpr::getColonColonLoc
SourceLocation getColonColonLoc() const
Retrieve the location of the '::' in a qualified pseudo-destructor expression.
Definition: ExprCXX.h:2622
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:1755
clang::ImaginaryLiteral
ImaginaryLiteral - We support imaginary integer and floating point literals, like "1....
Definition: Expr.h:1727
clang::serialization::EXPR_PSEUDO_OBJECT
@ EXPR_PSEUDO_OBJECT
A PseudoObjectExpr record.
Definition: ASTBitCodes.h:1725
clang::ExpressionTraitExpr::getValue
bool getValue() const
Definition: ExprCXX.h:2886
clang::ObjCPropertyRefExpr::getImplicitPropertySetter
ObjCMethodDecl * getImplicitPropertySetter() const
Definition: ExprObjC.h:713
clang::serialization::STMT_DECL
@ STMT_DECL
A DeclStmt record.
Definition: ASTBitCodes.h:1590
clang::UnresolvedMemberExpr::getBaseType
QualType getBaseType() const
Definition: ExprCXX.h:3920
clang::AtomicExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:6332
clang::concepts::Requirement::SubstitutionDiagnostic::DiagLoc
SourceLocation DiagLoc
Definition: ExprConcepts.h:162
clang::UnresolvedLookupExpr::requiresADL
bool requiresADL() const
True if this declaration should be extended by argument-dependent lookup.
Definition: ExprCXX.h:3165
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:2777
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:731
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:3057
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:2361
clang::ASTConstraintSatisfaction::ContainsErrors
bool ContainsErrors
Definition: ASTConcept.h:82
clang::OverloadExpr::getTrailingASTTemplateKWAndArgsInfo
ASTTemplateKWAndArgsInfo * getTrailingASTTemplateKWAndArgsInfo()
Return the optional template keyword and arguments info.
Definition: ExprCXX.h:3994
clang::CallExpr::arg_begin
arg_iterator arg_begin()
Definition: Expr.h:3054
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:1722
clang::AsTypeExpr
AsTypeExpr - Clang builtin function __builtin_astype [OpenCL 6.2.4.2] This AST node provides support ...
Definition: Expr.h:6036
clang::OffsetOfExpr
OffsetOfExpr - [C99 7.17] - This represents an expression of the form offsetof(record-type,...
Definition: Expr.h:2453
clang::serialization::STMT_CAPTURED
@ STMT_CAPTURED
A CapturedStmt record.
Definition: ASTBitCodes.h:1593
clang::PackExpansionExpr::getEllipsisLoc
SourceLocation getEllipsisLoc() const
Retrieve the location of the ellipsis that describes this pack expansion.
Definition: ExprCXX.h:4111
clang::serialization::STMT_OMP_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1982
clang::serialization::STMT_OMP_TARGET_DATA_DIRECTIVE
@ STMT_OMP_TARGET_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1944
clang::serialization::STMT_CASE
@ STMT_CASE
A CaseStmt record.
Definition: ASTBitCodes.h:1548
clang::CXXPseudoDestructorExpr
Represents a C++ pseudo-destructor (C++ [expr.pseudo]).
Definition: ExprCXX.h:2541
clang::DeclRefExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1312
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:5289
clang::serialization::EXPR_INTEGER_LITERAL
@ EXPR_INTEGER_LITERAL
An IntegerLiteral record.
Definition: ASTBitCodes.h:1611
clang::ObjCDictionaryElement
An element in an Objective-C dictionary literal.
Definition: ExprObjC.h:263
clang::VAArgExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:4654
clang::MemberExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: Expr.h:3334
clang::serialization::EXPR_SHUFFLE_VECTOR
@ EXPR_SHUFFLE_VECTOR
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1713
clang::AddrLabelExpr::getAmpAmpLoc
SourceLocation getAmpAmpLoc() const
Definition: Expr.h:4324
clang::DeclarationName::Identifier
@ Identifier
Definition: DeclarationName.h:209
clang::OMPTileDirective
This represents the '#pragma omp tile' loop transformation directive.
Definition: StmtOpenMP.h:5492
clang::PseudoObjectExpr::semantics_begin
semantics_iterator semantics_begin()
Definition: Expr.h:6173
clang::SwitchStmt
SwitchStmt - This represents a 'switch' stmt.
Definition: Stmt.h:2186
clang::CXXScalarValueInitExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: ExprCXX.h:2119
clang::serialization::STMT_OBJC_AT_THROW
@ STMT_OBJC_AT_THROW
An ObjCAtThrowStmt record.
Definition: ASTBitCodes.h:1788
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:2758
clang::OMPMaskedDirective
This represents '#pragma omp masked' directive.
Definition: StmtOpenMP.h:5819
clang::ASTRecordWriter::AddASTTemplateArgumentListInfo
void AddASTTemplateArgumentListInfo(const ASTTemplateArgumentListInfo *ASTTemplArgList)
Emits an AST template argument list info.
Definition: ASTWriter.cpp:5768
clang::VAArgExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4668
clang::serialization::EXPR_CXX_UNRESOLVED_LOOKUP
@ EXPR_CXX_UNRESOLVED_LOOKUP
Definition: ASTBitCodes.h:1878
clang::SourceRange
A trivial tuple used to represent a source range.
Definition: SourceLocation.h:210
clang::BinaryConditionalOperator::getCommon
Expr * getCommon() const
getCommon - Return the common expression, written to the left of the condition.
Definition: Expr.h:4247
clang::IntegerLiteral::getLocation
SourceLocation getLocation() const
Retrieve the location of the literal.
Definition: Expr.h:1529
clang::serialization::EXPR_OMP_ARRAY_SECTION
@ EXPR_OMP_ARRAY_SECTION
Definition: ASTBitCodes.h:1987
clang::Stmt::CXXNewExprBits
CXXNewExprBitfields CXXNewExprBits
Definition: Stmt.h:1061
clang::WhileStmt
WhileStmt - This represents a 'while' stmt.
Definition: Stmt.h:2377
clang::OffsetOfExpr::getIndexExpr
Expr * getIndexExpr(unsigned Idx)
Definition: Expr.h:2516
clang::OMPCancellationPointDirective::getCancelRegion
OpenMPDirectiveKind getCancelRegion() const
Get cancellation region for the current cancellation point.
Definition: StmtOpenMP.h:3585
clang::SourceLocExpr::getParentContext
const DeclContext * getParentContext() const
If the SourceLocExpr has been resolved return the subexpression representing the resolved value.
Definition: Expr.h:4728
clang::NullStmt
NullStmt - This is the null statement ";": C99 6.8.3p3.
Definition: Stmt.h:1375
clang::serialization::STMT_NULL
@ STMT_NULL
A NullStmt record.
Definition: ASTBitCodes.h:1542
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:1916
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:1877
clang::serialization::STMT_MSASM
@ STMT_MSASM
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1599
clang::ASTTemplateKWAndArgsInfo::RAngleLoc
SourceLocation RAngleLoc
The source location of the right angle bracket ('>').
Definition: TemplateBase.h:671
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1977
clang::CXXReinterpretCastExpr
A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]).
Definition: ExprCXX.h:521
clang::CXXNoexceptExpr::getValue
bool getValue() const
Definition: ExprCXX.h:4044
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:2738
clang::CXXConstructExpr::getNumArgs
unsigned getNumArgs() const
Return the number of arguments to the constructor call.
Definition: ExprCXX.h:1615
clang::serialization::EXPR_CONVERT_VECTOR
@ EXPR_CONVERT_VECTOR
A ConvertVectorExpr record.
Definition: ASTBitCodes.h:1716
clang::BinaryConditionalOperator::getTrueExpr
Expr * getTrueExpr() const
getTrueExpr - Return the subexpression which will be evaluated if the condition evaluates to true; th...
Definition: Expr.h:4259
clang::ConditionalOperator::getLHS
Expr * getLHS() const
Definition: Expr.h:4184
clang::OpaqueValueExpr::getLocation
SourceLocation getLocation() const
Retrieve the location of this expression.
Definition: Expr.h:1166
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:2678
clang::CXXConstructExpr::getParenOrBraceRange
SourceRange getParenOrBraceRange() const
Definition: ExprCXX.h:1635
clang::BuiltinBitCastExpr::getBeginLoc
SourceLocation getBeginLoc() const LLVM_READONLY
Definition: ExprCXX.h:4948
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:79
clang::OMPParallelMasterTaskLoopDirective
This represents '#pragma omp parallel master taskloop' directive.
Definition: StmtOpenMP.h:4081
clang::serialization::EXPR_PACK_EXPANSION
@ EXPR_PACK_EXPANSION
Definition: ASTBitCodes.h:1888
clang::FloatingLiteral::getValue
llvm::APFloat getValue() const
Definition: Expr.h:1662
clang::DesignatedInitUpdateExpr::getBase
Expr * getBase() const
Definition: Expr.h:5391
clang::StringLiteral::isPascal
bool isPascal() const
Definition: Expr.h:1900
clang::OMPTargetParallelGenericLoopDirective
This represents '#pragma omp target parallel loop' directive.
Definition: StmtOpenMP.h:6167
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:1875
clang::InitListExpr::getRBraceLoc
SourceLocation getRBraceLoc() const
Definition: Expr.h:4947
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:1218
clang::serialization::EXPR_CSTYLE_CAST
@ EXPR_CSTYLE_CAST
A CStyleCastExpr record.
Definition: ASTBitCodes.h:1665
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:1659
clang::RequiresExpr::getRequirements
ArrayRef< concepts::Requirement * > getRequirements() const
Definition: ExprConcepts.h:514
clang::DesignatedInitExpr
Represents a C99 designated initializer expression.
Definition: Expr.h:5034
clang::OMPTargetTeamsDistributeDirective
This represents '#pragma omp target teams distribute' combined directive.
Definition: StmtOpenMP.h:5199
clang::concepts::TypeRequirement::SS_SubstitutionFailure
@ SS_SubstitutionFailure
Definition: ExprConcepts.h:203
clang::SubstNonTypeTemplateParmPackExpr
Represents a reference to a non-type template parameter pack that has been substituted with a non-tem...
Definition: ExprCXX.h:4354
clang::OMPTargetTeamsDistributeSimdDirective
This represents '#pragma omp target teams distribute simd' combined directive.
Definition: StmtOpenMP.h:5434
clang::FunctionParmPackExpr::getParameterPack
VarDecl * getParameterPack() const
Get the parameter pack which this expression refers to.
Definition: ExprCXX.h:4460
llvm::SmallVector< uint64_t, 64 >
clang::OMPCanonicalLoop
Representation of an OpenMP canonical loop.
Definition: StmtOpenMP.h:142
clang::SubstNonTypeTemplateParmPackExpr::getIndex
unsigned getIndex() const
Returns the index of the replaced parameter in the associated declaration.
Definition: ExprCXX.h:4388
clang::serialization::STMT_OMP_MASTER_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1956
clang::OverloadExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Fetches the nested-name qualifier with source-location information, if one was given.
Definition: ExprCXX.h:3025
clang::ObjCSubscriptRefExpr::getAtIndexMethodDecl
ObjCMethodDecl * getAtIndexMethodDecl() const
Definition: ExprObjC.h:886
clang::SourceLocation
Encodes a location in the source.
Definition: SourceLocation.h:86
clang::MSPropertyRefExpr::getBaseExpr
Expr * getBaseExpr() const
Definition: ExprCXX.h:983
clang::OMPIteratorExpr::getIteratorRange
IteratorRange getIteratorRange(unsigned I)
Gets the iterator range for the given iterator.
Definition: Expr.cpp:5025
clang::MSPropertyRefExpr
A member reference to an MSPropertyDecl.
Definition: ExprCXX.h:930
clang::CallExpr::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:2972
clang::MaterializeTemporaryExpr::getSubExpr
Expr * getSubExpr() const
Retrieve the temporary-generating subexpression whose value will be materialized into a glvalue.
Definition: ExprCXX.h:4530
clang::AsTypeExpr::getSrcExpr
Expr * getSrcExpr() const
getSrcExpr - Return the Expr to be converted.
Definition: Expr.h:6055
clang::AtomicExpr::getOp
AtomicOp getOp() const
Definition: Expr.h:6303
clang::ASTRecordWriter::AddIdentifierRef
void AddIdentifierRef(const IdentifierInfo *II)
Emit a reference to an identifier.
Definition: ASTRecordWriter.h:178
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:677
clang::OMPAtomicDirective::isXLHSInRHSPart
bool isXLHSInRHSPart() const
Return true if helper update expression has form 'OpaqueValueExpr(x) binop OpaqueValueExpr(expr)' and...
Definition: StmtOpenMP.h:3040
clang::CoroutineSuspendExpr::getKeywordLoc
SourceLocation getKeywordLoc() const
Definition: ExprCXX.h:4800
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1978
clang::ParenListExpr
Definition: Expr.h:5542
clang::SourceRange::getBegin
SourceLocation getBegin() const
Definition: SourceLocation.h:219
clang::CharacterLiteral::getValue
unsigned getValue() const
Definition: Expr.h:1627
clang::OffsetOfNode::getKind
Kind getKind() const
Determine what kind of offsetof node this is.
Definition: Expr.h:2403
clang::DesignatedInitExpr::getEqualOrColonLoc
SourceLocation getEqualOrColonLoc() const
Retrieve the location of the '=' that precedes the initializer value itself, if present.
Definition: Expr.h:5262
clang::serialization::EXPR_OBJC_BOOL_LITERAL
@ EXPR_OBJC_BOOL_LITERAL
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1794
clang::OMPMasterDirective
This represents '#pragma omp master' directive.
Definition: StmtOpenMP.h:1975
clang::serialization::EXPR_STRING_LITERAL
@ EXPR_STRING_LITERAL
A StringLiteral record.
Definition: ASTBitCodes.h:1620
clang::ShuffleVectorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4423
clang::CXXNewExpr::getNumPlacementArgs
unsigned getNumPlacementArgs() const
Definition: ExprCXX.h:2299
clang::ExprWithCleanups::getNumObjects
unsigned getNumObjects() const
Definition: ExprCXX.h:3399
clang::CastExpr::getSubExpr
Expr * getSubExpr()
Definition: Expr.h:3530
clang::NoInitExpr
Represents a place-holder for an object not to be initialized by anything.
Definition: Expr.h:5335
clang::CXXNewExpr::getOperatorNew
FunctionDecl * getOperatorNew() const
Definition: ExprCXX.h:2264
clang::CXXDeleteExpr::isArrayForm
bool isArrayForm() const
Definition: ExprCXX.h:2448
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:79
clang::CXXBindTemporaryExpr::getSubExpr
const Expr * getSubExpr() const
Definition: ExprCXX.h:1441
clang::UnaryExprOrTypeTraitExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:2631
clang::OffsetOfNode::Array
@ Array
An index into an array.
Definition: Expr.h:2354
clang::CXXNewExpr::getTypeIdParens
SourceRange getTypeIdParens() const
Definition: ExprCXX.h:2317
clang::OMPTaskwaitDirective
This represents '#pragma omp taskwait' directive.
Definition: StmtOpenMP.h:2618
clang::CStyleCastExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:3778
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:3834
clang::CXXConstructExpr::requiresZeroInitialization
bool requiresZeroInitialization() const
Whether this construction first requires zero-initialization before the initializer is called.
Definition: ExprCXX.h:1578
clang::serialization::STMT_FOR
@ STMT_FOR
A ForStmt record.
Definition: ASTBitCodes.h:1572
clang::serialization::STMT_OMP_TEAMS_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_TEAMS_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1983
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:1063
clang::serialization::EXPR_OBJC_ARRAY_LITERAL
@ EXPR_OBJC_ARRAY_LITERAL
Definition: ASTBitCodes.h:1739
clang::CXXNewExpr::isArray
bool isArray() const
Definition: ExprCXX.h:2269
clang::serialization::STMT_OBJC_AT_SYNCHRONIZED
@ STMT_OBJC_AT_SYNCHRONIZED
An ObjCAtSynchronizedStmt record.
Definition: ASTBitCodes.h:1785
clang::CompoundLiteralExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: Expr.h:3443
clang::OMPSectionDirective
This represents '#pragma omp section' directive.
Definition: StmtOpenMP.h:1862
clang::serialization::EXPR_CXX_PROPERTY_REF_EXPR
@ EXPR_CXX_PROPERTY_REF_EXPR
Definition: ASTBitCodes.h:1905
clang::serialization::EXPR_IMPLICIT_VALUE_INIT
@ EXPR_IMPLICIT_VALUE_INIT
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1692
clang::ArrayTypeTraitExpr::getValue
uint64_t getValue() const
Definition: ExprCXX.h:2822
clang::serialization::EXPR_CXX_FUNCTIONAL_CAST
@ EXPR_CXX_FUNCTIONAL_CAST
A CXXFunctionalCastExpr record.
Definition: ASTBitCodes.h:1844
clang::PseudoObjectExpr::getNumSemanticExprs
unsigned getNumSemanticExprs() const
Definition: Expr.h:6169
clang::TypeTraitExpr
A type trait used in the implementation of various C++11 and Library TR1 trait templates.
Definition: ExprCXX.h:2689
clang::serialization::EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK
Definition: ASTBitCodes.h:1891
clang::DependentScopeDeclRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieve the nested-name-specifier that qualifies the name, with source location information.
Definition: ExprCXX.h:3267
clang::CXXTypeidExpr
A C++ typeid expression (C++ [expr.typeid]), which gets the type_info that corresponds to the supplie...
Definition: ExprCXX.h:846
clang::UnresolvedSetIterator
The iterator over UnresolvedSets.
Definition: UnresolvedSet.h:32
clang::concepts::Requirement::SubstitutionDiagnostic
Definition: ExprConcepts.h:157
clang::FieldDecl
Represents a member of a struct/union/class.
Definition: Decl.h:2930
clang::serialization::EXPR_OBJC_MESSAGE_EXPR
@ EXPR_OBJC_MESSAGE_EXPR
An ObjCMessageExpr record.
Definition: ASTBitCodes.h:1764
clang::RequiresExpr
C++2a [expr.prim.req]: A requires-expression provides a concise way to express requirements on templa...
Definition: ExprConcepts.h:471
clang::serialization::STMT_COMPOUND
@ STMT_COMPOUND
A CompoundStmt record.
Definition: ASTBitCodes.h:1545
clang::OverloadExpr::hasTemplateKWAndArgsInfo
bool hasTemplateKWAndArgsInfo() const
Definition: ExprCXX.h:2948
clang::OffsetOfNode::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Retrieve the source range that covers this offsetof node.
Definition: Expr.h:2434
clang::CXXInheritedCtorInitExpr::getConstructor
CXXConstructorDecl * getConstructor() const
Get the constructor that this expression will call.
Definition: ExprCXX.h:1693
clang::ParmVarDecl
Represents a parameter to a function.
Definition: Decl.h:1712
clang::MSPropertyRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Definition: ExprCXX.h:987
clang::Stmt::ConstantExprBits
ConstantExprBitfields ConstantExprBits
Definition: Stmt.h:1029
DeclCXX.h
clang::DeclRefExpr::isNonOdrUse
NonOdrUseReason isNonOdrUse() const
Is this expression a non-odr-use reference, and if so, why?
Definition: Expr.h:1428
clang::OMPTargetParallelDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3377
clang::OMPTeamsDistributeSimdDirective
This represents '#pragma omp teams distribute simd' combined directive.
Definition: StmtOpenMP.h:4916
clang::BinaryConditionalOperator::getCond
Expr * getCond() const
getCond - Return the condition expression; this is defined in terms of the opaque value.
Definition: Expr.h:4254
clang::UnresolvedMemberExpr::getBase
Expr * getBase()
Retrieve the base object of this member expressions, e.g., the x in x.m.
Definition: ExprCXX.h:3911
clang::serialization::STMT_CONTINUE
@ STMT_CONTINUE
A ContinueStmt record.
Definition: ASTBitCodes.h:1581
clang::OMPTargetParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3473
clang::CXXUuidofExpr::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprCXX.h:1113
clang::CXXNewExpr
Represents a new-expression for memory allocation and constructor calls, e.g: "new CXXNewExpr(foo)".
Definition: ExprCXX.h:2146
clang::StringLiteral::getStrTokenLoc
SourceLocation getStrTokenLoc(unsigned TokNum) const
Get one of the string literal token.
Definition: Expr.h:1923
clang::IfStmt
IfStmt - This represents an if/then/else.
Definition: Stmt.h:1940
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:6426
clang::serialization::EXPR_STMT
@ EXPR_STMT
A StmtExpr record.
Definition: ASTBitCodes.h:1701
clang::ParenExpr::getLParen
SourceLocation getLParen() const
Get the location of the left parentheses '('.
Definition: Expr.h:2144
clang::OMPExecutableDirective::getEndLoc
SourceLocation getEndLoc() const
Returns ending location of directive.
Definition: StmtOpenMP.h:490
clang::AddrLabelExpr::getLabelLoc
SourceLocation getLabelLoc() const
Definition: Expr.h:4326
clang::serialization::EXPR_CXX_DELETE
@ EXPR_CXX_DELETE
Definition: ASTBitCodes.h:1869
clang::GotoStmt
GotoStmt - This represents a direct goto.
Definition: Stmt.h:2641
clang::StmtExpr::getSubStmt
CompoundStmt * getSubStmt()
Definition: Expr.h:4371
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:4796
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:2423
clang::DeclGroupRef::begin
iterator begin()
Definition: DeclGroup.h:99
clang::serialization::EXPR_CXX_TYPEID_TYPE
@ EXPR_CXX_TYPEID_TYPE
Definition: ASTBitCodes.h:1860
clang::serialization::EXPR_CXX_PSEUDO_DESTRUCTOR
@ EXPR_CXX_PSEUDO_DESTRUCTOR
Definition: ASTBitCodes.h:1870
clang::OffsetOfNode::getFieldName
IdentifierInfo * getFieldName() const
For a field or identifier offsetof node, returns the name of the field.
Definition: Expr.cpp:1673
clang::ExpressionTraitExpr::getTrait
ExpressionTrait getTrait() const
Definition: ExprCXX.h:2882
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:7091
clang::AsTypeExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
getBuiltinLoc - Return the location of the __builtin_astype token.
Definition: Expr.h:6058
clang::serialization::STMT_OMP_DISTRIBUTE_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_DIRECTIVE
Definition: ASTBitCodes.h:1963
clang::serialization::STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1929
clang::serialization::STMT_OMP_ORDERED_DIRECTIVE
@ STMT_OMP_ORDERED_DIRECTIVE
Definition: ASTBitCodes.h:1941
clang::serialization::EXPR_CXX_SCALAR_VALUE_INIT
@ EXPR_CXX_SCALAR_VALUE_INIT
Definition: ASTBitCodes.h:1867
clang::UnaryOperator
UnaryOperator - This represents the unary-expression's (except sizeof and alignof),...
Definition: Expr.h:2172
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:1689
clang::CoroutineBodyStmt::children
child_range children()
Definition: StmtCXX.h:431
clang::serialization::STMT_OMP_MASKED_DIRECTIVE
@ STMT_OMP_MASKED_DIRECTIVE
Definition: ASTBitCodes.h:1981
clang::OffsetOfExpr::getNumExpressions
unsigned getNumExpressions() const
Definition: Expr.h:2531
clang::serialization::STMT_OMP_META_DIRECTIVE
@ STMT_OMP_META_DIRECTIVE
Definition: ASTBitCodes.h:1915
clang::ObjCBoolLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprObjC.h:107
clang::CallExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:3120
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:1975
clang::serialization::EXPR_COAWAIT
@ EXPR_COAWAIT
Definition: ASTBitCodes.h:1998
clang::CoreturnStmt
Represents a 'co_return' statement in the C++ Coroutines TS.
Definition: StmtCXX.h:458
ExprOpenMP.h
clang::CXXInheritedCtorInitExpr::getLocation
SourceLocation getLocation() const LLVM_READONLY
Definition: ExprCXX.h:1709
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::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:4367
clang::ArrayInitLoopExpr
Represents a loop initializing the elements of an array.
Definition: Expr.h:5426
clang::PseudoObjectExpr::semantics_end
semantics_iterator semantics_end()
Definition: Expr.h:6179
clang::BinaryOperator::getOpcode
Opcode getOpcode() const
Definition: Expr.h:3856
clang::UnaryExprOrTypeTraitExpr::getArgumentExpr
Expr * getArgumentExpr()
Definition: Expr.h:2608
clang::serialization::STMT_OMP_SIMD_DIRECTIVE
@ STMT_OMP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1918
clang::MSPropertyRefExpr::getPropertyDecl
MSPropertyDecl * getPropertyDecl() const
Definition: ExprCXX.h:984
clang::ASTRecordWriter::AddTemplateParameterList
void AddTemplateParameterList(const TemplateParameterList *TemplateParams)
Emit a template parameter list.
Definition: ASTWriter.cpp:5741
clang::ASTRecordWriter::AddTypeSourceInfo
void AddTypeSourceInfo(TypeSourceInfo *TInfo)
Emits a reference to a declarator info.
Definition: ASTWriter.cpp:5484
clang::ASTRecordWriter::getRecordData
ASTWriter::RecordDataImpl & getRecordData() const
Extract the underlying record storage.
Definition: ASTRecordWriter.h:75
clang::CXXNoexceptExpr::getSourceRange
SourceRange getSourceRange() const
Definition: ExprCXX.h:4042
clang::BinaryOperator::getStoredFPFeatures
FPOptionsOverride getStoredFPFeatures() const
Get FPFeatures from trailing storage.
Definition: Expr.h:3998
clang::serialization::EXPR_CXX_NOEXCEPT
@ EXPR_CXX_NOEXCEPT
Definition: ASTBitCodes.h:1881
clang::AtomicExpr::getSubExprs
Expr ** getSubExprs()
Definition: Expr.h:6306
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:668
clang::CXXNewExpr::getDirectInitRange
SourceRange getDirectInitRange() const
Definition: ExprCXX.h:2405
clang::CXXBindTemporaryExpr::getTemporary
CXXTemporary * getTemporary()
Definition: ExprCXX.h:1437
clang::ASTRecordWriter::AddAPInt
void AddAPInt(const llvm::APInt &Value)
Emit an integral value.
Definition: ASTRecordWriter.h:162
clang::serialization::EXPR_CXX_DYNAMIC_CAST
@ EXPR_CXX_DYNAMIC_CAST
A CXXDynamicCastExpr record.
Definition: ASTBitCodes.h:1832
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:2641
clang::ObjCPropertyRefExpr::isImplicitProperty
bool isImplicitProperty() const
Definition: ExprObjC.h:700
clang::CXXScalarValueInitExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprCXX.h:2123
clang::serialization::STMT_OMP_TARGET_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1969
clang::CXXTypeidExpr::getExprOperand
Expr * getExprOperand() const
Definition: ExprCXX.h:893
clang::SYCLUniqueStableNameExpr::getLParenLocation
SourceLocation getLParenLocation() const
Definition: Expr.h:2095
clang::CXXUnresolvedConstructExpr::getNumArgs
unsigned getNumArgs() const
Retrieve the number of arguments.
Definition: ExprCXX.h:3510
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:1853
clang::serialization::EXPR_CXX_BOOL_LITERAL
@ EXPR_CXX_BOOL_LITERAL
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1856
clang::OverloadExpr::decls_end
decls_iterator decls_end() const
Definition: ExprCXX.h:2999
clang::FixedPointLiteral::getScale
unsigned getScale() const
Definition: Expr.h:1575
clang::StringLiteral::getByteLength
unsigned getByteLength() const
Definition: Expr.h:1887
clang::CXXDependentScopeMemberExpr::getBaseType
QualType getBaseType() const
Definition: ExprCXX.h:3677
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:3266
clang::ASTStmtWriter
Definition: ASTWriterStmt.cpp:32
clang::OMPTargetTeamsDistributeParallelForDirective
This represents '#pragma omp target teams distribute parallel for' combined directive.
Definition: StmtOpenMP.h:5265
clang::ObjCArrayLiteral::getArrayWithObjectsMethod
ObjCMethodDecl * getArrayWithObjectsMethod() const
Definition: ExprObjC.h:241
clang::CStyleCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:3775
clang::OpaqueValueExpr
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class.
Definition: Expr.h:1144
clang::CXXPseudoDestructorExpr::getScopeTypeInfo
TypeSourceInfo * getScopeTypeInfo() const
Retrieve the scope type in a qualified pseudo-destructor expression.
Definition: ExprCXX.h:2618
clang::OMPArrayShapingExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprOpenMP.h:192
clang::SEHTryStmt
Definition: Stmt.h:3444
clang::serialization::STMT_OMP_MASKED_TASKLOOP_DIRECTIVE
@ STMT_OMP_MASKED_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1959
clang::CXXFoldExpr
Represents a folding of a pack over an operator.
Definition: ExprCXX.h:4625
clang::CXXDefaultArgExpr::getUsedContext
const DeclContext * getUsedContext() const
Definition: ExprCXX.h:1290
clang::serialization::STMT_OMP_TARGET_EXIT_DATA_DIRECTIVE
@ STMT_OMP_TARGET_EXIT_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1946
clang::ObjCPropertyRefExpr::getExplicitProperty
ObjCPropertyDecl * getExplicitProperty() const
Definition: ExprObjC.h:703
clang::ASTRecordWriter::AddSourceLocation
void AddSourceLocation(SourceLocation Loc, LocSeq *Seq=nullptr)
Emit a source location.
Definition: ASTRecordWriter.h:137
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:1053
clang::PredefinedExpr::getIdentKind
IdentKind getIdentKind() const
Definition: Expr.h:2016
clang::serialization::EXPR_CALL
@ EXPR_CALL
A CallExpr record.
Definition: ASTBitCodes.h:1647
clang::OMPTaskgroupDirective
This represents '#pragma omp taskgroup' directive.
Definition: StmtOpenMP.h:2669
clang::serialization::EXPR_OBJC_DICTIONARY_LITERAL
@ EXPR_OBJC_DICTIONARY_LITERAL
Definition: ASTBitCodes.h:1740
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:1791
clang::ConditionalOperator
ConditionalOperator - The ?: ternary operator.
Definition: Expr.h:4150
clang::CXXUuidofExpr::getTypeOperandSourceInfo
TypeSourceInfo * getTypeOperandSourceInfo() const
Retrieve source information for the type operand.
Definition: ExprCXX.h:1100
clang::CXXThrowExpr
A C++ throw-expression (C++ [except.throw]).
Definition: ExprCXX.h:1188
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:2457
Offset
unsigned Offset
Definition: Format.cpp:2717
clang::serialization::STMT_OMP_TASKLOOP_DIRECTIVE
@ STMT_OMP_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1953
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:4301
clang::CXXDependentScopeMemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Retrieve the location of the '->' or '.' operator.
Definition: ExprCXX.h:3684
clang::serialization::EXPR_DESIGNATED_INIT
@ EXPR_DESIGNATED_INIT
A DesignatedInitExpr record.
Definition: ASTBitCodes.h:1677
clang::serialization::EXPR_OBJC_PROTOCOL_EXPR
@ EXPR_OBJC_PROTOCOL_EXPR
An ObjCProtocolExpr record.
Definition: ASTBitCodes.h:1749
clang::ArrayTypeTraitExpr::getTrait
ArrayTypeTrait getTrait() const
Definition: ExprCXX.h:2816
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:1698
clang::CoroutineSuspendExpr::getOpaqueValue
OpaqueValueExpr * getOpaqueValue() const
getOpaqueValue - Return the opaque value placeholder.
Definition: ExprCXX.h:4781
clang::CXXTemporaryObjectExpr
Represents a C++ functional cast expression that builds a temporary object.
Definition: ExprCXX.h:1804
clang::ASTRecordWriter::AddTypeRef
void AddTypeRef(QualType T)
Emit a reference to a type.
Definition: ASTRecordWriter.h:201
clang::FunctionParmPackExpr
Represents a reference to a function parameter pack or init-capture pack that has been substituted bu...
Definition: ExprCXX.h:4431
clang::ObjCIvarRefExpr::getDecl
ObjCIvarDecl * getDecl()
Definition: ExprObjC.h:576
clang::serialization::EXPR_OBJC_BOXED_EXPRESSION
@ EXPR_OBJC_BOXED_EXPRESSION
Definition: ASTBitCodes.h:1738
clang::concepts::Requirement::SubstitutionDiagnostic::SubstitutedEntity
StringRef SubstitutedEntity
Definition: ExprConcepts.h:158
clang::FixedPointLiteral
Definition: Expr.h:1546
clang::OMPTargetExitDataDirective
This represents '#pragma omp target exit data' directive.
Definition: StmtOpenMP.h:3259
clang::CXXThisExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:1160
clang::CompoundLiteralExpr::isFileScope
bool isFileScope() const
Definition: Expr.h:3437
clang::OMPExecutableDirective::Data
OMPChildren * Data
Data, associated with the directive.
Definition: StmtOpenMP.h:286
clang::ConstantExpr::RSK_APValue
@ RSK_APValue
Definition: Expr.h:1053
clang::ASTRecordWriter::AddStmt
void AddStmt(Stmt *S)
Add the given statement or expression to the queue of statements to emit.
Definition: ASTRecordWriter.h:122
clang::UnresolvedMemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Retrieve the location of the '->' or '.' operator.
Definition: ExprCXX.h:3933
clang::ObjCEncodeExpr::getEncodedTypeSourceInfo
TypeSourceInfo * getEncodedTypeSourceInfo() const
Definition: ExprObjC.h:430
clang::OMPForSimdDirective
This represents '#pragma omp for simd' directive.
Definition: StmtOpenMP.h:1722
clang::ASTWriter::RecordData
SmallVector< uint64_t, 64 > RecordData
Definition: ASTWriter.h:91
clang::ObjCMessageExpr::arg_begin
arg_iterator arg_begin()
Definition: ExprObjC.h:1461
clang::AttributedStmt
Represents an attribute applied to a statement.
Definition: Stmt.h:1882
clang::OMPParallelGenericLoopDirective
This represents '#pragma omp parallel loop' directive.
Definition: StmtOpenMP.h:6102
clang::FunctionParmPackExpr::begin
iterator begin() const
Definition: ExprCXX.h:4468
clang::OMPErrorDirective
This represents '#pragma omp error' directive.
Definition: StmtOpenMP.h:6229
clang::UnaryOperator::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Is FPFeatures in Trailing Storage?
Definition: Expr.h:2315
clang::CallExpr::getCallee
Expr * getCallee()
Definition: Expr.h:2960
clang::IntegerLiteral
Definition: Expr.h:1503
clang::ObjCMessageExpr::getRightLoc
SourceLocation getRightLoc() const
Definition: ExprObjC.h:1407
clang::serialization::STMT_OMP_UNROLL_DIRECTIVE
@ STMT_OMP_UNROLL_DIRECTIVE
Definition: ASTBitCodes.h:1920
clang::CXXTypeidExpr::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprCXX.h:900
clang::ParenListExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:5587
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:2558
clang::FloatingLiteral
Definition: Expr.h:1648
clang::serialization::EXPR_CXX_CONSTRUCT
@ EXPR_CXX_CONSTRUCT
A CXXConstructExpr record.
Definition: ASTBitCodes.h:1820
clang::OffsetOfExpr::getComponent
const OffsetOfNode & getComponent(unsigned Idx) const
Definition: Expr.h:2502
clang::CompoundStmt
CompoundStmt - This represents a group of statements like { stmt stmt }.
Definition: Stmt.h:1410
clang::OverloadExpr::getNameInfo
const DeclarationNameInfo & getNameInfo() const
Gets the full name info.
Definition: ExprCXX.h:3010
clang::ConvertVectorExpr
ConvertVectorExpr - Clang builtin function __builtin_convertvector This AST node provides support for...
Definition: Expr.h:4470
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:1874
clang::MSPropertySubscriptExpr
MS property subscript expression.
Definition: ExprCXX.h:1001
clang::ChooseExpr::isConditionDependent
bool isConditionDependent() const
Definition: Expr.h:4559
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:1958
clang::CXXUuidofExpr::getGuidDecl
MSGuidDecl * getGuidDecl() const
Definition: ExprCXX.h:1109
clang::OMPParallelMasterDirective
This represents '#pragma omp parallel master' directive.
Definition: StmtOpenMP.h:2256
clang::CXXThrowExpr::getThrowLoc
SourceLocation getThrowLoc() const
Definition: ExprCXX.h:1211
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:3097
clang::OverloadExpr::decls_begin
decls_iterator decls_begin() const
Definition: ExprCXX.h:2996
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:1918
clang::serialization::StmtCode
StmtCode
Record codes for each kind of statement or expression.
Definition: ASTBitCodes.h:1530
clang::serialization::EXPR_CXX_MEMBER_CALL
@ EXPR_CXX_MEMBER_CALL
A CXXMemberCallExpr record.
Definition: ASTBitCodes.h:1814
clang::serialization::STMT_OMP_TASKGROUP_DIRECTIVE
@ STMT_OMP_TASKGROUP_DIRECTIVE
Definition: ASTBitCodes.h:1950
clang::FloatingLiteral::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1703
clang::Decl::getAccess
AccessSpecifier getAccess() const
Definition: DeclBase.h:491
clang::CXXBoolLiteralExpr::getValue
bool getValue() const
Definition: ExprCXX.h:738
clang::DependentCoawaitExpr
Represents a 'co_await' expression while the type of the promise is dependent.
Definition: ExprCXX.h:4855
clang::SizeOfPackExpr
Represents an expression that computes the length of a parameter pack.
Definition: ExprCXX.h:4151
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:1932
clang::CXXBindTemporaryExpr
Represents binding an expression to a temporary.
Definition: ExprCXX.h:1419
clang::BlockDecl
Represents a block literal declaration, which is like an unnamed FunctionDecl.
Definition: Decl.h:4283
clang::CastExpr::getFPFeatures
FPOptionsOverride getFPFeatures() const
Definition: Expr.h:3583
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:1493
clang::OMPParallelMaskedTaskLoopDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:4220
clang::OverloadExpr::getNumDecls
unsigned getNumDecls() const
Gets the number of declarations in the unresolved set.
Definition: ExprCXX.h:3007
clang::serialization::EXPR_ARRAY_SUBSCRIPT
@ EXPR_ARRAY_SUBSCRIPT
An ArraySubscriptExpr record.
Definition: ASTBitCodes.h:1641
clang::ParenExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:2136
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:3812
clang::FunctionParmPackExpr::getNumExpansions
unsigned getNumExpansions() const
Get the number of parameters in this parameter pack.
Definition: ExprCXX.h:4472
clang::ExtVectorElementExpr::getAccessor
IdentifierInfo & getAccessor() const
Definition: Expr.h:5936
clang::ExplicitCastExpr::getTypeInfoAsWritten
TypeSourceInfo * getTypeInfoAsWritten() const
getTypeInfoAsWritten - Returns the type source info for the type that this expression is casting to.
Definition: Expr.h:3724
clang::SubstNonTypeTemplateParmExpr::isReferenceParameter
bool isReferenceParameter() const
Definition: ExprCXX.h:4325
clang::OMPTeamsDirective
This represents '#pragma omp teams' directive.
Definition: StmtOpenMP.h:3488
hlsl::uint64_t
unsigned long uint64_t
Definition: hlsl_basic_types.h:25
clang::ConvertVectorExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
getTypeSourceInfo - Return the destination type.
Definition: Expr.h:4493
clang::serialization::STMT_SEH_LEAVE
@ STMT_SEH_LEAVE
Definition: ASTBitCodes.h:1909
clang::LambdaExpr
A C++ lambda expression, which produces a function object (of unspecified type) that can be invoked l...
Definition: ExprCXX.h:1872
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:357
clang::MemberExpr::isArrow
bool isArrow() const
Definition: Expr.h:3353
clang::SubstNonTypeTemplateParmPackExpr::getAssociatedDecl
Decl * getAssociatedDecl() const
A template-like entity which owns the whole pattern being substituted.
Definition: ExprCXX.h:4384
clang::RecoveryExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: Expr.h:6448
clang::SubstNonTypeTemplateParmExpr::getReplacement
Expr * getReplacement() const
Definition: ExprCXX.h:4307
clang::SourceRange::getEnd
SourceLocation getEnd() const
Definition: SourceLocation.h:220
clang::MSPropertySubscriptExpr::getIdx
Expr * getIdx()
Definition: ExprCXX.h:1029
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:3930
clang::ASTRecordWriter::AddNestedNameSpecifierLoc
void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS)
Emit a nested name specifier with source-location information.
Definition: ASTWriter.cpp:5687
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:5987
clang::MemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:3351
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:1026
clang::MatrixSubscriptExpr::getRowIdx
Expr * getRowIdx()
Definition: Expr.h:2762
clang::StringLiteral::getBytes
StringRef getBytes() const
Allow access to clients that need the byte representation, such as ASTWriterStmt::VisitStringLiteral(...
Definition: Expr.h:1867
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:1557
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:5648
clang::MaterializeTemporaryExpr
Represents a prvalue temporary that is written into memory so that a reference can bind to it.
Definition: ExprCXX.h:4513
clang::serialization::EXPR_DESIGNATED_INIT_UPDATE
@ EXPR_DESIGNATED_INIT_UPDATE
A DesignatedInitUpdateExpr record.
Definition: ASTBitCodes.h:1680
clang::serialization::EXPR_CXX_TYPEID_EXPR
@ EXPR_CXX_TYPEID_EXPR
Definition: ASTBitCodes.h:1859
clang::ASTWriter::getExprImplicitCastAbbrev
unsigned getExprImplicitCastAbbrev() const
Definition: ASTWriter.h:734
clang::SubstNonTypeTemplateParmExpr::getIndex
unsigned getIndex() const
Returns the index of the replaced parameter in the associated declaration.
Definition: ExprCXX.h:4315
clang::Stmt::CastIterator
Iterator for iterating over Stmt * arrays that contain only T *.
Definition: Stmt.h:1125
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:1829
clang::OMPMetaDirective
This represents '#pragma omp metadirective' directive.
Definition: StmtOpenMP.h:5870
clang::CXXInheritedCtorInitExpr::constructsVBase
bool constructsVBase() const
Determine whether this constructor is actually constructing a base class (rather than a complete obje...
Definition: ExprCXX.h:1697
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:3043
clang::AsTypeExpr::getRParenLoc
SourceLocation getRParenLoc() const
getRParenLoc - Return the location of final right parenthesis.
Definition: Expr.h:6061
clang::serialization::EXPR_OBJC_AVAILABILITY_CHECK
@ EXPR_OBJC_AVAILABILITY_CHECK
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1797
clang::OMPParallelMaskedTaskLoopSimdDirective
This represents '#pragma omp parallel masked taskloop simd' directive.
Definition: StmtOpenMP.h:4304
clang::SYCLUniqueStableNameExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:2094
clang::serialization::STMT_OMP_TILE_DIRECTIVE
@ STMT_OMP_TILE_DIRECTIVE
Definition: ASTBitCodes.h:1919
clang::serialization::EXPR_CXX_BIND_TEMPORARY
@ EXPR_CXX_BIND_TEMPORARY
Definition: ASTBitCodes.h:1865
clang::CXXUnresolvedConstructExpr::getRParenLoc
SourceLocation getRParenLoc() const
Retrieve the location of the right parentheses (')') that follows the argument list.
Definition: ExprCXX.h:3501
clang::ASTRecordWriter::AddDeclarationNameLoc
void AddDeclarationNameLoc(const DeclarationNameLoc &DNLoc, DeclarationName Name)
Definition: ASTWriter.cpp:5646
clang::ExprWithCleanups::getObjects
ArrayRef< CleanupObject > getObjects() const
Definition: ExprCXX.h:3394
clang::OMPIteratorHelperData::CounterUpdate
Expr * CounterUpdate
Updater for the internal counter: ++CounterVD;.
Definition: ExprOpenMP.h:245
clang::BuiltinBitCastExpr
Represents a C++2a __builtin_bit_cast(T, v) expression.
Definition: ExprCXX.h:4928
addSubstitutionDiagnostic
static void addSubstitutionDiagnostic(ASTRecordWriter &Record, const concepts::Requirement::SubstitutionDiagnostic *D)
Definition: ASTWriterStmt.cpp:425
clang::serialization::STMT_OMP_FOR_SIMD_DIRECTIVE
@ STMT_OMP_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1922
clang::serialization::EXPR_SOURCE_LOC
@ EXPR_SOURCE_LOC
A SourceLocExpr record.
Definition: ASTBitCodes.h:1710
clang::serialization::STMT_DO
@ STMT_DO
A DoStmt record.
Definition: ASTBitCodes.h:1569
clang::OMPParallelMaskedTaskLoopDirective
This represents '#pragma omp parallel masked taskloop' directive.
Definition: StmtOpenMP.h:4159
clang::ObjCIvarRefExpr::getOpLoc
SourceLocation getOpLoc() const
Definition: ExprObjC.h:597
clang::ConceptReference::getTemplateKWLoc
SourceLocation getTemplateKWLoc() const
Definition: ASTConcept.h:148
clang::serialization::STMT_OMP_PARALLEL_MASKED_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_PARALLEL_MASKED_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1962
clang::RequiresExpr::getBody
RequiresExprBodyDecl * getBody() const
Definition: ExprConcepts.h:512
clang::OMPMasterTaskLoopDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3858
clang::serialization::EXPR_IMPLICIT_CAST
@ EXPR_IMPLICIT_CAST
An ImplicitCastExpr record.
Definition: ASTBitCodes.h:1662
clang::concepts::Requirement
A static requirement that can be used in a requires-expression to check properties of types and expre...
Definition: ExprConcepts.h:145
clang::OMPDistributeParallelForSimdDirective
This represents '#pragma omp distribute parallel for simd' composite directive.
Definition: StmtOpenMP.h:4587
clang::CastExpr::path_begin
path_iterator path_begin()
Definition: Expr.h:3550
clang::serialization::STMT_OMP_PARALLEL_DIRECTIVE
@ STMT_OMP_PARALLEL_DIRECTIVE
Definition: ASTBitCodes.h:1917
clang::CompoundLiteralExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:3440
clang::ForStmt
ForStmt - This represents a 'for (init;cond;inc)' stmt.
Definition: Stmt.h:2570
clang::ObjCAvailabilityCheckExpr
A runtime availability query.
Definition: ExprObjC.h:1686
clang::serialization::STMT_OBJC_AT_TRY
@ STMT_OBJC_AT_TRY
An ObjCAtTryStmt record.
Definition: ASTBitCodes.h:1782
clang::OMPDepobjDirective
This represents '#pragma omp depobj' directive.
Definition: StmtOpenMP.h:2788
clang::CastExpr::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:3567
clang::OffsetOfExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: Expr.h:2495
clang::CharacterLiteral::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1619
clang::serialization::STMT_OBJC_FOR_COLLECTION
@ STMT_OBJC_FOR_COLLECTION
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1773
clang::CXXUuidofExpr::getExprOperand
Expr * getExprOperand() const
Definition: ExprCXX.h:1104
clang::OMPForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1706
clang::serialization::STMT_CXX_CATCH
@ STMT_CXX_CATCH
A CXXCatchStmt record.
Definition: ASTBitCodes.h:1802
clang::CallExpr::getFPFeatures
FPOptionsOverride getFPFeatures() const
Definition: Expr.h:3092
clang::PseudoObjectExpr
PseudoObjectExpr - An expression which accesses a pseudo-object l-value.
Definition: Expr.h:6105
clang::ObjCAtSynchronizedStmt
Represents Objective-C's @synchronized statement.
Definition: StmtObjC.h:302
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:5021
clang::ConditionalOperator::getRHS
Expr * getRHS() const
Definition: Expr.h:4185
clang::OffsetOfNode::getField
FieldDecl * getField() const
For a field offsetof node, returns the field.
Definition: Expr.h:2413
clang::DesignatedInitExpr::getNumSubExprs
unsigned getNumSubExprs() const
Retrieve the total number of subexpressions in this designated initializer expression,...
Definition: Expr.h:5287
clang::serialization::EXPR_ASTYPE
@ EXPR_ASTYPE
Definition: ASTBitCodes.h:1902
clang::DeclRefExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: Expr.h:1405
clang::BinaryConditionalOperator
BinaryConditionalOperator - The GNU extension to the conditional operator which allows the middle ope...
Definition: Expr.h:4212
clang::CXXNewExpr::raw_arg_end
raw_arg_iterator raw_arg_end()
Definition: ExprCXX.h:2392
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:3393
clang::ParenListExpr::getNumExprs
unsigned getNumExprs() const
Return the number of expressions in this paren list.
Definition: Expr.h:5568
clang::serialization::EXPR_BUILTIN_BIT_CAST
@ EXPR_BUILTIN_BIT_CAST
A BuiltinBitCastExpr record.
Definition: ASTBitCodes.h:1847
clang::DeclRefExpr::getDecl
ValueDecl * getDecl()
Definition: Expr.h:1304
clang::TemplateArgumentLoc
Location wrapper for a TemplateArgument.
Definition: TemplateBase.h:457
clang::CXXStdInitializerListExpr::getSubExpr
Expr * getSubExpr()
Definition: ExprCXX.h:814
clang::Stmt::RequiresExprBits
RequiresExprBitfields RequiresExprBits
Definition: Stmt.h:1075
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:2625
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:1895
clang::UnaryExprOrTypeTraitExpr::getArgumentTypeInfo
TypeSourceInfo * getArgumentTypeInfo() const
Definition: Expr.h:2604
clang::ImplicitValueInitExpr
Represents an implicitly-generated value initialization of an object of a given type.
Definition: Expr.h:5515
clang::ASTWriter::ClearSwitchCaseIDs
void ClearSwitchCaseIDs()
Definition: ASTWriterStmt.cpp:2684
clang::CXXDependentScopeMemberExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieve the nested-name-specifier that qualifies the member name, with source location information.
Definition: ExprCXX.h:3695
clang::ImplicitCastExpr::isPartOfExplicitCast
bool isPartOfExplicitCast() const
Definition: Expr.h:3658
clang::serialization::STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1968
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:539
clang::OpaqueValueExpr::getSourceExpr
Expr * getSourceExpr() const
The source expression of an opaque value expression is the expression which originally generated the ...
Definition: Expr.h:1194
clang::ObjCAvailabilityCheckExpr::getVersion
VersionTuple getVersion() const
Definition: ExprObjC.h:1709
clang::GNUNullExpr::getTokenLocation
SourceLocation getTokenLocation() const
getTokenLocation - The location of the __null token.
Definition: Expr.h:4618
clang::OMPParallelForSimdDirective
This represents '#pragma omp parallel for simd' directive.
Definition: StmtOpenMP.h:2191
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:2023
clang::CompoundAssignOperator::getComputationResultType
QualType getComputationResultType() const
Definition: Expr.h:4096
clang::OMPTaskDirective
This represents '#pragma omp task' directive.
Definition: StmtOpenMP.h:2464
clang::OffsetOfExpr::getNumComponents
unsigned getNumComponents() const
Definition: Expr.h:2512
clang::SourceLocExpr::getIdentKind
IdentKind getIdentKind() const
Definition: Expr.h:4709
clang::AtomicExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:6331
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:2670
clang::OMPIteratorExpr::getIteratorKwLoc
SourceLocation getIteratorKwLoc() const
Definition: ExprOpenMP.h:372
clang::CXXDeleteExpr::getOperatorDelete
FunctionDecl * getOperatorDelete() const
Definition: ExprCXX.h:2461
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:3358
clang::StringLiteral
StringLiteral - This represents a string literal expression, e.g.
Definition: Expr.h:1776
clang::serialization::STMT_CORETURN
@ STMT_CORETURN
Definition: ASTBitCodes.h:1997
clang::OMPTargetParallelDirective
This represents '#pragma omp target parallel' directive.
Definition: StmtOpenMP.h:3313
clang::CXXConstructExpr::getConstructor
CXXConstructorDecl * getConstructor() const
Get the constructor that this expression will (ultimately) call.
Definition: ExprCXX.h:1539
clang::serialization::STMT_OMP_CANCEL_DIRECTIVE
@ STMT_OMP_CANCEL_DIRECTIVE
Definition: ASTBitCodes.h:1952
clang::ExprWithCleanups
Represents an expression – generally a full-expression – that introduces cleanups to be run at the en...
Definition: ExprCXX.h:3366
clang::serialization::STMT_OMP_TARGET_PARALLEL_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_DIRECTIVE
Definition: ASTBitCodes.h:1947
clang::BinaryOperator::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:3995
clang::CXXNewExpr::getSourceRange
SourceRange getSourceRange() const
Definition: ExprCXX.h:2406
clang::ObjCDictionaryLiteral::getDictWithObjectsMethod
ObjCMethodDecl * getDictWithObjectsMethod() const
Definition: ExprObjC.h:376
clang::CapturedStmt
This captures a statement into a function.
Definition: Stmt.h:3536
clang::ObjCAtFinallyStmt
Represents Objective-C's @finally statement.
Definition: StmtObjC.h:127
llvm::DenseSet
Definition: Sema.h:77
clang::OMPParallelForDirective
This represents '#pragma omp parallel for' directive.
Definition: StmtOpenMP.h:2094
clang::serialization::STMT_OMP_SCAN_DIRECTIVE
@ STMT_OMP_SCAN_DIRECTIVE
Definition: ASTBitCodes.h:1940
clang::ObjCSubscriptRefExpr::getRBracket
SourceLocation getRBracket() const
Definition: ExprObjC.h:871
clang::serialization::STMT_OMP_PARALLEL_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_PARALLEL_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1985
clang::serialization::EXPR_UNARY_OPERATOR
@ EXPR_UNARY_OPERATOR
A UnaryOperator record.
Definition: ASTBitCodes.h:1632
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:3173
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:2232
clang::CXXUnresolvedConstructExpr::arg_end
arg_iterator arg_end()
Definition: ExprCXX.h:3516
clang::ShuffleVectorExpr::getNumSubExprs
unsigned getNumSubExprs() const
getNumSubExprs - Return the size of the SubExprs array.
Definition: Expr.h:4436
clang::serialization::STMT_OMP_DISPATCH_DIRECTIVE
@ STMT_OMP_DISPATCH_DIRECTIVE
Definition: ASTBitCodes.h:1980
clang::serialization::EXPR_OMP_ARRAY_SHAPING
@ EXPR_OMP_ARRAY_SHAPING
Definition: ASTBitCodes.h:1988
clang::CXXTryStmt
CXXTryStmt - A C++ try block, including all handlers.
Definition: StmtCXX.h:68
clang::SwitchCase
Definition: Stmt.h:1558
clang::ImaginaryLiteral::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:1739
clang::serialization::STMT_BREAK
@ STMT_BREAK
A BreakStmt record.
Definition: ASTBitCodes.h:1584
clang::serialization::STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1967
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:1949
clang::ASTWriter
Writes an AST file containing the contents of a translation unit.
Definition: ASTWriter.h:85
clang::RequiresExpr::getLocalParameters
ArrayRef< ParmVarDecl * > getLocalParameters() const
Definition: ExprConcepts.h:508
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:1536
clang::CXXInheritedCtorInitExpr
Represents a call to an inherited base class constructor from an inheriting constructor.
Definition: ExprCXX.h:1658
clang::CXXDefaultArgExpr
A default argument (C++ [dcl.fct.default]).
Definition: ExprCXX.h:1248
clang::serialization::STMT_RETURN
@ STMT_RETURN
A ReturnStmt record.
Definition: ASTBitCodes.h:1587
clang::PackExpansionExpr
Represents a C++11 pack expansion that produces a sequence of expressions.
Definition: ExprCXX.h:4075
clang::CastExpr::path_size
unsigned path_size() const
Definition: Expr.h:3549
clang::OMPCriticalDirective
This represents '#pragma omp critical' directive.
Definition: StmtOpenMP.h:2023
clang::StmtExpr::getTemplateDepth
unsigned getTemplateDepth() const
Definition: Expr.h:4383
clang::DeclRefExpr::hasQualifier
bool hasQualifier() const
Determine whether this declaration reference was preceded by a C++ nested-name-specifier,...
Definition: Expr.h:1319
clang::OMPTargetTeamsGenericLoopDirective
This represents '#pragma omp target teams loop' directive.
Definition: StmtOpenMP.h:6036
clang::OMPTargetParallelForSimdDirective
This represents '#pragma omp target parallel for simd' directive.
Definition: StmtOpenMP.h:4718
clang::ArraySubscriptExpr::getLHS
Expr * getLHS()
An array access can be written A[4] or 4[A] (both are equivalent).
Definition: Expr.h:2683
clang::CXXConstructExpr::hadMultipleCandidates
bool hadMultipleCandidates() const
Whether the referred constructor was resolved from an overloaded set having size greater than 1.
Definition: ExprCXX.h:1550
clang::MSPropertyRefExpr::getMemberLoc
SourceLocation getMemberLoc() const
Definition: ExprCXX.h:986
clang::serialization::EXPR_OBJC_ISA
@ EXPR_OBJC_ISA
An ObjCIsa Expr record.
Definition: ASTBitCodes.h:1767
clang::OMPMasterTaskLoopDirective
This represents '#pragma omp master taskloop' directive.
Definition: StmtOpenMP.h:3798
clang::CXXNewExpr::getAllocatedTypeSourceInfo
TypeSourceInfo * getAllocatedTypeSourceInfo() const
Definition: ExprCXX.h:2243
clang::serialization::EXPR_SYCL_UNIQUE_STABLE_NAME
@ EXPR_SYCL_UNIQUE_STABLE_NAME
Definition: ASTBitCodes.h:2006
clang::Stmt::DependentScopeDeclRefExprBits
DependentScopeDeclRefExprBitfields DependentScopeDeclRefExprBits
Definition: Stmt.h:1064
clang::concepts::Requirement::RK_Compound
@ RK_Compound
Definition: ExprConcepts.h:149
clang::ConstantExpr
ConstantExpr - An expression that occurs in a constant context and optionally the result of evaluatin...
Definition: Expr.h:1041
clang::serialization::EXPR_DECL_REF
@ EXPR_DECL_REF
A DeclRefExpr record.
Definition: ASTBitCodes.h:1608
clang::ArraySubscriptExpr::getRHS
Expr * getRHS()
Definition: Expr.h:2687
clang::CoawaitExpr::isImplicit
bool isImplicit() const
Definition: ExprCXX.h:4845
clang::serialization::EXPR_MEMBER
@ EXPR_MEMBER
A MemberExpr record.
Definition: ASTBitCodes.h:1650
clang::serialization::EXPR_REQUIRES
@ EXPR_REQUIRES
Definition: ASTBitCodes.h:1896
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:4850
clang::serialization::COK_Block
@ COK_Block
Definition: ASTBitCodes.h:2036
addConstraintSatisfaction
static void addConstraintSatisfaction(ASTRecordWriter &Record, const ASTConstraintSatisfaction &Satisfaction)
Definition: ASTWriterStmt.cpp:402
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:4949
clang::OffsetOfNode
Helper class for OffsetOfExpr.
Definition: Expr.h:2349
clang::serialization::STMT_COROUTINE_BODY
@ STMT_COROUTINE_BODY
Definition: ASTBitCodes.h:1996
clang::serialization::EXPR_CXX_REWRITTEN_BINARY_OPERATOR
@ EXPR_CXX_REWRITTEN_BINARY_OPERATOR
A CXXRewrittenBinaryOperator record.
Definition: ASTBitCodes.h:1817
clang::CastExpr::getCastKind
CastKind getCastKind() const
Definition: Expr.h:3524
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:3252
clang::ASTRecordWriter::writeUInt32
void writeUInt32(uint32_t Value)
Definition: ASTRecordWriter.h:153
clang::serialization::STMT_OMP_TARGET_TEAMS_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1984
clang::ChooseExpr
ChooseExpr - GNU builtin-in function __builtin_choose_expr.
Definition: Expr.h:4529
clang::serialization::EXPR_CXX_REINTERPRET_CAST
@ EXPR_CXX_REINTERPRET_CAST
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1835
clang::SEHExceptStmt
Definition: Stmt.h:3365
clang::MSPropertyRefExpr::isArrow
bool isArrow() const
Definition: ExprCXX.h:985
clang::OMPTaskDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:2513
clang::ExpressionTraitExpr::getQueriedExpression
Expr * getQueriedExpression() const
Definition: ExprCXX.h:2884
clang::APIntStorage::getValue
llvm::APInt getValue() const
Definition: Expr.h:1487
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:1719
clang::PseudoObjectExpr::semantics_iterator
Expr *const * semantics_iterator
Definition: Expr.h:6171
clang::serialization::EXPR_CXX_THROW
@ EXPR_CXX_THROW
Definition: ASTBitCodes.h:1862
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1976
clang::DesignatedInitExpr::usesGNUSyntax
bool usesGNUSyntax() const
Determines whether this designated initializer used the deprecated GNU syntax for designated initiali...
Definition: Expr.h:5271
clang::OMPCriticalDirective::getDirectiveName
DeclarationNameInfo getDirectiveName() const
Return name of the directive.
Definition: StmtOpenMP.h:2078
clang::serialization::EXPR_CXX_FOLD
@ EXPR_CXX_FOLD
Definition: ASTBitCodes.h:1894
clang::serialization::STMT_INDIRECT_GOTO
@ STMT_INDIRECT_GOTO
An IndirectGotoStmt record.
Definition: ASTBitCodes.h:1578
clang::CXXUnresolvedConstructExpr::getLParenLoc
SourceLocation getLParenLoc() const
Retrieve the location of the left parentheses ('(') that precedes the argument list.
Definition: ExprCXX.h:3496
clang::serialization::STMT_DEFAULT
@ STMT_DEFAULT
A DefaultStmt record.
Definition: ASTBitCodes.h:1551
clang::FullExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:1026
clang::serialization::STMT_OMP_TARGET_DIRECTIVE
@ STMT_OMP_TARGET_DIRECTIVE
Definition: ASTBitCodes.h:1943
clang::SizeOfPackExpr::getPackLength
unsigned getPackLength() const
Retrieve the length of the parameter pack.
Definition: ExprCXX.h:4228
clang::serialization::STMT_OMP_PARALLEL_MASKED_DIRECTIVE
@ STMT_OMP_PARALLEL_MASKED_DIRECTIVE
Definition: ASTBitCodes.h:1931
clang::CharacterLiteral
Definition: Expr.h:1593
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:2407
clang::OMPMaskedTaskLoopDirective
This represents '#pragma omp masked taskloop' directive.
Definition: StmtOpenMP.h:3874
clang::ObjCIsaExpr::isArrow
bool isArrow() const
Definition: ExprObjC.h:1509
clang::serialization::EXPR_CXX_EXPRESSION_TRAIT
@ EXPR_CXX_EXPRESSION_TRAIT
Definition: ASTBitCodes.h:1880
clang::serialization::STMT_OMP_DEPOBJ_DIRECTIVE
@ STMT_OMP_DEPOBJ_DIRECTIVE
Definition: ASTBitCodes.h:1939
clang::transformer::EditKind::Range
@ Range
clang::ASTRecordWriter::writeBool
void writeBool(bool Value)
Definition: ASTRecordWriter.h:149
clang::serialization::EXPR_PAREN_LIST
@ EXPR_PAREN_LIST
A ParenListExpr record.
Definition: ASTBitCodes.h:1629
clang::OMPCancelDirective
This represents '#pragma omp cancel' directive.
Definition: StmtOpenMP.h:3599
clang::CompoundLiteralExpr
CompoundLiteralExpr - [C99 6.5.2.5].
Definition: Expr.h:3410
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:1417
clang::DesignatedInitExpr::designators
llvm::MutableArrayRef< Designator > designators()
Definition: Expr.h:5240
clang::serialization::EXPR_SIZEOF_ALIGN_OF
@ EXPR_SIZEOF_ALIGN_OF
A SizefAlignOfExpr record.
Definition: ASTBitCodes.h:1638
clang::serialization::EXPR_SIZEOF_PACK
@ EXPR_SIZEOF_PACK
Definition: ASTBitCodes.h:1889
clang::StmtExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4380
clang::CXXPseudoDestructorExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieves the nested-name-specifier that qualifies the type name, with source-location information.
Definition: ExprCXX.h:2593
clang::OMPSectionsDirective
This represents '#pragma omp sections' directive.
Definition: StmtOpenMP.h:1785
clang::ASTRecordWriter::AddAPValue
void AddAPValue(const APValue &Value)
Emit an APvalue.
Definition: ASTRecordWriter.h:175
clang::MaterializeTemporaryExpr::getLifetimeExtendedTemporaryDecl
LifetimeExtendedTemporaryDecl * getLifetimeExtendedTemporaryDecl()
Definition: ExprCXX.h:4553
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:3708
clang::ConvertVectorExpr::getRParenLoc
SourceLocation getRParenLoc() const
getRParenLoc - Return the location of final right parenthesis.
Definition: Expr.h:4504
clang::UnaryExprOrTypeTraitExpr::isArgumentType
bool isArgumentType() const
Definition: Expr.h:2600
clang::serialization::EXPR_FUNCTION_PARM_PACK
@ EXPR_FUNCTION_PARM_PACK
Definition: ASTBitCodes.h:1892
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:5363
clang::OMPMaskedTaskLoopSimdDirective
This represents '#pragma omp masked taskloop simd' directive.
Definition: StmtOpenMP.h:4015
clang::CStyleCastExpr
CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr....
Definition: Expr.h:3740
clang::MemberExpr::getBase
Expr * getBase() const
Definition: Expr.h:3246
clang::CXXDependentScopeMemberExpr::getBase
Expr * getBase() const
Retrieve the base object of this member expressions, e.g., the x in x.m.
Definition: ExprCXX.h:3672
clang::ASTRecordWriter::AddCXXTemporary
void AddCXXTemporary(const CXXTemporary *Temp)
Emit a CXXTemporary.
Definition: ASTWriter.cpp:5439
clang::GCCAsmStmt
This represents a GCC inline-assembly statement extension.
Definition: Stmt.h:3038
clang::serialization::EXPR_CXX_OPERATOR_CALL
@ EXPR_CXX_OPERATOR_CALL
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1811
clang::UnaryOperator::getOperatorLoc
SourceLocation getOperatorLoc() const
getOperatorLoc - Return the location of the operator.
Definition: Expr.h:2223
clang::StringLiteral::getKind
StringKind getKind() const
Definition: Expr.h:1891
clang::serialization::STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
@ STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1945
clang::OMPFlushDirective
This represents '#pragma omp flush' directive.
Definition: StmtOpenMP.h:2736
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:2879
clang::RISCV::TA
@ TA
Definition: RISCVVIntrinsicUtils.h:98
clang::serialization::EXPR_BINARY_OPERATOR
@ EXPR_BINARY_OPERATOR
A BinaryOperator record.
Definition: ASTBitCodes.h:1653
clang::OMPTargetEnterDataDirective
This represents '#pragma omp target enter data' directive.
Definition: StmtOpenMP.h:3204
clang::SizeOfPackExpr::getPartialArguments
ArrayRef< TemplateArgument > getPartialArguments() const
Get.
Definition: ExprCXX.h:4244
clang::DesignatedInitUpdateExpr
Definition: Expr.h:5372
clang::ExtVectorElementExpr::getBase
const Expr * getBase() const
Definition: Expr.h:5932
clang::MatrixSubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: Expr.h:2784
clang::serialization::STMT_OMP_FLUSH_DIRECTIVE
@ STMT_OMP_FLUSH_DIRECTIVE
Definition: ASTBitCodes.h:1938
clang::PseudoObjectExpr::getSyntacticForm
Expr * getSyntacticForm()
Return the syntactic form of this expression, i.e.
Definition: Expr.h:6149
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:1912
clang::serialization::EXPR_CXX_NULL_PTR_LITERAL
@ EXPR_CXX_NULL_PTR_LITERAL
Definition: ASTBitCodes.h:1858
clang::ASTRecordWriter::AddSelectorRef
void AddSelectorRef(Selector S)
Emit a Selector (which is a smart pointer reference).
Definition: ASTWriter.cpp:5416
clang::CXXBoolLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:744
clang::ConvertVectorExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
getBuiltinLoc - Return the location of the __builtin_convertvector token.
Definition: Expr.h:4501
clang::OMPIteratorExpr::IteratorRange
Iterator range representation begin:end[:step].
Definition: ExprOpenMP.h:278
clang::OMPInteropDirective
This represents '#pragma omp interop' directive.
Definition: StmtOpenMP.h:5701
clang::serialization::DESIG_ARRAY
@ DESIG_ARRAY
Array designator.
Definition: ASTBitCodes.h:2020
clang::ASTWriter::getIntegerLiteralAbbrev
unsigned getIntegerLiteralAbbrev() const
Definition: ASTWriter.h:733
clang::OMPIteratorHelperData::Upper
Expr * Upper
Normalized upper bound.
Definition: ExprOpenMP.h:240
clang::serialization::STMT_IF
@ STMT_IF
An IfStmt record.
Definition: ASTBitCodes.h:1560
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:2011
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:5054
clang::DesignatedInitUpdateExpr::getUpdater
InitListExpr * getUpdater() const
Definition: Expr.h:5394
clang::OMPDistributeDirective
This represents '#pragma omp distribute' directive.
Definition: StmtOpenMP.h:4369
clang::serialization::DESIG_FIELD_NAME
@ DESIG_FIELD_NAME
Field designator where only the field name is known.
Definition: ASTBitCodes.h:2013
clang::OMPTeamsGenericLoopDirective
This represents '#pragma omp teams loop' directive.
Definition: StmtOpenMP.h:5971
clang::SourceLocExpr::getEndLoc
SourceLocation getEndLoc() const
Definition: Expr.h:4733
clang::ShuffleVectorExpr::getExpr
Expr * getExpr(unsigned Index)
getExpr - Return the Expr at the specified index.
Definition: Expr.h:4442
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:5128
clang::PredefinedExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:2020
clang::CXXDefaultInitExpr::getUsedContext
const DeclContext * getUsedContext() const
Definition: ExprCXX.h:1362
clang::ParenExpr::getRParen
SourceLocation getRParen() const
Get the location of the right parentheses ')'.
Definition: Expr.h:2148
clang::CXXDeleteExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: ExprCXX.h:2472
clang::serialization::STMT_OMP_TASKYIELD_DIRECTIVE
@ STMT_OMP_TASKYIELD_DIRECTIVE
Definition: ASTBitCodes.h:1934
clang::CXXUnresolvedConstructExpr::arg_begin
arg_iterator arg_begin()
Definition: ExprCXX.h:3515
clang::OMPArraySectionExpr::getBase
Expr * getBase()
An array section can be written only as Base[LowerBound:Length].
Definition: ExprOpenMP.h:85
clang::serialization::STMT_OMP_TARGET_PARALLEL_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1986
clang::OMPSingleDirective
This represents '#pragma omp single' directive.
Definition: StmtOpenMP.h:1924
clang::CXXFunctionalCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprCXX.h:1773
clang::serialization::STMT_OBJC_CATCH
@ STMT_OBJC_CATCH
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1776
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:2607
clang::BinaryOperator::getLHS
Expr * getLHS() const
Definition: Expr.h:3861
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:5048
clang::ParenExpr
ParenExpr - This represents a parethesized expression, e.g.
Definition: Expr.h:2121
clang::CoyieldExpr
Represents a 'co_yield' expression.
Definition: ExprCXX.h:4904
clang::serialization::EXPR_CXX_ADDRSPACE_CAST
@ EXPR_CXX_ADDRSPACE_CAST
A CXXAddrspaceCastExpr record.
Definition: ASTBitCodes.h:1841
clang::OMPAtomicDirective::isFailOnly
bool isFailOnly() const
Return true if 'v' is updated only when the condition is evaluated false (compare capture only).
Definition: StmtOpenMP.h:3046
clang::serialization::STMT_CXX_FOR_RANGE
@ STMT_CXX_FOR_RANGE
A CXXForRangeStmt record.
Definition: ASTBitCodes.h:1808
clang::serialization::STMT_OMP_MASKED_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_MASKED_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1960
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:2988
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:329
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:1872
clang::serialization::EXPR_OBJC_INDIRECT_COPY_RESTORE
@ EXPR_OBJC_INDIRECT_COPY_RESTORE
An ObjCIndirectCopyRestoreExpr record.
Definition: ASTBitCodes.h:1770
clang::CXXDeleteExpr
Represents a delete expression for memory deallocation and destructor calls, e.g.
Definition: ExprCXX.h:2422
clang::ASTConstraintSatisfaction::IsSatisfied
bool IsSatisfied
Definition: ASTConcept.h:81
clang::BlockExpr
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Definition: Expr.h:5975
llvm::ArrayRef
Definition: LLVM.h:34
clang::StmtExpr
StmtExpr - This is the GNU Statement Expression extension: ({int X=4; X;}).
Definition: Expr.h:4354
clang::OMPTaskLoopDirective
This represents '#pragma omp taskloop' directive.
Definition: StmtOpenMP.h:3659
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:4467
clang::Decl
Decl - This represents one declaration (or definition), e.g.
Definition: DeclBase.h:83
clang::CastExpr::path_end
path_iterator path_end()
Definition: Expr.h:3551
clang::serialization::EXPR_INIT_LIST
@ EXPR_INIT_LIST
An InitListExpr record.
Definition: ASTBitCodes.h:1674
clang::CXXTypeidExpr::isTypeOperand
bool isTypeOperand() const
Definition: ExprCXX.h:882
clang::serialization::STMT_OMP_INTEROP_DIRECTIVE
@ STMT_OMP_INTEROP_DIRECTIVE
Definition: ASTBitCodes.h:1979
clang::OffsetOfNode::Base
@ Base
An implicit indirection through a C++ base class, when the field found is in a base class.
Definition: Expr.h:2361
clang::ASTRecordWriter::AddDeclarationNameInfo
void AddDeclarationNameInfo(const DeclarationNameInfo &NameInfo)
Definition: ASTWriter.cpp:5673
clang::serialization::EXPR_CXX_CONST_CAST
@ EXPR_CXX_CONST_CAST
A CXXConstCastExpr record.
Definition: ASTBitCodes.h:1838
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:4309
clang::CXXFunctionalCastExpr
Represents an explicit C++ type conversion that uses "functional" notation (C++ [expr....
Definition: ExprCXX.h:1733
clang::DeclGroupRef
Definition: DeclGroup.h:51
clang::DesignatedInitExpr::Designator
Represents a single C99 designator.
Definition: Expr.h:5109
clang::OffsetOfExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
getOperatorLoc - Return the location of the operator.
Definition: Expr.h:2488
clang::serialization::EXPR_NO_INIT
@ EXPR_NO_INIT
An NoInitExpr record.
Definition: ASTBitCodes.h:1683
clang::CallExpr::getADLCallKind
ADLCallKind getADLCallKind() const
Definition: Expr.h:2964
clang::ChooseExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4576
clang::ArraySubscriptExpr
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
Definition: Expr.h:2654
clang::CXXUuidofExpr
A Microsoft C++ __uuidof expression, which gets the _GUID that corresponds to the supplied type or ex...
Definition: ExprCXX.h:1063
clang::DependentScopeDeclRefExpr
A qualified reference to a name whose declaration cannot yet be resolved.
Definition: ExprCXX.h:3215
clang::DoStmt
DoStmt - This represents a 'do/while' stmt.
Definition: Stmt.h:2514
clang::ConvertVectorExpr::getSrcExpr
Expr * getSrcExpr() const
getSrcExpr - Return the Expr to be converted.
Definition: Expr.h:4490
clang::ASTRecordWriter::EmitStmt
uint64_t EmitStmt(unsigned Code, unsigned Abbrev=0)
Emit the record to the stream, preceded by its substatements.
Definition: ASTRecordWriter.h:101
clang::serialization::EXPR_VA_ARG
@ EXPR_VA_ARG
A VAArgExpr record.
Definition: ASTBitCodes.h:1695
StmtVisitor.h
clang::CXXThrowExpr::getSubExpr
const Expr * getSubExpr() const
Definition: ExprCXX.h:1208
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:766
clang::CoroutineBodyStmt
Represents the body of a coroutine.
Definition: StmtCXX.h:317
clang::OffsetOfNode::Field
@ Field
A field.
Definition: Expr.h:2356
clang::DeclarationName::NameKind
NameKind
The kind of the name stored in this DeclarationName.
Definition: DeclarationName.h:208
clang::serialization::STMT_OMP_TASKWAIT_DIRECTIVE
@ STMT_OMP_TASKWAIT_DIRECTIVE
Definition: ASTBitCodes.h:1937
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:4892
clang::BinaryOperator::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:3853
clang::ASTRecordWriter::AddAPFloat
void AddAPFloat(const llvm::APFloat &Value)
Emit a floating-point value.
Definition: ASTWriter.cpp:5370
clang::serialization::STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1966
clang::RecoveryExpr::getEndLoc
SourceLocation getEndLoc() const
Definition: Expr.h:6449
clang::CoawaitExpr
Represents a 'co_await' expression.
Definition: ExprCXX.h:4823
clang::ASTRecordWriter::AddSourceRange
void AddSourceRange(SourceRange Range, LocSeq *Seq=nullptr)
Emit a source range.
Definition: ASTRecordWriter.h:145
clang::BreakStmt
BreakStmt - This represents a break.
Definition: Stmt.h:2759
clang::serialization::EXPR_OBJC_ENCODE
@ EXPR_OBJC_ENCODE
An ObjCEncodeExpr record.
Definition: ASTBitCodes.h:1743
clang::serialization::EXPR_OBJC_BRIDGED_CAST
@ EXPR_OBJC_BRIDGED_CAST
Definition: ASTBitCodes.h:1992
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:2904
clang::serialization::EXPR_OBJC_IVAR_REF_EXPR
@ EXPR_OBJC_IVAR_REF_EXPR
An ObjCIvarRefExpr record.
Definition: ASTBitCodes.h:1752
clang::serialization::STMT_STOP
@ STMT_STOP
A marker record that indicates that we are at the end of an expression.
Definition: ASTBitCodes.h:1533
clang::OMPCancellationPointDirective
This represents '#pragma omp cancellation point' directive.
Definition: StmtOpenMP.h:3541
clang::OMPDispatchDirective
This represents '#pragma omp dispatch' directive.
Definition: StmtOpenMP.h:5754
clang::CXXDependentScopeMemberExpr
Represents a C++ member access expression where the actual member referenced could not be resolved be...
Definition: ExprCXX.h:3574
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:3271
clang::ASTRecordWriter
An object for streaming information to a record.
Definition: ASTRecordWriter.h:27
clang::OMPTargetTeamsDistributeParallelForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:5346
clang::serialization::STMT_OMP_SINGLE_DIRECTIVE
@ STMT_OMP_SINGLE_DIRECTIVE
Definition: ASTBitCodes.h:1925
clang::CoroutineBodyStmt::getParamMoves
ArrayRef< Stmt const * > getParamMoves() const
Definition: StmtCXX.h:419
clang::CompoundAssignOperator
CompoundAssignOperator - For compound assignments (e.g.
Definition: Expr.h:4059
clang::ChooseExpr::getCond
Expr * getCond() const
Definition: Expr.h:4569
clang::CXXDependentScopeMemberExpr::isImplicitAccess
bool isImplicitAccess() const
True if this is an implicit access, i.e.
Definition: ExprCXX.h:3664
clang::CXXTypeidExpr::getTypeOperandSourceInfo
TypeSourceInfo * getTypeOperandSourceInfo() const
Retrieve source information for the type operand.
Definition: ExprCXX.h:889
clang::serialization::EXPR_PAREN
@ EXPR_PAREN
A ParenExpr record.
Definition: ASTBitCodes.h:1626
clang::serialization::EXPR_CXX_DEFAULT_INIT
@ EXPR_CXX_DEFAULT_INIT
Definition: ASTBitCodes.h:1864
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:1707
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:1672
clang::CXXNoexceptExpr
Represents a C++11 noexcept expression (C++ [expr.unary.noexcept]).
Definition: ExprCXX.h:4021
clang::serialization::STMT_SEH_EXCEPT
@ STMT_SEH_EXCEPT
Definition: ASTBitCodes.h:1910
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:3452
clang::MSPropertySubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: ExprCXX.h:1038
clang::OMPMaskedTaskLoopDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3934
clang::serialization::STMT_GCCASM
@ STMT_GCCASM
A GCC-style AsmStmt record.
Definition: ASTBitCodes.h:1596
ASTRecordWriter.h
clang::CoroutineSuspendExpr::children
child_range children()
Definition: ExprCXX.h:4808
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:1964
clang::serialization::EXPR_CUDA_KERNEL_CALL
@ EXPR_CUDA_KERNEL_CALL
Definition: ASTBitCodes.h:1899
clang::StringLiteral::getCharByteWidth
unsigned getCharByteWidth() const
Definition: Expr.h:1889
clang::serialization::STMT_OMP_PARALLEL_MASTER_DIRECTIVE
@ STMT_OMP_PARALLEL_MASTER_DIRECTIVE
Definition: ASTBitCodes.h:1930
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:1695
clang::OMPParallelSectionsDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:2449
clang::ObjCMessageExpr::getLeftLoc
SourceLocation getLeftLoc() const
Definition: ExprObjC.h:1406
clang::serialization::COK_CompoundLiteral
@ COK_CompoundLiteral
Definition: ASTBitCodes.h:2036
clang::CXXPseudoDestructorExpr::getDestroyedTypeInfo
TypeSourceInfo * getDestroyedTypeInfo() const
Retrieve the source location information for the type being destroyed.
Definition: ExprCXX.h:2634
clang::DeclStmt
DeclStmt - Adaptor class for mixing declarations with statements and expressions.
Definition: Stmt.h:1303
clang::ContinueStmt
ContinueStmt - This represents a continue.
Definition: Stmt.h:2729
clang::CXXPseudoDestructorExpr::getDestroyedTypeLoc
SourceLocation getDestroyedTypeLoc() const
Retrieve the starting location of the type being destroyed.
Definition: ExprCXX.h:2649
clang::BinaryConditionalOperator::getFalseExpr
Expr * getFalseExpr() const
getFalseExpr - Return the subexpression which will be evaluated if the condnition evaluates to false;...
Definition: Expr.h:4266
clang::SubstNonTypeTemplateParmPackExpr::getParameterPackLocation
SourceLocation getParameterPackLocation() const
Retrieve the location of the parameter pack name.
Definition: ExprCXX.h:4394
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:2358
clang::serialization::STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1955
clang::ChooseExpr::getLHS
Expr * getLHS() const
Definition: Expr.h:4571
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:1149
clang::ASTRecordWriter::AddDeclRef
void AddDeclRef(const Decl *D)
Emit a reference to a declaration.
Definition: ASTRecordWriter.h:226
clang::serialization::EXPR_COYIELD
@ EXPR_COYIELD
Definition: ASTBitCodes.h:1999
clang::ExtVectorElementExpr
ExtVectorElementExpr - This represents access to specific elements of a vector, and may occur on the ...
Definition: Expr.h:5915
clang::OMPTeamsDistributeParallelForDirective
This represents '#pragma omp teams distribute parallel for' composite directive.
Definition: StmtOpenMP.h:5050
clang::TypoExpr
TypoExpr - Internal placeholder for expressions where typo correction still needs to be performed and...
Definition: Expr.h:6372
clang::PredefinedExpr
[C99 6.4.2.2] - A predefined identifier such as func.
Definition: Expr.h:1968
clang::serialization::EXPR_PREDEFINED
@ EXPR_PREDEFINED
A PredefinedExpr record.
Definition: ASTBitCodes.h:1605
clang::serialization::EXPR_CXX_UNRESOLVED_CONSTRUCT
@ EXPR_CXX_UNRESOLVED_CONSTRUCT
Definition: ASTBitCodes.h:1876
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:1957
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:1886
clang::CXXConstructExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:1541
clang::UnresolvedMemberExpr::hasUnresolvedUsing
bool hasUnresolvedUsing() const
Determine whether the lookup results contain an unresolved using declaration.
Definition: ExprCXX.h:3924
clang::SizeOfPackExpr::isPartiallySubstituted
bool isPartiallySubstituted() const
Determine whether this represents a partially-substituted sizeof...
Definition: ExprCXX.h:4239
clang::SEHFinallyStmt
Definition: Stmt.h:3409
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:1823
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:2590
clang::serialization::EXPR_MATERIALIZE_TEMPORARY
@ EXPR_MATERIALIZE_TEMPORARY
Definition: ASTBitCodes.h:1893
clang::CompoundLiteralExpr::getInitializer
const Expr * getInitializer() const
Definition: Expr.h:3433
clang::serialization::EXPR_RECOVERY
@ EXPR_RECOVERY
A RecoveryExpr record.
Definition: ASTBitCodes.h:1731
clang::DeclarationName::getNameKind
NameKind getNameKind() const
Determine what kind of name this is.
Definition: DeclarationName.h:393
clang::OMPSimdDirective
This represents '#pragma omp simd' directive.
Definition: StmtOpenMP.h:1569
clang::ChooseExpr::isConditionTrue
bool isConditionTrue() const
isConditionTrue - Return whether the condition is true (i.e.
Definition: Expr.h:4552
clang::ArraySubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: Expr.h:2702
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:2219
clang::OMPArraySectionExpr
OpenMP 5.0 [2.1.5, Array Sections].
Definition: ExprOpenMP.h:56
clang::CXXDefaultArgExpr::getUsedLocation
SourceLocation getUsedLocation() const
Retrieve the location where this default argument was actually used.
Definition: ExprCXX.h:1294
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:4378
clang::ObjCIvarRefExpr::isArrow
bool isArrow() const
Definition: ExprObjC.h:584
clang::serialization::STMT_OMP_SECTIONS_DIRECTIVE
@ STMT_OMP_SECTIONS_DIRECTIVE
Definition: ASTBitCodes.h:1923
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:4910
clang::serialization::EXPR_CXX_UUIDOF_EXPR
@ EXPR_CXX_UUIDOF_EXPR
Definition: ASTBitCodes.h:1907
clang::concepts::Requirement::SubstitutionDiagnostic::DiagMessage
StringRef DiagMessage
Definition: ExprConcepts.h:163
clang::ASTRecordWriter::AddTemplateArgument
void AddTemplateArgument(const TemplateArgument &Arg)
Emit a template argument.
Definition: ASTRecordWriter.h:258
clang::CXXNullPtrLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:780
clang::CXXUnresolvedConstructExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Retrieve the type source information for the type being constructed.
Definition: ExprCXX.h:3492
clang::OMPTargetTeamsDirective
This represents '#pragma omp target teams' directive.
Definition: StmtOpenMP.h:5143
clang::serialization::EXPR_COMPOUND_ASSIGN_OPERATOR
@ EXPR_COMPOUND_ASSIGN_OPERATOR
A CompoundAssignOperator record.
Definition: ASTBitCodes.h:1656
clang::serialization::EXPR_EXT_VECTOR_ELEMENT
@ EXPR_EXT_VECTOR_ELEMENT
An ExtVectorElementExpr record.
Definition: ASTBitCodes.h:1671
distance
float __ovld __cnfn distance(float, float)
Returns the distance between p0 and p1.
clang::ConceptSpecializationExpr::getSatisfaction
const ASTConstraintSatisfaction & getSatisfaction() const
Get elaborated satisfaction info about the template arguments' satisfaction of the named concept.
Definition: ExprConcepts.h:108
clang::PseudoObjectExpr::getResultExprIndex
unsigned getResultExprIndex() const
Return the index of the result-bearing expression into the semantics expressions, or PseudoObjectExpr...
Definition: Expr.h:6154
clang::Stmt
Stmt - This represents one statement.
Definition: Stmt.h:71
clang::SourceLocExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: Expr.h:4732
clang::OMPDistributeParallelForDirective
This represents '#pragma omp distribute parallel for' composite directive.
Definition: StmtOpenMP.h:4491
clang::GenericSelectionExpr::getGenericLoc
SourceLocation getGenericLoc() const
Definition: Expr.h:5880
clang::UnaryOperator::getOpcode
Opcode getOpcode() const
Definition: Expr.h:2214
clang::DefaultStmt
Definition: Stmt.h:1759
clang::OMPTaskLoopDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:3716
clang::OMPParallelMaskedDirective
This represents '#pragma omp parallel masked' directive.
Definition: StmtOpenMP.h:2319
clang::BinaryOperator::getRHS
Expr * getRHS() const
Definition: Expr.h:3863
clang::ObjCAutoreleasePoolStmt
Represents Objective-C's @autoreleasepool Statement.
Definition: StmtObjC.h:393
clang::CXXTemporaryObjectExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: ExprCXX.h:1833
clang::ShuffleVectorExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4420
clang::FPOptionsOverride::getAsOpaqueInt
storage_type getAsOpaqueInt() const
Definition: LangOptions.h:858
clang::MatrixSubscriptExpr::getColumnIdx
Expr * getColumnIdx()
Definition: Expr.h:2766
clang::CXXNewExpr::isParenTypeId
bool isParenTypeId() const
Definition: ExprCXX.h:2316
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:5789
clang::ConditionalOperator::getCond
Expr * getCond() const
Definition: Expr.h:4173
clang::serialization::STMT_OMP_BARRIER_DIRECTIVE
@ STMT_OMP_BARRIER_DIRECTIVE
Definition: ASTBitCodes.h:1936
clang::OMPSectionsDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1849
clang::CXXNewExpr::isGlobalNew
bool isGlobalNew() const
Definition: ExprCXX.h:2322
clang::GenericSelectionExpr
Represents a C11 generic selection.
Definition: Expr.h:5633
clang::CXXScalarValueInitExpr
An expression "T()" which creates a value-initialized rvalue of type T, which is a non-class type.
Definition: ExprCXX.h:2100
clang::ChooseExpr::getRHS
Expr * getRHS() const
Definition: Expr.h:4573
clang::serialization::EXPR_ATOMIC
@ EXPR_ATOMIC
An AtomicExpr record.
Definition: ASTBitCodes.h:1728
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:1942
clang::serialization::EXPR_OBJC_STRING_LITERAL
@ EXPR_OBJC_STRING_LITERAL
An ObjCStringLiteral record.
Definition: ASTBitCodes.h:1736
clang::serialization::EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
Definition: ASTBitCodes.h:1890
clang::serialization::EXPR_FIXEDPOINT_LITERAL
@ EXPR_FIXEDPOINT_LITERAL
Definition: ASTBitCodes.h:2003
clang::OMPIteratorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprOpenMP.h:369
clang::ParenListExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:5588
clang::InitListExpr::getLBraceLoc
SourceLocation getLBraceLoc() const
Definition: Expr.h:4945
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:2174
clang::serialization::EXPR_GNU_NULL
@ EXPR_GNU_NULL
A GNUNullExpr record.
Definition: ASTBitCodes.h:1707
clang::OMPCancelDirective::getCancelRegion
OpenMPDirectiveKind getCancelRegion() const
Get cancellation region for the current cancellation point.
Definition: StmtOpenMP.h:3643
clang::CXXBaseSpecifier
Represents a base class of a C++ class.
Definition: DeclCXX.h:146
clang::CXXDefaultArgExpr::getParam
const ParmVarDecl * getParam() const
Definition: ExprCXX.h:1283
clang::TypeSourceInfo
A container of type source information.
Definition: Type.h:6593
clang::CXXUuidofExpr::isTypeOperand
bool isTypeOperand() const
Definition: ExprCXX.h:1093
clang::CXXDependentScopeMemberExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: ExprCXX.h:3776
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:5574
clang::VAArgExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4665
clang::CXXNewExpr::getOperatorDelete
FunctionDecl * getOperatorDelete() const
Definition: ExprCXX.h:2266
clang::serialization::STMT_OMP_TASK_DIRECTIVE
@ STMT_OMP_TASK_DIRECTIVE
Definition: ASTBitCodes.h:1933
clang::serialization::EXPR_CXX_DEFAULT_ARG
@ EXPR_CXX_DEFAULT_ARG
Definition: ASTBitCodes.h:1863
clang::ObjCMessageExpr::getMethodDecl
const ObjCMethodDecl * getMethodDecl() const
Definition: ExprObjC.h:1346
clang::serialization::STMT_LABEL
@ STMT_LABEL
A LabelStmt record.
Definition: ASTBitCodes.h:1554
clang::AbstractConditionalOperator::getColonLoc
SourceLocation getColonLoc() const
Definition: Expr.h:4140
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:2325
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:2584
clang::CXXDeleteExpr::getArgument
Expr * getArgument()
Definition: ExprCXX.h:2463
clang::SubstNonTypeTemplateParmExpr::getPackIndex
Optional< unsigned > getPackIndex() const
Definition: ExprCXX.h:4317
clang::serialization::STMT_OMP_SECTION_DIRECTIVE
@ STMT_OMP_SECTION_DIRECTIVE
Definition: ASTBitCodes.h:1924
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:3096
clang::ObjCSelectorExpr::getAtLoc
SourceLocation getAtLoc() const
Definition: ExprObjC.h:471
clang::OMPGenericLoopDirective
This represents '#pragma omp loop' directive.
Definition: StmtOpenMP.h:5909
clang::OMPTargetUpdateDirective
This represents '#pragma omp target update' directive.
Definition: StmtOpenMP.h:4435
clang::ParenListExpr::exprs
ArrayRef< Expr * > exprs()
Definition: Expr.h:5583
clang::CXXFunctionalCastExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprCXX.h:1775
clang::OMPIteratorExpr::getAssignLoc
SourceLocation getAssignLoc(unsigned I) const
Gets the location of '=' for the given iterator definition.
Definition: Expr.cpp:5042
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:2082
clang::serialization::STMT_SEH_FINALLY
@ STMT_SEH_FINALLY
Definition: ASTBitCodes.h:1911
clang::FunctionParmPackExpr::end
iterator end() const
Definition: ExprCXX.h:4469
clang::ObjCBoolLiteralExpr::getValue
bool getValue() const
Definition: ExprObjC.h:101
clang::serialization::STMT_OMP_PARALLEL_MASKED_TASKLOOP_DIRECTIVE
@ STMT_OMP_PARALLEL_MASKED_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1961
clang::StringLiteral::getLength
unsigned getLength() const
Definition: Expr.h:1888
clang::CXXPseudoDestructorExpr::isArrow
bool isArrow() const
Determine whether this pseudo-destructor expression was written using an '->' (otherwise,...
Definition: ExprCXX.h:2604
clang::ImplicitCastExpr
ImplicitCastExpr - Allows us to explicitly represent implicit type conversions, which have no direct ...
Definition: Expr.h:3624
clang::VAArgExpr
Represents a call to the builtin function __builtin_va_arg.
Definition: Expr.h:4638
clang::OMPOrderedDirective
This represents '#pragma omp ordered' directive.
Definition: StmtOpenMP.h:2840
clang::SourceLocExpr
Represents a function call to one of __builtin_LINE(), __builtin_COLUMN(), __builtin_FUNCTION(),...
Definition: Expr.h:4687
clang::ASTTemplateKWAndArgsInfo::NumTemplateArgs
unsigned NumTemplateArgs
The number of template arguments in TemplateArgs.
Definition: TemplateBase.h:680
clang::serialization::STMT_OMP_MASTER_DIRECTIVE
@ STMT_OMP_MASTER_DIRECTIVE
Definition: ASTBitCodes.h:1926
clang::MemberExpr
MemberExpr - [C99 6.5.2.3] Structure and Union Members.
Definition: Expr.h:3169
clang::serialization::EXPR_OPAQUE_VALUE
@ EXPR_OPAQUE_VALUE
Definition: ASTBitCodes.h:1883
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:1974
clang::ArrayTypeTraitExpr::getQueriedTypeSourceInfo
TypeSourceInfo * getQueriedTypeSourceInfo() const
Definition: ExprCXX.h:2820
clang::serialization::EXPR_OFFSETOF
@ EXPR_OFFSETOF
An OffsetOfExpr record.
Definition: ASTBitCodes.h:1635
clang::serialization::EXPR_OMP_ITERATOR
@ EXPR_OMP_ITERATOR
Definition: ASTBitCodes.h:1989
clang::OMPIteratorExpr::getHelper
OMPIteratorHelperData & getHelper(unsigned I)
Fetches helper data for the specified iteration space.
Definition: Expr.cpp:5064
clang::InitListExpr::getInit
const Expr * getInit(unsigned Init) const
Definition: Expr.h:4844
clang::serialization::STMT_OMP_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1928
clang::CXXDependentScopeMemberExpr::isArrow
bool isArrow() const
Determine whether this member expression used the '->' operator; otherwise, it used the '.
Definition: ExprCXX.h:3681
clang::DeclRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
If the name was qualified, retrieves the nested-name-specifier that precedes the name,...
Definition: Expr.h:1323
clang::serialization::EXPR_CHOOSE
@ EXPR_CHOOSE
A ChooseExpr record.
Definition: ASTBitCodes.h:1704
clang::serialization::EXPR_LAMBDA
@ EXPR_LAMBDA
Definition: ASTBitCodes.h:1995
clang::serialization::STMT_OMP_CANCELLATION_POINT_DIRECTIVE
@ STMT_OMP_CANCELLATION_POINT_DIRECTIVE
Definition: ASTBitCodes.h:1951
clang::serialization::EXPR_CONSTANT
@ EXPR_CONSTANT
A constant expression context.
Definition: ASTBitCodes.h:1602
clang::OMPDistributeSimdDirective
This represents '#pragma omp distribute simd' composite directive.
Definition: StmtOpenMP.h:4652
clang::ConceptReference::getConceptNameInfo
const DeclarationNameInfo & getConceptNameInfo() const
Definition: ASTConcept.h:142
clang::CXXDeleteExpr::isGlobalDelete
bool isGlobalDelete() const
Definition: ExprCXX.h:2447
clang::AtomicExpr::getNumSubExprs
static unsigned getNumSubExprs(AtomicOp Op)
Determine the number of arguments the specified atomic builtin should have.
Definition: Expr.cpp:4798
clang::AbstractConditionalOperator::getQuestionLoc
SourceLocation getQuestionLoc() const
Definition: Expr.h:4139
clang::serialization::STMT_SWITCH
@ STMT_SWITCH
A SwitchStmt record.
Definition: ASTBitCodes.h:1563
clang::serialization::EXPR_FLOATING_LITERAL
@ EXPR_FLOATING_LITERAL
A FloatingLiteral record.
Definition: ASTBitCodes.h:1614
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:5805
clang::OverloadExpr::getTrailingTemplateArgumentLoc
TemplateArgumentLoc * getTrailingTemplateArgumentLoc()
Return the optional template arguments.
Definition: ExprCXX.h:4004
clang::CXXConstructExpr::getArg
Expr * getArg(unsigned Arg)
Return the specified argument.
Definition: ExprCXX.h:1618
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1973
clang::serialization::EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
@ EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
Definition: ASTBitCodes.h:1906
clang::OMPParallelMasterTaskLoopSimdDirective
This represents '#pragma omp parallel master taskloop simd' directive.
Definition: StmtOpenMP.h:4237
clang::GNUNullExpr
GNUNullExpr - Implements the GNU __null extension, which is a name for a null pointer constant that h...
Definition: Expr.h:4604
clang::CXXStdInitializerListExpr
Implicit construction of a std::initializer_list<T> object from an array temporary within list-initia...
Definition: ExprCXX.h:798
clang::serialization::STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1965
clang::concepts::Requirement::RK_Nested
@ RK_Nested
Definition: ExprConcepts.h:149
clang::DeclRefExpr::refersToEnclosingVariableOrCapture
bool refersToEnclosingVariableOrCapture() const
Does this DeclRefExpr refer to an enclosing local or a captured variable?
Definition: Expr.h:1434
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:1608
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:2000
clang::ExprWithCleanups::cleanupsHaveSideEffects
bool cleanupsHaveSideEffects() const
Definition: ExprCXX.h:3406
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1971
clang::PseudoObjectExpr::NoResult
@ NoResult
Definition: Expr.h:6137
clang::ObjCPropertyRefExpr::getClassReceiver
ObjCInterfaceDecl * getClassReceiver() const
Definition: ExprObjC.h:767
clang::serialization::EXPR_CXX_UUIDOF_TYPE
@ EXPR_CXX_UUIDOF_TYPE
Definition: ASTBitCodes.h:1908
clang::UnresolvedLookupExpr::isOverloaded
bool isOverloaded() const
True if this lookup is overloaded.
Definition: ExprCXX.h:3168
clang::Expr
This represents one expression.
Definition: Expr.h:109
clang::serialization::STMT_GOTO
@ STMT_GOTO
A GotoStmt record.
Definition: ASTBitCodes.h:1575
clang::serialization::EXPR_OBJC_SELECTOR_EXPR
@ EXPR_OBJC_SELECTOR_EXPR
An ObjCSelectorExpr record.
Definition: ASTBitCodes.h:1746
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:1558
clang::ObjCIvarRefExpr::isFreeIvar
bool isFreeIvar() const
Definition: ExprObjC.h:585
clang::serialization::EXPR_CXX_NEW
@ EXPR_CXX_NEW
Definition: ASTBitCodes.h:1868
clang::serialization::STMT_OMP_ERROR_DIRECTIVE
@ STMT_OMP_ERROR_DIRECTIVE
Definition: ASTBitCodes.h:1935
clang::serialization::DESIG_ARRAY_RANGE
@ DESIG_ARRAY_RANGE
GNU array range designator.
Definition: ASTBitCodes.h:2023
clang::serialization::EXPR_TYPE_TRAIT
@ EXPR_TYPE_TRAIT
Definition: ASTBitCodes.h:1885
clang::ChooseExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4579
clang::serialization::STMT_OBJC_FINALLY
@ STMT_OBJC_FINALLY
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1779
clang::serialization::STMT_WHILE
@ STMT_WHILE
A WhileStmt record.
Definition: ASTBitCodes.h:1566
clang::FunctionParmPackExpr::getParameterPackLocation
SourceLocation getParameterPackLocation() const
Get the location of the parameter pack.
Definition: ExprCXX.h:4463
clang::CXXDeleteExpr::isArrayFormAsWritten
bool isArrayFormAsWritten() const
Definition: ExprCXX.h:2449
clang::OMPTargetDataDirective
This represents '#pragma omp target data' directive.
Definition: StmtOpenMP.h:3150
clang::CXXDefaultInitExpr
A use of a default initializer in a constructor or in aggregate initialization.
Definition: ExprCXX.h:1325
clang::serialization::STMT_OMP_FOR_DIRECTIVE
@ STMT_OMP_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1921
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:2096
clang::ObjCPropertyRefExpr::getSuperReceiverType
QualType getSuperReceiverType() const
Definition: ExprObjC.h:763
clang::serialization::EXPR_BINARY_CONDITIONAL_OPERATOR
@ EXPR_BINARY_CONDITIONAL_OPERATOR
Definition: ASTBitCodes.h:1884
clang::OMPTargetSimdDirective
This represents '#pragma omp target simd' directive.
Definition: StmtOpenMP.h:4785
clang::OMPParallelDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:673
clang::SubstNonTypeTemplateParmExpr::getAssociatedDecl
Decl * getAssociatedDecl() const
A template-like entity which owns the whole pattern being substituted.
Definition: ExprCXX.h:4311
clang::InitListExpr::hadArrayRangeDesignator
bool hadArrayRangeDesignator() const
Definition: Expr.h:4968
clang::concepts::Requirement::RK_Type
@ RK_Type
Definition: ExprConcepts.h:149
clang::ASTTemplateKWAndArgsInfo
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".
Definition: TemplateBase.h:666
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:3256
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:3480
clang::FixedPointLiteral::getLocation
SourceLocation getLocation() const
Retrieve the location of the literal.
Definition: Expr.h:1571
clang::ArrayTypeTraitExpr::getDimensionExpression
Expr * getDimensionExpression() const
Definition: ExprCXX.h:2824
clang::CXXThisExpr::isImplicit
bool isImplicit() const
Definition: ExprCXX.h:1166
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:2017
clang::Stmt::LambdaExprBits
LambdaExprBitfields LambdaExprBits
Definition: Stmt.h:1074
clang::MSAsmStmt
This represents a Microsoft inline-assembly statement extension.
Definition: Stmt.h:3261
clang::CXXDefaultInitExpr::getField
FieldDecl * getField()
Get the field whose initializer will be used.
Definition: ExprCXX.h:1349
clang::DeclRefExpr
A reference to a declared variable, function, enum, etc.
Definition: Expr.h:1232
clang::ASTWriter::AddToken
void AddToken(const Token &Tok, RecordDataImpl &Record)
Emit a token.
Definition: ASTWriter.cpp:4373
clang::AddrLabelExpr::getLabel
LabelDecl * getLabel() const
Definition: Expr.h:4332
clang::serialization::STMT_OMP_CRITICAL_DIRECTIVE
@ STMT_OMP_CRITICAL_DIRECTIVE
Definition: ASTBitCodes.h:1927
clang::OMPTaskLoopSimdDirective
This represents '#pragma omp taskloop simd' directive.
Definition: StmtOpenMP.h:3732
clang::OMPTargetParallelForDirective
This represents '#pragma omp target parallel for' directive.
Definition: StmtOpenMP.h:3393
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:4038
clang::CallExpr
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition: Expr.h:2810
clang::OMPParallelSectionsDirective
This represents '#pragma omp parallel sections' directive.
Definition: StmtOpenMP.h:2383
clang::InitListExpr::getNumInits
unsigned getNumInits() const
Definition: Expr.h:4826
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:1970
clang::ShuffleVectorExpr
ShuffleVectorExpr - clang-specific builtin-in function __builtin_shufflevector.
Definition: Expr.h:4402
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:4142
clang::serialization::EXPR_COMPOUND_LITERAL
@ EXPR_COMPOUND_LITERAL
A CompoundLiteralExpr record.
Definition: ASTBitCodes.h:1668
clang::CXXConstructExpr
Represents a call to a C++ constructor.
Definition: ExprCXX.h:1467
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:1587
clang::GenericSelectionExpr::getNumAssocs
unsigned getNumAssocs() const
The number of association expressions.
Definition: Expr.h:5799
clang::CXXNewExpr::raw_arg_begin
raw_arg_iterator raw_arg_begin()
Definition: ExprCXX.h:2391
clang::ASTRecordWriter::AddVersionTuple
void AddVersionTuple(const VersionTuple &Version)
Emit a version tuple.
Definition: ASTRecordWriter.h:298
clang::ConstantExpr::RSK_None
@ RSK_None
Definition: Expr.h:1053
clang::OMPAtomicDirective
This represents '#pragma omp atomic' directive.
Definition: StmtOpenMP.h:2894
clang::serialization::STMT_OMP_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1954
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:1861
clang::serialization::EXPR_CXX_TEMPORARY_OBJECT
@ EXPR_CXX_TEMPORARY_OBJECT
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1826
clang::BinaryConditionalOperator::getOpaqueValue
OpaqueValueExpr * getOpaqueValue() const
getOpaqueValue - Return the opaque value placeholder.
Definition: Expr.h:4250
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1972
clang::OpaqueValueExpr::isUnique
bool isUnique() const
Definition: Expr.h:1202
clang::OMPSectionDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1909
clang::serialization::EXPR_USER_DEFINED_LITERAL
@ EXPR_USER_DEFINED_LITERAL
A UserDefinedLiteral record.
Definition: ASTBitCodes.h:1850
clang::ExplicitCastExpr
ExplicitCastExpr - An explicit cast written in the source code.
Definition: Expr.h:3702
clang::CXXConstructExpr::isElidable
bool isElidable() const
Whether this construction is elidable.
Definition: ExprCXX.h:1545
clang::DependentCoawaitExpr::getKeywordLoc
SourceLocation getKeywordLoc() const
Definition: ExprCXX.h:4884
clang::concepts::ExprRequirement::SS_ConstraintsNotSatisfied
@ SS_ConstraintsNotSatisfied
Definition: ExprConcepts.h:261
clang::CharacterLiteral::getKind
CharacterKind getKind() const
Definition: Expr.h:1620
clang::ReturnStmt
ReturnStmt - This represents a return, optionally of an expression: return; return 4;.
Definition: Stmt.h:2796
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:1569
clang::DependentCoawaitExpr::children
child_range children()
Definition: ExprCXX.h:4892
clang::DeclRefExpr::hasTemplateKWAndArgsInfo
bool hasTemplateKWAndArgsInfo() const
Definition: Expr.h:1351
clang::serialization::EXPR_ARRAY_INIT_LOOP
@ EXPR_ARRAY_INIT_LOOP
An ArrayInitLoopExpr record.
Definition: ASTBitCodes.h:1686
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:1999
clang::ConceptSpecializationExpr::getSpecializationDecl
const ImplicitConceptSpecializationDecl * getSpecializationDecl() const
Definition: ExprConcepts.h:91
clang::GenericSelectionExpr::getDefaultLoc
SourceLocation getDefaultLoc() const
Definition: Expr.h:5883
clang::SEHLeaveStmt
Represents a __leave statement.
Definition: Stmt.h:3497
clang::serialization::EXPR_IMAGINARY_LITERAL
@ EXPR_IMAGINARY_LITERAL
An ImaginaryLiteral record.
Definition: ASTBitCodes.h:1617
clang::CoroutineSuspendExpr
Represents an expression that might suspend coroutine execution; either a co_await or co_yield expres...
Definition: ExprCXX.h:4730
clang::OMPTeamsDistributeParallelForSimdDirective
This represents '#pragma omp teams distribute parallel for simd' composite directive.
Definition: StmtOpenMP.h:4983
clang::ASTRecordWriter::AddTemplateArgumentLoc
void AddTemplateArgumentLoc(const TemplateArgumentLoc &Arg)
Emits a template argument location.
Definition: