clang  15.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  if (!Satisfaction.IsSatisfied) {
406  Record.push_back(Satisfaction.NumRecords);
407  for (const auto &DetailRecord : Satisfaction) {
408  Record.AddStmt(const_cast<Expr *>(DetailRecord.first));
409  auto *E = DetailRecord.second.dyn_cast<Expr *>();
410  Record.push_back(E == nullptr);
411  if (E)
412  Record.AddStmt(E);
413  else {
414  auto *Diag = DetailRecord.second.get<std::pair<SourceLocation,
415  StringRef> *>();
416  Record.AddSourceLocation(Diag->first);
417  Record.AddString(Diag->second);
418  }
419  }
420  }
421 }
422 
423 static void
425  ASTRecordWriter &Record,
427  Record.AddString(D->SubstitutedEntity);
428  Record.AddSourceLocation(D->DiagLoc);
429  Record.AddString(D->DiagMessage);
430 }
431 
432 void ASTStmtWriter::VisitConceptSpecializationExpr(
434  VisitExpr(E);
436  Record.push_back(TemplateArgs.size());
438  Record.AddSourceLocation(E->getTemplateKWLoc());
440  Record.AddDeclRef(E->getNamedConcept());
441  Record.AddDeclRef(E->getFoundDecl());
443  for (const TemplateArgument &Arg : TemplateArgs)
444  Record.AddTemplateArgument(Arg);
445  if (!E->isValueDependent())
447 
449 }
450 
451 void ASTStmtWriter::VisitRequiresExpr(RequiresExpr *E) {
452  VisitExpr(E);
453  Record.push_back(E->getLocalParameters().size());
454  Record.push_back(E->getRequirements().size());
455  Record.AddSourceLocation(E->RequiresExprBits.RequiresKWLoc);
456  Record.push_back(E->RequiresExprBits.IsSatisfied);
457  Record.AddDeclRef(E->getBody());
458  for (ParmVarDecl *P : E->getLocalParameters())
459  Record.AddDeclRef(P);
460  for (concepts::Requirement *R : E->getRequirements()) {
461  if (auto *TypeReq = dyn_cast<concepts::TypeRequirement>(R)) {
463  Record.push_back(TypeReq->Status);
465  addSubstitutionDiagnostic(Record, TypeReq->getSubstitutionDiagnostic());
466  else
467  Record.AddTypeSourceInfo(TypeReq->getType());
468  } else if (auto *ExprReq = dyn_cast<concepts::ExprRequirement>(R)) {
469  Record.push_back(ExprReq->getKind());
470  Record.push_back(ExprReq->Status);
471  if (ExprReq->isExprSubstitutionFailure()) {
473  ExprReq->Value.get<concepts::Requirement::SubstitutionDiagnostic *>());
474  } else
475  Record.AddStmt(ExprReq->Value.get<Expr *>());
476  if (ExprReq->getKind() == concepts::Requirement::RK_Compound) {
477  Record.AddSourceLocation(ExprReq->NoexceptLoc);
478  const auto &RetReq = ExprReq->getReturnTypeRequirement();
479  if (RetReq.isSubstitutionFailure()) {
480  Record.push_back(2);
481  addSubstitutionDiagnostic(Record, RetReq.getSubstitutionDiagnostic());
482  } else if (RetReq.isTypeConstraint()) {
483  Record.push_back(1);
485  RetReq.getTypeConstraintTemplateParameterList());
486  if (ExprReq->Status >=
488  Record.AddStmt(
489  ExprReq->getReturnTypeRequirementSubstitutedConstraintExpr());
490  } else {
491  assert(RetReq.isEmpty());
492  Record.push_back(0);
493  }
494  }
495  } else {
496  auto *NestedReq = cast<concepts::NestedRequirement>(R);
498  Record.push_back(NestedReq->isSubstitutionFailure());
499  if (NestedReq->isSubstitutionFailure()){
501  NestedReq->getSubstitutionDiagnostic());
502  } else {
503  Record.AddStmt(NestedReq->Value.get<Expr *>());
504  if (!NestedReq->isDependent())
505  addConstraintSatisfaction(Record, *NestedReq->Satisfaction);
506  }
507  }
508  }
509  Record.AddSourceLocation(E->getEndLoc());
510 
512 }
513 
514 
515 void ASTStmtWriter::VisitCapturedStmt(CapturedStmt *S) {
516  VisitStmt(S);
517  // NumCaptures
518  Record.push_back(std::distance(S->capture_begin(), S->capture_end()));
519 
520  // CapturedDecl and captured region kind
521  Record.AddDeclRef(S->getCapturedDecl());
522  Record.push_back(S->getCapturedRegionKind());
523 
524  Record.AddDeclRef(S->getCapturedRecordDecl());
525 
526  // Capture inits
527  for (auto *I : S->capture_inits())
528  Record.AddStmt(I);
529 
530  // Body
531  Record.AddStmt(S->getCapturedStmt());
532 
533  // Captures
534  for (const auto &I : S->captures()) {
535  if (I.capturesThis() || I.capturesVariableArrayType())
536  Record.AddDeclRef(nullptr);
537  else
538  Record.AddDeclRef(I.getCapturedVar());
539  Record.push_back(I.getCaptureKind());
540  Record.AddSourceLocation(I.getLocation());
541  }
542 
544 }
545 
546 void ASTStmtWriter::VisitExpr(Expr *E) {
547  VisitStmt(E);
548  Record.AddTypeRef(E->getType());
549  Record.push_back(E->getDependence());
550  Record.push_back(E->getValueKind());
551  Record.push_back(E->getObjectKind());
552 }
553 
554 void ASTStmtWriter::VisitConstantExpr(ConstantExpr *E) {
555  VisitExpr(E);
556  Record.push_back(E->ConstantExprBits.ResultKind);
557 
558  Record.push_back(E->ConstantExprBits.APValueKind);
559  Record.push_back(E->ConstantExprBits.IsUnsigned);
560  Record.push_back(E->ConstantExprBits.BitWidth);
561  // HasCleanup not serialized since we can just query the APValue.
562  Record.push_back(E->ConstantExprBits.IsImmediateInvocation);
563 
564  switch (E->ConstantExprBits.ResultKind) {
566  break;
568  Record.push_back(E->Int64Result());
569  break;
571  Record.AddAPValue(E->APValueResult());
572  break;
573  default:
574  llvm_unreachable("unexpected ResultKind!");
575  }
576 
577  Record.AddStmt(E->getSubExpr());
579 }
580 
581 void ASTStmtWriter::VisitSYCLUniqueStableNameExpr(SYCLUniqueStableNameExpr *E) {
582  VisitExpr(E);
583 
584  Record.AddSourceLocation(E->getLocation());
588 
590 }
591 
592 void ASTStmtWriter::VisitPredefinedExpr(PredefinedExpr *E) {
593  VisitExpr(E);
594 
595  bool HasFunctionName = E->getFunctionName() != nullptr;
596  Record.push_back(HasFunctionName);
597  Record.push_back(E->getIdentKind()); // FIXME: stable encoding
598  Record.AddSourceLocation(E->getLocation());
599  if (HasFunctionName)
600  Record.AddStmt(E->getFunctionName());
602 }
603 
604 void ASTStmtWriter::VisitDeclRefExpr(DeclRefExpr *E) {
605  VisitExpr(E);
606 
607  Record.push_back(E->hasQualifier());
608  Record.push_back(E->getDecl() != E->getFoundDecl());
609  Record.push_back(E->hasTemplateKWAndArgsInfo());
610  Record.push_back(E->hadMultipleCandidates());
612  Record.push_back(E->isNonOdrUse());
613 
614  if (E->hasTemplateKWAndArgsInfo()) {
615  unsigned NumTemplateArgs = E->getNumTemplateArgs();
616  Record.push_back(NumTemplateArgs);
617  }
618 
620 
621  if ((!E->hasTemplateKWAndArgsInfo()) && (!E->hasQualifier()) &&
622  (E->getDecl() == E->getFoundDecl()) &&
625  AbbrevToUse = Writer.getDeclRefExprAbbrev();
626  }
627 
628  if (E->hasQualifier())
630 
631  if (E->getDecl() != E->getFoundDecl())
632  Record.AddDeclRef(E->getFoundDecl());
633 
634  if (E->hasTemplateKWAndArgsInfo())
635  AddTemplateKWAndArgsInfo(*E->getTrailingObjects<ASTTemplateKWAndArgsInfo>(),
636  E->getTrailingObjects<TemplateArgumentLoc>());
637 
638  Record.AddDeclRef(E->getDecl());
639  Record.AddSourceLocation(E->getLocation());
640  Record.AddDeclarationNameLoc(E->DNLoc, E->getDecl()->getDeclName());
642 }
643 
644 void ASTStmtWriter::VisitIntegerLiteral(IntegerLiteral *E) {
645  VisitExpr(E);
646  Record.AddSourceLocation(E->getLocation());
647  Record.AddAPInt(E->getValue());
648 
649  if (E->getValue().getBitWidth() == 32) {
650  AbbrevToUse = Writer.getIntegerLiteralAbbrev();
651  }
652 
654 }
655 
656 void ASTStmtWriter::VisitFixedPointLiteral(FixedPointLiteral *E) {
657  VisitExpr(E);
658  Record.AddSourceLocation(E->getLocation());
659  Record.push_back(E->getScale());
660  Record.AddAPInt(E->getValue());
662 }
663 
664 void ASTStmtWriter::VisitFloatingLiteral(FloatingLiteral *E) {
665  VisitExpr(E);
666  Record.push_back(E->getRawSemantics());
667  Record.push_back(E->isExact());
668  Record.AddAPFloat(E->getValue());
669  Record.AddSourceLocation(E->getLocation());
671 }
672 
673 void ASTStmtWriter::VisitImaginaryLiteral(ImaginaryLiteral *E) {
674  VisitExpr(E);
675  Record.AddStmt(E->getSubExpr());
677 }
678 
679 void ASTStmtWriter::VisitStringLiteral(StringLiteral *E) {
680  VisitExpr(E);
681 
682  // Store the various bits of data of StringLiteral.
683  Record.push_back(E->getNumConcatenated());
684  Record.push_back(E->getLength());
685  Record.push_back(E->getCharByteWidth());
686  Record.push_back(E->getKind());
687  Record.push_back(E->isPascal());
688 
689  // Store the trailing array of SourceLocation.
690  for (unsigned I = 0, N = E->getNumConcatenated(); I != N; ++I)
691  Record.AddSourceLocation(E->getStrTokenLoc(I));
692 
693  // Store the trailing array of char holding the string data.
694  StringRef StrData = E->getBytes();
695  for (unsigned I = 0, N = E->getByteLength(); I != N; ++I)
696  Record.push_back(StrData[I]);
697 
699 }
700 
701 void ASTStmtWriter::VisitCharacterLiteral(CharacterLiteral *E) {
702  VisitExpr(E);
703  Record.push_back(E->getValue());
704  Record.AddSourceLocation(E->getLocation());
705  Record.push_back(E->getKind());
706 
707  AbbrevToUse = Writer.getCharacterLiteralAbbrev();
708 
710 }
711 
712 void ASTStmtWriter::VisitParenExpr(ParenExpr *E) {
713  VisitExpr(E);
714  Record.AddSourceLocation(E->getLParen());
715  Record.AddSourceLocation(E->getRParen());
716  Record.AddStmt(E->getSubExpr());
718 }
719 
720 void ASTStmtWriter::VisitParenListExpr(ParenListExpr *E) {
721  VisitExpr(E);
722  Record.push_back(E->getNumExprs());
723  for (auto *SubStmt : E->exprs())
724  Record.AddStmt(SubStmt);
725  Record.AddSourceLocation(E->getLParenLoc());
726  Record.AddSourceLocation(E->getRParenLoc());
728 }
729 
730 void ASTStmtWriter::VisitUnaryOperator(UnaryOperator *E) {
731  VisitExpr(E);
732  bool HasFPFeatures = E->hasStoredFPFeatures();
733  // Write this first for easy access when deserializing, as they affect the
734  // size of the UnaryOperator.
735  Record.push_back(HasFPFeatures);
736  Record.AddStmt(E->getSubExpr());
737  Record.push_back(E->getOpcode()); // FIXME: stable encoding
738  Record.AddSourceLocation(E->getOperatorLoc());
739  Record.push_back(E->canOverflow());
740  if (HasFPFeatures)
743 }
744 
745 void ASTStmtWriter::VisitOffsetOfExpr(OffsetOfExpr *E) {
746  VisitExpr(E);
747  Record.push_back(E->getNumComponents());
748  Record.push_back(E->getNumExpressions());
749  Record.AddSourceLocation(E->getOperatorLoc());
750  Record.AddSourceLocation(E->getRParenLoc());
752  for (unsigned I = 0, N = E->getNumComponents(); I != N; ++I) {
753  const OffsetOfNode &ON = E->getComponent(I);
754  Record.push_back(ON.getKind()); // FIXME: Stable encoding
756  Record.AddSourceLocation(ON.getSourceRange().getEnd());
757  switch (ON.getKind()) {
758  case OffsetOfNode::Array:
759  Record.push_back(ON.getArrayExprIndex());
760  break;
761 
762  case OffsetOfNode::Field:
763  Record.AddDeclRef(ON.getField());
764  break;
765 
767  Record.AddIdentifierRef(ON.getFieldName());
768  break;
769 
770  case OffsetOfNode::Base:
771  Record.AddCXXBaseSpecifier(*ON.getBase());
772  break;
773  }
774  }
775  for (unsigned I = 0, N = E->getNumExpressions(); I != N; ++I)
776  Record.AddStmt(E->getIndexExpr(I));
778 }
779 
780 void ASTStmtWriter::VisitUnaryExprOrTypeTraitExpr(UnaryExprOrTypeTraitExpr *E) {
781  VisitExpr(E);
782  Record.push_back(E->getKind());
783  if (E->isArgumentType())
785  else {
786  Record.push_back(0);
787  Record.AddStmt(E->getArgumentExpr());
788  }
789  Record.AddSourceLocation(E->getOperatorLoc());
790  Record.AddSourceLocation(E->getRParenLoc());
792 }
793 
794 void ASTStmtWriter::VisitArraySubscriptExpr(ArraySubscriptExpr *E) {
795  VisitExpr(E);
796  Record.AddStmt(E->getLHS());
797  Record.AddStmt(E->getRHS());
798  Record.AddSourceLocation(E->getRBracketLoc());
800 }
801 
802 void ASTStmtWriter::VisitMatrixSubscriptExpr(MatrixSubscriptExpr *E) {
803  VisitExpr(E);
804  Record.AddStmt(E->getBase());
805  Record.AddStmt(E->getRowIdx());
806  Record.AddStmt(E->getColumnIdx());
807  Record.AddSourceLocation(E->getRBracketLoc());
809 }
810 
811 void ASTStmtWriter::VisitOMPArraySectionExpr(OMPArraySectionExpr *E) {
812  VisitExpr(E);
813  Record.AddStmt(E->getBase());
814  Record.AddStmt(E->getLowerBound());
815  Record.AddStmt(E->getLength());
816  Record.AddStmt(E->getStride());
817  Record.AddSourceLocation(E->getColonLocFirst());
819  Record.AddSourceLocation(E->getRBracketLoc());
821 }
822 
823 void ASTStmtWriter::VisitOMPArrayShapingExpr(OMPArrayShapingExpr *E) {
824  VisitExpr(E);
825  Record.push_back(E->getDimensions().size());
826  Record.AddStmt(E->getBase());
827  for (Expr *Dim : E->getDimensions())
828  Record.AddStmt(Dim);
829  for (SourceRange SR : E->getBracketsRanges())
830  Record.AddSourceRange(SR);
831  Record.AddSourceLocation(E->getLParenLoc());
832  Record.AddSourceLocation(E->getRParenLoc());
834 }
835 
836 void ASTStmtWriter::VisitOMPIteratorExpr(OMPIteratorExpr *E) {
837  VisitExpr(E);
838  Record.push_back(E->numOfIterators());
839  Record.AddSourceLocation(E->getIteratorKwLoc());
840  Record.AddSourceLocation(E->getLParenLoc());
841  Record.AddSourceLocation(E->getRParenLoc());
842  for (unsigned I = 0, End = E->numOfIterators(); I < End; ++I) {
843  Record.AddDeclRef(E->getIteratorDecl(I));
844  Record.AddSourceLocation(E->getAssignLoc(I));
846  Record.AddStmt(Range.Begin);
847  Record.AddStmt(Range.End);
848  Record.AddStmt(Range.Step);
849  Record.AddSourceLocation(E->getColonLoc(I));
850  if (Range.Step)
851  Record.AddSourceLocation(E->getSecondColonLoc(I));
852  // Serialize helpers
853  OMPIteratorHelperData &HD = E->getHelper(I);
854  Record.AddDeclRef(HD.CounterVD);
855  Record.AddStmt(HD.Upper);
856  Record.AddStmt(HD.Update);
857  Record.AddStmt(HD.CounterUpdate);
858  }
860 }
861 
862 void ASTStmtWriter::VisitCallExpr(CallExpr *E) {
863  VisitExpr(E);
864  Record.push_back(E->getNumArgs());
865  Record.push_back(E->hasStoredFPFeatures());
866  Record.AddSourceLocation(E->getRParenLoc());
867  Record.AddStmt(E->getCallee());
868  for (CallExpr::arg_iterator Arg = E->arg_begin(), ArgEnd = E->arg_end();
869  Arg != ArgEnd; ++Arg)
870  Record.AddStmt(*Arg);
871  Record.push_back(static_cast<unsigned>(E->getADLCallKind()));
872  if (E->hasStoredFPFeatures())
873  Record.push_back(E->getFPFeatures().getAsOpaqueInt());
875 }
876 
877 void ASTStmtWriter::VisitRecoveryExpr(RecoveryExpr *E) {
878  VisitExpr(E);
879  Record.push_back(std::distance(E->children().begin(), E->children().end()));
880  Record.AddSourceLocation(E->getBeginLoc());
881  Record.AddSourceLocation(E->getEndLoc());
882  for (Stmt *Child : E->children())
883  Record.AddStmt(Child);
885 }
886 
887 void ASTStmtWriter::VisitMemberExpr(MemberExpr *E) {
888  VisitExpr(E);
889 
890  bool HasQualifier = E->hasQualifier();
891  bool HasFoundDecl =
892  E->hasQualifierOrFoundDecl() &&
893  (E->getFoundDecl().getDecl() != E->getMemberDecl() ||
894  E->getFoundDecl().getAccess() != E->getMemberDecl()->getAccess());
895  bool HasTemplateInfo = E->hasTemplateKWAndArgsInfo();
896  unsigned NumTemplateArgs = E->getNumTemplateArgs();
897 
898  // Write these first for easy access when deserializing, as they affect the
899  // size of the MemberExpr.
900  Record.push_back(HasQualifier);
901  Record.push_back(HasFoundDecl);
902  Record.push_back(HasTemplateInfo);
903  Record.push_back(NumTemplateArgs);
904 
905  Record.AddStmt(E->getBase());
906  Record.AddDeclRef(E->getMemberDecl());
907  Record.AddDeclarationNameLoc(E->MemberDNLoc,
908  E->getMemberDecl()->getDeclName());
909  Record.AddSourceLocation(E->getMemberLoc());
910  Record.push_back(E->isArrow());
911  Record.push_back(E->hadMultipleCandidates());
912  Record.push_back(E->isNonOdrUse());
913  Record.AddSourceLocation(E->getOperatorLoc());
914 
915  if (HasFoundDecl) {
916  DeclAccessPair FoundDecl = E->getFoundDecl();
917  Record.AddDeclRef(FoundDecl.getDecl());
918  Record.push_back(FoundDecl.getAccess());
919  }
920 
921  if (HasQualifier)
923 
924  if (HasTemplateInfo)
925  AddTemplateKWAndArgsInfo(*E->getTrailingObjects<ASTTemplateKWAndArgsInfo>(),
926  E->getTrailingObjects<TemplateArgumentLoc>());
927 
929 }
930 
931 void ASTStmtWriter::VisitObjCIsaExpr(ObjCIsaExpr *E) {
932  VisitExpr(E);
933  Record.AddStmt(E->getBase());
934  Record.AddSourceLocation(E->getIsaMemberLoc());
935  Record.AddSourceLocation(E->getOpLoc());
936  Record.push_back(E->isArrow());
938 }
939 
940 void ASTStmtWriter::
941 VisitObjCIndirectCopyRestoreExpr(ObjCIndirectCopyRestoreExpr *E) {
942  VisitExpr(E);
943  Record.AddStmt(E->getSubExpr());
944  Record.push_back(E->shouldCopy());
946 }
947 
948 void ASTStmtWriter::VisitObjCBridgedCastExpr(ObjCBridgedCastExpr *E) {
949  VisitExplicitCastExpr(E);
950  Record.AddSourceLocation(E->getLParenLoc());
952  Record.push_back(E->getBridgeKind()); // FIXME: Stable encoding
954 }
955 
956 void ASTStmtWriter::VisitCastExpr(CastExpr *E) {
957  VisitExpr(E);
958  Record.push_back(E->path_size());
959  Record.push_back(E->hasStoredFPFeatures());
960  Record.AddStmt(E->getSubExpr());
961  Record.push_back(E->getCastKind()); // FIXME: stable encoding
962 
964  PI = E->path_begin(), PE = E->path_end(); PI != PE; ++PI)
965  Record.AddCXXBaseSpecifier(**PI);
966 
967  if (E->hasStoredFPFeatures())
968  Record.push_back(E->getFPFeatures().getAsOpaqueInt());
969 }
970 
971 void ASTStmtWriter::VisitBinaryOperator(BinaryOperator *E) {
972  VisitExpr(E);
973  bool HasFPFeatures = E->hasStoredFPFeatures();
974  // Write this first for easy access when deserializing, as they affect the
975  // size of the UnaryOperator.
976  Record.push_back(HasFPFeatures);
977  Record.push_back(E->getOpcode()); // FIXME: stable encoding
978  Record.AddStmt(E->getLHS());
979  Record.AddStmt(E->getRHS());
980  Record.AddSourceLocation(E->getOperatorLoc());
981  if (HasFPFeatures)
984 }
985 
986 void ASTStmtWriter::VisitCompoundAssignOperator(CompoundAssignOperator *E) {
987  VisitBinaryOperator(E);
988  Record.AddTypeRef(E->getComputationLHSType());
991 }
992 
993 void ASTStmtWriter::VisitConditionalOperator(ConditionalOperator *E) {
994  VisitExpr(E);
995  Record.AddStmt(E->getCond());
996  Record.AddStmt(E->getLHS());
997  Record.AddStmt(E->getRHS());
998  Record.AddSourceLocation(E->getQuestionLoc());
999  Record.AddSourceLocation(E->getColonLoc());
1001 }
1002 
1003 void
1004 ASTStmtWriter::VisitBinaryConditionalOperator(BinaryConditionalOperator *E) {
1005  VisitExpr(E);
1006  Record.AddStmt(E->getOpaqueValue());
1007  Record.AddStmt(E->getCommon());
1008  Record.AddStmt(E->getCond());
1009  Record.AddStmt(E->getTrueExpr());
1010  Record.AddStmt(E->getFalseExpr());
1011  Record.AddSourceLocation(E->getQuestionLoc());
1012  Record.AddSourceLocation(E->getColonLoc());
1014 }
1015 
1016 void ASTStmtWriter::VisitImplicitCastExpr(ImplicitCastExpr *E) {
1017  VisitCastExpr(E);
1018  Record.push_back(E->isPartOfExplicitCast());
1019 
1020  if (E->path_size() == 0 && !E->hasStoredFPFeatures())
1021  AbbrevToUse = Writer.getExprImplicitCastAbbrev();
1022 
1024 }
1025 
1026 void ASTStmtWriter::VisitExplicitCastExpr(ExplicitCastExpr *E) {
1027  VisitCastExpr(E);
1029 }
1030 
1031 void ASTStmtWriter::VisitCStyleCastExpr(CStyleCastExpr *E) {
1032  VisitExplicitCastExpr(E);
1033  Record.AddSourceLocation(E->getLParenLoc());
1034  Record.AddSourceLocation(E->getRParenLoc());
1036 }
1037 
1038 void ASTStmtWriter::VisitCompoundLiteralExpr(CompoundLiteralExpr *E) {
1039  VisitExpr(E);
1040  Record.AddSourceLocation(E->getLParenLoc());
1041  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1042  Record.AddStmt(E->getInitializer());
1043  Record.push_back(E->isFileScope());
1045 }
1046 
1047 void ASTStmtWriter::VisitExtVectorElementExpr(ExtVectorElementExpr *E) {
1048  VisitExpr(E);
1049  Record.AddStmt(E->getBase());
1050  Record.AddIdentifierRef(&E->getAccessor());
1051  Record.AddSourceLocation(E->getAccessorLoc());
1053 }
1054 
1055 void ASTStmtWriter::VisitInitListExpr(InitListExpr *E) {
1056  VisitExpr(E);
1057  // NOTE: only add the (possibly null) syntactic form.
1058  // No need to serialize the isSemanticForm flag and the semantic form.
1059  Record.AddStmt(E->getSyntacticForm());
1060  Record.AddSourceLocation(E->getLBraceLoc());
1061  Record.AddSourceLocation(E->getRBraceLoc());
1062  bool isArrayFiller = E->ArrayFillerOrUnionFieldInit.is<Expr*>();
1063  Record.push_back(isArrayFiller);
1064  if (isArrayFiller)
1065  Record.AddStmt(E->getArrayFiller());
1066  else
1068  Record.push_back(E->hadArrayRangeDesignator());
1069  Record.push_back(E->getNumInits());
1070  if (isArrayFiller) {
1071  // ArrayFiller may have filled "holes" due to designated initializer.
1072  // Replace them by 0 to indicate that the filler goes in that place.
1073  Expr *filler = E->getArrayFiller();
1074  for (unsigned I = 0, N = E->getNumInits(); I != N; ++I)
1075  Record.AddStmt(E->getInit(I) != filler ? E->getInit(I) : nullptr);
1076  } else {
1077  for (unsigned I = 0, N = E->getNumInits(); I != N; ++I)
1078  Record.AddStmt(E->getInit(I));
1079  }
1081 }
1082 
1083 void ASTStmtWriter::VisitDesignatedInitExpr(DesignatedInitExpr *E) {
1084  VisitExpr(E);
1085  Record.push_back(E->getNumSubExprs());
1086  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1087  Record.AddStmt(E->getSubExpr(I));
1089  Record.push_back(E->usesGNUSyntax());
1090  for (const DesignatedInitExpr::Designator &D : E->designators()) {
1091  if (D.isFieldDesignator()) {
1092  if (FieldDecl *Field = D.getField()) {
1094  Record.AddDeclRef(Field);
1095  } else {
1097  Record.AddIdentifierRef(D.getFieldName());
1098  }
1099  Record.AddSourceLocation(D.getDotLoc());
1100  Record.AddSourceLocation(D.getFieldLoc());
1101  } else if (D.isArrayDesignator()) {
1103  Record.push_back(D.getFirstExprIndex());
1104  Record.AddSourceLocation(D.getLBracketLoc());
1105  Record.AddSourceLocation(D.getRBracketLoc());
1106  } else {
1107  assert(D.isArrayRangeDesignator() && "Unknown designator");
1109  Record.push_back(D.getFirstExprIndex());
1110  Record.AddSourceLocation(D.getLBracketLoc());
1111  Record.AddSourceLocation(D.getEllipsisLoc());
1112  Record.AddSourceLocation(D.getRBracketLoc());
1113  }
1114  }
1116 }
1117 
1118 void ASTStmtWriter::VisitDesignatedInitUpdateExpr(DesignatedInitUpdateExpr *E) {
1119  VisitExpr(E);
1120  Record.AddStmt(E->getBase());
1121  Record.AddStmt(E->getUpdater());
1123 }
1124 
1125 void ASTStmtWriter::VisitNoInitExpr(NoInitExpr *E) {
1126  VisitExpr(E);
1128 }
1129 
1130 void ASTStmtWriter::VisitArrayInitLoopExpr(ArrayInitLoopExpr *E) {
1131  VisitExpr(E);
1132  Record.AddStmt(E->SubExprs[0]);
1133  Record.AddStmt(E->SubExprs[1]);
1135 }
1136 
1137 void ASTStmtWriter::VisitArrayInitIndexExpr(ArrayInitIndexExpr *E) {
1138  VisitExpr(E);
1140 }
1141 
1142 void ASTStmtWriter::VisitImplicitValueInitExpr(ImplicitValueInitExpr *E) {
1143  VisitExpr(E);
1145 }
1146 
1147 void ASTStmtWriter::VisitVAArgExpr(VAArgExpr *E) {
1148  VisitExpr(E);
1149  Record.AddStmt(E->getSubExpr());
1151  Record.AddSourceLocation(E->getBuiltinLoc());
1152  Record.AddSourceLocation(E->getRParenLoc());
1153  Record.push_back(E->isMicrosoftABI());
1155 }
1156 
1157 void ASTStmtWriter::VisitSourceLocExpr(SourceLocExpr *E) {
1158  VisitExpr(E);
1159  Record.AddDeclRef(cast_or_null<Decl>(E->getParentContext()));
1160  Record.AddSourceLocation(E->getBeginLoc());
1161  Record.AddSourceLocation(E->getEndLoc());
1162  Record.push_back(E->getIdentKind());
1164 }
1165 
1166 void ASTStmtWriter::VisitAddrLabelExpr(AddrLabelExpr *E) {
1167  VisitExpr(E);
1168  Record.AddSourceLocation(E->getAmpAmpLoc());
1169  Record.AddSourceLocation(E->getLabelLoc());
1170  Record.AddDeclRef(E->getLabel());
1172 }
1173 
1174 void ASTStmtWriter::VisitStmtExpr(StmtExpr *E) {
1175  VisitExpr(E);
1176  Record.AddStmt(E->getSubStmt());
1177  Record.AddSourceLocation(E->getLParenLoc());
1178  Record.AddSourceLocation(E->getRParenLoc());
1179  Record.push_back(E->getTemplateDepth());
1180  Code = serialization::EXPR_STMT;
1181 }
1182 
1183 void ASTStmtWriter::VisitChooseExpr(ChooseExpr *E) {
1184  VisitExpr(E);
1185  Record.AddStmt(E->getCond());
1186  Record.AddStmt(E->getLHS());
1187  Record.AddStmt(E->getRHS());
1188  Record.AddSourceLocation(E->getBuiltinLoc());
1189  Record.AddSourceLocation(E->getRParenLoc());
1190  Record.push_back(E->isConditionDependent() ? false : E->isConditionTrue());
1192 }
1193 
1194 void ASTStmtWriter::VisitGNUNullExpr(GNUNullExpr *E) {
1195  VisitExpr(E);
1196  Record.AddSourceLocation(E->getTokenLocation());
1198 }
1199 
1200 void ASTStmtWriter::VisitShuffleVectorExpr(ShuffleVectorExpr *E) {
1201  VisitExpr(E);
1202  Record.push_back(E->getNumSubExprs());
1203  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1204  Record.AddStmt(E->getExpr(I));
1205  Record.AddSourceLocation(E->getBuiltinLoc());
1206  Record.AddSourceLocation(E->getRParenLoc());
1208 }
1209 
1210 void ASTStmtWriter::VisitConvertVectorExpr(ConvertVectorExpr *E) {
1211  VisitExpr(E);
1212  Record.AddSourceLocation(E->getBuiltinLoc());
1213  Record.AddSourceLocation(E->getRParenLoc());
1214  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1215  Record.AddStmt(E->getSrcExpr());
1217 }
1218 
1219 void ASTStmtWriter::VisitBlockExpr(BlockExpr *E) {
1220  VisitExpr(E);
1221  Record.AddDeclRef(E->getBlockDecl());
1223 }
1224 
1225 void ASTStmtWriter::VisitGenericSelectionExpr(GenericSelectionExpr *E) {
1226  VisitExpr(E);
1227 
1228  Record.push_back(E->getNumAssocs());
1229  Record.push_back(E->ResultIndex);
1230  Record.AddSourceLocation(E->getGenericLoc());
1231  Record.AddSourceLocation(E->getDefaultLoc());
1232  Record.AddSourceLocation(E->getRParenLoc());
1233 
1234  Stmt **Stmts = E->getTrailingObjects<Stmt *>();
1235  // Add 1 to account for the controlling expression which is the first
1236  // expression in the trailing array of Stmt *. This is not needed for
1237  // the trailing array of TypeSourceInfo *.
1238  for (unsigned I = 0, N = E->getNumAssocs() + 1; I < N; ++I)
1239  Record.AddStmt(Stmts[I]);
1240 
1241  TypeSourceInfo **TSIs = E->getTrailingObjects<TypeSourceInfo *>();
1242  for (unsigned I = 0, N = E->getNumAssocs(); I < N; ++I)
1243  Record.AddTypeSourceInfo(TSIs[I]);
1244 
1246 }
1247 
1248 void ASTStmtWriter::VisitPseudoObjectExpr(PseudoObjectExpr *E) {
1249  VisitExpr(E);
1250  Record.push_back(E->getNumSemanticExprs());
1251 
1252  // Push the result index. Currently, this needs to exactly match
1253  // the encoding used internally for ResultIndex.
1254  unsigned result = E->getResultExprIndex();
1255  result = (result == PseudoObjectExpr::NoResult ? 0 : result + 1);
1256  Record.push_back(result);
1257 
1258  Record.AddStmt(E->getSyntacticForm());
1260  i = E->semantics_begin(), e = E->semantics_end(); i != e; ++i) {
1261  Record.AddStmt(*i);
1262  }
1264 }
1265 
1266 void ASTStmtWriter::VisitAtomicExpr(AtomicExpr *E) {
1267  VisitExpr(E);
1268  Record.push_back(E->getOp());
1269  for (unsigned I = 0, N = E->getNumSubExprs(); I != N; ++I)
1270  Record.AddStmt(E->getSubExprs()[I]);
1271  Record.AddSourceLocation(E->getBuiltinLoc());
1272  Record.AddSourceLocation(E->getRParenLoc());
1274 }
1275 
1276 //===----------------------------------------------------------------------===//
1277 // Objective-C Expressions and Statements.
1278 //===----------------------------------------------------------------------===//
1279 
1280 void ASTStmtWriter::VisitObjCStringLiteral(ObjCStringLiteral *E) {
1281  VisitExpr(E);
1282  Record.AddStmt(E->getString());
1283  Record.AddSourceLocation(E->getAtLoc());
1285 }
1286 
1287 void ASTStmtWriter::VisitObjCBoxedExpr(ObjCBoxedExpr *E) {
1288  VisitExpr(E);
1289  Record.AddStmt(E->getSubExpr());
1290  Record.AddDeclRef(E->getBoxingMethod());
1291  Record.AddSourceRange(E->getSourceRange());
1293 }
1294 
1295 void ASTStmtWriter::VisitObjCArrayLiteral(ObjCArrayLiteral *E) {
1296  VisitExpr(E);
1297  Record.push_back(E->getNumElements());
1298  for (unsigned i = 0; i < E->getNumElements(); i++)
1299  Record.AddStmt(E->getElement(i));
1301  Record.AddSourceRange(E->getSourceRange());
1303 }
1304 
1305 void ASTStmtWriter::VisitObjCDictionaryLiteral(ObjCDictionaryLiteral *E) {
1306  VisitExpr(E);
1307  Record.push_back(E->getNumElements());
1308  Record.push_back(E->HasPackExpansions);
1309  for (unsigned i = 0; i < E->getNumElements(); i++) {
1310  ObjCDictionaryElement Element = E->getKeyValueElement(i);
1311  Record.AddStmt(Element.Key);
1312  Record.AddStmt(Element.Value);
1313  if (E->HasPackExpansions) {
1314  Record.AddSourceLocation(Element.EllipsisLoc);
1315  unsigned NumExpansions = 0;
1316  if (Element.NumExpansions)
1317  NumExpansions = *Element.NumExpansions + 1;
1318  Record.push_back(NumExpansions);
1319  }
1320  }
1321 
1322  Record.AddDeclRef(E->getDictWithObjectsMethod());
1323  Record.AddSourceRange(E->getSourceRange());
1325 }
1326 
1327 void ASTStmtWriter::VisitObjCEncodeExpr(ObjCEncodeExpr *E) {
1328  VisitExpr(E);
1330  Record.AddSourceLocation(E->getAtLoc());
1331  Record.AddSourceLocation(E->getRParenLoc());
1333 }
1334 
1335 void ASTStmtWriter::VisitObjCSelectorExpr(ObjCSelectorExpr *E) {
1336  VisitExpr(E);
1337  Record.AddSelectorRef(E->getSelector());
1338  Record.AddSourceLocation(E->getAtLoc());
1339  Record.AddSourceLocation(E->getRParenLoc());
1341 }
1342 
1343 void ASTStmtWriter::VisitObjCProtocolExpr(ObjCProtocolExpr *E) {
1344  VisitExpr(E);
1345  Record.AddDeclRef(E->getProtocol());
1346  Record.AddSourceLocation(E->getAtLoc());
1347  Record.AddSourceLocation(E->ProtoLoc);
1348  Record.AddSourceLocation(E->getRParenLoc());
1350 }
1351 
1352 void ASTStmtWriter::VisitObjCIvarRefExpr(ObjCIvarRefExpr *E) {
1353  VisitExpr(E);
1354  Record.AddDeclRef(E->getDecl());
1355  Record.AddSourceLocation(E->getLocation());
1356  Record.AddSourceLocation(E->getOpLoc());
1357  Record.AddStmt(E->getBase());
1358  Record.push_back(E->isArrow());
1359  Record.push_back(E->isFreeIvar());
1361 }
1362 
1363 void ASTStmtWriter::VisitObjCPropertyRefExpr(ObjCPropertyRefExpr *E) {
1364  VisitExpr(E);
1365  Record.push_back(E->SetterAndMethodRefFlags.getInt());
1366  Record.push_back(E->isImplicitProperty());
1367  if (E->isImplicitProperty()) {
1370  } else {
1371  Record.AddDeclRef(E->getExplicitProperty());
1372  }
1373  Record.AddSourceLocation(E->getLocation());
1375  if (E->isObjectReceiver()) {
1376  Record.push_back(0);
1377  Record.AddStmt(E->getBase());
1378  } else if (E->isSuperReceiver()) {
1379  Record.push_back(1);
1380  Record.AddTypeRef(E->getSuperReceiverType());
1381  } else {
1382  Record.push_back(2);
1383  Record.AddDeclRef(E->getClassReceiver());
1384  }
1385 
1387 }
1388 
1389 void ASTStmtWriter::VisitObjCSubscriptRefExpr(ObjCSubscriptRefExpr *E) {
1390  VisitExpr(E);
1391  Record.AddSourceLocation(E->getRBracket());
1392  Record.AddStmt(E->getBaseExpr());
1393  Record.AddStmt(E->getKeyExpr());
1394  Record.AddDeclRef(E->getAtIndexMethodDecl());
1395  Record.AddDeclRef(E->setAtIndexMethodDecl());
1396 
1398 }
1399 
1400 void ASTStmtWriter::VisitObjCMessageExpr(ObjCMessageExpr *E) {
1401  VisitExpr(E);
1402  Record.push_back(E->getNumArgs());
1403  Record.push_back(E->getNumStoredSelLocs());
1404  Record.push_back(E->SelLocsKind);
1405  Record.push_back(E->isDelegateInitCall());
1406  Record.push_back(E->IsImplicit);
1407  Record.push_back((unsigned)E->getReceiverKind()); // FIXME: stable encoding
1408  switch (E->getReceiverKind()) {
1410  Record.AddStmt(E->getInstanceReceiver());
1411  break;
1412 
1415  break;
1416 
1419  Record.AddTypeRef(E->getSuperType());
1420  Record.AddSourceLocation(E->getSuperLoc());
1421  break;
1422  }
1423 
1424  if (E->getMethodDecl()) {
1425  Record.push_back(1);
1426  Record.AddDeclRef(E->getMethodDecl());
1427  } else {
1428  Record.push_back(0);
1429  Record.AddSelectorRef(E->getSelector());
1430  }
1431 
1432  Record.AddSourceLocation(E->getLeftLoc());
1433  Record.AddSourceLocation(E->getRightLoc());
1434 
1435  for (CallExpr::arg_iterator Arg = E->arg_begin(), ArgEnd = E->arg_end();
1436  Arg != ArgEnd; ++Arg)
1437  Record.AddStmt(*Arg);
1438 
1439  SourceLocation *Locs = E->getStoredSelLocs();
1440  for (unsigned i = 0, e = E->getNumStoredSelLocs(); i != e; ++i)
1441  Record.AddSourceLocation(Locs[i]);
1442 
1444 }
1445 
1446 void ASTStmtWriter::VisitObjCForCollectionStmt(ObjCForCollectionStmt *S) {
1447  VisitStmt(S);
1448  Record.AddStmt(S->getElement());
1449  Record.AddStmt(S->getCollection());
1450  Record.AddStmt(S->getBody());
1451  Record.AddSourceLocation(S->getForLoc());
1452  Record.AddSourceLocation(S->getRParenLoc());
1454 }
1455 
1456 void ASTStmtWriter::VisitObjCAtCatchStmt(ObjCAtCatchStmt *S) {
1457  VisitStmt(S);
1458  Record.AddStmt(S->getCatchBody());
1459  Record.AddDeclRef(S->getCatchParamDecl());
1460  Record.AddSourceLocation(S->getAtCatchLoc());
1461  Record.AddSourceLocation(S->getRParenLoc());
1463 }
1464 
1465 void ASTStmtWriter::VisitObjCAtFinallyStmt(ObjCAtFinallyStmt *S) {
1466  VisitStmt(S);
1467  Record.AddStmt(S->getFinallyBody());
1468  Record.AddSourceLocation(S->getAtFinallyLoc());
1470 }
1471 
1472 void ASTStmtWriter::VisitObjCAutoreleasePoolStmt(ObjCAutoreleasePoolStmt *S) {
1473  VisitStmt(S); // FIXME: no test coverage.
1474  Record.AddStmt(S->getSubStmt());
1475  Record.AddSourceLocation(S->getAtLoc());
1477 }
1478 
1479 void ASTStmtWriter::VisitObjCAtTryStmt(ObjCAtTryStmt *S) {
1480  VisitStmt(S);
1481  Record.push_back(S->getNumCatchStmts());
1482  Record.push_back(S->getFinallyStmt() != nullptr);
1483  Record.AddStmt(S->getTryBody());
1484  for (ObjCAtCatchStmt *C : S->catch_stmts())
1485  Record.AddStmt(C);
1486  if (S->getFinallyStmt())
1487  Record.AddStmt(S->getFinallyStmt());
1488  Record.AddSourceLocation(S->getAtTryLoc());
1490 }
1491 
1492 void ASTStmtWriter::VisitObjCAtSynchronizedStmt(ObjCAtSynchronizedStmt *S) {
1493  VisitStmt(S); // FIXME: no test coverage.
1494  Record.AddStmt(S->getSynchExpr());
1495  Record.AddStmt(S->getSynchBody());
1496  Record.AddSourceLocation(S->getAtSynchronizedLoc());
1498 }
1499 
1500 void ASTStmtWriter::VisitObjCAtThrowStmt(ObjCAtThrowStmt *S) {
1501  VisitStmt(S); // FIXME: no test coverage.
1502  Record.AddStmt(S->getThrowExpr());
1503  Record.AddSourceLocation(S->getThrowLoc());
1505 }
1506 
1507 void ASTStmtWriter::VisitObjCBoolLiteralExpr(ObjCBoolLiteralExpr *E) {
1508  VisitExpr(E);
1509  Record.push_back(E->getValue());
1510  Record.AddSourceLocation(E->getLocation());
1512 }
1513 
1514 void ASTStmtWriter::VisitObjCAvailabilityCheckExpr(ObjCAvailabilityCheckExpr *E) {
1515  VisitExpr(E);
1516  Record.AddSourceRange(E->getSourceRange());
1517  Record.AddVersionTuple(E->getVersion());
1519 }
1520 
1521 //===----------------------------------------------------------------------===//
1522 // C++ Expressions and Statements.
1523 //===----------------------------------------------------------------------===//
1524 
1525 void ASTStmtWriter::VisitCXXCatchStmt(CXXCatchStmt *S) {
1526  VisitStmt(S);
1527  Record.AddSourceLocation(S->getCatchLoc());
1528  Record.AddDeclRef(S->getExceptionDecl());
1529  Record.AddStmt(S->getHandlerBlock());
1531 }
1532 
1533 void ASTStmtWriter::VisitCXXTryStmt(CXXTryStmt *S) {
1534  VisitStmt(S);
1535  Record.push_back(S->getNumHandlers());
1536  Record.AddSourceLocation(S->getTryLoc());
1537  Record.AddStmt(S->getTryBlock());
1538  for (unsigned i = 0, e = S->getNumHandlers(); i != e; ++i)
1539  Record.AddStmt(S->getHandler(i));
1541 }
1542 
1543 void ASTStmtWriter::VisitCXXForRangeStmt(CXXForRangeStmt *S) {
1544  VisitStmt(S);
1545  Record.AddSourceLocation(S->getForLoc());
1546  Record.AddSourceLocation(S->getCoawaitLoc());
1547  Record.AddSourceLocation(S->getColonLoc());
1548  Record.AddSourceLocation(S->getRParenLoc());
1549  Record.AddStmt(S->getInit());
1550  Record.AddStmt(S->getRangeStmt());
1551  Record.AddStmt(S->getBeginStmt());
1552  Record.AddStmt(S->getEndStmt());
1553  Record.AddStmt(S->getCond());
1554  Record.AddStmt(S->getInc());
1555  Record.AddStmt(S->getLoopVarStmt());
1556  Record.AddStmt(S->getBody());
1558 }
1559 
1560 void ASTStmtWriter::VisitMSDependentExistsStmt(MSDependentExistsStmt *S) {
1561  VisitStmt(S);
1562  Record.AddSourceLocation(S->getKeywordLoc());
1563  Record.push_back(S->isIfExists());
1564  Record.AddNestedNameSpecifierLoc(S->getQualifierLoc());
1565  Record.AddDeclarationNameInfo(S->getNameInfo());
1566  Record.AddStmt(S->getSubStmt());
1568 }
1569 
1570 void ASTStmtWriter::VisitCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
1571  VisitCallExpr(E);
1572  Record.push_back(E->getOperator());
1573  Record.AddSourceRange(E->Range);
1575 }
1576 
1577 void ASTStmtWriter::VisitCXXMemberCallExpr(CXXMemberCallExpr *E) {
1578  VisitCallExpr(E);
1580 }
1581 
1582 void ASTStmtWriter::VisitCXXRewrittenBinaryOperator(
1584  VisitExpr(E);
1585  Record.push_back(E->isReversed());
1586  Record.AddStmt(E->getSemanticForm());
1588 }
1589 
1590 void ASTStmtWriter::VisitCXXConstructExpr(CXXConstructExpr *E) {
1591  VisitExpr(E);
1592 
1593  Record.push_back(E->getNumArgs());
1594  Record.push_back(E->isElidable());
1595  Record.push_back(E->hadMultipleCandidates());
1596  Record.push_back(E->isListInitialization());
1599  Record.push_back(E->getConstructionKind()); // FIXME: stable encoding
1600  Record.AddSourceLocation(E->getLocation());
1601  Record.AddDeclRef(E->getConstructor());
1602  Record.AddSourceRange(E->getParenOrBraceRange());
1603 
1604  for (unsigned I = 0, N = E->getNumArgs(); I != N; ++I)
1605  Record.AddStmt(E->getArg(I));
1606 
1608 }
1609 
1610 void ASTStmtWriter::VisitCXXInheritedCtorInitExpr(CXXInheritedCtorInitExpr *E) {
1611  VisitExpr(E);
1612  Record.AddDeclRef(E->getConstructor());
1613  Record.AddSourceLocation(E->getLocation());
1614  Record.push_back(E->constructsVBase());
1615  Record.push_back(E->inheritedFromVBase());
1617 }
1618 
1619 void ASTStmtWriter::VisitCXXTemporaryObjectExpr(CXXTemporaryObjectExpr *E) {
1620  VisitCXXConstructExpr(E);
1621  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1623 }
1624 
1625 void ASTStmtWriter::VisitLambdaExpr(LambdaExpr *E) {
1626  VisitExpr(E);
1627  Record.push_back(E->LambdaExprBits.NumCaptures);
1628  Record.AddSourceRange(E->IntroducerRange);
1629  Record.push_back(E->LambdaExprBits.CaptureDefault); // FIXME: stable encoding
1630  Record.AddSourceLocation(E->CaptureDefaultLoc);
1631  Record.push_back(E->LambdaExprBits.ExplicitParams);
1632  Record.push_back(E->LambdaExprBits.ExplicitResultType);
1633  Record.AddSourceLocation(E->ClosingBrace);
1634 
1635  // Add capture initializers.
1637  CEnd = E->capture_init_end();
1638  C != CEnd; ++C) {
1639  Record.AddStmt(*C);
1640  }
1641 
1642  // Don't serialize the body. It belongs to the call operator declaration.
1643  // LambdaExpr only stores a copy of the Stmt *.
1644 
1646 }
1647 
1648 void ASTStmtWriter::VisitCXXStdInitializerListExpr(CXXStdInitializerListExpr *E) {
1649  VisitExpr(E);
1650  Record.AddStmt(E->getSubExpr());
1652 }
1653 
1654 void ASTStmtWriter::VisitCXXNamedCastExpr(CXXNamedCastExpr *E) {
1655  VisitExplicitCastExpr(E);
1657  Record.AddSourceRange(E->getAngleBrackets());
1658 }
1659 
1660 void ASTStmtWriter::VisitCXXStaticCastExpr(CXXStaticCastExpr *E) {
1661  VisitCXXNamedCastExpr(E);
1663 }
1664 
1665 void ASTStmtWriter::VisitCXXDynamicCastExpr(CXXDynamicCastExpr *E) {
1666  VisitCXXNamedCastExpr(E);
1668 }
1669 
1670 void ASTStmtWriter::VisitCXXReinterpretCastExpr(CXXReinterpretCastExpr *E) {
1671  VisitCXXNamedCastExpr(E);
1673 }
1674 
1675 void ASTStmtWriter::VisitCXXConstCastExpr(CXXConstCastExpr *E) {
1676  VisitCXXNamedCastExpr(E);
1678 }
1679 
1680 void ASTStmtWriter::VisitCXXAddrspaceCastExpr(CXXAddrspaceCastExpr *E) {
1681  VisitCXXNamedCastExpr(E);
1683 }
1684 
1685 void ASTStmtWriter::VisitCXXFunctionalCastExpr(CXXFunctionalCastExpr *E) {
1686  VisitExplicitCastExpr(E);
1687  Record.AddSourceLocation(E->getLParenLoc());
1688  Record.AddSourceLocation(E->getRParenLoc());
1690 }
1691 
1692 void ASTStmtWriter::VisitBuiltinBitCastExpr(BuiltinBitCastExpr *E) {
1693  VisitExplicitCastExpr(E);
1694  Record.AddSourceLocation(E->getBeginLoc());
1695  Record.AddSourceLocation(E->getEndLoc());
1697 }
1698 
1699 void ASTStmtWriter::VisitUserDefinedLiteral(UserDefinedLiteral *E) {
1700  VisitCallExpr(E);
1701  Record.AddSourceLocation(E->UDSuffixLoc);
1703 }
1704 
1705 void ASTStmtWriter::VisitCXXBoolLiteralExpr(CXXBoolLiteralExpr *E) {
1706  VisitExpr(E);
1707  Record.push_back(E->getValue());
1708  Record.AddSourceLocation(E->getLocation());
1710 }
1711 
1712 void ASTStmtWriter::VisitCXXNullPtrLiteralExpr(CXXNullPtrLiteralExpr *E) {
1713  VisitExpr(E);
1714  Record.AddSourceLocation(E->getLocation());
1716 }
1717 
1718 void ASTStmtWriter::VisitCXXTypeidExpr(CXXTypeidExpr *E) {
1719  VisitExpr(E);
1720  Record.AddSourceRange(E->getSourceRange());
1721  if (E->isTypeOperand()) {
1724  } else {
1725  Record.AddStmt(E->getExprOperand());
1727  }
1728 }
1729 
1730 void ASTStmtWriter::VisitCXXThisExpr(CXXThisExpr *E) {
1731  VisitExpr(E);
1732  Record.AddSourceLocation(E->getLocation());
1733  Record.push_back(E->isImplicit());
1735 }
1736 
1737 void ASTStmtWriter::VisitCXXThrowExpr(CXXThrowExpr *E) {
1738  VisitExpr(E);
1739  Record.AddSourceLocation(E->getThrowLoc());
1740  Record.AddStmt(E->getSubExpr());
1741  Record.push_back(E->isThrownVariableInScope());
1743 }
1744 
1745 void ASTStmtWriter::VisitCXXDefaultArgExpr(CXXDefaultArgExpr *E) {
1746  VisitExpr(E);
1747  Record.AddDeclRef(E->getParam());
1748  Record.AddDeclRef(cast_or_null<Decl>(E->getUsedContext()));
1749  Record.AddSourceLocation(E->getUsedLocation());
1751 }
1752 
1753 void ASTStmtWriter::VisitCXXDefaultInitExpr(CXXDefaultInitExpr *E) {
1754  VisitExpr(E);
1755  Record.AddDeclRef(E->getField());
1756  Record.AddDeclRef(cast_or_null<Decl>(E->getUsedContext()));
1757  Record.AddSourceLocation(E->getExprLoc());
1759 }
1760 
1761 void ASTStmtWriter::VisitCXXBindTemporaryExpr(CXXBindTemporaryExpr *E) {
1762  VisitExpr(E);
1763  Record.AddCXXTemporary(E->getTemporary());
1764  Record.AddStmt(E->getSubExpr());
1766 }
1767 
1768 void ASTStmtWriter::VisitCXXScalarValueInitExpr(CXXScalarValueInitExpr *E) {
1769  VisitExpr(E);
1770  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1771  Record.AddSourceLocation(E->getRParenLoc());
1773 }
1774 
1775 void ASTStmtWriter::VisitCXXNewExpr(CXXNewExpr *E) {
1776  VisitExpr(E);
1777 
1778  Record.push_back(E->isArray());
1779  Record.push_back(E->hasInitializer());
1780  Record.push_back(E->getNumPlacementArgs());
1781  Record.push_back(E->isParenTypeId());
1782 
1783  Record.push_back(E->isGlobalNew());
1784  Record.push_back(E->passAlignment());
1786  Record.push_back(E->CXXNewExprBits.StoredInitializationStyle);
1787 
1788  Record.AddDeclRef(E->getOperatorNew());
1789  Record.AddDeclRef(E->getOperatorDelete());
1791  if (E->isParenTypeId())
1792  Record.AddSourceRange(E->getTypeIdParens());
1793  Record.AddSourceRange(E->getSourceRange());
1794  Record.AddSourceRange(E->getDirectInitRange());
1795 
1796  for (CXXNewExpr::arg_iterator I = E->raw_arg_begin(), N = E->raw_arg_end();
1797  I != N; ++I)
1798  Record.AddStmt(*I);
1799 
1801 }
1802 
1803 void ASTStmtWriter::VisitCXXDeleteExpr(CXXDeleteExpr *E) {
1804  VisitExpr(E);
1805  Record.push_back(E->isGlobalDelete());
1806  Record.push_back(E->isArrayForm());
1807  Record.push_back(E->isArrayFormAsWritten());
1809  Record.AddDeclRef(E->getOperatorDelete());
1810  Record.AddStmt(E->getArgument());
1811  Record.AddSourceLocation(E->getBeginLoc());
1812 
1814 }
1815 
1816 void ASTStmtWriter::VisitCXXPseudoDestructorExpr(CXXPseudoDestructorExpr *E) {
1817  VisitExpr(E);
1818 
1819  Record.AddStmt(E->getBase());
1820  Record.push_back(E->isArrow());
1821  Record.AddSourceLocation(E->getOperatorLoc());
1823  Record.AddTypeSourceInfo(E->getScopeTypeInfo());
1824  Record.AddSourceLocation(E->getColonColonLoc());
1825  Record.AddSourceLocation(E->getTildeLoc());
1826 
1827  // PseudoDestructorTypeStorage.
1829  if (E->getDestroyedTypeIdentifier())
1831  else
1833 
1835 }
1836 
1837 void ASTStmtWriter::VisitExprWithCleanups(ExprWithCleanups *E) {
1838  VisitExpr(E);
1839  Record.push_back(E->getNumObjects());
1840  for (auto &Obj : E->getObjects()) {
1841  if (auto *BD = Obj.dyn_cast<BlockDecl *>()) {
1843  Record.AddDeclRef(BD);
1844  } else if (auto *CLE = Obj.dyn_cast<CompoundLiteralExpr *>()) {
1846  Record.AddStmt(CLE);
1847  }
1848  }
1849 
1850  Record.push_back(E->cleanupsHaveSideEffects());
1851  Record.AddStmt(E->getSubExpr());
1853 }
1854 
1855 void ASTStmtWriter::VisitCXXDependentScopeMemberExpr(
1857  VisitExpr(E);
1858 
1859  // Don't emit anything here (or if you do you will have to update
1860  // the corresponding deserialization function).
1861 
1862  Record.push_back(E->hasTemplateKWAndArgsInfo());
1863  Record.push_back(E->getNumTemplateArgs());
1864  Record.push_back(E->hasFirstQualifierFoundInScope());
1865 
1866  if (E->hasTemplateKWAndArgsInfo()) {
1867  const ASTTemplateKWAndArgsInfo &ArgInfo =
1868  *E->getTrailingObjects<ASTTemplateKWAndArgsInfo>();
1869  AddTemplateKWAndArgsInfo(ArgInfo,
1870  E->getTrailingObjects<TemplateArgumentLoc>());
1871  }
1872 
1873  Record.push_back(E->isArrow());
1874  Record.AddSourceLocation(E->getOperatorLoc());
1875  Record.AddTypeRef(E->getBaseType());
1877  if (!E->isImplicitAccess())
1878  Record.AddStmt(E->getBase());
1879  else
1880  Record.AddStmt(nullptr);
1881 
1882  if (E->hasFirstQualifierFoundInScope())
1884 
1885  Record.AddDeclarationNameInfo(E->MemberNameInfo);
1887 }
1888 
1889 void
1890 ASTStmtWriter::VisitDependentScopeDeclRefExpr(DependentScopeDeclRefExpr *E) {
1891  VisitExpr(E);
1892 
1893  // Don't emit anything here, HasTemplateKWAndArgsInfo must be
1894  // emitted first.
1895 
1896  Record.push_back(E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo);
1897  if (E->DependentScopeDeclRefExprBits.HasTemplateKWAndArgsInfo) {
1898  const ASTTemplateKWAndArgsInfo &ArgInfo =
1899  *E->getTrailingObjects<ASTTemplateKWAndArgsInfo>();
1900  Record.push_back(ArgInfo.NumTemplateArgs);
1901  AddTemplateKWAndArgsInfo(ArgInfo,
1902  E->getTrailingObjects<TemplateArgumentLoc>());
1903  }
1904 
1906  Record.AddDeclarationNameInfo(E->NameInfo);
1908 }
1909 
1910 void
1911 ASTStmtWriter::VisitCXXUnresolvedConstructExpr(CXXUnresolvedConstructExpr *E) {
1912  VisitExpr(E);
1913  Record.push_back(E->getNumArgs());
1915  ArgI = E->arg_begin(), ArgE = E->arg_end(); ArgI != ArgE; ++ArgI)
1916  Record.AddStmt(*ArgI);
1917  Record.AddTypeSourceInfo(E->getTypeSourceInfo());
1918  Record.AddSourceLocation(E->getLParenLoc());
1919  Record.AddSourceLocation(E->getRParenLoc());
1921 }
1922 
1923 void ASTStmtWriter::VisitOverloadExpr(OverloadExpr *E) {
1924  VisitExpr(E);
1925 
1926  Record.push_back(E->getNumDecls());
1927  Record.push_back(E->hasTemplateKWAndArgsInfo());
1928  if (E->hasTemplateKWAndArgsInfo()) {
1929  const ASTTemplateKWAndArgsInfo &ArgInfo =
1931  Record.push_back(ArgInfo.NumTemplateArgs);
1933  }
1934 
1935  for (OverloadExpr::decls_iterator OvI = E->decls_begin(),
1936  OvE = E->decls_end();
1937  OvI != OvE; ++OvI) {
1938  Record.AddDeclRef(OvI.getDecl());
1939  Record.push_back(OvI.getAccess());
1940  }
1941 
1942  Record.AddDeclarationNameInfo(E->getNameInfo());
1944 }
1945 
1946 void ASTStmtWriter::VisitUnresolvedMemberExpr(UnresolvedMemberExpr *E) {
1947  VisitOverloadExpr(E);
1948  Record.push_back(E->isArrow());
1949  Record.push_back(E->hasUnresolvedUsing());
1950  Record.AddStmt(!E->isImplicitAccess() ? E->getBase() : nullptr);
1951  Record.AddTypeRef(E->getBaseType());
1952  Record.AddSourceLocation(E->getOperatorLoc());
1954 }
1955 
1956 void ASTStmtWriter::VisitUnresolvedLookupExpr(UnresolvedLookupExpr *E) {
1957  VisitOverloadExpr(E);
1958  Record.push_back(E->requiresADL());
1959  Record.push_back(E->isOverloaded());
1960  Record.AddDeclRef(E->getNamingClass());
1962 }
1963 
1964 void ASTStmtWriter::VisitTypeTraitExpr(TypeTraitExpr *E) {
1965  VisitExpr(E);
1966  Record.push_back(E->TypeTraitExprBits.NumArgs);
1967  Record.push_back(E->TypeTraitExprBits.Kind); // FIXME: Stable encoding
1968  Record.push_back(E->TypeTraitExprBits.Value);
1969  Record.AddSourceRange(E->getSourceRange());
1970  for (unsigned I = 0, N = E->getNumArgs(); I != N; ++I)
1971  Record.AddTypeSourceInfo(E->getArg(I));
1973 }
1974 
1975 void ASTStmtWriter::VisitArrayTypeTraitExpr(ArrayTypeTraitExpr *E) {
1976  VisitExpr(E);
1977  Record.push_back(E->getTrait());
1978  Record.push_back(E->getValue());
1979  Record.AddSourceRange(E->getSourceRange());
1981  Record.AddStmt(E->getDimensionExpression());
1983 }
1984 
1985 void ASTStmtWriter::VisitExpressionTraitExpr(ExpressionTraitExpr *E) {
1986  VisitExpr(E);
1987  Record.push_back(E->getTrait());
1988  Record.push_back(E->getValue());
1989  Record.AddSourceRange(E->getSourceRange());
1990  Record.AddStmt(E->getQueriedExpression());
1992 }
1993 
1994 void ASTStmtWriter::VisitCXXNoexceptExpr(CXXNoexceptExpr *E) {
1995  VisitExpr(E);
1996  Record.push_back(E->getValue());
1997  Record.AddSourceRange(E->getSourceRange());
1998  Record.AddStmt(E->getOperand());
2000 }
2001 
2002 void ASTStmtWriter::VisitPackExpansionExpr(PackExpansionExpr *E) {
2003  VisitExpr(E);
2004  Record.AddSourceLocation(E->getEllipsisLoc());
2005  Record.push_back(E->NumExpansions);
2006  Record.AddStmt(E->getPattern());
2008 }
2009 
2010 void ASTStmtWriter::VisitSizeOfPackExpr(SizeOfPackExpr *E) {
2011  VisitExpr(E);
2012  Record.push_back(E->isPartiallySubstituted() ? E->getPartialArguments().size()
2013  : 0);
2014  Record.AddSourceLocation(E->OperatorLoc);
2015  Record.AddSourceLocation(E->PackLoc);
2016  Record.AddSourceLocation(E->RParenLoc);
2017  Record.AddDeclRef(E->Pack);
2018  if (E->isPartiallySubstituted()) {
2019  for (const auto &TA : E->getPartialArguments())
2020  Record.AddTemplateArgument(TA);
2021  } else if (!E->isValueDependent()) {
2022  Record.push_back(E->getPackLength());
2023  }
2025 }
2026 
2027 void ASTStmtWriter::VisitSubstNonTypeTemplateParmExpr(
2029  VisitExpr(E);
2030  Record.AddDeclRef(E->getParameter());
2031  Record.push_back(E->isReferenceParameter());
2032  Record.AddSourceLocation(E->getNameLoc());
2033  Record.AddStmt(E->getReplacement());
2035 }
2036 
2037 void ASTStmtWriter::VisitSubstNonTypeTemplateParmPackExpr(
2039  VisitExpr(E);
2040  Record.AddDeclRef(E->getParameterPack());
2041  Record.AddTemplateArgument(E->getArgumentPack());
2044 }
2045 
2046 void ASTStmtWriter::VisitFunctionParmPackExpr(FunctionParmPackExpr *E) {
2047  VisitExpr(E);
2048  Record.push_back(E->getNumExpansions());
2049  Record.AddDeclRef(E->getParameterPack());
2051  for (FunctionParmPackExpr::iterator I = E->begin(), End = E->end();
2052  I != End; ++I)
2053  Record.AddDeclRef(*I);
2055 }
2056 
2057 void ASTStmtWriter::VisitMaterializeTemporaryExpr(MaterializeTemporaryExpr *E) {
2058  VisitExpr(E);
2059  Record.push_back(static_cast<bool>(E->getLifetimeExtendedTemporaryDecl()));
2062  else
2063  Record.AddStmt(E->getSubExpr());
2065 }
2066 
2067 void ASTStmtWriter::VisitCXXFoldExpr(CXXFoldExpr *E) {
2068  VisitExpr(E);
2069  Record.AddSourceLocation(E->LParenLoc);
2070  Record.AddSourceLocation(E->EllipsisLoc);
2071  Record.AddSourceLocation(E->RParenLoc);
2072  Record.push_back(E->NumExpansions);
2073  Record.AddStmt(E->SubExprs[0]);
2074  Record.AddStmt(E->SubExprs[1]);
2075  Record.AddStmt(E->SubExprs[2]);
2076  Record.push_back(E->Opcode);
2078 }
2079 
2080 void ASTStmtWriter::VisitOpaqueValueExpr(OpaqueValueExpr *E) {
2081  VisitExpr(E);
2082  Record.AddStmt(E->getSourceExpr());
2083  Record.AddSourceLocation(E->getLocation());
2084  Record.push_back(E->isUnique());
2086 }
2087 
2088 void ASTStmtWriter::VisitTypoExpr(TypoExpr *E) {
2089  VisitExpr(E);
2090  // TODO: Figure out sane writer behavior for a TypoExpr, if necessary
2091  llvm_unreachable("Cannot write TypoExpr nodes");
2092 }
2093 
2094 //===----------------------------------------------------------------------===//
2095 // CUDA Expressions and Statements.
2096 //===----------------------------------------------------------------------===//
2097 
2098 void ASTStmtWriter::VisitCUDAKernelCallExpr(CUDAKernelCallExpr *E) {
2099  VisitCallExpr(E);
2100  Record.AddStmt(E->getConfig());
2102 }
2103 
2104 //===----------------------------------------------------------------------===//
2105 // OpenCL Expressions and Statements.
2106 //===----------------------------------------------------------------------===//
2107 void ASTStmtWriter::VisitAsTypeExpr(AsTypeExpr *E) {
2108  VisitExpr(E);
2109  Record.AddSourceLocation(E->getBuiltinLoc());
2110  Record.AddSourceLocation(E->getRParenLoc());
2111  Record.AddStmt(E->getSrcExpr());
2113 }
2114 
2115 //===----------------------------------------------------------------------===//
2116 // Microsoft Expressions and Statements.
2117 //===----------------------------------------------------------------------===//
2118 void ASTStmtWriter::VisitMSPropertyRefExpr(MSPropertyRefExpr *E) {
2119  VisitExpr(E);
2120  Record.push_back(E->isArrow());
2121  Record.AddStmt(E->getBaseExpr());
2123  Record.AddSourceLocation(E->getMemberLoc());
2124  Record.AddDeclRef(E->getPropertyDecl());
2126 }
2127 
2128 void ASTStmtWriter::VisitMSPropertySubscriptExpr(MSPropertySubscriptExpr *E) {
2129  VisitExpr(E);
2130  Record.AddStmt(E->getBase());
2131  Record.AddStmt(E->getIdx());
2132  Record.AddSourceLocation(E->getRBracketLoc());
2134 }
2135 
2136 void ASTStmtWriter::VisitCXXUuidofExpr(CXXUuidofExpr *E) {
2137  VisitExpr(E);
2138  Record.AddSourceRange(E->getSourceRange());
2139  Record.AddDeclRef(E->getGuidDecl());
2140  if (E->isTypeOperand()) {
2143  } else {
2144  Record.AddStmt(E->getExprOperand());
2146  }
2147 }
2148 
2149 void ASTStmtWriter::VisitSEHExceptStmt(SEHExceptStmt *S) {
2150  VisitStmt(S);
2151  Record.AddSourceLocation(S->getExceptLoc());
2152  Record.AddStmt(S->getFilterExpr());
2153  Record.AddStmt(S->getBlock());
2155 }
2156 
2157 void ASTStmtWriter::VisitSEHFinallyStmt(SEHFinallyStmt *S) {
2158  VisitStmt(S);
2159  Record.AddSourceLocation(S->getFinallyLoc());
2160  Record.AddStmt(S->getBlock());
2162 }
2163 
2164 void ASTStmtWriter::VisitSEHTryStmt(SEHTryStmt *S) {
2165  VisitStmt(S);
2166  Record.push_back(S->getIsCXXTry());
2167  Record.AddSourceLocation(S->getTryLoc());
2168  Record.AddStmt(S->getTryBlock());
2169  Record.AddStmt(S->getHandler());
2171 }
2172 
2173 void ASTStmtWriter::VisitSEHLeaveStmt(SEHLeaveStmt *S) {
2174  VisitStmt(S);
2175  Record.AddSourceLocation(S->getLeaveLoc());
2177 }
2178 
2179 //===----------------------------------------------------------------------===//
2180 // OpenMP Directives.
2181 //===----------------------------------------------------------------------===//
2182 
2183 void ASTStmtWriter::VisitOMPCanonicalLoop(OMPCanonicalLoop *S) {
2184  VisitStmt(S);
2185  for (Stmt *SubStmt : S->SubStmts)
2186  Record.AddStmt(SubStmt);
2188 }
2189 
2190 void ASTStmtWriter::VisitOMPExecutableDirective(OMPExecutableDirective *E) {
2191  Record.writeOMPChildren(E->Data);
2192  Record.AddSourceLocation(E->getBeginLoc());
2193  Record.AddSourceLocation(E->getEndLoc());
2194 }
2195 
2196 void ASTStmtWriter::VisitOMPLoopBasedDirective(OMPLoopBasedDirective *D) {
2197  VisitStmt(D);
2198  Record.writeUInt32(D->getLoopsNumber());
2199  VisitOMPExecutableDirective(D);
2200 }
2201 
2202 void ASTStmtWriter::VisitOMPLoopDirective(OMPLoopDirective *D) {
2203  VisitOMPLoopBasedDirective(D);
2204 }
2205 
2206 void ASTStmtWriter::VisitOMPMetaDirective(OMPMetaDirective *D) {
2207  VisitStmt(D);
2208  Record.push_back(D->getNumClauses());
2209  VisitOMPExecutableDirective(D);
2211 }
2212 
2213 void ASTStmtWriter::VisitOMPParallelDirective(OMPParallelDirective *D) {
2214  VisitStmt(D);
2215  VisitOMPExecutableDirective(D);
2216  Record.writeBool(D->hasCancel());
2218 }
2219 
2220 void ASTStmtWriter::VisitOMPSimdDirective(OMPSimdDirective *D) {
2221  VisitOMPLoopDirective(D);
2223 }
2224 
2225 void ASTStmtWriter::VisitOMPLoopTransformationDirective(
2227  VisitOMPLoopBasedDirective(D);
2228  Record.writeUInt32(D->getNumGeneratedLoops());
2229 }
2230 
2231 void ASTStmtWriter::VisitOMPTileDirective(OMPTileDirective *D) {
2232  VisitOMPLoopTransformationDirective(D);
2234 }
2235 
2236 void ASTStmtWriter::VisitOMPUnrollDirective(OMPUnrollDirective *D) {
2237  VisitOMPLoopTransformationDirective(D);
2239 }
2240 
2241 void ASTStmtWriter::VisitOMPForDirective(OMPForDirective *D) {
2242  VisitOMPLoopDirective(D);
2243  Record.writeBool(D->hasCancel());
2245 }
2246 
2247 void ASTStmtWriter::VisitOMPForSimdDirective(OMPForSimdDirective *D) {
2248  VisitOMPLoopDirective(D);
2250 }
2251 
2252 void ASTStmtWriter::VisitOMPSectionsDirective(OMPSectionsDirective *D) {
2253  VisitStmt(D);
2254  VisitOMPExecutableDirective(D);
2255  Record.writeBool(D->hasCancel());
2257 }
2258 
2259 void ASTStmtWriter::VisitOMPSectionDirective(OMPSectionDirective *D) {
2260  VisitStmt(D);
2261  VisitOMPExecutableDirective(D);
2262  Record.writeBool(D->hasCancel());
2264 }
2265 
2266 void ASTStmtWriter::VisitOMPSingleDirective(OMPSingleDirective *D) {
2267  VisitStmt(D);
2268  VisitOMPExecutableDirective(D);
2270 }
2271 
2272 void ASTStmtWriter::VisitOMPMasterDirective(OMPMasterDirective *D) {
2273  VisitStmt(D);
2274  VisitOMPExecutableDirective(D);
2276 }
2277 
2278 void ASTStmtWriter::VisitOMPCriticalDirective(OMPCriticalDirective *D) {
2279  VisitStmt(D);
2280  VisitOMPExecutableDirective(D);
2283 }
2284 
2285 void ASTStmtWriter::VisitOMPParallelForDirective(OMPParallelForDirective *D) {
2286  VisitOMPLoopDirective(D);
2287  Record.writeBool(D->hasCancel());
2289 }
2290 
2291 void ASTStmtWriter::VisitOMPParallelForSimdDirective(
2293  VisitOMPLoopDirective(D);
2295 }
2296 
2297 void ASTStmtWriter::VisitOMPParallelMasterDirective(
2299  VisitStmt(D);
2300  VisitOMPExecutableDirective(D);
2302 }
2303 
2304 void ASTStmtWriter::VisitOMPParallelMaskedDirective(
2306  VisitStmt(D);
2307  VisitOMPExecutableDirective(D);
2309 }
2310 
2311 void ASTStmtWriter::VisitOMPParallelSectionsDirective(
2313  VisitStmt(D);
2314  VisitOMPExecutableDirective(D);
2315  Record.writeBool(D->hasCancel());
2317 }
2318 
2319 void ASTStmtWriter::VisitOMPTaskDirective(OMPTaskDirective *D) {
2320  VisitStmt(D);
2321  VisitOMPExecutableDirective(D);
2322  Record.writeBool(D->hasCancel());
2324 }
2325 
2326 void ASTStmtWriter::VisitOMPAtomicDirective(OMPAtomicDirective *D) {
2327  VisitStmt(D);
2328  VisitOMPExecutableDirective(D);
2329  Record.writeBool(D->isXLHSInRHSPart());
2330  Record.writeBool(D->isPostfixUpdate());
2331  Record.writeBool(D->isFailOnly());
2333 }
2334 
2335 void ASTStmtWriter::VisitOMPTargetDirective(OMPTargetDirective *D) {
2336  VisitStmt(D);
2337  VisitOMPExecutableDirective(D);
2339 }
2340 
2341 void ASTStmtWriter::VisitOMPTargetDataDirective(OMPTargetDataDirective *D) {
2342  VisitStmt(D);
2343  VisitOMPExecutableDirective(D);
2345 }
2346 
2347 void ASTStmtWriter::VisitOMPTargetEnterDataDirective(
2349  VisitStmt(D);
2350  VisitOMPExecutableDirective(D);
2352 }
2353 
2354 void ASTStmtWriter::VisitOMPTargetExitDataDirective(
2356  VisitStmt(D);
2357  VisitOMPExecutableDirective(D);
2359 }
2360 
2361 void ASTStmtWriter::VisitOMPTargetParallelDirective(
2363  VisitStmt(D);
2364  VisitOMPExecutableDirective(D);
2365  Record.writeBool(D->hasCancel());
2367 }
2368 
2369 void ASTStmtWriter::VisitOMPTargetParallelForDirective(
2371  VisitOMPLoopDirective(D);
2372  Record.writeBool(D->hasCancel());
2374 }
2375 
2376 void ASTStmtWriter::VisitOMPTaskyieldDirective(OMPTaskyieldDirective *D) {
2377  VisitStmt(D);
2378  VisitOMPExecutableDirective(D);
2380 }
2381 
2382 void ASTStmtWriter::VisitOMPBarrierDirective(OMPBarrierDirective *D) {
2383  VisitStmt(D);
2384  VisitOMPExecutableDirective(D);
2386 }
2387 
2388 void ASTStmtWriter::VisitOMPTaskwaitDirective(OMPTaskwaitDirective *D) {
2389  VisitStmt(D);
2390  Record.push_back(D->getNumClauses());
2391  VisitOMPExecutableDirective(D);
2393 }
2394 
2395 void ASTStmtWriter::VisitOMPTaskgroupDirective(OMPTaskgroupDirective *D) {
2396  VisitStmt(D);
2397  VisitOMPExecutableDirective(D);
2399 }
2400 
2401 void ASTStmtWriter::VisitOMPFlushDirective(OMPFlushDirective *D) {
2402  VisitStmt(D);
2403  VisitOMPExecutableDirective(D);
2405 }
2406 
2407 void ASTStmtWriter::VisitOMPDepobjDirective(OMPDepobjDirective *D) {
2408  VisitStmt(D);
2409  VisitOMPExecutableDirective(D);
2411 }
2412 
2413 void ASTStmtWriter::VisitOMPScanDirective(OMPScanDirective *D) {
2414  VisitStmt(D);
2415  VisitOMPExecutableDirective(D);
2417 }
2418 
2419 void ASTStmtWriter::VisitOMPOrderedDirective(OMPOrderedDirective *D) {
2420  VisitStmt(D);
2421  VisitOMPExecutableDirective(D);
2423 }
2424 
2425 void ASTStmtWriter::VisitOMPTeamsDirective(OMPTeamsDirective *D) {
2426  VisitStmt(D);
2427  VisitOMPExecutableDirective(D);
2429 }
2430 
2431 void ASTStmtWriter::VisitOMPCancellationPointDirective(
2433  VisitStmt(D);
2434  VisitOMPExecutableDirective(D);
2435  Record.writeEnum(D->getCancelRegion());
2437 }
2438 
2439 void ASTStmtWriter::VisitOMPCancelDirective(OMPCancelDirective *D) {
2440  VisitStmt(D);
2441  VisitOMPExecutableDirective(D);
2442  Record.writeEnum(D->getCancelRegion());
2444 }
2445 
2446 void ASTStmtWriter::VisitOMPTaskLoopDirective(OMPTaskLoopDirective *D) {
2447  VisitOMPLoopDirective(D);
2448  Record.writeBool(D->hasCancel());
2450 }
2451 
2452 void ASTStmtWriter::VisitOMPTaskLoopSimdDirective(OMPTaskLoopSimdDirective *D) {
2453  VisitOMPLoopDirective(D);
2455 }
2456 
2457 void ASTStmtWriter::VisitOMPMasterTaskLoopDirective(
2459  VisitOMPLoopDirective(D);
2460  Record.writeBool(D->hasCancel());
2462 }
2463 
2464 void ASTStmtWriter::VisitOMPMaskedTaskLoopDirective(
2466  VisitOMPLoopDirective(D);
2467  Record.writeBool(D->hasCancel());
2469 }
2470 
2471 void ASTStmtWriter::VisitOMPMasterTaskLoopSimdDirective(
2473  VisitOMPLoopDirective(D);
2475 }
2476 
2477 void ASTStmtWriter::VisitOMPMaskedTaskLoopSimdDirective(
2479  VisitOMPLoopDirective(D);
2481 }
2482 
2483 void ASTStmtWriter::VisitOMPParallelMasterTaskLoopDirective(
2485  VisitOMPLoopDirective(D);
2486  Record.writeBool(D->hasCancel());
2488 }
2489 
2490 void ASTStmtWriter::VisitOMPParallelMaskedTaskLoopDirective(
2492  VisitOMPLoopDirective(D);
2493  Record.writeBool(D->hasCancel());
2495 }
2496 
2497 void ASTStmtWriter::VisitOMPParallelMasterTaskLoopSimdDirective(
2499  VisitOMPLoopDirective(D);
2501 }
2502 
2503 void ASTStmtWriter::VisitOMPParallelMaskedTaskLoopSimdDirective(
2505  VisitOMPLoopDirective(D);
2507 }
2508 
2509 void ASTStmtWriter::VisitOMPDistributeDirective(OMPDistributeDirective *D) {
2510  VisitOMPLoopDirective(D);
2512 }
2513 
2514 void ASTStmtWriter::VisitOMPTargetUpdateDirective(OMPTargetUpdateDirective *D) {
2515  VisitStmt(D);
2516  VisitOMPExecutableDirective(D);
2518 }
2519 
2520 void ASTStmtWriter::VisitOMPDistributeParallelForDirective(
2522  VisitOMPLoopDirective(D);
2523  Record.writeBool(D->hasCancel());
2525 }
2526 
2527 void ASTStmtWriter::VisitOMPDistributeParallelForSimdDirective(
2529  VisitOMPLoopDirective(D);
2531 }
2532 
2533 void ASTStmtWriter::VisitOMPDistributeSimdDirective(
2535  VisitOMPLoopDirective(D);
2537 }
2538 
2539 void ASTStmtWriter::VisitOMPTargetParallelForSimdDirective(
2541  VisitOMPLoopDirective(D);
2543 }
2544 
2545 void ASTStmtWriter::VisitOMPTargetSimdDirective(OMPTargetSimdDirective *D) {
2546  VisitOMPLoopDirective(D);
2548 }
2549 
2550 void ASTStmtWriter::VisitOMPTeamsDistributeDirective(
2552  VisitOMPLoopDirective(D);
2554 }
2555 
2556 void ASTStmtWriter::VisitOMPTeamsDistributeSimdDirective(
2558  VisitOMPLoopDirective(D);
2560 }
2561 
2562 void ASTStmtWriter::VisitOMPTeamsDistributeParallelForSimdDirective(
2564  VisitOMPLoopDirective(D);
2566 }
2567 
2568 void ASTStmtWriter::VisitOMPTeamsDistributeParallelForDirective(
2570  VisitOMPLoopDirective(D);
2571  Record.writeBool(D->hasCancel());
2573 }
2574 
2575 void ASTStmtWriter::VisitOMPTargetTeamsDirective(OMPTargetTeamsDirective *D) {
2576  VisitStmt(D);
2577  VisitOMPExecutableDirective(D);
2579 }
2580 
2581 void ASTStmtWriter::VisitOMPTargetTeamsDistributeDirective(
2583  VisitOMPLoopDirective(D);
2585 }
2586 
2587 void ASTStmtWriter::VisitOMPTargetTeamsDistributeParallelForDirective(
2589  VisitOMPLoopDirective(D);
2590  Record.writeBool(D->hasCancel());
2592 }
2593 
2594 void ASTStmtWriter::VisitOMPTargetTeamsDistributeParallelForSimdDirective(
2596  VisitOMPLoopDirective(D);
2597  Code = serialization::
2599 }
2600 
2601 void ASTStmtWriter::VisitOMPTargetTeamsDistributeSimdDirective(
2603  VisitOMPLoopDirective(D);
2605 }
2606 
2607 void ASTStmtWriter::VisitOMPInteropDirective(OMPInteropDirective *D) {
2608  VisitStmt(D);
2609  VisitOMPExecutableDirective(D);
2611 }
2612 
2613 void ASTStmtWriter::VisitOMPDispatchDirective(OMPDispatchDirective *D) {
2614  VisitStmt(D);
2615  VisitOMPExecutableDirective(D);
2616  Record.AddSourceLocation(D->getTargetCallLoc());
2618 }
2619 
2620 void ASTStmtWriter::VisitOMPMaskedDirective(OMPMaskedDirective *D) {
2621  VisitStmt(D);
2622  VisitOMPExecutableDirective(D);
2624 }
2625 
2626 void ASTStmtWriter::VisitOMPGenericLoopDirective(OMPGenericLoopDirective *D) {
2627  VisitOMPLoopDirective(D);
2629 }
2630 
2631 void ASTStmtWriter::VisitOMPTeamsGenericLoopDirective(
2633  VisitOMPLoopDirective(D);
2635 }
2636 
2637 void ASTStmtWriter::VisitOMPTargetTeamsGenericLoopDirective(
2639  VisitOMPLoopDirective(D);
2641 }
2642 
2643 void ASTStmtWriter::VisitOMPParallelGenericLoopDirective(
2645  VisitOMPLoopDirective(D);
2647 }
2648 
2649 void ASTStmtWriter::VisitOMPTargetParallelGenericLoopDirective(
2651  VisitOMPLoopDirective(D);
2653 }
2654 
2655 //===----------------------------------------------------------------------===//
2656 // ASTWriter Implementation
2657 //===----------------------------------------------------------------------===//
2658 
2660  assert(SwitchCaseIDs.find(S) == SwitchCaseIDs.end() &&
2661  "SwitchCase recorded twice");
2662  unsigned NextID = SwitchCaseIDs.size();
2663  SwitchCaseIDs[S] = NextID;
2664  return NextID;
2665 }
2666 
2668  assert(SwitchCaseIDs.find(S) != SwitchCaseIDs.end() &&
2669  "SwitchCase hasn't been seen yet");
2670  return SwitchCaseIDs[S];
2671 }
2672 
2674  SwitchCaseIDs.clear();
2675 }
2676 
2677 /// Write the given substatement or subexpression to the
2678 /// bitstream.
2679 void ASTWriter::WriteSubStmt(Stmt *S) {
2680  RecordData Record;
2681  ASTStmtWriter Writer(*this, Record);
2682  ++NumStatements;
2683 
2684  if (!S) {
2685  Stream.EmitRecord(serialization::STMT_NULL_PTR, Record);
2686  return;
2687  }
2688 
2689  llvm::DenseMap<Stmt *, uint64_t>::iterator I = SubStmtEntries.find(S);
2690  if (I != SubStmtEntries.end()) {
2691  Record.push_back(I->second);
2692  Stream.EmitRecord(serialization::STMT_REF_PTR, Record);
2693  return;
2694  }
2695 
2696 #ifndef NDEBUG
2697  assert(!ParentStmts.count(S) && "There is a Stmt cycle!");
2698 
2699  struct ParentStmtInserterRAII {
2700  Stmt *S;
2701  llvm::DenseSet<Stmt *> &ParentStmts;
2702 
2703  ParentStmtInserterRAII(Stmt *S, llvm::DenseSet<Stmt *> &ParentStmts)
2704  : S(S), ParentStmts(ParentStmts) {
2705  ParentStmts.insert(S);
2706  }
2707  ~ParentStmtInserterRAII() {
2708  ParentStmts.erase(S);
2709  }
2710  };
2711 
2712  ParentStmtInserterRAII ParentStmtInserter(S, ParentStmts);
2713 #endif
2714 
2715  Writer.Visit(S);
2716 
2717  uint64_t Offset = Writer.Emit();
2718  SubStmtEntries[S] = Offset;
2719 }
2720 
2721 /// Flush all of the statements that have been added to the
2722 /// queue via AddStmt().
2723 void ASTRecordWriter::FlushStmts() {
2724  // We expect to be the only consumer of the two temporary statement maps,
2725  // assert that they are empty.
2726  assert(Writer->SubStmtEntries.empty() && "unexpected entries in sub-stmt map");
2727  assert(Writer->ParentStmts.empty() && "unexpected entries in parent stmt map");
2728 
2729  for (unsigned I = 0, N = StmtsToEmit.size(); I != N; ++I) {
2730  Writer->WriteSubStmt(StmtsToEmit[I]);
2731 
2732  assert(N == StmtsToEmit.size() && "record modified while being written!");
2733 
2734  // Note that we are at the end of a full expression. Any
2735  // expression records that follow this one are part of a different
2736  // expression.
2737  Writer->Stream.EmitRecord(serialization::STMT_STOP, ArrayRef<uint32_t>());
2738 
2739  Writer->SubStmtEntries.clear();
2740  Writer->ParentStmts.clear();
2741  }
2742 
2743  StmtsToEmit.clear();
2744 }
2745 
2746 void ASTRecordWriter::FlushSubStmts() {
2747  // For a nested statement, write out the substatements in reverse order (so
2748  // that a simple stack machine can be used when loading), and don't emit a
2749  // STMT_STOP after each one.
2750  for (unsigned I = 0, N = StmtsToEmit.size(); I != N; ++I) {
2751  Writer->WriteSubStmt(StmtsToEmit[N - I - 1]);
2752  assert(N == StmtsToEmit.size() && "record modified while being written!");
2753  }
2754 
2755  StmtsToEmit.clear();
2756 }
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:5474
clang::UnaryOperator::getStoredFPFeatures
FPOptionsOverride getStoredFPFeatures() const
Get FPFeatures from trailing storage.
Definition: Expr.h:2309
clang::ObjCSubscriptRefExpr::setAtIndexMethodDecl
ObjCMethodDecl * setAtIndexMethodDecl() const
Definition: ExprObjC.h:890
clang::ASTWriter::getCharacterLiteralAbbrev
unsigned getCharacterLiteralAbbrev() const
Definition: ASTWriter.h:699
clang::IndirectGotoStmt
IndirectGotoStmt - This represents an indirect goto.
Definition: Stmt.h:2676
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:3368
clang::UnaryExprOrTypeTraitExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:2625
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:1831
clang::PackExpansionExpr::getPattern
Expr * getPattern()
Retrieve the pattern of the pack expansion.
Definition: ExprCXX.h:4097
clang::serialization::EXPR_CHARACTER_LITERAL
@ EXPR_CHARACTER_LITERAL
A CharacterLiteral record.
Definition: ASTBitCodes.h:1617
clang::ExpressionTraitExpr
An expression trait intrinsic.
Definition: ExprCXX.h:2840
clang::serialization::STMT_CXX_TRY
@ STMT_CXX_TRY
A CXXTryStmt record.
Definition: ASTBitCodes.h:1799
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:2349
clang::serialization::STMT_MS_DEPENDENT_EXISTS
@ STMT_MS_DEPENDENT_EXISTS
Definition: ASTBitCodes.h:1987
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:4088
clang::MatrixSubscriptExpr
MatrixSubscriptExpr - Matrix subscript expression for the MatrixType extension.
Definition: Expr.h:2723
clang::SubstNonTypeTemplateParmExpr
Represents a reference to a non-type template parameter that has been substituted with a template arg...
Definition: ExprCXX.h:4262
clang::TypeTraitExpr::getArg
TypeSourceInfo * getArg(unsigned I) const
Retrieve the Ith argument.
Definition: ExprCXX.h:2734
clang::RecoveryExpr::children
child_range children()
Definition: Expr.h:6438
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:4952
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:1941
clang::VAArgExpr::isMicrosoftABI
bool isMicrosoftABI() const
Returns whether this is really a Win64 ABI va_arg expression.
Definition: Expr.h:4654
clang::DeclRefExpr::getFoundDecl
NamedDecl * getFoundDecl()
Get the NamedDecl through which this reference occurred.
Definition: Expr.h:1332
clang::VAArgExpr::getWrittenTypeInfo
TypeSourceInfo * getWrittenTypeInfo() const
Definition: Expr.h:4657
clang::AtomicExpr
AtomicExpr - Variadic atomic builtins: __atomic_exchange, __atomic_fetch_*, __atomic_load,...
Definition: Expr.h:6234
clang::OMPMasterTaskLoopSimdDirective
This represents '#pragma omp master taskloop simd' directive.
Definition: StmtOpenMP.h:3950
clang::CaseStmt
CaseStmt - Represent a case statement.
Definition: Stmt.h:1599
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:2615
clang::ASTConstraintSatisfaction
The result of a constraint satisfaction check, containing the necessary information to diagnose an un...
Definition: ASTConcept.h:76
clang::serialization::EXPR_OBJC_PROPERTY_REF_EXPR
@ EXPR_OBJC_PROPERTY_REF_EXPR
An ObjCPropertyRefExpr record.
Definition: ASTBitCodes.h:1749
clang::ImaginaryLiteral
ImaginaryLiteral - We support imaginary integer and floating point literals, like "1....
Definition: Expr.h:1718
clang::serialization::EXPR_PSEUDO_OBJECT
@ EXPR_PSEUDO_OBJECT
A PseudoObjectExpr record.
Definition: ASTBitCodes.h:1719
clang::ExpressionTraitExpr::getValue
bool getValue() const
Definition: ExprCXX.h:2879
clang::ObjCPropertyRefExpr::getImplicitPropertySetter
ObjCMethodDecl * getImplicitPropertySetter() const
Definition: ExprObjC.h:713
clang::serialization::STMT_DECL
@ STMT_DECL
A DeclStmt record.
Definition: ASTBitCodes.h:1584
clang::UnresolvedMemberExpr::getBaseType
QualType getBaseType() const
Definition: ExprCXX.h:3913
clang::AtomicExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:6327
clang::concepts::Requirement::SubstitutionDiagnostic::DiagLoc
SourceLocation DiagLoc
Definition: ExprConcepts.h:168
clang::UnresolvedLookupExpr::requiresADL
bool requiresADL() const
True if this declaration should be extended by argument-dependent lookup.
Definition: ExprCXX.h:3158
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:2770
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:698
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:3048
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:2354
clang::OverloadExpr::getTrailingASTTemplateKWAndArgsInfo
ASTTemplateKWAndArgsInfo * getTrailingASTTemplateKWAndArgsInfo()
Return the optional template keyword and arguments info.
Definition: ExprCXX.h:3987
clang::CallExpr::arg_begin
arg_iterator arg_begin()
Definition: Expr.h:3045
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:1716
clang::AsTypeExpr
AsTypeExpr - Clang builtin function __builtin_astype [OpenCL 6.2.4.2] This AST node provides support ...
Definition: Expr.h:6031
clang::OffsetOfExpr
OffsetOfExpr - [C99 7.17] - This represents an expression of the form offsetof(record-type,...
Definition: Expr.h:2444
clang::serialization::STMT_CAPTURED
@ STMT_CAPTURED
A CapturedStmt record.
Definition: ASTBitCodes.h:1587
clang::PackExpansionExpr::getEllipsisLoc
SourceLocation getEllipsisLoc() const
Retrieve the location of the ellipsis that describes this pack expansion.
Definition: ExprCXX.h:4104
clang::serialization::STMT_OMP_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1975
clang::serialization::STMT_OMP_TARGET_DATA_DIRECTIVE
@ STMT_OMP_TARGET_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1937
clang::serialization::STMT_CASE
@ STMT_CASE
A CaseStmt record.
Definition: ASTBitCodes.h:1542
clang::CXXPseudoDestructorExpr
Represents a C++ pseudo-destructor (C++ [expr.pseudo]).
Definition: ExprCXX.h:2534
clang::DeclRefExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1303
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:5284
clang::serialization::EXPR_INTEGER_LITERAL
@ EXPR_INTEGER_LITERAL
An IntegerLiteral record.
Definition: ASTBitCodes.h:1605
clang::ObjCDictionaryElement
An element in an Objective-C dictionary literal.
Definition: ExprObjC.h:263
clang::VAArgExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:4649
clang::MemberExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: Expr.h:3329
clang::serialization::EXPR_SHUFFLE_VECTOR
@ EXPR_SHUFFLE_VECTOR
A ShuffleVectorExpr record.
Definition: ASTBitCodes.h:1707
clang::AddrLabelExpr::getAmpAmpLoc
SourceLocation getAmpAmpLoc() const
Definition: Expr.h:4319
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:6168
clang::SwitchStmt
SwitchStmt - This represents a 'switch' stmt.
Definition: Stmt.h:2182
clang::CXXScalarValueInitExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: ExprCXX.h:2112
clang::serialization::STMT_OBJC_AT_THROW
@ STMT_OBJC_AT_THROW
An ObjCAtThrowStmt record.
Definition: ASTBitCodes.h:1782
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:2749
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:5635
clang::VAArgExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4663
clang::serialization::EXPR_CXX_UNRESOLVED_LOOKUP
@ EXPR_CXX_UNRESOLVED_LOOKUP
Definition: ASTBitCodes.h:1872
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:4242
clang::IntegerLiteral::getLocation
SourceLocation getLocation() const
Retrieve the location of the literal.
Definition: Expr.h:1520
clang::serialization::EXPR_OMP_ARRAY_SECTION
@ EXPR_OMP_ARRAY_SECTION
Definition: ASTBitCodes.h:1980
clang::Stmt::CXXNewExprBits
CXXNewExprBitfields CXXNewExprBits
Definition: Stmt.h:1057
clang::WhileStmt
WhileStmt - This represents a 'while' stmt.
Definition: Stmt.h:2373
clang::OffsetOfExpr::getIndexExpr
Expr * getIndexExpr(unsigned Idx)
Definition: Expr.h:2507
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:4723
clang::NullStmt
NullStmt - This is the null statement ";": C99 6.8.3p3.
Definition: Stmt.h:1371
clang::serialization::STMT_NULL
@ STMT_NULL
A NullStmt record.
Definition: ASTBitCodes.h:1536
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:1910
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:1871
clang::serialization::STMT_MSASM
@ STMT_MSASM
A MS-style AsmStmt record.
Definition: ASTBitCodes.h:1593
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:1970
clang::CXXReinterpretCastExpr
A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]).
Definition: ExprCXX.h:521
clang::CXXNoexceptExpr::getValue
bool getValue() const
Definition: ExprCXX.h:4037
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:2731
clang::CXXConstructExpr::getNumArgs
unsigned getNumArgs() const
Return the number of arguments to the constructor call.
Definition: ExprCXX.h:1608
clang::serialization::EXPR_CONVERT_VECTOR
@ EXPR_CONVERT_VECTOR
A ConvertVectorExpr record.
Definition: ASTBitCodes.h:1710
clang::BinaryConditionalOperator::getTrueExpr
Expr * getTrueExpr() const
getTrueExpr - Return the subexpression which will be evaluated if the condition evaluates to true; th...
Definition: Expr.h:4254
clang::ConditionalOperator::getLHS
Expr * getLHS() const
Definition: Expr.h:4179
clang::OpaqueValueExpr::getLocation
SourceLocation getLocation() const
Retrieve the location of this expression.
Definition: Expr.h:1157
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:2667
clang::CXXConstructExpr::getParenOrBraceRange
SourceRange getParenOrBraceRange() const
Definition: ExprCXX.h:1628
clang::BuiltinBitCastExpr::getBeginLoc
SourceLocation getBeginLoc() const LLVM_READONLY
Definition: ExprCXX.h:4914
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:1882
clang::FloatingLiteral::getValue
llvm::APFloat getValue() const
Definition: Expr.h:1653
clang::DesignatedInitUpdateExpr::getBase
Expr * getBase() const
Definition: Expr.h:5386
clang::StringLiteral::isPascal
bool isPascal() const
Definition: Expr.h:1891
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:1869
clang::InitListExpr::getRBraceLoc
SourceLocation getRBraceLoc() const
Definition: Expr.h:4942
clang::CXXThrowExpr::isThrownVariableInScope
bool isThrownVariableInScope() const
Determines whether the variable thrown by this expression (if any!) is within the innermost try block...
Definition: ExprCXX.h:1211
clang::serialization::EXPR_CSTYLE_CAST
@ EXPR_CSTYLE_CAST
A CStyleCastExpr record.
Definition: ASTBitCodes.h:1659
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:1653
clang::RequiresExpr::getRequirements
ArrayRef< concepts::Requirement * > getRequirements() const
Definition: ExprConcepts.h:520
clang::DesignatedInitExpr
Represents a C99 designated initializer expression.
Definition: Expr.h:5029
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:209
clang::SubstNonTypeTemplateParmPackExpr
Represents a reference to a non-type template parameter pack that has been substituted with a non-tem...
Definition: ExprCXX.h:4329
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:4426
llvm::SmallVector< uint64_t, 64 >
clang::OMPCanonicalLoop
Representation of an OpenMP canonical loop.
Definition: StmtOpenMP.h:142
clang::serialization::STMT_OMP_MASTER_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1949
clang::OverloadExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Fetches the nested-name qualifier with source-location information, if one was given.
Definition: ExprCXX.h:3018
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:976
clang::OMPIteratorExpr::getIteratorRange
IteratorRange getIteratorRange(unsigned I)
Gets the iterator range for the given iterator.
Definition: Expr.cpp:4943
clang::MSPropertyRefExpr
A member reference to an MSPropertyDecl.
Definition: ExprCXX.h:923
clang::CallExpr::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:2963
clang::MaterializeTemporaryExpr::getSubExpr
Expr * getSubExpr() const
Retrieve the temporary-generating subexpression whose value will be materialized into a glvalue.
Definition: ExprCXX.h:4496
clang::AsTypeExpr::getSrcExpr
Expr * getSrcExpr() const
getSrcExpr - Return the Expr to be converted.
Definition: Expr.h:6050
clang::AtomicExpr::getOp
AtomicOp getOp() const
Definition: Expr.h:6298
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:4766
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1971
clang::ParenListExpr
Definition: Expr.h:5537
clang::SourceRange::getBegin
SourceLocation getBegin() const
Definition: SourceLocation.h:219
clang::CharacterLiteral::getValue
unsigned getValue() const
Definition: Expr.h:1618
clang::OffsetOfNode::getKind
Kind getKind() const
Determine what kind of offsetof node this is.
Definition: Expr.h:2394
clang::DesignatedInitExpr::getEqualOrColonLoc
SourceLocation getEqualOrColonLoc() const
Retrieve the location of the '=' that precedes the initializer value itself, if present.
Definition: Expr.h:5257
clang::serialization::EXPR_OBJC_BOOL_LITERAL
@ EXPR_OBJC_BOOL_LITERAL
An ObjCBoolLiteralExpr record.
Definition: ASTBitCodes.h:1788
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:1614
clang::ShuffleVectorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4418
clang::CXXNewExpr::getNumPlacementArgs
unsigned getNumPlacementArgs() const
Definition: ExprCXX.h:2292
clang::ExprWithCleanups::getNumObjects
unsigned getNumObjects() const
Definition: ExprCXX.h:3392
clang::CastExpr::getSubExpr
Expr * getSubExpr()
Definition: Expr.h:3525
clang::NoInitExpr
Represents a place-holder for an object not to be initialized by anything.
Definition: Expr.h:5330
clang::CXXNewExpr::getOperatorNew
FunctionDecl * getOperatorNew() const
Definition: ExprCXX.h:2257
clang::CXXDeleteExpr::isArrayForm
bool isArrayForm() const
Definition: ExprCXX.h:2441
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:1434
clang::UnaryExprOrTypeTraitExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:2622
clang::OffsetOfNode::Array
@ Array
An index into an array.
Definition: Expr.h:2345
clang::CXXNewExpr::getTypeIdParens
SourceRange getTypeIdParens() const
Definition: ExprCXX.h:2310
clang::OMPTaskwaitDirective
This represents '#pragma omp taskwait' directive.
Definition: StmtOpenMP.h:2618
clang::CStyleCastExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:3773
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:152
clang::UnresolvedMemberExpr
Represents a C++ member access expression for which lookup produced a set of overloaded functions.
Definition: ExprCXX.h:3827
clang::CXXConstructExpr::requiresZeroInitialization
bool requiresZeroInitialization() const
Whether this construction first requires zero-initialization before the initializer is called.
Definition: ExprCXX.h:1571
clang::serialization::STMT_FOR
@ STMT_FOR
A ForStmt record.
Definition: ASTBitCodes.h:1566
clang::serialization::STMT_OMP_TEAMS_GENERIC_LOOP_DIRECTIVE
@ STMT_OMP_TEAMS_GENERIC_LOOP_DIRECTIVE
Definition: ASTBitCodes.h:1976
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:1059
clang::serialization::EXPR_OBJC_ARRAY_LITERAL
@ EXPR_OBJC_ARRAY_LITERAL
Definition: ASTBitCodes.h:1733
clang::CXXNewExpr::isArray
bool isArray() const
Definition: ExprCXX.h:2262
clang::serialization::STMT_OBJC_AT_SYNCHRONIZED
@ STMT_OBJC_AT_SYNCHRONIZED
An ObjCAtSynchronizedStmt record.
Definition: ASTBitCodes.h:1779
clang::CompoundLiteralExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: Expr.h:3438
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:1899
clang::serialization::EXPR_IMPLICIT_VALUE_INIT
@ EXPR_IMPLICIT_VALUE_INIT
An ImplicitValueInitExpr record.
Definition: ASTBitCodes.h:1686
clang::ArrayTypeTraitExpr::getValue
uint64_t getValue() const
Definition: ExprCXX.h:2815
clang::serialization::EXPR_CXX_FUNCTIONAL_CAST
@ EXPR_CXX_FUNCTIONAL_CAST
A CXXFunctionalCastExpr record.
Definition: ASTBitCodes.h:1838
clang::PseudoObjectExpr::getNumSemanticExprs
unsigned getNumSemanticExprs() const
Definition: Expr.h:6164
clang::TypeTraitExpr
A type trait used in the implementation of various C++11 and Library TR1 trait templates.
Definition: ExprCXX.h:2682
clang::serialization::EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM_PACK
Definition: ASTBitCodes.h:1885
clang::DependentScopeDeclRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieve the nested-name-specifier that qualifies the name, with source location information.
Definition: ExprCXX.h:3260
clang::CXXTypeidExpr
A C++ typeid expression (C++ [expr.typeid]), which gets the type_info that corresponds to the supplie...
Definition: ExprCXX.h:839
clang::UnresolvedSetIterator
The iterator over UnresolvedSets.
Definition: UnresolvedSet.h:32
clang::concepts::Requirement::SubstitutionDiagnostic
Definition: ExprConcepts.h:163
clang::FieldDecl
Represents a member of a struct/union/class.
Definition: Decl.h:2862
clang::serialization::EXPR_OBJC_MESSAGE_EXPR
@ EXPR_OBJC_MESSAGE_EXPR
An ObjCMessageExpr record.
Definition: ASTBitCodes.h:1758
clang::RequiresExpr
C++2a [expr.prim.req]: A requires-expression provides a concise way to express requirements on templa...
Definition: ExprConcepts.h:477
clang::serialization::STMT_COMPOUND
@ STMT_COMPOUND
A CompoundStmt record.
Definition: ASTBitCodes.h:1539
clang::OverloadExpr::hasTemplateKWAndArgsInfo
bool hasTemplateKWAndArgsInfo() const
Definition: ExprCXX.h:2941
clang::OffsetOfNode::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Retrieve the source range that covers this offsetof node.
Definition: Expr.h:2425
clang::CXXInheritedCtorInitExpr::getConstructor
CXXConstructorDecl * getConstructor() const
Get the constructor that this expression will call.
Definition: ExprCXX.h:1686
clang::ParmVarDecl
Represents a parameter to a function.
Definition: Decl.h:1680
clang::MSPropertyRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Definition: ExprCXX.h:980
clang::Stmt::ConstantExprBits
ConstantExprBitfields ConstantExprBits
Definition: Stmt.h:1025
DeclCXX.h
clang::DeclRefExpr::isNonOdrUse
NonOdrUseReason isNonOdrUse() const
Is this expression a non-odr-use reference, and if so, why?
Definition: Expr.h:1419
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:4249
clang::UnresolvedMemberExpr::getBase
Expr * getBase()
Retrieve the base object of this member expressions, e.g., the x in x.m.
Definition: ExprCXX.h:3904
clang::serialization::STMT_CONTINUE
@ STMT_CONTINUE
A ContinueStmt record.
Definition: ASTBitCodes.h:1575
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:1106
clang::CXXNewExpr
Represents a new-expression for memory allocation and constructor calls, e.g: "new CXXNewExpr(foo)".
Definition: ExprCXX.h:2139
clang::StringLiteral::getStrTokenLoc
SourceLocation getStrTokenLoc(unsigned TokNum) const
Get one of the string literal token.
Definition: Expr.h:1914
clang::IfStmt
IfStmt - This represents an if/then/else.
Definition: Stmt.h:1936
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:6421
clang::serialization::EXPR_STMT
@ EXPR_STMT
A StmtExpr record.
Definition: ASTBitCodes.h:1695
clang::ParenExpr::getLParen
SourceLocation getLParen() const
Get the location of the left parentheses '('.
Definition: Expr.h:2135
clang::OMPExecutableDirective::getEndLoc
SourceLocation getEndLoc() const
Returns ending location of directive.
Definition: StmtOpenMP.h:490
clang::AddrLabelExpr::getLabelLoc
SourceLocation getLabelLoc() const
Definition: Expr.h:4321
clang::serialization::EXPR_CXX_DELETE
@ EXPR_CXX_DELETE
Definition: ASTBitCodes.h:1863
clang::GotoStmt
GotoStmt - This represents a direct goto.
Definition: Stmt.h:2637
clang::StmtExpr::getSubStmt
CompoundStmt * getSubStmt()
Definition: Expr.h:4366
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:4791
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:2414
clang::DeclGroupRef::begin
iterator begin()
Definition: DeclGroup.h:99
clang::serialization::EXPR_CXX_TYPEID_TYPE
@ EXPR_CXX_TYPEID_TYPE
Definition: ASTBitCodes.h:1854
clang::serialization::EXPR_CXX_PSEUDO_DESTRUCTOR
@ EXPR_CXX_PSEUDO_DESTRUCTOR
Definition: ASTBitCodes.h:1864
clang::OffsetOfNode::getFieldName
IdentifierInfo * getFieldName() const
For a field or identifier offsetof node, returns the name of the field.
Definition: Expr.cpp:1591
clang::ExpressionTraitExpr::getTrait
ExpressionTrait getTrait() const
Definition: ExprCXX.h:2875
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:6937
clang::AsTypeExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
getBuiltinLoc - Return the location of the __builtin_astype token.
Definition: Expr.h:6053
clang::serialization::STMT_OMP_DISTRIBUTE_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_DIRECTIVE
Definition: ASTBitCodes.h:1956
clang::serialization::STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1923
clang::serialization::STMT_OMP_ORDERED_DIRECTIVE
@ STMT_OMP_ORDERED_DIRECTIVE
Definition: ASTBitCodes.h:1934
clang::serialization::EXPR_CXX_SCALAR_VALUE_INIT
@ EXPR_CXX_SCALAR_VALUE_INIT
Definition: ASTBitCodes.h:1861
clang::UnaryOperator
UnaryOperator - This represents the unary-expression's (except sizeof and alignof),...
Definition: Expr.h:2163
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:1683
clang::CoroutineBodyStmt::children
child_range children()
Definition: StmtCXX.h:431
clang::serialization::STMT_OMP_MASKED_DIRECTIVE
@ STMT_OMP_MASKED_DIRECTIVE
Definition: ASTBitCodes.h:1974
clang::OffsetOfExpr::getNumExpressions
unsigned getNumExpressions() const
Definition: Expr.h:2522
clang::serialization::STMT_OMP_META_DIRECTIVE
@ STMT_OMP_META_DIRECTIVE
Definition: ASTBitCodes.h:1909
clang::ObjCBoolLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprObjC.h:107
clang::CallExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:3115
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:1968
clang::serialization::EXPR_COAWAIT
@ EXPR_COAWAIT
Definition: ASTBitCodes.h:1991
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:1702
clang::CXXStaticCastExpr
A C++ static_cast expression (C++ [expr.static.cast]).
Definition: ExprCXX.h:431
clang::ObjCForCollectionStmt
Represents Objective-C's collection statement.
Definition: StmtObjC.h:23
clang::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:4365
clang::ArrayInitLoopExpr
Represents a loop initializing the elements of an array.
Definition: Expr.h:5421
clang::PseudoObjectExpr::semantics_end
semantics_iterator semantics_end()
Definition: Expr.h:6174
clang::BinaryOperator::getOpcode
Opcode getOpcode() const
Definition: Expr.h:3851
clang::UnaryExprOrTypeTraitExpr::getArgumentExpr
Expr * getArgumentExpr()
Definition: Expr.h:2599
clang::serialization::STMT_OMP_SIMD_DIRECTIVE
@ STMT_OMP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1912
clang::MSPropertyRefExpr::getPropertyDecl
MSPropertyDecl * getPropertyDecl() const
Definition: ExprCXX.h:977
clang::ASTRecordWriter::AddTemplateParameterList
void AddTemplateParameterList(const TemplateParameterList *TemplateParams)
Emit a template parameter list.
Definition: ASTWriter.cpp:5608
clang::ASTRecordWriter::AddTypeSourceInfo
void AddTypeSourceInfo(TypeSourceInfo *TInfo)
Emits a reference to a declarator info.
Definition: ASTWriter.cpp:5352
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:4035
clang::BinaryOperator::getStoredFPFeatures
FPOptionsOverride getStoredFPFeatures() const
Get FPFeatures from trailing storage.
Definition: Expr.h:3993
clang::serialization::EXPR_CXX_NOEXCEPT
@ EXPR_CXX_NOEXCEPT
Definition: ASTBitCodes.h:1875
clang::AtomicExpr::getSubExprs
Expr ** getSubExprs()
Definition: Expr.h:6301
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:2398
clang::CXXBindTemporaryExpr::getTemporary
CXXTemporary * getTemporary()
Definition: ExprCXX.h:1430
clang::ASTRecordWriter::AddAPInt
void AddAPInt(const llvm::APInt &Value)
Emit an integral value.
Definition: ASTRecordWriter.h:162
clang::serialization::EXPR_CXX_DYNAMIC_CAST
@ EXPR_CXX_DYNAMIC_CAST
A CXXDynamicCastExpr record.
Definition: ASTBitCodes.h:1826
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:2634
clang::ObjCPropertyRefExpr::isImplicitProperty
bool isImplicitProperty() const
Definition: ExprObjC.h:700
clang::CXXScalarValueInitExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprCXX.h:2116
clang::serialization::STMT_OMP_TARGET_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1962
clang::CXXTypeidExpr::getExprOperand
Expr * getExprOperand() const
Definition: ExprCXX.h:886
clang::SYCLUniqueStableNameExpr::getLParenLocation
SourceLocation getLParenLocation() const
Definition: Expr.h:2086
clang::CXXUnresolvedConstructExpr::getNumArgs
unsigned getNumArgs() const
Retrieve the number of arguments.
Definition: ExprCXX.h:3503
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:1847
clang::serialization::EXPR_CXX_BOOL_LITERAL
@ EXPR_CXX_BOOL_LITERAL
A CXXBoolLiteralExpr record.
Definition: ASTBitCodes.h:1850
clang::OverloadExpr::decls_end
decls_iterator decls_end() const
Definition: ExprCXX.h:2992
clang::FixedPointLiteral::getScale
unsigned getScale() const
Definition: Expr.h:1566
clang::StringLiteral::getByteLength
unsigned getByteLength() const
Definition: Expr.h:1878
clang::CXXDependentScopeMemberExpr::getBaseType
QualType getBaseType() const
Definition: ExprCXX.h:3670
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:3261
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:3770
clang::OpaqueValueExpr
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class.
Definition: Expr.h:1135
clang::CXXPseudoDestructorExpr::getScopeTypeInfo
TypeSourceInfo * getScopeTypeInfo() const
Retrieve the scope type in a qualified pseudo-destructor expression.
Definition: ExprCXX.h:2611
clang::OMPArrayShapingExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprOpenMP.h:192
clang::SEHTryStmt
Definition: Stmt.h:3440
clang::serialization::STMT_OMP_MASKED_TASKLOOP_DIRECTIVE
@ STMT_OMP_MASKED_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1952
clang::CXXFoldExpr
Represents a folding of a pack over an operator.
Definition: ExprCXX.h:4591
clang::CXXDefaultArgExpr::getUsedContext
const DeclContext * getUsedContext() const
Definition: ExprCXX.h:1283
clang::serialization::STMT_OMP_TARGET_EXIT_DATA_DIRECTIVE
@ STMT_OMP_TARGET_EXIT_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1939
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:1044
clang::PredefinedExpr::getIdentKind
IdentKind getIdentKind() const
Definition: Expr.h:2007
clang::serialization::EXPR_CALL
@ EXPR_CALL
A CallExpr record.
Definition: ASTBitCodes.h:1641
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:1734
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:1785
clang::ConditionalOperator
ConditionalOperator - The ?: ternary operator.
Definition: Expr.h:4145
clang::CXXUuidofExpr::getTypeOperandSourceInfo
TypeSourceInfo * getTypeOperandSourceInfo() const
Retrieve source information for the type operand.
Definition: ExprCXX.h:1093
clang::CXXThrowExpr
A C++ throw-expression (C++ [except.throw]).
Definition: ExprCXX.h:1181
clang::ObjCArrayLiteral
ObjCArrayLiteral - used for objective-c array containers; as in: @["Hello", NSApp,...
Definition: ExprObjC.h:190
DeclObjC.h
clang::CXXDeleteExpr::doesUsualArrayDeleteWantSize
bool doesUsualArrayDeleteWantSize() const
Answers whether the usual array deallocation function for the allocated type expects the size of the ...
Definition: ExprCXX.h:2450
Offset
unsigned Offset
Definition: Format.cpp:2574
clang::serialization::STMT_OMP_TASKLOOP_DIRECTIVE
@ STMT_OMP_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1946
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:4288
clang::CXXDependentScopeMemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Retrieve the location of the '->' or '.' operator.
Definition: ExprCXX.h:3677
clang::serialization::EXPR_DESIGNATED_INIT
@ EXPR_DESIGNATED_INIT
A DesignatedInitExpr record.
Definition: ASTBitCodes.h:1671
clang::serialization::EXPR_OBJC_PROTOCOL_EXPR
@ EXPR_OBJC_PROTOCOL_EXPR
An ObjCProtocolExpr record.
Definition: ASTBitCodes.h:1743
clang::ArrayTypeTraitExpr::getTrait
ArrayTypeTrait getTrait() const
Definition: ExprCXX.h:2809
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:1692
uint64_t
unsigned long uint64_t
Definition: hlsl_basic_types.h:24
clang::CoroutineSuspendExpr::getOpaqueValue
OpaqueValueExpr * getOpaqueValue() const
getOpaqueValue - Return the opaque value placeholder.
Definition: ExprCXX.h:4747
clang::CXXTemporaryObjectExpr
Represents a C++ functional cast expression that builds a temporary object.
Definition: ExprCXX.h:1797
clang::ASTRecordWriter::AddTypeRef
void AddTypeRef(QualType T)
Emit a reference to a type.
Definition: ASTRecordWriter.h:201
clang::FunctionParmPackExpr
Represents a reference to a function parameter pack or init-capture pack that has been substituted bu...
Definition: ExprCXX.h:4397
clang::ObjCIvarRefExpr::getDecl
ObjCIvarDecl * getDecl()
Definition: ExprObjC.h:576
clang::serialization::EXPR_OBJC_BOXED_EXPRESSION
@ EXPR_OBJC_BOXED_EXPRESSION
Definition: ASTBitCodes.h:1732
clang::concepts::Requirement::SubstitutionDiagnostic::SubstitutedEntity
StringRef SubstitutedEntity
Definition: ExprConcepts.h:164
clang::FixedPointLiteral
Definition: Expr.h:1537
clang::OMPTargetExitDataDirective
This represents '#pragma omp target exit data' directive.
Definition: StmtOpenMP.h:3259
clang::CXXThisExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:1153
clang::CompoundLiteralExpr::isFileScope
bool isFileScope() const
Definition: Expr.h:3432
clang::OMPExecutableDirective::Data
OMPChildren * Data
Data, associated with the directive.
Definition: StmtOpenMP.h:286
clang::ConstantExpr::RSK_APValue
@ RSK_APValue
Definition: Expr.h:1044
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:3926
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:1878
clang::OMPParallelGenericLoopDirective
This represents '#pragma omp parallel loop' directive.
Definition: StmtOpenMP.h:6102
clang::FunctionParmPackExpr::begin
iterator begin() const
Definition: ExprCXX.h:4434
clang::UnaryOperator::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Is FPFeatures in Trailing Storage?
Definition: Expr.h:2306
clang::CallExpr::getCallee
Expr * getCallee()
Definition: Expr.h:2951
clang::IntegerLiteral
Definition: Expr.h:1494
clang::ObjCMessageExpr::getRightLoc
SourceLocation getRightLoc() const
Definition: ExprObjC.h:1407
clang::serialization::STMT_OMP_UNROLL_DIRECTIVE
@ STMT_OMP_UNROLL_DIRECTIVE
Definition: ASTBitCodes.h:1914
clang::CXXTypeidExpr::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: ExprCXX.h:893
clang::ParenListExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:5582
clang::ObjCAtCatchStmt
Represents Objective-C's @catch statement.
Definition: StmtObjC.h:77
clang::ConceptReference::getTemplateArgsAsWritten
const ASTTemplateArgumentListInfo * getTemplateArgsAsWritten() const
Definition: ASTConcept.h:156
clang::UnaryExprOrTypeTraitExpr
UnaryExprOrTypeTraitExpr - expression with either a type or (unevaluated) expression operand.
Definition: Expr.h:2549
clang::FloatingLiteral
Definition: Expr.h:1639
clang::serialization::EXPR_CXX_CONSTRUCT
@ EXPR_CXX_CONSTRUCT
A CXXConstructExpr record.
Definition: ASTBitCodes.h:1814
clang::OffsetOfExpr::getComponent
const OffsetOfNode & getComponent(unsigned Idx) const
Definition: Expr.h:2493
clang::CompoundStmt
CompoundStmt - This represents a group of statements like { stmt stmt }.
Definition: Stmt.h:1406
clang::OverloadExpr::getNameInfo
const DeclarationNameInfo & getNameInfo() const
Gets the full name info.
Definition: ExprCXX.h:3003
clang::ConvertVectorExpr
ConvertVectorExpr - Clang builtin function __builtin_convertvector This AST node provides support for...
Definition: Expr.h:4465
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:1868
clang::MSPropertySubscriptExpr
MS property subscript expression.
Definition: ExprCXX.h:994
clang::ChooseExpr::isConditionDependent
bool isConditionDependent() const
Definition: Expr.h:4554
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:1951
clang::CXXUuidofExpr::getGuidDecl
MSGuidDecl * getGuidDecl() const
Definition: ExprCXX.h:1102
clang::OMPParallelMasterDirective
This represents '#pragma omp parallel master' directive.
Definition: StmtOpenMP.h:2256
clang::CXXThrowExpr::getThrowLoc
SourceLocation getThrowLoc() const
Definition: ExprCXX.h:1204
clang::UnresolvedLookupExpr
A reference to a name which we were able to look up during parsing but could not resolve to a specifi...
Definition: ExprCXX.h:3090
clang::OverloadExpr::decls_begin
decls_iterator decls_begin() const
Definition: ExprCXX.h:2989
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:1909
clang::serialization::StmtCode
StmtCode
Record codes for each kind of statement or expression.
Definition: ASTBitCodes.h:1524
clang::serialization::EXPR_CXX_MEMBER_CALL
@ EXPR_CXX_MEMBER_CALL
A CXXMemberCallExpr record.
Definition: ASTBitCodes.h:1808
clang::serialization::STMT_OMP_TASKGROUP_DIRECTIVE
@ STMT_OMP_TASKGROUP_DIRECTIVE
Definition: ASTBitCodes.h:1943
clang::FloatingLiteral::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1694
clang::Decl::getAccess
AccessSpecifier getAccess() const
Definition: DeclBase.h:480
clang::CXXBoolLiteralExpr::getValue
bool getValue() const
Definition: ExprCXX.h:733
clang::DependentCoawaitExpr
Represents a 'co_await' expression while the type of the promise is dependent.
Definition: ExprCXX.h:4821
clang::SizeOfPackExpr
Represents an expression that computes the length of a parameter pack.
Definition: ExprCXX.h:4144
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:1926
clang::CXXBindTemporaryExpr
Represents binding an expression to a temporary.
Definition: ExprCXX.h:1412
clang::BlockDecl
Represents a block literal declaration, which is like an unnamed FunctionDecl.
Definition: Decl.h:4208
clang::CastExpr::getFPFeatures
FPOptionsOverride getFPFeatures() const
Definition: Expr.h:3578
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:3000
clang::serialization::EXPR_ARRAY_SUBSCRIPT
@ EXPR_ARRAY_SUBSCRIPT
An ArraySubscriptExpr record.
Definition: ASTBitCodes.h:1635
clang::ParenExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:2127
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:3807
clang::FunctionParmPackExpr::getNumExpansions
unsigned getNumExpansions() const
Get the number of parameters in this parameter pack.
Definition: ExprCXX.h:4438
clang::ExtVectorElementExpr::getAccessor
IdentifierInfo & getAccessor() const
Definition: Expr.h:5931
clang::ExplicitCastExpr::getTypeInfoAsWritten
TypeSourceInfo * getTypeInfoAsWritten() const
getTypeInfoAsWritten - Returns the type source info for the type that this expression is casting to.
Definition: Expr.h:3719
clang::SubstNonTypeTemplateParmExpr::isReferenceParameter
bool isReferenceParameter() const
Definition: ExprCXX.h:4300
clang::SubstNonTypeTemplateParmPackExpr::getParameterPack
NonTypeTemplateParmDecl * getParameterPack() const
Retrieve the non-type template parameter pack being substituted.
Definition: ExprCXX.h:4357
clang::OMPTeamsDirective
This represents '#pragma omp teams' directive.
Definition: StmtOpenMP.h:3488
clang::ConvertVectorExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
getTypeSourceInfo - Return the destination type.
Definition: Expr.h:4488
clang::serialization::STMT_SEH_LEAVE
@ STMT_SEH_LEAVE
Definition: ASTBitCodes.h:1903
clang::LambdaExpr
A C++ lambda expression, which produces a function object (of unspecified type) that can be invoked l...
Definition: ExprCXX.h:1865
clang::OMPLoopDirective
This is a common base class for loop directives ('omp simd', 'omp for', 'omp for simd' etc....
Definition: StmtOpenMP.h:1002
clang::ObjCAtThrowStmt
Represents Objective-C's @throw statement.
Definition: StmtObjC.h:357
clang::MemberExpr::isArrow
bool isArrow() const
Definition: Expr.h:3348
clang::RecoveryExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: Expr.h:6443
clang::SubstNonTypeTemplateParmExpr::getReplacement
Expr * getReplacement() const
Definition: ExprCXX.h:4294
clang::SourceRange::getEnd
SourceLocation getEnd() const
Definition: SourceLocation.h:220
clang::MSPropertySubscriptExpr::getIdx
Expr * getIdx()
Definition: ExprCXX.h:1022
clang::ObjCSubscriptRefExpr::getKeyExpr
Expr * getKeyExpr() const
Definition: ExprObjC.h:883
clang::UnresolvedMemberExpr::isArrow
bool isArrow() const
Determine whether this member expression used the '->' operator; otherwise, it used the '.
Definition: ExprCXX.h:3923
clang::ASTRecordWriter::AddNestedNameSpecifierLoc
void AddNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS)
Emit a nested name specifier with source-location information.
Definition: ASTWriter.cpp:5554
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:5982
clang::MemberExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:3346
clang::DeclAccessPair
A POD class for pairing a NamedDecl* with an access specifier.
Definition: DeclAccessPair.h:29
clang::MSPropertySubscriptExpr::getBase
Expr * getBase()
Definition: ExprCXX.h:1019
clang::MatrixSubscriptExpr::getRowIdx
Expr * getRowIdx()
Definition: Expr.h:2753
clang::StringLiteral::getBytes
StringRef getBytes() const
Allow access to clients that need the byte representation, such as ASTWriterStmt::VisitStringLiteral(...
Definition: Expr.h:1858
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:1551
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:4479
clang::serialization::EXPR_DESIGNATED_INIT_UPDATE
@ EXPR_DESIGNATED_INIT_UPDATE
A DesignatedInitUpdateExpr record.
Definition: ASTBitCodes.h:1674
clang::serialization::EXPR_CXX_TYPEID_EXPR
@ EXPR_CXX_TYPEID_EXPR
Definition: ASTBitCodes.h:1853
clang::ASTWriter::getExprImplicitCastAbbrev
unsigned getExprImplicitCastAbbrev() const
Definition: ASTWriter.h:701
clang::Stmt::CastIterator
Iterator for iterating over Stmt * arrays that contain only T *.
Definition: Stmt.h:1121
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:1823
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:1690
clang::OMPAtomicDirective::isPostfixUpdate
bool isPostfixUpdate() const
Return true if 'v' expression must be updated to original value of 'x', false if 'v' must be updated ...
Definition: StmtOpenMP.h:3043
clang::AsTypeExpr::getRParenLoc
SourceLocation getRParenLoc() const
getRParenLoc - Return the location of final right parenthesis.
Definition: Expr.h:6056
clang::serialization::EXPR_OBJC_AVAILABILITY_CHECK
@ EXPR_OBJC_AVAILABILITY_CHECK
An ObjCAvailabilityCheckExpr record.
Definition: ASTBitCodes.h:1791
clang::OMPParallelMaskedTaskLoopSimdDirective
This represents '#pragma omp parallel masked taskloop simd' directive.
Definition: StmtOpenMP.h:4304
clang::SYCLUniqueStableNameExpr::getLocation
SourceLocation getLocation() const
Definition: Expr.h:2085
clang::serialization::STMT_OMP_TILE_DIRECTIVE
@ STMT_OMP_TILE_DIRECTIVE
Definition: ASTBitCodes.h:1913
clang::serialization::EXPR_CXX_BIND_TEMPORARY
@ EXPR_CXX_BIND_TEMPORARY
Definition: ASTBitCodes.h:1859
clang::CXXUnresolvedConstructExpr::getRParenLoc
SourceLocation getRParenLoc() const
Retrieve the location of the right parentheses (')') that follows the argument list.
Definition: ExprCXX.h:3494
clang::ASTRecordWriter::AddDeclarationNameLoc
void AddDeclarationNameLoc(const DeclarationNameLoc &DNLoc, DeclarationName Name)
Definition: ASTWriter.cpp:5513
clang::ExprWithCleanups::getObjects
ArrayRef< CleanupObject > getObjects() const
Definition: ExprCXX.h:3387
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:4894
addSubstitutionDiagnostic
static void addSubstitutionDiagnostic(ASTRecordWriter &Record, const concepts::Requirement::SubstitutionDiagnostic *D)
Definition: ASTWriterStmt.cpp:424
clang::serialization::STMT_OMP_FOR_SIMD_DIRECTIVE
@ STMT_OMP_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1916
clang::serialization::EXPR_SOURCE_LOC
@ EXPR_SOURCE_LOC
A SourceLocExpr record.
Definition: ASTBitCodes.h:1704
clang::serialization::STMT_DO
@ STMT_DO
A DoStmt record.
Definition: ASTBitCodes.h:1563
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::TemplateArgument
Represents a template argument.
Definition: TemplateBase.h:61
clang::ConceptReference::getTemplateKWLoc
SourceLocation getTemplateKWLoc() const
Definition: ASTConcept.h:146
clang::serialization::STMT_OMP_PARALLEL_MASKED_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_PARALLEL_MASKED_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1955
clang::RequiresExpr::getBody
RequiresExprBodyDecl * getBody() const
Definition: ExprConcepts.h:518
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:1656
clang::concepts::Requirement
A static requirement that can be used in a requires-expression to check properties of types and expre...
Definition: ExprConcepts.h:151
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:3545
clang::serialization::STMT_OMP_PARALLEL_DIRECTIVE
@ STMT_OMP_PARALLEL_DIRECTIVE
Definition: ASTBitCodes.h:1911
clang::CompoundLiteralExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:3435
clang::ForStmt
ForStmt - This represents a 'for (init;cond;inc)' stmt.
Definition: Stmt.h:2566
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:1776
clang::OMPDepobjDirective
This represents '#pragma omp depobj' directive.
Definition: StmtOpenMP.h:2788
clang::CastExpr::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:3562
clang::OffsetOfExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: Expr.h:2486
clang::CharacterLiteral::getLocation
SourceLocation getLocation() const
Definition: Expr.h:1610
clang::serialization::STMT_OBJC_FOR_COLLECTION
@ STMT_OBJC_FOR_COLLECTION
An ObjCForCollectionStmt record.
Definition: ASTBitCodes.h:1767
clang::CXXUuidofExpr::getExprOperand
Expr * getExprOperand() const
Definition: ExprCXX.h:1097
clang::OMPForDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:1706
clang::serialization::STMT_CXX_CATCH
@ STMT_CXX_CATCH
A CXXCatchStmt record.
Definition: ASTBitCodes.h:1796
clang::CallExpr::getFPFeatures
FPOptionsOverride getFPFeatures() const
Definition: Expr.h:3087
clang::PseudoObjectExpr
PseudoObjectExpr - An expression which accesses a pseudo-object l-value.
Definition: Expr.h:6100
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:4939
clang::ConditionalOperator::getRHS
Expr * getRHS() const
Definition: Expr.h:4180
clang::OffsetOfNode::getField
FieldDecl * getField() const
For a field offsetof node, returns the field.
Definition: Expr.h:2404
clang::DesignatedInitExpr::getNumSubExprs
unsigned getNumSubExprs() const
Retrieve the total number of subexpressions in this designated initializer expression,...
Definition: Expr.h:5282
clang::serialization::EXPR_ASTYPE
@ EXPR_ASTYPE
Definition: ASTBitCodes.h:1896
clang::DeclRefExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: Expr.h:1396
clang::BinaryConditionalOperator
BinaryConditionalOperator - The GNU extension to the conditional operator which allows the middle ope...
Definition: Expr.h:4207
clang::CXXNewExpr::raw_arg_end
raw_arg_iterator raw_arg_end()
Definition: ExprCXX.h:2385
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:3388
clang::ParenListExpr::getNumExprs
unsigned getNumExprs() const
Return the number of expressions in this paren list.
Definition: Expr.h:5563
clang::serialization::EXPR_BUILTIN_BIT_CAST
@ EXPR_BUILTIN_BIT_CAST
A BuiltinBitCastExpr record.
Definition: ASTBitCodes.h:1841
clang::DeclRefExpr::getDecl
ValueDecl * getDecl()
Definition: Expr.h:1295
clang::TemplateArgumentLoc
Location wrapper for a TemplateArgument.
Definition: TemplateBase.h:457
clang::CXXStdInitializerListExpr::getSubExpr
Expr * getSubExpr()
Definition: ExprCXX.h:807
clang::Stmt::RequiresExprBits
RequiresExprBitfields RequiresExprBits
Definition: Stmt.h:1071
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:2618
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:1889
clang::UnaryExprOrTypeTraitExpr::getArgumentTypeInfo
TypeSourceInfo * getArgumentTypeInfo() const
Definition: Expr.h:2595
clang::ImplicitValueInitExpr
Represents an implicitly-generated value initialization of an object of a given type.
Definition: Expr.h:5510
clang::ASTWriter::ClearSwitchCaseIDs
void ClearSwitchCaseIDs()
Definition: ASTWriterStmt.cpp:2673
clang::CXXDependentScopeMemberExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieve the nested-name-specifier that qualifies the member name, with source location information.
Definition: ExprCXX.h:3688
clang::ImplicitCastExpr::isPartOfExplicitCast
bool isPartOfExplicitCast() const
Definition: Expr.h:3653
clang::serialization::STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1961
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:545
clang::OpaqueValueExpr::getSourceExpr
Expr * getSourceExpr() const
The source expression of an opaque value expression is the expression which originally generated the ...
Definition: Expr.h:1185
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:4613
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:2014
clang::CompoundAssignOperator::getComputationResultType
QualType getComputationResultType() const
Definition: Expr.h:4091
clang::OMPTaskDirective
This represents '#pragma omp task' directive.
Definition: StmtOpenMP.h:2464
clang::OffsetOfExpr::getNumComponents
unsigned getNumComponents() const
Definition: Expr.h:2503
clang::SourceLocExpr::getIdentKind
IdentKind getIdentKind() const
Definition: Expr.h:4704
clang::AtomicExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:6326
clang::ConceptReference::getFoundDecl
NamedDecl * getFoundDecl() const
Definition: ASTConcept.h:148
clang::ASTWriter::RecordSwitchCaseID
unsigned RecordSwitchCaseID(SwitchCase *S)
Record an ID for the given switch-case statement.
Definition: ASTWriterStmt.cpp:2659
clang::OMPIteratorExpr::getIteratorKwLoc
SourceLocation getIteratorKwLoc() const
Definition: ExprOpenMP.h:372
clang::CXXDeleteExpr::getOperatorDelete
FunctionDecl * getOperatorDelete() const
Definition: ExprCXX.h:2454
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:3353
clang::StringLiteral
StringLiteral - This represents a string literal expression, e.g.
Definition: Expr.h:1767
clang::serialization::STMT_CORETURN
@ STMT_CORETURN
Definition: ASTBitCodes.h:1990
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:1532
clang::serialization::STMT_OMP_CANCEL_DIRECTIVE
@ STMT_OMP_CANCEL_DIRECTIVE
Definition: ASTBitCodes.h:1945
clang::ExprWithCleanups
Represents an expression – generally a full-expression – that introduces cleanups to be run at the en...
Definition: ExprCXX.h:3359
clang::serialization::STMT_OMP_TARGET_PARALLEL_DIRECTIVE
@ STMT_OMP_TARGET_PARALLEL_DIRECTIVE
Definition: ASTBitCodes.h:1940
clang::BinaryOperator::hasStoredFPFeatures
bool hasStoredFPFeatures() const
Definition: Expr.h:3990
clang::CXXNewExpr::getSourceRange
SourceRange getSourceRange() const
Definition: ExprCXX.h:2399
clang::ObjCDictionaryLiteral::getDictWithObjectsMethod
ObjCMethodDecl * getDictWithObjectsMethod() const
Definition: ExprObjC.h:376
clang::CapturedStmt
This captures a statement into a function.
Definition: Stmt.h:3532
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:1933
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:1978
clang::serialization::EXPR_UNARY_OPERATOR
@ EXPR_UNARY_OPERATOR
A UnaryOperator record.
Definition: ASTBitCodes.h:1626
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:3166
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:2223
clang::CXXUnresolvedConstructExpr::arg_end
arg_iterator arg_end()
Definition: ExprCXX.h:3509
clang::ShuffleVectorExpr::getNumSubExprs
unsigned getNumSubExprs() const
getNumSubExprs - Return the size of the SubExprs array.
Definition: Expr.h:4431
clang::serialization::STMT_OMP_DISPATCH_DIRECTIVE
@ STMT_OMP_DISPATCH_DIRECTIVE
Definition: ASTBitCodes.h:1973
clang::serialization::EXPR_OMP_ARRAY_SHAPING
@ EXPR_OMP_ARRAY_SHAPING
Definition: ASTBitCodes.h:1981
clang::CXXTryStmt
CXXTryStmt - A C++ try block, including all handlers.
Definition: StmtCXX.h:68
clang::SwitchCase
Definition: Stmt.h:1554
clang::ImaginaryLiteral::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:1730
clang::serialization::STMT_BREAK
@ STMT_BREAK
A BreakStmt record.
Definition: ASTBitCodes.h:1578
clang::serialization::STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1960
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:1942
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:514
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:1530
clang::CXXInheritedCtorInitExpr
Represents a call to an inherited base class constructor from an inheriting constructor.
Definition: ExprCXX.h:1651
clang::CXXDefaultArgExpr
A default argument (C++ [dcl.fct.default]).
Definition: ExprCXX.h:1241
clang::serialization::STMT_RETURN
@ STMT_RETURN
A ReturnStmt record.
Definition: ASTBitCodes.h:1581
clang::PackExpansionExpr
Represents a C++11 pack expansion that produces a sequence of expressions.
Definition: ExprCXX.h:4068
clang::CastExpr::path_size
unsigned path_size() const
Definition: Expr.h:3544
clang::OMPCriticalDirective
This represents '#pragma omp critical' directive.
Definition: StmtOpenMP.h:2023
clang::StmtExpr::getTemplateDepth
unsigned getTemplateDepth() const
Definition: Expr.h:4378
clang::DeclRefExpr::hasQualifier
bool hasQualifier() const
Determine whether this declaration reference was preceded by a C++ nested-name-specifier,...
Definition: Expr.h:1310
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:2674
clang::CXXConstructExpr::hadMultipleCandidates
bool hadMultipleCandidates() const
Whether the referred constructor was resolved from an overloaded set having size greater than 1.
Definition: ExprCXX.h:1543
clang::MSPropertyRefExpr::getMemberLoc
SourceLocation getMemberLoc() const
Definition: ExprCXX.h:979
clang::serialization::EXPR_OBJC_ISA
@ EXPR_OBJC_ISA
An ObjCIsa Expr record.
Definition: ASTBitCodes.h:1761
clang::OMPMasterTaskLoopDirective
This represents '#pragma omp master taskloop' directive.
Definition: StmtOpenMP.h:3798
clang::CXXNewExpr::getAllocatedTypeSourceInfo
TypeSourceInfo * getAllocatedTypeSourceInfo() const
Definition: ExprCXX.h:2236
clang::serialization::EXPR_SYCL_UNIQUE_STABLE_NAME
@ EXPR_SYCL_UNIQUE_STABLE_NAME
Definition: ASTBitCodes.h:1999
clang::Stmt::DependentScopeDeclRefExprBits
DependentScopeDeclRefExprBitfields DependentScopeDeclRefExprBits
Definition: Stmt.h:1060
clang::concepts::Requirement::RK_Compound
@ RK_Compound
Definition: ExprConcepts.h:155
clang::ConstantExpr
ConstantExpr - An expression that occurs in a constant context and optionally the result of evaluatin...
Definition: Expr.h:1032
clang::serialization::EXPR_DECL_REF
@ EXPR_DECL_REF
A DeclRefExpr record.
Definition: ASTBitCodes.h:1602
clang::ArraySubscriptExpr::getRHS
Expr * getRHS()
Definition: Expr.h:2678
clang::CoawaitExpr::isImplicit
bool isImplicit() const
Definition: ExprCXX.h:4811
clang::serialization::EXPR_MEMBER
@ EXPR_MEMBER
A MemberExpr record.
Definition: ASTBitCodes.h:1644
clang::serialization::EXPR_REQUIRES
@ EXPR_REQUIRES
Definition: ASTBitCodes.h:1890
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:2029
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:4915
clang::OffsetOfNode
Helper class for OffsetOfExpr.
Definition: Expr.h:2340
clang::serialization::STMT_COROUTINE_BODY
@ STMT_COROUTINE_BODY
Definition: ASTBitCodes.h:1989
clang::serialization::EXPR_CXX_REWRITTEN_BINARY_OPERATOR
@ EXPR_CXX_REWRITTEN_BINARY_OPERATOR
A CXXRewrittenBinaryOperator record.
Definition: ASTBitCodes.h:1811
clang::CastExpr::getCastKind
CastKind getCastKind() const
Definition: Expr.h:3519
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:3247
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:1977
clang::ChooseExpr
ChooseExpr - GNU builtin-in function __builtin_choose_expr.
Definition: Expr.h:4524
clang::serialization::EXPR_CXX_REINTERPRET_CAST
@ EXPR_CXX_REINTERPRET_CAST
A CXXReinterpretCastExpr record.
Definition: ASTBitCodes.h:1829
clang::SEHExceptStmt
Definition: Stmt.h:3361
clang::MSPropertyRefExpr::isArrow
bool isArrow() const
Definition: ExprCXX.h:978
clang::OMPTaskDirective::hasCancel
bool hasCancel() const
Return true if current directive has inner cancel directive.
Definition: StmtOpenMP.h:2513
clang::ExpressionTraitExpr::getQueriedExpression
Expr * getQueriedExpression() const
Definition: ExprCXX.h:2877
clang::APIntStorage::getValue
llvm::APInt getValue() const
Definition: Expr.h:1478
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:1713
clang::PseudoObjectExpr::semantics_iterator
Expr *const * semantics_iterator
Definition: Expr.h:6166
clang::serialization::EXPR_CXX_THROW
@ EXPR_CXX_THROW
Definition: ASTBitCodes.h:1856
clang::serialization::STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1969
clang::DesignatedInitExpr::usesGNUSyntax
bool usesGNUSyntax() const
Determines whether this designated initializer used the deprecated GNU syntax for designated initiali...
Definition: Expr.h:5266
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:1888
clang::serialization::STMT_INDIRECT_GOTO
@ STMT_INDIRECT_GOTO
An IndirectGotoStmt record.
Definition: ASTBitCodes.h:1572
clang::CXXUnresolvedConstructExpr::getLParenLoc
SourceLocation getLParenLoc() const
Retrieve the location of the left parentheses ('(') that precedes the argument list.
Definition: ExprCXX.h:3489
clang::serialization::STMT_DEFAULT
@ STMT_DEFAULT
A DefaultStmt record.
Definition: ASTBitCodes.h:1545
clang::FullExpr::getSubExpr
const Expr * getSubExpr() const
Definition: Expr.h:1017
clang::serialization::STMT_OMP_TARGET_DIRECTIVE
@ STMT_OMP_TARGET_DIRECTIVE
Definition: ASTBitCodes.h:1936
clang::SizeOfPackExpr::getPackLength
unsigned getPackLength() const
Retrieve the length of the parameter pack.
Definition: ExprCXX.h:4221
clang::serialization::STMT_OMP_PARALLEL_MASKED_DIRECTIVE
@ STMT_OMP_PARALLEL_MASKED_DIRECTIVE
Definition: ASTBitCodes.h:1925
clang::CharacterLiteral
Definition: Expr.h:1584
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:2398
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:1874
clang::serialization::STMT_OMP_DEPOBJ_DIRECTIVE
@ STMT_OMP_DEPOBJ_DIRECTIVE
Definition: ASTBitCodes.h:1932
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:1623
clang::OMPCancelDirective
This represents '#pragma omp cancel' directive.
Definition: StmtOpenMP.h:3599
clang::CompoundLiteralExpr
CompoundLiteralExpr - [C99 6.5.2.5].
Definition: Expr.h:3405
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:1408
clang::DesignatedInitExpr::designators
llvm::MutableArrayRef< Designator > designators()
Definition: Expr.h:5235
clang::serialization::EXPR_SIZEOF_ALIGN_OF
@ EXPR_SIZEOF_ALIGN_OF
A SizefAlignOfExpr record.
Definition: ASTBitCodes.h:1632
clang::serialization::EXPR_SIZEOF_PACK
@ EXPR_SIZEOF_PACK
Definition: ASTBitCodes.h:1883
clang::StmtExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4375
clang::CXXPseudoDestructorExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
Retrieves the nested-name-specifier that qualifies the type name, with source-location information.
Definition: ExprCXX.h:2586
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:4519
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:3701
clang::ConvertVectorExpr::getRParenLoc
SourceLocation getRParenLoc() const
getRParenLoc - Return the location of final right parenthesis.
Definition: Expr.h:4499
clang::UnaryExprOrTypeTraitExpr::isArgumentType
bool isArgumentType() const
Definition: Expr.h:2591
clang::serialization::EXPR_FUNCTION_PARM_PACK
@ EXPR_FUNCTION_PARM_PACK
Definition: ASTBitCodes.h:1886
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:3735
clang::MemberExpr::getBase
Expr * getBase() const
Definition: Expr.h:3241
clang::CXXDependentScopeMemberExpr::getBase
Expr * getBase() const
Retrieve the base object of this member expressions, e.g., the x in x.m.
Definition: ExprCXX.h:3665
clang::ASTRecordWriter::AddCXXTemporary
void AddCXXTemporary(const CXXTemporary *Temp)
Emit a CXXTemporary.
Definition: ASTWriter.cpp:5307
clang::GCCAsmStmt
This represents a GCC inline-assembly statement extension.
Definition: Stmt.h:3034
clang::serialization::EXPR_CXX_OPERATOR_CALL
@ EXPR_CXX_OPERATOR_CALL
A CXXOperatorCallExpr record.
Definition: ASTBitCodes.h:1805
clang::UnaryOperator::getOperatorLoc
SourceLocation getOperatorLoc() const
getOperatorLoc - Return the location of the operator.
Definition: Expr.h:2214
clang::StringLiteral::getKind
StringKind getKind() const
Definition: Expr.h:1882
clang::serialization::STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
@ STMT_OMP_TARGET_ENTER_DATA_DIRECTIVE
Definition: ASTBitCodes.h:1938
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:2875
clang::serialization::EXPR_BINARY_OPERATOR
@ EXPR_BINARY_OPERATOR
A BinaryOperator record.
Definition: ASTBitCodes.h:1647
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:4237
clang::DesignatedInitUpdateExpr
Definition: Expr.h:5367
clang::ExtVectorElementExpr::getBase
const Expr * getBase() const
Definition: Expr.h:5927
clang::MatrixSubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: Expr.h:2775
clang::serialization::STMT_OMP_FLUSH_DIRECTIVE
@ STMT_OMP_FLUSH_DIRECTIVE
Definition: ASTBitCodes.h:1931
clang::PseudoObjectExpr::getSyntacticForm
Expr * getSyntacticForm()
Return the syntactic form of this expression, i.e.
Definition: Expr.h:6144
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:1906
clang::serialization::EXPR_CXX_NULL_PTR_LITERAL
@ EXPR_CXX_NULL_PTR_LITERAL
Definition: ASTBitCodes.h:1852
clang::ASTRecordWriter::AddSelectorRef
void AddSelectorRef(Selector S)
Emit a Selector (which is a smart pointer reference).
Definition: ASTWriter.cpp:5284
clang::CXXBoolLiteralExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:739
clang::ConvertVectorExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
getBuiltinLoc - Return the location of the __builtin_convertvector token.
Definition: Expr.h:4496
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:2013
clang::ASTWriter::getIntegerLiteralAbbrev
unsigned getIntegerLiteralAbbrev() const
Definition: ASTWriter.h:700
clang::OMPIteratorHelperData::Upper
Expr * Upper
Normalized upper bound.
Definition: ExprOpenMP.h:240
clang::serialization::STMT_IF
@ STMT_IF
An IfStmt record.
Definition: ASTBitCodes.h:1554
clang::LambdaExpr::capture_init_end
capture_init_iterator capture_init_end()
Retrieve the iterator pointing one past the last initialization argument for this lambda expression.
Definition: ExprCXX.h:2004
clang::OMPIteratorExpr::getSecondColonLoc
SourceLocation getSecondColonLoc(unsigned I) const
Gets the location of the second ':' (if any) in the range for the given iteratori definition.
Definition: Expr.cpp:4972
clang::DesignatedInitUpdateExpr::getUpdater
InitListExpr * getUpdater() const
Definition: Expr.h:5389
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:2006
clang::OMPTeamsGenericLoopDirective
This represents '#pragma omp teams loop' directive.
Definition: StmtOpenMP.h:5971
clang::SourceLocExpr::getEndLoc
SourceLocation getEndLoc() const
Definition: Expr.h:4728
clang::ShuffleVectorExpr::getExpr
Expr * getExpr(unsigned Index)
getExpr - Return the Expr at the specified index.
Definition: Expr.h:4437
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:2011
clang::CXXDefaultInitExpr::getUsedContext
const DeclContext * getUsedContext() const
Definition: ExprCXX.h:1355
clang::ParenExpr::getRParen
SourceLocation getRParen() const
Get the location of the right parentheses ')'.
Definition: Expr.h:2139
clang::CXXDeleteExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: ExprCXX.h:2465
clang::serialization::STMT_OMP_TASKYIELD_DIRECTIVE
@ STMT_OMP_TASKYIELD_DIRECTIVE
Definition: ASTBitCodes.h:1928
clang::CXXUnresolvedConstructExpr::arg_begin
arg_iterator arg_begin()
Definition: ExprCXX.h:3508
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:1979
clang::OMPSingleDirective
This represents '#pragma omp single' directive.
Definition: StmtOpenMP.h:1924
clang::CXXFunctionalCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprCXX.h:1766
clang::serialization::STMT_OBJC_CATCH
@ STMT_OBJC_CATCH
An ObjCAtCatchStmt record.
Definition: ASTBitCodes.h:1770
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:2600
clang::BinaryOperator::getLHS
Expr * getLHS() const
Definition: Expr.h:3856
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:4966
clang::ParenExpr
ParenExpr - This represents a parethesized expression, e.g.
Definition: Expr.h:2112
clang::CoyieldExpr
Represents a 'co_yield' expression.
Definition: ExprCXX.h:4870
clang::serialization::EXPR_CXX_ADDRSPACE_CAST
@ EXPR_CXX_ADDRSPACE_CAST
A CXXAddrspaceCastExpr record.
Definition: ASTBitCodes.h:1835
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:1802
clang::SubstNonTypeTemplateParmExpr::getParameter
NonTypeTemplateParmDecl * getParameter() const
Definition: ExprCXX.h:4296
clang::serialization::STMT_OMP_MASKED_TASKLOOP_SIMD_DIRECTIVE
@ STMT_OMP_MASKED_TASKLOOP_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1953
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:2979
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:247
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:1866
clang::serialization::EXPR_OBJC_INDIRECT_COPY_RESTORE
@ EXPR_OBJC_INDIRECT_COPY_RESTORE
An ObjCIndirectCopyRestoreExpr record.
Definition: ASTBitCodes.h:1764
clang::CXXDeleteExpr
Represents a delete expression for memory deallocation and destructor calls, e.g.
Definition: ExprCXX.h:2415
clang::ASTConstraintSatisfaction::IsSatisfied
bool IsSatisfied
Definition: ASTConcept.h:80
clang::BlockExpr
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Definition: Expr.h:5970
clang::StmtExpr
StmtExpr - This is the GNU Statement Expression extension: ({int X=4; X;}).
Definition: Expr.h:4349
llvm::ArrayRef
Definition: LLVM.h:34
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:4433
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:3546
clang::serialization::EXPR_INIT_LIST
@ EXPR_INIT_LIST
An InitListExpr record.
Definition: ASTBitCodes.h:1668
clang::CXXTypeidExpr::isTypeOperand
bool isTypeOperand() const
Definition: ExprCXX.h:875
clang::serialization::STMT_OMP_INTEROP_DIRECTIVE
@ STMT_OMP_INTEROP_DIRECTIVE
Definition: ASTBitCodes.h:1972
clang::OffsetOfNode::Base
@ Base
An implicit indirection through a C++ base class, when the field found is in a base class.
Definition: Expr.h:2352
clang::ASTRecordWriter::AddDeclarationNameInfo
void AddDeclarationNameInfo(const DeclarationNameInfo &NameInfo)
Definition: ASTWriter.cpp:5540
clang::serialization::EXPR_CXX_CONST_CAST
@ EXPR_CXX_CONST_CAST
A CXXConstCastExpr record.
Definition: ASTBitCodes.h:1832
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:4304
clang::CXXFunctionalCastExpr
Represents an explicit C++ type conversion that uses "functional" notation (C++ [expr....
Definition: ExprCXX.h:1726
clang::DeclGroupRef
Definition: DeclGroup.h:51
clang::DesignatedInitExpr::Designator
Represents a single C99 designator.
Definition: Expr.h:5104
clang::OffsetOfExpr::getOperatorLoc
SourceLocation getOperatorLoc() const
getOperatorLoc - Return the location of the operator.
Definition: Expr.h:2479
clang::serialization::EXPR_NO_INIT
@ EXPR_NO_INIT
An NoInitExpr record.
Definition: ASTBitCodes.h:1677
clang::CallExpr::getADLCallKind
ADLCallKind getADLCallKind() const
Definition: Expr.h:2955
clang::ChooseExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4571
clang::ArraySubscriptExpr
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
Definition: Expr.h:2645
clang::CXXUuidofExpr
A Microsoft C++ __uuidof expression, which gets the _GUID that corresponds to the supplied type or ex...
Definition: ExprCXX.h:1056
clang::DependentScopeDeclRefExpr
A qualified reference to a name whose declaration cannot yet be resolved.
Definition: ExprCXX.h:3208
clang::DoStmt
DoStmt - This represents a 'do/while' stmt.
Definition: Stmt.h:2510
clang::ConvertVectorExpr::getSrcExpr
Expr * getSrcExpr() const
getSrcExpr - Return the Expr to be converted.
Definition: Expr.h:4485
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:1689
StmtVisitor.h
clang::CXXThrowExpr::getSubExpr
const Expr * getSubExpr() const
Definition: ExprCXX.h:1201
clang::StmtVisitorBase< std::add_pointer, ASTStmtWriter, void, ParamTys... >::P
ParamTys P
Definition: StmtVisitor.h:171
clang::CXXNullPtrLiteralExpr
The null pointer literal (C++11 [lex.nullptr])
Definition: ExprCXX.h:759
clang::CoroutineBodyStmt
Represents the body of a coroutine.
Definition: StmtCXX.h:317
clang::OffsetOfNode::Field
@ Field
A field.
Definition: Expr.h:2347
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:1930
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:4887
clang::BinaryOperator::getOperatorLoc
SourceLocation getOperatorLoc() const
Definition: Expr.h:3848
clang::ASTRecordWriter::AddAPFloat
void AddAPFloat(const llvm::APFloat &Value)
Emit a floating-point value.
Definition: ASTWriter.cpp:5238
clang::serialization::STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1959
clang::RecoveryExpr::getEndLoc
SourceLocation getEndLoc() const
Definition: Expr.h:6444
clang::CoawaitExpr
Represents a 'co_await' expression.
Definition: ExprCXX.h:4789
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:2755
clang::serialization::EXPR_OBJC_ENCODE
@ EXPR_OBJC_ENCODE
An ObjCEncodeExpr record.
Definition: ASTBitCodes.h:1737
clang::serialization::EXPR_OBJC_BRIDGED_CAST
@ EXPR_OBJC_BRIDGED_CAST
Definition: ASTBitCodes.h:1985
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:2897
clang::serialization::EXPR_OBJC_IVAR_REF_EXPR
@ EXPR_OBJC_IVAR_REF_EXPR
An ObjCIvarRefExpr record.
Definition: ASTBitCodes.h:1746
clang::serialization::STMT_STOP
@ STMT_STOP
A marker record that indicates that we are at the end of an expression.
Definition: ASTBitCodes.h:1527
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:3567
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:3266
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:1919
clang::CoroutineBodyStmt::getParamMoves
ArrayRef< Stmt const * > getParamMoves() const
Definition: StmtCXX.h:419
clang::CompoundAssignOperator
CompoundAssignOperator - For compound assignments (e.g.
Definition: Expr.h:4054
clang::ChooseExpr::getCond
Expr * getCond() const
Definition: Expr.h:4564
clang::CXXDependentScopeMemberExpr::isImplicitAccess
bool isImplicitAccess() const
True if this is an implicit access, i.e.
Definition: ExprCXX.h:3657
clang::CXXTypeidExpr::getTypeOperandSourceInfo
TypeSourceInfo * getTypeOperandSourceInfo() const
Retrieve source information for the type operand.
Definition: ExprCXX.h:882
clang::serialization::EXPR_PAREN
@ EXPR_PAREN
A ParenExpr record.
Definition: ASTBitCodes.h:1620
clang::serialization::EXPR_CXX_DEFAULT_INIT
@ EXPR_CXX_DEFAULT_INIT
Definition: ASTBitCodes.h:1858
clang::CXXInheritedCtorInitExpr::inheritedFromVBase
bool inheritedFromVBase() const
Determine whether the inherited constructor is inherited from a virtual base of the object we constru...
Definition: ExprCXX.h:1700
clang::FloatingLiteral::getRawSemantics
llvm::APFloatBase::Semantics getRawSemantics() const
Get a raw enumeration value representing the floating-point semantics of this literal (32-bit IEEE,...
Definition: Expr.h:1663
clang::CXXNoexceptExpr
Represents a C++11 noexcept expression (C++ [expr.unary.noexcept]).
Definition: ExprCXX.h:4014
clang::serialization::STMT_SEH_EXCEPT
@ STMT_SEH_EXCEPT
Definition: ASTBitCodes.h:1904
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:3445
clang::MSPropertySubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: ExprCXX.h:1031
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:1590
ASTRecordWriter.h
clang::CoroutineSuspendExpr::children
child_range children()
Definition: ExprCXX.h:4774
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:1957
clang::serialization::EXPR_CUDA_KERNEL_CALL
@ EXPR_CUDA_KERNEL_CALL
Definition: ASTBitCodes.h:1893
clang::StringLiteral::getCharByteWidth
unsigned getCharByteWidth() const
Definition: Expr.h:1880
clang::serialization::STMT_OMP_PARALLEL_MASTER_DIRECTIVE
@ STMT_OMP_PARALLEL_MASTER_DIRECTIVE
Definition: ASTBitCodes.h:1924
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:1686
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:2029
clang::CXXPseudoDestructorExpr::getDestroyedTypeInfo
TypeSourceInfo * getDestroyedTypeInfo() const
Retrieve the source location information for the type being destroyed.
Definition: ExprCXX.h:2627
clang::DeclStmt
DeclStmt - Adaptor class for mixing declarations with statements and expressions.
Definition: Stmt.h:1299
clang::ContinueStmt
ContinueStmt - This represents a continue.
Definition: Stmt.h:2725
clang::CXXPseudoDestructorExpr::getDestroyedTypeLoc
SourceLocation getDestroyedTypeLoc() const
Retrieve the starting location of the type being destroyed.
Definition: ExprCXX.h:2642
clang::BinaryConditionalOperator::getFalseExpr
Expr * getFalseExpr() const
getFalseExpr - Return the subexpression which will be evaluated if the condnition evaluates to false;...
Definition: Expr.h:4261
clang::SubstNonTypeTemplateParmPackExpr::getParameterPackLocation
SourceLocation getParameterPackLocation() const
Retrieve the location of the parameter pack name.
Definition: ExprCXX.h:4360
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:2349
clang::serialization::STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
@ STMT_OMP_MASTER_TASKLOOP_DIRECTIVE
Definition: ASTBitCodes.h:1948
clang::ChooseExpr::getLHS
Expr * getLHS() const
Definition: Expr.h:4566
clang::CXXConstCastExpr
A C++ const_cast expression (C++ [expr.const.cast]).
Definition: ExprCXX.h:562
clang::CXXThisExpr
Represents the this expression in C++.
Definition: ExprCXX.h:1142
clang::ASTRecordWriter::AddDeclRef
void AddDeclRef(const Decl *D)
Emit a reference to a declaration.
Definition: ASTRecordWriter.h:226
clang::serialization::EXPR_COYIELD
@ EXPR_COYIELD
Definition: ASTBitCodes.h:1992
clang::ExtVectorElementExpr
ExtVectorElementExpr - This represents access to specific elements of a vector, and may occur on the ...
Definition: Expr.h:5910
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:6367
clang::PredefinedExpr
[C99 6.4.2.2] - A predefined identifier such as func.
Definition: Expr.h:1959
clang::serialization::EXPR_PREDEFINED
@ EXPR_PREDEFINED
A PredefinedExpr record.
Definition: ASTBitCodes.h:1599
clang::serialization::EXPR_CXX_UNRESOLVED_CONSTRUCT
@ EXPR_CXX_UNRESOLVED_CONSTRUCT
Definition: ASTBitCodes.h:1870
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:1950
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:1880
clang::CXXConstructExpr::getLocation
SourceLocation getLocation() const
Definition: ExprCXX.h:1534
clang::UnresolvedMemberExpr::hasUnresolvedUsing
bool hasUnresolvedUsing() const
Determine whether the lookup results contain an unresolved using declaration.
Definition: ExprCXX.h:3917
clang::SizeOfPackExpr::isPartiallySubstituted
bool isPartiallySubstituted() const
Determine whether this represents a partially-substituted sizeof...
Definition: ExprCXX.h:4232
clang::SEHFinallyStmt
Definition: Stmt.h:3405
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:1817
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:2581
clang::serialization::EXPR_MATERIALIZE_TEMPORARY
@ EXPR_MATERIALIZE_TEMPORARY
Definition: ASTBitCodes.h:1887
clang::CompoundLiteralExpr::getInitializer
const Expr * getInitializer() const
Definition: Expr.h:3428
clang::serialization::EXPR_RECOVERY
@ EXPR_RECOVERY
A RecoveryExpr record.
Definition: ASTBitCodes.h:1725
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:4547
clang::ArraySubscriptExpr::getRBracketLoc
SourceLocation getRBracketLoc() const
Definition: Expr.h:2693
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:2210
clang::OMPArraySectionExpr
OpenMP 5.0 [2.1.5, Array Sections].
Definition: ExprOpenMP.h:56
clang::ConceptSpecializationExpr::getTemplateArguments
ArrayRef< TemplateArgument > getTemplateArguments() const
Definition: ExprConcepts.h:94
clang::CXXDefaultArgExpr::getUsedLocation
SourceLocation getUsedLocation() const
Retrieve the location where this default argument was actually used.
Definition: ExprCXX.h:1287
clang
Definition: CalledOnceCheck.h:17
clang::CUDAKernelCallExpr::getConfig
const CallExpr * getConfig() const
Definition: ExprCXX.h:258
clang::StmtExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: Expr.h:4373
clang::ObjCIvarRefExpr::isArrow
bool isArrow() const
Definition: ExprObjC.h:584
clang::serialization::STMT_OMP_SECTIONS_DIRECTIVE
@ STMT_OMP_SECTIONS_DIRECTIVE
Definition: ASTBitCodes.h:1917
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:4905
clang::serialization::EXPR_CXX_UUIDOF_EXPR
@ EXPR_CXX_UUIDOF_EXPR
Definition: ASTBitCodes.h:1901
clang::concepts::Requirement::SubstitutionDiagnostic::DiagMessage
StringRef DiagMessage
Definition: ExprConcepts.h:169
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:773
clang::CXXUnresolvedConstructExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Retrieve the type source information for the type being constructed.
Definition: ExprCXX.h:3485
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:1650
clang::serialization::EXPR_EXT_VECTOR_ELEMENT
@ EXPR_EXT_VECTOR_ELEMENT
An ExtVectorElementExpr record.
Definition: ASTBitCodes.h:1665
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:114
clang::PseudoObjectExpr::getResultExprIndex
unsigned getResultExprIndex() const
Return the index of the result-bearing expression into the semantics expressions, or PseudoObjectExpr...
Definition: Expr.h:6149
clang::Stmt
Stmt - This represents one statement.
Definition: Stmt.h:70
clang::SourceLocExpr::getBeginLoc
SourceLocation getBeginLoc() const
Definition: Expr.h:4727
clang::OMPDistributeParallelForDirective
This represents '#pragma omp distribute parallel for' composite directive.
Definition: StmtOpenMP.h:4491
clang::GenericSelectionExpr::getGenericLoc
SourceLocation getGenericLoc() const
Definition: Expr.h:5875
clang::UnaryOperator::getOpcode
Opcode getOpcode() const
Definition: Expr.h:2205
clang::DefaultStmt
Definition: Stmt.h:1755
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:3858
clang::ObjCAutoreleasePoolStmt
Represents Objective-C's @autoreleasepool Statement.
Definition: StmtObjC.h:393
clang::CXXTemporaryObjectExpr::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: ExprCXX.h:1826
clang::ShuffleVectorExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4415
clang::FPOptionsOverride::getAsOpaqueInt
storage_type getAsOpaqueInt() const
Definition: LangOptions.h:831
clang::MatrixSubscriptExpr::getColumnIdx
Expr * getColumnIdx()
Definition: Expr.h:2757
clang::CXXNewExpr::isParenTypeId
bool isParenTypeId() const
Definition: ExprCXX.h:2309
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:5656
clang::ConditionalOperator::getCond
Expr * getCond() const
Definition: Expr.h:4168
clang::serialization::STMT_OMP_BARRIER_DIRECTIVE
@ STMT_OMP_BARRIER_DIRECTIVE
Definition: ASTBitCodes.h:1929
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:2315
clang::GenericSelectionExpr
Represents a C11 generic selection.
Definition: Expr.h:5628
clang::CXXScalarValueInitExpr
An expression "T()" which creates a value-initialized rvalue of type T, which is a non-class type.
Definition: ExprCXX.h:2093
clang::ChooseExpr::getRHS
Expr * getRHS() const
Definition: Expr.h:4568
clang::serialization::EXPR_ATOMIC
@ EXPR_ATOMIC
An AtomicExpr record.
Definition: ASTBitCodes.h:1722
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:1935
clang::serialization::EXPR_OBJC_STRING_LITERAL
@ EXPR_OBJC_STRING_LITERAL
An ObjCStringLiteral record.
Definition: ASTBitCodes.h:1730
clang::serialization::EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
@ EXPR_SUBST_NON_TYPE_TEMPLATE_PARM
Definition: ASTBitCodes.h:1884
clang::serialization::EXPR_FIXEDPOINT_LITERAL
@ EXPR_FIXEDPOINT_LITERAL
Definition: ASTBitCodes.h:1996
clang::OMPIteratorExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprOpenMP.h:369
clang::ParenListExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:5583
clang::InitListExpr::getLBraceLoc
SourceLocation getLBraceLoc() const
Definition: Expr.h:4940
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:1701
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:1276
clang::TypeSourceInfo
A container of type source information.
Definition: Type.h:6530
clang::CXXUuidofExpr::isTypeOperand
bool isTypeOperand() const
Definition: ExprCXX.h:1086
clang::CXXDependentScopeMemberExpr::getNumTemplateArgs
unsigned getNumTemplateArgs() const
Retrieve the number of template arguments provided as part of this template-id.
Definition: ExprCXX.h:3769
clang::NamedDecl::getDeclName
DeclarationName getDeclName() const
Get the actual, stored name of the declaration, which may be a special name.
Definition: Decl.h:311
clang::OMPUnrollDirective
This represents the '#pragma omp unroll' loop transformation directive.
Definition: StmtOpenMP.h:5574
clang::VAArgExpr::getBuiltinLoc
SourceLocation getBuiltinLoc() const
Definition: Expr.h:4660
clang::CXXNewExpr::getOperatorDelete
FunctionDecl * getOperatorDelete() const
Definition: ExprCXX.h:2259
clang::serialization::STMT_OMP_TASK_DIRECTIVE
@ STMT_OMP_TASK_DIRECTIVE
Definition: ASTBitCodes.h:1927
clang::serialization::EXPR_CXX_DEFAULT_ARG
@ EXPR_CXX_DEFAULT_ARG
Definition: ASTBitCodes.h:1857
clang::ObjCMessageExpr::getMethodDecl
const ObjCMethodDecl * getMethodDecl() const
Definition: ExprObjC.h:1346
clang::serialization::STMT_LABEL
@ STMT_LABEL
A LabelStmt record.
Definition: ASTBitCodes.h:1548
clang::AbstractConditionalOperator::getColonLoc
SourceLocation getColonLoc() const
Definition: Expr.h:4135
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:2318
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:2577
clang::CXXDeleteExpr::getArgument
Expr * getArgument()
Definition: ExprCXX.h:2456
clang::serialization::STMT_OMP_SECTION_DIRECTIVE
@ STMT_OMP_SECTION_DIRECTIVE
Definition: ASTBitCodes.h:1918
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:5578
clang::CXXFunctionalCastExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: ExprCXX.h:1768
clang::OMPIteratorExpr::getAssignLoc
SourceLocation getAssignLoc(unsigned I) const
Gets the location of '=' for the given iterator definition.
Definition: Expr.cpp:4960
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:2073
clang::serialization::STMT_SEH_FINALLY
@ STMT_SEH_FINALLY
Definition: ASTBitCodes.h:1905
clang::FunctionParmPackExpr::end
iterator end() const
Definition: ExprCXX.h:4435
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:1954
clang::StringLiteral::getLength
unsigned getLength() const
Definition: Expr.h:1879
clang::CXXPseudoDestructorExpr::isArrow
bool isArrow() const
Determine whether this pseudo-destructor expression was written using an '->' (otherwise,...
Definition: ExprCXX.h:2597
clang::ImplicitCastExpr
ImplicitCastExpr - Allows us to explicitly represent implicit type conversions, which have no direct ...
Definition: Expr.h:3619
clang::VAArgExpr
Represents a call to the builtin function __builtin_va_arg.
Definition: Expr.h:4633
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:4682
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:1920
clang::MemberExpr
MemberExpr - [C99 6.5.2.3] Structure and Union Members.
Definition: Expr.h:3164
clang::serialization::EXPR_OPAQUE_VALUE
@ EXPR_OPAQUE_VALUE
Definition: ASTBitCodes.h:1877
clang::ConceptReference::getNestedNameSpecifierLoc
const NestedNameSpecifierLoc & getNestedNameSpecifierLoc() const
Definition: ASTConcept.h:136
clang::serialization::STMT_OMP_TARGET_TEAMS_DIRECTIVE
@ STMT_OMP_TARGET_TEAMS_DIRECTIVE
Definition: ASTBitCodes.h:1967
clang::ArrayTypeTraitExpr::getQueriedTypeSourceInfo
TypeSourceInfo * getQueriedTypeSourceInfo() const
Definition: ExprCXX.h:2813
clang::serialization::EXPR_OFFSETOF
@ EXPR_OFFSETOF
An OffsetOfExpr record.
Definition: ASTBitCodes.h:1629
clang::serialization::EXPR_OMP_ITERATOR
@ EXPR_OMP_ITERATOR
Definition: ASTBitCodes.h:1982
clang::OMPIteratorExpr::getHelper
OMPIteratorHelperData & getHelper(unsigned I)
Fetches helper data for the specified iteration space.
Definition: Expr.cpp:4982
clang::InitListExpr::getInit
const Expr * getInit(unsigned Init) const
Definition: Expr.h:4839
clang::serialization::STMT_OMP_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1922
clang::CXXDependentScopeMemberExpr::isArrow
bool isArrow() const
Determine whether this member expression used the '->' operator; otherwise, it used the '.
Definition: ExprCXX.h:3674
clang::DeclRefExpr::getQualifierLoc
NestedNameSpecifierLoc getQualifierLoc() const
If the name was qualified, retrieves the nested-name-specifier that precedes the name,...
Definition: Expr.h:1314
clang::serialization::EXPR_CHOOSE
@ EXPR_CHOOSE
A ChooseExpr record.
Definition: ASTBitCodes.h:1698
clang::serialization::EXPR_LAMBDA
@ EXPR_LAMBDA
Definition: ASTBitCodes.h:1988
clang::serialization::STMT_OMP_CANCELLATION_POINT_DIRECTIVE
@ STMT_OMP_CANCELLATION_POINT_DIRECTIVE
Definition: ASTBitCodes.h:1944
clang::serialization::EXPR_CONSTANT
@ EXPR_CONSTANT
A constant expression context.
Definition: ASTBitCodes.h:1596
clang::OMPDistributeSimdDirective
This represents '#pragma omp distribute simd' composite directive.
Definition: StmtOpenMP.h:4652
clang::ConceptReference::getConceptNameInfo
const DeclarationNameInfo & getConceptNameInfo() const
Definition: ASTConcept.h:140
clang::CXXDeleteExpr::isGlobalDelete
bool isGlobalDelete() const
Definition: ExprCXX.h:2440
clang::AtomicExpr::getNumSubExprs
static unsigned getNumSubExprs(AtomicOp Op)
Determine the number of arguments the specified atomic builtin should have.
Definition: Expr.cpp:4716
clang::AbstractConditionalOperator::getQuestionLoc
SourceLocation getQuestionLoc() const
Definition: Expr.h:4134
clang::serialization::STMT_SWITCH
@ STMT_SWITCH
A SwitchStmt record.
Definition: ASTBitCodes.h:1557
clang::serialization::EXPR_FLOATING_LITERAL
@ EXPR_FLOATING_LITERAL
A FloatingLiteral record.
Definition: ASTBitCodes.h:1608
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:3997
clang::CXXConstructExpr::getArg
Expr * getArg(unsigned Arg)
Return the specified argument.
Definition: ExprCXX.h:1611
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1966
clang::serialization::EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
@ EXPR_CXX_PROPERTY_SUBSCRIPT_EXPR
Definition: ASTBitCodes.h:1900
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:4599
clang::CXXStdInitializerListExpr
Implicit construction of a std::initializer_list<T> object from an array temporary within list-initia...
Definition: ExprCXX.h:791
clang::serialization::STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
@ STMT_OMP_DISTRIBUTE_PARALLEL_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1958
clang::concepts::Requirement::RK_Nested
@ RK_Nested
Definition: ExprConcepts.h:155
clang::DeclRefExpr::refersToEnclosingVariableOrCapture
bool refersToEnclosingVariableOrCapture() const
Does this DeclRefExpr refer to an enclosing local or a captured variable?
Definition: Expr.h:1425
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:1596
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:1993
clang::ExprWithCleanups::cleanupsHaveSideEffects
bool cleanupsHaveSideEffects() const
Definition: ExprCXX.h:3399
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1964
clang::PseudoObjectExpr::NoResult
@ NoResult
Definition: Expr.h:6132
clang::ObjCPropertyRefExpr::getClassReceiver
ObjCInterfaceDecl * getClassReceiver() const
Definition: ExprObjC.h:767
clang::serialization::EXPR_CXX_UUIDOF_TYPE
@ EXPR_CXX_UUIDOF_TYPE
Definition: ASTBitCodes.h:1902
clang::UnresolvedLookupExpr::isOverloaded
bool isOverloaded() const
True if this lookup is overloaded.
Definition: ExprCXX.h:3161
clang::Expr
This represents one expression.
Definition: Expr.h:109
clang::serialization::STMT_GOTO
@ STMT_GOTO
A GotoStmt record.
Definition: ASTBitCodes.h:1569
clang::serialization::EXPR_OBJC_SELECTOR_EXPR
@ EXPR_OBJC_SELECTOR_EXPR
An ObjCSelectorExpr record.
Definition: ASTBitCodes.h:1740
clang::DeclAccessPair::getDecl
NamedDecl * getDecl() const
Definition: DeclAccessPair.h:41
clang::CXXConstructExpr::isListInitialization
bool isListInitialization() const
Whether this constructor call was written as list-initialization.
Definition: ExprCXX.h:1551
clang::ObjCIvarRefExpr::isFreeIvar
bool isFreeIvar() const
Definition: ExprObjC.h:585
clang::serialization::EXPR_CXX_NEW
@ EXPR_CXX_NEW
Definition: ASTBitCodes.h:1862
clang::serialization::DESIG_ARRAY_RANGE
@ DESIG_ARRAY_RANGE
GNU array range designator.
Definition: ASTBitCodes.h:2016
clang::serialization::EXPR_TYPE_TRAIT
@ EXPR_TYPE_TRAIT
Definition: ASTBitCodes.h:1879
clang::ChooseExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:4574
clang::serialization::STMT_OBJC_FINALLY
@ STMT_OBJC_FINALLY
An ObjCAtFinallyStmt record.
Definition: ASTBitCodes.h:1773
clang::serialization::STMT_WHILE
@ STMT_WHILE
A WhileStmt record.
Definition: ASTBitCodes.h:1560
clang::FunctionParmPackExpr::getParameterPackLocation
SourceLocation getParameterPackLocation() const
Get the location of the parameter pack.
Definition: ExprCXX.h:4429
clang::CXXDeleteExpr::isArrayFormAsWritten
bool isArrayFormAsWritten() const
Definition: ExprCXX.h:2442
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:1318
clang::serialization::STMT_OMP_FOR_DIRECTIVE
@ STMT_OMP_FOR_DIRECTIVE
Definition: ASTBitCodes.h:1915
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:2087
clang::ObjCPropertyRefExpr::getSuperReceiverType
QualType getSuperReceiverType() const
Definition: ExprObjC.h:763
clang::serialization::EXPR_BINARY_CONDITIONAL_OPERATOR
@ EXPR_BINARY_CONDITIONAL_OPERATOR
Definition: ASTBitCodes.h:1878
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::InitListExpr::hadArrayRangeDesignator
bool hadArrayRangeDesignator() const
Definition: Expr.h:4963
clang::concepts::Requirement::RK_Type
@ RK_Type
Definition: ExprConcepts.h:155
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:3251
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:3475
clang::FixedPointLiteral::getLocation
SourceLocation getLocation() const
Retrieve the location of the literal.
Definition: Expr.h:1562
clang::ArrayTypeTraitExpr::getDimensionExpression
Expr * getDimensionExpression() const
Definition: ExprCXX.h:2817
clang::CXXThisExpr::isImplicit
bool isImplicit() const
Definition: ExprCXX.h:1159
clang::ASTConstraintSatisfaction::NumRecords
std::size_t NumRecords
Definition: ASTConcept.h:79
clang::serialization::DESIG_FIELD_DECL
@ DESIG_FIELD_DECL
Field designator where the field has been resolved to a declaration.
Definition: ASTBitCodes.h:2010
clang::Stmt::LambdaExprBits
LambdaExprBitfields LambdaExprBits
Definition: Stmt.h:1070
clang::MSAsmStmt
This represents a Microsoft inline-assembly statement extension.
Definition: Stmt.h:3257
clang::CXXDefaultInitExpr::getField
FieldDecl * getField()
Get the field whose initializer will be used.
Definition: ExprCXX.h:1342
clang::DeclRefExpr
A reference to a declared variable, function, enum, etc.
Definition: Expr.h:1223
clang::ASTWriter::AddToken
void AddToken(const Token &Tok, RecordDataImpl &Record)
Emit a token.
Definition: ASTWriter.cpp:4371
clang::AddrLabelExpr::getLabel
LabelDecl * getLabel() const
Definition: Expr.h:4327
clang::serialization::STMT_OMP_CRITICAL_DIRECTIVE
@ STMT_OMP_CRITICAL_DIRECTIVE
Definition: ASTBitCodes.h:1921
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:4031
clang::CallExpr
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition: Expr.h:2801
clang::OMPParallelSectionsDirective
This represents '#pragma omp parallel sections' directive.
Definition: StmtOpenMP.h:2383
clang::InitListExpr::getNumInits
unsigned getNumInits() const
Definition: Expr.h:4821
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:1963
clang::ShuffleVectorExpr
ShuffleVectorExpr - clang-specific builtin-in function __builtin_shufflevector.
Definition: Expr.h:4397
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:1662
clang::CXXConstructExpr
Represents a call to a C++ constructor.
Definition: ExprCXX.h:1460
clang::ObjCIvarRefExpr
ObjCIvarRefExpr - A reference to an ObjC instance variable.
Definition: ExprObjC.h:548
clang::CXXConstructExpr::getConstructionKind
ConstructionKind getConstructionKind() const
Determine whether this constructor is actually constructing a base class (rather than a complete obje...
Definition: ExprCXX.h:1580
clang::GenericSelectionExpr::getNumAssocs
unsigned getNumAssocs() const
The number of association expressions.
Definition: Expr.h:5794
clang::CXXNewExpr::raw_arg_begin
raw_arg_iterator raw_arg_begin()
Definition: ExprCXX.h:2384
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:1044
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:1947
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:1855
clang::serialization::EXPR_CXX_TEMPORARY_OBJECT
@ EXPR_CXX_TEMPORARY_OBJECT
A CXXTemporaryObjectExpr record.
Definition: ASTBitCodes.h:1820
clang::BinaryConditionalOperator::getOpaqueValue
OpaqueValueExpr * getOpaqueValue() const
getOpaqueValue - Return the opaque value placeholder.
Definition: Expr.h:4245
clang::serialization::STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
@ STMT_OMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_DIRECTIVE
Definition: ASTBitCodes.h:1965
clang::OpaqueValueExpr::isUnique
bool isUnique() const
Definition: Expr.h:1193
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:1844
clang::ExplicitCastExpr
ExplicitCastExpr - An explicit cast written in the source code.
Definition: Expr.h:3697
clang::CXXConstructExpr::isElidable
bool isElidable() const
Whether this construction is elidable.
Definition: ExprCXX.h:1538
clang::DependentCoawaitExpr::getKeywordLoc
SourceLocation getKeywordLoc() const
Definition: ExprCXX.h:4850
clang::concepts::ExprRequirement::SS_ConstraintsNotSatisfied
@ SS_ConstraintsNotSatisfied
Definition: ExprConcepts.h:267
clang::CharacterLiteral::getKind
CharacterKind getKind() const
Definition: Expr.h:1611
clang::ReturnStmt
ReturnStmt - This represents a return, optionally of an expression: return; return 4;.
Definition: Stmt.h:2792
clang::CXXConstructExpr::isStdInitListInitialization
bool isStdInitListInitialization() const
Whether this constructor call was written as list-initialization, but was interpreted as forming a st...
Definition: ExprCXX.h:1562
clang::DependentCoawaitExpr::children
child_range children()
Definition: ExprCXX.h:4858
clang::DeclRefExpr::hasTemplateKWAndArgsInfo
bool hasTemplateKWAndArgsInfo() const
Definition: Expr.h:1342
clang::serialization::EXPR_ARRAY_INIT_LOOP
@ EXPR_ARRAY_INIT_LOOP
An ArrayInitLoopExpr record.
Definition: ASTBitCodes.h:1680
clang::LambdaExpr::capture_init_begin
capture_init_iterator capture_init_begin()
Retrieve the first initialization argument for this lambda expression (which initializes the first ca...
Definition: ExprCXX.h:1992
clang::GenericSelectionExpr::getDefaultLoc
SourceLocation getDefaultLoc() const
Definition: Expr.h:5878
clang::SEHLeaveStmt
Represents a __leave statement.
Definition: Stmt.h:3493
clang::serialization::EXPR_IMAGINARY_LITERAL
@ EXPR_IMAGINARY_LITERAL
An ImaginaryLiteral record.
Definition: ASTBitCodes.h:1611
clang::CoroutineSuspendExpr
Represents an expression that might suspend coroutine execution; either a co_await or co_yield expres...
Definition: ExprCXX.h:4696
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: ASTWriter.cpp:5339
clang::OMPBarrierDirective
This represents '#pragma omp barrier' directive.
Definition: StmtOpenMP.h:2572
clang::serialization::STMT_REF_PTR
@ STMT_REF_PTR
A reference to a previously [de]serialized Stmt record.
Definition: ASTBitCodes.h:1533
clang::OMPArraySectionExpr::getColonLocFirst
SourceLocation getColonLocFirst() const
Definition: ExprOpenMP.h:118
clang::SYCLUniqueStableNameExpr
Definition: Expr.h:2056
clang::OffsetOfExpr::getRParenLoc
SourceLocation getRParenLoc() const
Return the location of the right parentheses.
Definition: Expr.h:2483
clang::ASTRecordWriter::AddString
void AddString(StringRef Str)
Emit a string.
Definition: ASTRecordWriter.h:288
clang::GenericSelectionExpr::getRParenLoc
SourceLocation getRParenLoc() const
Definition: Expr.h:5879
clang::ExtVectorElementExpr::getAccessorLoc
SourceLocation getAccessorLoc() const
Definition: Expr.h:5934
clang::ObjCBridgedCastExpr::getLParenLoc
SourceLocation getLParenLoc() const
Definition: ExprObjC.h:1649
clang::serialization::EXPR_OBJC_SUBSCRIPT_REF_EXPR
@ EXPR_OBJC_SUBSCRIPT_REF_EXPR
An ObjCSubscriptRefExpr record.
Definition: ASTBitCodes.h:1752