clang  14.0.0git
ASTNodeTraverser.h
Go to the documentation of this file.
1 //===--- ASTNodeTraverser.h - Traversal of AST nodes ----------------------===//
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 // This file implements the AST traversal facilities. Other users
10 // of this class may make use of the same traversal logic by inheriting it,
11 // similar to RecursiveASTVisitor.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_CLANG_AST_ASTNODETRAVERSER_H
16 #define LLVM_CLANG_AST_ASTNODETRAVERSER_H
17 
19 #include "clang/AST/AttrVisitor.h"
21 #include "clang/AST/DeclVisitor.h"
22 #include "clang/AST/LocInfoType.h"
23 #include "clang/AST/StmtVisitor.h"
25 #include "clang/AST/Type.h"
26 #include "clang/AST/TypeVisitor.h"
27 
28 namespace clang {
29 
30 class APValue;
31 
32 /**
33 
34 ASTNodeTraverser traverses the Clang AST for dumping purposes.
35 
36 The `Derived::doGetNodeDelegate()` method is required to be an accessible member
37 which returns a reference of type `NodeDelegateType &` which implements the
38 following interface:
39 
40 struct {
41  template <typename Fn> void AddChild(Fn DoAddChild);
42  template <typename Fn> void AddChild(StringRef Label, Fn DoAddChild);
43 
44  void Visit(const comments::Comment *C, const comments::FullComment *FC);
45  void Visit(const Attr *A);
46  void Visit(const TemplateArgument &TA, SourceRange R = {},
47  const Decl *From = nullptr, StringRef Label = {});
48  void Visit(const Stmt *Node);
49  void Visit(const Type *T);
50  void Visit(QualType T);
51  void Visit(const Decl *D);
52  void Visit(const CXXCtorInitializer *Init);
53  void Visit(const OMPClause *C);
54  void Visit(const BlockDecl::Capture &C);
55  void Visit(const GenericSelectionExpr::ConstAssociation &A);
56  void Visit(const concepts::Requirement *R);
57  void Visit(const APValue &Value, QualType Ty);
58 };
59 */
60 template <typename Derived, typename NodeDelegateType>
62  : public ConstDeclVisitor<Derived>,
63  public ConstStmtVisitor<Derived>,
64  public comments::ConstCommentVisitor<Derived, void,
65  const comments::FullComment *>,
66  public TypeVisitor<Derived>,
67  public ConstAttrVisitor<Derived>,
68  public ConstTemplateArgumentVisitor<Derived> {
69 
70  /// Indicates whether we should trigger deserialization of nodes that had
71  /// not already been loaded.
72  bool Deserialize = false;
73 
75 
76  NodeDelegateType &getNodeDelegate() {
77  return getDerived().doGetNodeDelegate();
78  }
79  Derived &getDerived() { return *static_cast<Derived *>(this); }
80 
81 public:
82  void setDeserialize(bool D) { Deserialize = D; }
83  bool getDeserialize() const { return Deserialize; }
84 
87 
88  void Visit(const Decl *D) {
90  return;
91 
92  getNodeDelegate().AddChild([=] {
93  getNodeDelegate().Visit(D);
94  if (!D)
95  return;
96 
98 
99  for (const auto &A : D->attrs())
100  Visit(A);
101 
102  if (const comments::FullComment *Comment =
104  Visit(Comment, Comment);
105 
106  // Decls within functions are visited by the body.
107  if (!isa<FunctionDecl>(*D) && !isa<ObjCMethodDecl>(*D)) {
108  if (Traversal != TK_AsIs) {
109  if (const auto *CTSD = dyn_cast<ClassTemplateSpecializationDecl>(D)) {
110  auto SK = CTSD->getSpecializationKind();
113  return;
114  }
115  }
116  if (const auto *DC = dyn_cast<DeclContext>(D))
117  dumpDeclContext(DC);
118  }
119  });
120  }
121 
122  void Visit(const Stmt *Node, StringRef Label = {}) {
123  getNodeDelegate().AddChild(Label, [=] {
124  const Stmt *S = Node;
125 
126  if (auto *E = dyn_cast_or_null<Expr>(S)) {
127  switch (Traversal) {
128  case TK_AsIs:
129  break;
131  S = E->IgnoreUnlessSpelledInSource();
132  break;
133  }
134  }
135 
136  getNodeDelegate().Visit(S);
137 
138  if (!S) {
139  return;
140  }
141 
143 
144  // Some statements have custom mechanisms for dumping their children.
145  if (isa<DeclStmt>(S) || isa<GenericSelectionExpr>(S) ||
146  isa<RequiresExpr>(S))
147  return;
148 
149  if (Traversal == TK_IgnoreUnlessSpelledInSource &&
150  isa<LambdaExpr, CXXForRangeStmt, CallExpr,
151  CXXRewrittenBinaryOperator>(S))
152  return;
153 
154  for (const Stmt *SubStmt : S->children())
155  Visit(SubStmt);
156  });
157  }
158 
159  void Visit(QualType T) {
160  SplitQualType SQT = T.split();
161  if (!SQT.Quals.hasQualifiers())
162  return Visit(SQT.Ty);
163 
164  getNodeDelegate().AddChild([=] {
165  getNodeDelegate().Visit(T);
166  Visit(T.split().Ty);
167  });
168  }
169 
170  void Visit(const Type *T) {
171  getNodeDelegate().AddChild([=] {
172  getNodeDelegate().Visit(T);
173  if (!T)
174  return;
176 
177  QualType SingleStepDesugar =
179  if (SingleStepDesugar != QualType(T, 0))
180  Visit(SingleStepDesugar);
181  });
182  }
183 
184  void Visit(const Attr *A) {
185  getNodeDelegate().AddChild([=] {
186  getNodeDelegate().Visit(A);
188  });
189  }
190 
191  void Visit(const CXXCtorInitializer *Init) {
192  if (Traversal == TK_IgnoreUnlessSpelledInSource && !Init->isWritten())
193  return;
194  getNodeDelegate().AddChild([=] {
195  getNodeDelegate().Visit(Init);
196  Visit(Init->getInit());
197  });
198  }
199 
200  void Visit(const TemplateArgument &A, SourceRange R = {},
201  const Decl *From = nullptr, const char *Label = nullptr) {
202  getNodeDelegate().AddChild([=] {
203  getNodeDelegate().Visit(A, R, From, Label);
205  });
206  }
207 
208  void Visit(const BlockDecl::Capture &C) {
209  getNodeDelegate().AddChild([=] {
210  getNodeDelegate().Visit(C);
211  if (C.hasCopyExpr())
212  Visit(C.getCopyExpr());
213  });
214  }
215 
216  void Visit(const OMPClause *C) {
217  getNodeDelegate().AddChild([=] {
218  getNodeDelegate().Visit(C);
219  for (const auto *S : C->children())
220  Visit(S);
221  });
222  }
223 
225  getNodeDelegate().AddChild([=] {
226  getNodeDelegate().Visit(A);
227  if (const TypeSourceInfo *TSI = A.getTypeSourceInfo())
228  Visit(TSI->getType());
229  Visit(A.getAssociationExpr());
230  });
231  }
232 
233  void Visit(const concepts::Requirement *R) {
234  getNodeDelegate().AddChild([=] {
235  getNodeDelegate().Visit(R);
236  if (!R)
237  return;
238  if (auto *TR = dyn_cast<concepts::TypeRequirement>(R)) {
239  if (!TR->isSubstitutionFailure())
240  Visit(TR->getType()->getType().getTypePtr());
241  } else if (auto *ER = dyn_cast<concepts::ExprRequirement>(R)) {
242  if (!ER->isExprSubstitutionFailure())
243  Visit(ER->getExpr());
244  if (!ER->getReturnTypeRequirement().isEmpty())
245  Visit(ER->getReturnTypeRequirement()
246  .getTypeConstraint()
247  ->getImmediatelyDeclaredConstraint());
248  } else if (auto *NR = dyn_cast<concepts::NestedRequirement>(R)) {
249  if (!NR->isSubstitutionFailure())
250  Visit(NR->getConstraintExpr());
251  }
252  });
253  }
254 
255  void Visit(const APValue &Value, QualType Ty) {
256  getNodeDelegate().AddChild([=] { getNodeDelegate().Visit(Value, Ty); });
257  }
258 
259  void Visit(const comments::Comment *C, const comments::FullComment *FC) {
260  getNodeDelegate().AddChild([=] {
261  getNodeDelegate().Visit(C, FC);
262  if (!C) {
263  return;
264  }
265  comments::ConstCommentVisitor<Derived, void,
266  const comments::FullComment *>::visit(C,
267  FC);
268  for (comments::Comment::child_iterator I = C->child_begin(),
269  E = C->child_end();
270  I != E; ++I)
271  Visit(*I, FC);
272  });
273  }
274 
275  void Visit(const DynTypedNode &N) {
276  // FIXME: Improve this with a switch or a visitor pattern.
277  if (const auto *D = N.get<Decl>())
278  Visit(D);
279  else if (const auto *S = N.get<Stmt>())
280  Visit(S);
281  else if (const auto *QT = N.get<QualType>())
282  Visit(*QT);
283  else if (const auto *T = N.get<Type>())
284  Visit(T);
285  else if (const auto *C = N.get<CXXCtorInitializer>())
286  Visit(C);
287  else if (const auto *C = N.get<OMPClause>())
288  Visit(C);
289  else if (const auto *T = N.get<TemplateArgument>())
290  Visit(*T);
291  }
292 
293  void dumpDeclContext(const DeclContext *DC) {
294  if (!DC)
295  return;
296 
297  for (const auto *D : (Deserialize ? DC->decls() : DC->noload_decls()))
298  Visit(D);
299  }
300 
302  if (!TPL)
303  return;
304 
305  for (const auto &TP : *TPL)
306  Visit(TP);
307 
308  if (const Expr *RC = TPL->getRequiresClause())
309  Visit(RC);
310  }
311 
312  void
314  if (!TALI)
315  return;
316 
317  for (const auto &TA : TALI->arguments())
319  }
320 
322  const Decl *From = nullptr,
323  const char *Label = nullptr) {
324  Visit(A.getArgument(), A.getSourceRange(), From, Label);
325  }
326 
328  for (unsigned i = 0, e = TAL.size(); i < e; ++i)
329  Visit(TAL[i]);
330  }
331 
332  void dumpObjCTypeParamList(const ObjCTypeParamList *typeParams) {
333  if (!typeParams)
334  return;
335 
336  for (const auto &typeParam : *typeParams) {
337  Visit(typeParam);
338  }
339  }
340 
342  void VisitLocInfoType(const LocInfoType *T) {
344  }
347  Visit(T->getPointeeType());
348  }
350  Visit(T->getPointeeType());
351  }
353  Visit(T->getClass());
354  Visit(T->getPointeeType());
355  }
356  void VisitArrayType(const ArrayType *T) { Visit(T->getElementType()); }
358  VisitArrayType(T);
359  Visit(T->getSizeExpr());
360  }
362  Visit(T->getElementType());
363  Visit(T->getSizeExpr());
364  }
366  Visit(T->getElementType());
367  Visit(T->getSizeExpr());
368  }
369  void VisitVectorType(const VectorType *T) { Visit(T->getElementType()); }
373  for (const QualType &PT : T->getParamTypes())
374  Visit(PT);
375  }
377  Visit(T->getUnderlyingExpr());
378  }
380  Visit(T->getUnderlyingExpr());
381  }
383  Visit(T->getBaseType());
384  }
386  // FIXME: AttrKind
387  Visit(T->getModifiedType());
388  }
391  }
392  void
395  Visit(T->getArgumentPack());
396  }
398  for (const auto &Arg : *T)
399  Visit(Arg);
400  }
402  Visit(T->getPointeeType());
403  }
404  void VisitAtomicType(const AtomicType *T) { Visit(T->getValueType()); }
405  void VisitPipeType(const PipeType *T) { Visit(T->getElementType()); }
408  if (!T->isSugared())
409  Visit(T->getPattern());
410  }
411  // FIXME: ElaboratedType, DependentNameType,
412  // DependentTemplateSpecializationType, ObjCObjectType
413 
415 
417  if (const Expr *Init = D->getInitExpr())
418  Visit(Init);
419  }
420 
422  if (const auto *FTSI = D->getTemplateSpecializationInfo())
423  dumpTemplateArgumentList(*FTSI->TemplateArguments);
424 
425  if (D->param_begin())
426  for (const auto *Parameter : D->parameters())
427  Visit(Parameter);
428 
429  if (const Expr *TRC = D->getTrailingRequiresClause())
430  Visit(TRC);
431 
433  return;
434 
435  if (const auto *C = dyn_cast<CXXConstructorDecl>(D))
436  for (const auto *I : C->inits())
437  Visit(I);
438 
440  Visit(D->getBody());
441  }
442 
443  void VisitFieldDecl(const FieldDecl *D) {
444  if (D->isBitField())
445  Visit(D->getBitWidth());
446  if (Expr *Init = D->getInClassInitializer())
447  Visit(Init);
448  }
449 
450  void VisitVarDecl(const VarDecl *D) {
452  return;
453 
454  if (D->hasInit())
455  Visit(D->getInit());
456  }
457 
459  VisitVarDecl(D);
460  for (const auto *B : D->bindings())
461  Visit(B);
462  }
463 
464  void VisitBindingDecl(const BindingDecl *D) {
466  return;
467  if (const auto *E = D->getBinding())
468  Visit(E);
469  }
470 
472  Visit(D->getAsmString());
473  }
474 
475  void VisitCapturedDecl(const CapturedDecl *D) { Visit(D->getBody()); }
476 
478  for (const auto *E : D->varlists())
479  Visit(E);
480  }
481 
483  Visit(D->getCombiner());
484  if (const auto *Initializer = D->getInitializer())
486  }
487 
489  for (const auto *C : D->clauselists())
490  Visit(C);
491  }
492 
494  Visit(D->getInit());
495  }
496 
498  for (const auto *E : D->varlists())
499  Visit(E);
500  for (const auto *C : D->clauselists())
501  Visit(C);
502  }
503 
504  template <typename SpecializationDecl>
505  void dumpTemplateDeclSpecialization(const SpecializationDecl *D) {
506  for (const auto *RedeclWithBadType : D->redecls()) {
507  // FIXME: The redecls() range sometimes has elements of a less-specific
508  // type. (In particular, ClassTemplateSpecializationDecl::redecls() gives
509  // us TagDecls, and should give CXXRecordDecls).
510  auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType);
511  if (!Redecl) {
512  // Found the injected-class-name for a class template. This will be
513  // dumped as part of its surrounding class so we don't need to dump it
514  // here.
515  assert(isa<CXXRecordDecl>(RedeclWithBadType) &&
516  "expected an injected-class-name");
517  continue;
518  }
519  Visit(Redecl);
520  }
521  }
522 
523  template <typename TemplateDecl>
526 
527  Visit(D->getTemplatedDecl());
528 
529  if (Traversal == TK_AsIs) {
530  for (const auto *Child : D->specializations())
532  }
533  }
534 
536  Visit(D->getUnderlyingType());
537  }
538 
541  Visit(D->getTemplatedDecl());
542  }
543 
545  Visit(D->getAssertExpr());
546  Visit(D->getMessage());
547  }
548 
550  dumpTemplateDecl(D);
551  }
552 
554  dumpTemplateDecl(D);
555  }
556 
560  }
561 
566  }
567 
570  Visit(D->getSpecialization());
572  }
574 
577  }
578 
579  void
582  VisitVarDecl(D);
583  }
584 
589  }
590 
592  if (const auto *TC = D->getTypeConstraint())
593  Visit(TC->getImmediatelyDeclaredConstraint());
594  if (D->hasDefaultArgument())
597  D->defaultArgumentWasInherited() ? "inherited from" : "previous");
598  }
599 
601  if (const auto *E = D->getPlaceholderTypeConstraint())
602  Visit(E);
603  if (D->hasDefaultArgument())
606  D->defaultArgumentWasInherited() ? "inherited from" : "previous");
607  }
608 
611  if (D->hasDefaultArgument())
614  D->defaultArgumentWasInherited() ? "inherited from" : "previous");
615  }
616 
617  void VisitConceptDecl(const ConceptDecl *D) {
619  Visit(D->getConstraintExpr());
620  }
621 
623  if (CSE->hasExplicitTemplateArgs())
624  for (const auto &ArgLoc : CSE->getTemplateArgsAsWritten()->arguments())
625  dumpTemplateArgumentLoc(ArgLoc);
626  }
627 
629  if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl()))
630  Visit(TD->getTypeForDecl());
631  }
632 
633  void VisitFriendDecl(const FriendDecl *D) {
634  if (!D->getFriendType())
635  Visit(D->getFriendDecl());
636  }
637 
640  dumpDeclContext(D);
641  else
642  for (const ParmVarDecl *Parameter : D->parameters())
643  Visit(Parameter);
644 
645  if (D->hasBody())
646  Visit(D->getBody());
647  }
648 
651  }
652 
655  }
656 
658  for (const auto &I : D->inits())
659  Visit(I);
660  }
661 
662  void VisitBlockDecl(const BlockDecl *D) {
663  for (const auto &I : D->parameters())
664  Visit(I);
665 
666  for (const auto &I : D->captures())
667  Visit(I);
668  Visit(D->getBody());
669  }
670 
671  void VisitDeclStmt(const DeclStmt *Node) {
672  for (const auto &D : Node->decls())
673  Visit(D);
674  }
675 
677  for (const auto *A : Node->getAttrs())
678  Visit(A);
679  }
680 
682  Visit(Node->getExceptionDecl());
683  }
684 
686  Visit(Node->getCapturedDecl());
687  }
688 
690  for (const auto *C : Node->clauses())
691  Visit(C);
692  }
693 
694  void VisitInitListExpr(const InitListExpr *ILE) {
695  if (auto *Filler = ILE->getArrayFiller()) {
696  Visit(Filler, "array_filler");
697  }
698  }
699 
700  void VisitBlockExpr(const BlockExpr *Node) { Visit(Node->getBlockDecl()); }
701 
703  if (Expr *Source = Node->getSourceExpr())
704  Visit(Source);
705  }
706 
709  Visit(E->getControllingExpr()->getType()); // FIXME: remove
710 
711  for (const auto Assoc : E->associations()) {
712  Visit(Assoc);
713  }
714  }
715 
717  for (auto *D : E->getLocalParameters())
718  Visit(D);
719  for (auto *R : E->getRequirements())
720  Visit(R);
721  }
722 
725  for (unsigned I = 0, N = Node->capture_size(); I != N; ++I) {
726  const auto *C = Node->capture_begin() + I;
727  if (!C->isExplicit())
728  continue;
729  if (Node->isInitCapture(C))
730  Visit(C->getCapturedVar());
731  else
732  Visit(Node->capture_init_begin()[I]);
733  }
734  dumpTemplateParameters(Node->getTemplateParameterList());
735  for (const auto *P : Node->getCallOperator()->parameters())
736  Visit(P);
737  Visit(Node->getBody());
738  } else {
739  return Visit(Node->getLambdaClass());
740  }
741  }
742 
744  if (Node->isPartiallySubstituted())
745  for (const auto &A : Node->getPartialArguments())
746  Visit(A);
747  }
748 
750  Visit(E->getParameter());
751  }
754  Visit(E->getParameterPack());
755  Visit(E->getArgumentPack());
756  }
757 
759  if (const VarDecl *CatchParam = Node->getCatchParamDecl())
760  Visit(CatchParam);
761  }
762 
765  Visit(Node->getInit());
766  Visit(Node->getLoopVariable());
767  Visit(Node->getRangeInit());
768  Visit(Node->getBody());
769  }
770  }
771 
772  void VisitCallExpr(const CallExpr *Node) {
773  for (const auto *Child :
774  make_filter_range(Node->children(), [this](const Stmt *Child) {
775  if (Traversal != TK_IgnoreUnlessSpelledInSource)
776  return false;
777  return !isa<CXXDefaultArgExpr>(Child);
778  })) {
779  Visit(Child);
780  }
781  }
782 
785  Visit(Node->getLHS());
786  Visit(Node->getRHS());
787  } else {
789  }
790  }
791 
793  Visit(TA.getAsExpr());
794  }
795 
797  Visit(TA.getAsType());
798  }
799 
801  for (const auto &TArg : TA.pack_elements())
802  Visit(TArg);
803  }
804 
805  // Implements Visit methods for Attrs.
806 #include "clang/AST/AttrNodeTraverse.inc"
807 };
808 
809 } // namespace clang
810 
811 #endif // LLVM_CLANG_AST_ASTNODETRAVERSER_H
clang::VarTemplatePartialSpecializationDecl::getTemplateParameters
TemplateParameterList * getTemplateParameters() const
Get the list of template parameters.
Definition: DeclTemplate.h:2977
clang::TemplateDecl::getTemplatedDecl
NamedDecl * getTemplatedDecl() const
Get the underlying, templated declaration.
Definition: DeclTemplate.h:431
clang::ObjCInterfaceDecl
Represents an ObjC class declaration.
Definition: DeclObjC.h:1151
clang::OMPAllocateDecl
This represents '#pragma omp allocate ...' directive.
Definition: DeclOpenMP.h:473
clang::SubstNonTypeTemplateParmExpr
Represents a reference to a non-type template parameter that has been substituted with a template arg...
Definition: ExprCXX.h:4245
clang::TraversalKind
TraversalKind
Defines how we descend a level in the AST when we pass through expressions.
Definition: ASTTypeTraits.h:37
clang::comments::CommentVisitorBase< llvm::make_const_ptr, Derived, void, ParamTys... >::visit
void visit(PTR(Comment) C, ParamTys... P)
Definition: CommentVisitor.h:27
clang::ConceptDecl::getConstraintExpr
Expr * getConstraintExpr() const
Definition: DeclTemplate.h:3250
clang::OMPDeclareReductionDecl::getInitializer
Expr * getInitializer()
Get initializer expression (if specified) of the declare reduction construct.
Definition: DeclOpenMP.h:239
clang::FunctionDecl::doesThisDeclarationHaveABody
bool doesThisDeclarationHaveABody() const
Returns whether this specific declaration of the function has a body.
Definition: Decl.h:2163
clang::Decl::getASTContext
ASTContext & getASTContext() const LLVM_READONLY
Definition: DeclBase.cpp:414
clang::FunctionDecl::isDefaulted
bool isDefaulted() const
Whether this function is defaulted.
Definition: Decl.h:2215
clang::BlockDecl::parameters
ArrayRef< ParmVarDecl * > parameters() const
Definition: Decl.h:4239
clang::ASTNodeTraverser::VisitConceptSpecializationExpr
void VisitConceptSpecializationExpr(const ConceptSpecializationExpr *CSE)
Definition: ASTNodeTraverser.h:622
clang::ASTNodeTraverser::VisitCXXCatchStmt
void VisitCXXCatchStmt(const CXXCatchStmt *Node)
Definition: ASTNodeTraverser.h:681
clang::ASTNodeTraverser::VisitOMPAllocateDecl
void VisitOMPAllocateDecl(const OMPAllocateDecl *D)
Definition: ASTNodeTraverser.h:497
clang::DeclContext::decls
decl_range decls() const
decls_begin/decls_end - Iterate over the declarations stored in this context.
Definition: DeclBase.h:2115
clang::ASTNodeTraverser::Visit
void Visit(const DynTypedNode &N)
Definition: ASTNodeTraverser.h:275
clang::DependentSizedExtVectorType::getSizeExpr
Expr * getSizeExpr() const
Definition: Type.h:3204
clang::NonTypeTemplateParmDecl::getDefaultArgStorage
const DefArgStorage & getDefaultArgStorage() const
Definition: DeclTemplate.h:1459
clang::TypeSourceInfo::getType
QualType getType() const
Return the type wrapped by this type source info.
Definition: Type.h:6406
clang::TemplateTemplateParmDecl::hasDefaultArgument
bool hasDefaultArgument() const
Determine whether this template parameter has a default argument.
Definition: DeclTemplate.h:1719
clang::TemplateTypeParmDecl::defaultArgumentWasInherited
bool defaultArgumentWasInherited() const
Determines whether the default argument was inherited from a previous declaration of this template.
Definition: DeclTemplate.h:1266
clang::ASTNodeTraverser::VisitConceptDecl
void VisitConceptDecl(const ConceptDecl *D)
Definition: ASTNodeTraverser.h:617
clang::AttributedType
An attributed type is a type to which a type attribute has been applied.
Definition: Type.h:4668
clang::ASTNodeTraverser::VisitInitListExpr
void VisitInitListExpr(const InitListExpr *ILE)
Definition: ASTNodeTraverser.h:694
clang::GenericSelectionExpr::ConstAssociation
AssociationTy< true > ConstAssociation
Definition: Expr.h:5781
clang::SubstTemplateTypeParmPackType::getArgumentPack
TemplateArgument getArgumentPack() const
Definition: Type.cpp:3605
clang::ASTNodeTraverser::VisitFunctionTemplateDecl
void VisitFunctionTemplateDecl(const FunctionTemplateDecl *D)
Definition: ASTNodeTraverser.h:549
clang::SourceRange
A trivial tuple used to represent a source range.
Definition: SourceLocation.h:212
clang::DecompositionDecl::bindings
ArrayRef< BindingDecl * > bindings() const
Definition: DeclCXX.h:4050
clang::DeclContext
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
Definition: DeclBase.h:1347
clang::ASTNodeTraverser::VisitNonTypeTemplateParmDecl
void VisitNonTypeTemplateParmDecl(const NonTypeTemplateParmDecl *D)
Definition: ASTNodeTraverser.h:600
clang::ASTNodeTraverser::dumpTemplateParameters
void dumpTemplateParameters(const TemplateParameterList *TPL)
Definition: ASTNodeTraverser.h:301
clang::ObjCSubstitutionContext::Parameter
@ Parameter
The parameter type of a method or function.
clang::TemplateTypeParmDecl::getDefaultArgument
QualType getDefaultArgument() const
Retrieve the default argument, if any.
Definition: DeclTemplate.h:1252
clang::ASTNodeTraverser::VisitAttributedStmt
void VisitAttributedStmt(const AttributedStmt *Node)
Definition: ASTNodeTraverser.h:676
clang::PipeType::getElementType
QualType getElementType() const
Definition: Type.h:6283
clang::ASTNodeTraverser::dumpDeclContext
void dumpDeclContext(const DeclContext *DC)
Definition: ASTNodeTraverser.h:293
clang::TemplateArgument::pack_elements
ArrayRef< TemplateArgument > pack_elements() const
Iterator range referencing all of the elements of a template argument pack.
Definition: TemplateBase.h:366
clang::ObjCImplementationDecl
ObjCImplementationDecl - Represents a class definition - this is where method definitions are specifi...
Definition: DeclObjC.h:2546
clang::ClassTemplatePartialSpecializationDecl::getTemplateParameters
TemplateParameterList * getTemplateParameters() const
Get the list of template parameters.
Definition: DeclTemplate.h:2132
TemplateArgumentVisitor.h
clang::DependentSizedArrayType::getSizeExpr
Expr * getSizeExpr() const
Definition: Type.h:3109
clang::ASTNodeTraverser::VisitUsingShadowDecl
void VisitUsingShadowDecl(const UsingShadowDecl *D)
Definition: ASTNodeTraverser.h:628
clang::RequiresExpr::getRequirements
ArrayRef< concepts::Requirement * > getRequirements() const
Definition: ExprConcepts.h:518
clang::BindingDecl
A binding in a decomposition declaration.
Definition: DeclCXX.h:3959
clang::SubstNonTypeTemplateParmPackExpr
Represents a reference to a non-type template parameter pack that has been substituted with a non-tem...
Definition: ExprCXX.h:4312
clang::OMPThreadPrivateDecl
This represents '#pragma omp threadprivate ...' directive.
Definition: DeclOpenMP.h:110
clang::ASTNodeTraverser::VisitCXXForRangeStmt
void VisitCXXForRangeStmt(const CXXForRangeStmt *Node)
Definition: ASTNodeTraverser.h:763
clang::ASTNodeTraverser::VisitDeclStmt
void VisitDeclStmt(const DeclStmt *Node)
Definition: ASTNodeTraverser.h:671
clang::ASTNodeTraverser::VisitVectorType
void VisitVectorType(const VectorType *T)
Definition: ASTNodeTraverser.h:369
clang::NamedDecl::getUnderlyingDecl
NamedDecl * getUnderlyingDecl()
Looks through UsingDecls and ObjCCompatibleAliasDecls for the underlying named decl.
Definition: Decl.h:459
clang::QualType
A (possibly-)qualified type.
Definition: Type.h:673
clang::NonTypeTemplateParmDecl
NonTypeTemplateParmDecl - Declares a non-type template parameter, e.g., "Size" in.
Definition: DeclTemplate.h:1384
clang::DynamicInitKind::Initializer
@ Initializer
clang::TemplateTemplateParmDecl::getDefaultArgStorage
const DefArgStorage & getDefaultArgStorage() const
Definition: DeclTemplate.h:1715
clang::ClassScopeFunctionSpecializationDecl
Declaration of a function specialization at template class scope.
Definition: DeclTemplate.h:2604
clang::DecltypeType::getUnderlyingExpr
Expr * getUnderlyingExpr() const
Definition: Type.h:4498
clang::FieldDecl
Represents a member of a struct/union/class.
Definition: Decl.h:2835
clang::RequiresExpr
C++2a [expr.prim.req]: A requires-expression provides a concise way to express requirements on templa...
Definition: ExprConcepts.h:475
clang::ASTNodeTraverser::VisitObjCMethodDecl
void VisitObjCMethodDecl(const ObjCMethodDecl *D)
Definition: ASTNodeTraverser.h:638
clang::GenericSelectionExpr::associations
association_range associations()
Definition: Expr.h:5850
clang::FieldDecl::getInClassInitializer
Expr * getInClassInitializer() const
Get the C++11 default member initializer for this member, or null if one has not been set.
Definition: Decl.h:2982
clang::PipeType
PipeType - OpenCL20.
Definition: Type.h:6272
clang::ParmVarDecl
Represents a parameter to a function.
Definition: Decl.h:1665
clang::ObjCObjectPointerType::getPointeeType
QualType getPointeeType() const
Gets the type pointed to by this ObjC pointer.
Definition: Type.h:6084
clang::EnumConstantDecl::getInitExpr
const Expr * getInitExpr() const
Definition: Decl.h:3069
clang::UsingShadowDecl
Represents a shadow declaration implicitly introduced into a scope by a (resolved) using-declaration ...
Definition: DeclCXX.h:3187
clang::TemplateSpecializationType
Represents a type template specialization; the template must be a class template, a type alias templa...
Definition: Type.h:5103
clang::BlockDecl::getBody
Stmt * getBody() const override
getBody - If this Decl represents a declaration for a body of code, such as a function or method defi...
Definition: Decl.h:4232
clang::LocInfoType
Holds a QualType and a TypeSourceInfo* that came out of a declarator parsing.
Definition: LocInfoType.h:28
clang::FunctionDecl::getTemplateSpecializationInfo
FunctionTemplateSpecializationInfo * getTemplateSpecializationInfo() const
If this function is actually a function template specialization, retrieve information about this func...
Definition: Decl.cpp:3822
clang::ComplexType::getElementType
QualType getElementType() const
Definition: Type.h:2597
clang::InitListExpr
Describes an C or C++ initializer list.
Definition: Expr.h:4786
clang::ASTNodeTraverser::VisitCXXRewrittenBinaryOperator
void VisitCXXRewrittenBinaryOperator(const CXXRewrittenBinaryOperator *Node)
Definition: ASTNodeTraverser.h:783
clang::ASTNodeTraverser::VisitObjCAtCatchStmt
void VisitObjCAtCatchStmt(const ObjCAtCatchStmt *Node)
Definition: ASTNodeTraverser.h:758
clang::OMPAllocateDecl::clauselists
clauselist_range clauselists()
Definition: DeclOpenMP.h:526
TypeVisitor.h
clang::ASTNodeTraverser::VisitUnaryTransformType
void VisitUnaryTransformType(const UnaryTransformType *T)
Definition: ASTNodeTraverser.h:382
clang::NonTypeTemplateParmDecl::hasDefaultArgument
bool hasDefaultArgument() const
Determine whether this template parameter has a default argument.
Definition: DeclTemplate.h:1463
clang::ASTNodeTraverser::VisitBlockExpr
void VisitBlockExpr(const BlockExpr *Node)
Definition: ASTNodeTraverser.h:700
clang::VarTemplateSpecializationDecl::getTemplateArgs
const TemplateArgumentList & getTemplateArgs() const
Retrieve the template arguments of the variable template specialization.
Definition: DeclTemplate.h:2755
clang::ASTNodeTraverser::VisitObjCObjectPointerType
void VisitObjCObjectPointerType(const ObjCObjectPointerType *T)
Definition: ASTNodeTraverser.h:401
clang::ASTNodeTraverser::Visit
void Visit(QualType T)
Definition: ASTNodeTraverser.h:159
clang::OMPAllocateDecl::varlists
varlist_range varlists()
Definition: DeclOpenMP.h:515
clang::ClassTemplatePartialSpecializationDecl
Definition: DeclTemplate.h:2075
clang::ASTNodeTraverser::VisitFunctionProtoType
void VisitFunctionProtoType(const FunctionProtoType *T)
Definition: ASTNodeTraverser.h:371
LocInfoType.h
clang::ASTNodeTraverser::VisitFunctionType
void VisitFunctionType(const FunctionType *T)
Definition: ASTNodeTraverser.h:370
clang::GenericSelectionExpr::getControllingExpr
Expr * getControllingExpr()
Return the controlling expression of this generic selection expression.
Definition: Expr.h:5804
clang::FunctionType
FunctionType - C99 6.7.5.3 - Function Declarators.
Definition: Type.h:3546
clang::VarTemplateSpecializationDecl
Represents a variable template specialization, which refers to a variable template with a given set o...
Definition: DeclTemplate.h:2664
clang::ASTContext::getLocalCommentForDeclUncached
comments::FullComment * getLocalCommentForDeclUncached(const Decl *D) const
Return parsed documentation comment attached to a given declaration.
Definition: ASTContext.cpp:552
clang::CapturedDecl
Represents the body of a CapturedStmt, and serves as its DeclContext.
Definition: Decl.h:4342
clang::ASTNodeTraverser::VisitDecltypeType
void VisitDecltypeType(const DecltypeType *T)
Definition: ASTNodeTraverser.h:379
clang::SubstTemplateTypeParmType::getReplacedParameter
const TemplateTypeParmType * getReplacedParameter() const
Gets the template parameter that was substituted for.
Definition: Type.h:4856
clang::TemplateArgument::getAsExpr
Expr * getAsExpr() const
Retrieve the template argument as an expression.
Definition: TemplateBase.h:342
clang::ASTNodeTraverser::getDeserialize
bool getDeserialize() const
Definition: ASTNodeTraverser.h:83
clang::ASTTemplateArgumentListInfo::arguments
llvm::ArrayRef< TemplateArgumentLoc > arguments() const
Definition: TemplateBase.h:641
clang::ASTNodeTraverser::VisitPointerType
void VisitPointerType(const PointerType *T)
Definition: ASTNodeTraverser.h:345
clang::ASTNodeTraverser::VisitClassTemplateDecl
void VisitClassTemplateDecl(const ClassTemplateDecl *D)
Definition: ASTNodeTraverser.h:553
clang::OpaqueValueExpr
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class.
Definition: Expr.h:1129
clang::Type
The base class of the type hierarchy.
Definition: Type.h:1490
clang::TemplateTypeParmDecl::hasDefaultArgument
bool hasDefaultArgument() const
Determine whether this template parameter has a default argument.
Definition: DeclTemplate.h:1249
clang::SubstTemplateTypeParmPackType::getReplacedParameter
const TemplateTypeParmType * getReplacedParameter() const
Gets the template parameter that was substituted for.
Definition: Type.h:4915
clang::ASTNodeTraverser::VisitMemberPointerType
void VisitMemberPointerType(const MemberPointerType *T)
Definition: ASTNodeTraverser.h:352
clang::DeclContext::noload_decls
decl_range noload_decls() const
noload_decls_begin/end - Iterate over the declarations stored in this context that are currently load...
Definition: DeclBase.h:2123
clang::ASTNodeTraverser::VisitSizeOfPackExpr
void VisitSizeOfPackExpr(const SizeOfPackExpr *Node)
Definition: ASTNodeTraverser.h:743
clang::BlockDecl::captures
ArrayRef< Capture > captures() const
Definition: Decl.h:4280
clang::ReferenceType::getPointeeType
QualType getPointeeType() const
Definition: Type.h:2769
clang::TypeAliasTemplateDecl::getTemplatedDecl
TypeAliasDecl * getTemplatedDecl() const
Get the underlying function declaration of the template.
Definition: DeclTemplate.h:2541
clang::ASTNodeTraverser::Visit
void Visit(const Type *T)
Definition: ASTNodeTraverser.h:170
clang::ASTNodeTraverser::VisitObjCInterfaceDecl
void VisitObjCInterfaceDecl(const ObjCInterfaceDecl *D)
Definition: ASTNodeTraverser.h:653
clang::ASTNodeTraverser::VisitEnumConstantDecl
void VisitEnumConstantDecl(const EnumConstantDecl *D)
Definition: ASTNodeTraverser.h:416
clang::ASTNodeTraverser::VisitBlockDecl
void VisitBlockDecl(const BlockDecl *D)
Definition: ASTNodeTraverser.h:662
clang::FunctionTemplateDecl
Declaration of a template function.
Definition: DeclTemplate.h:978
clang::AttributedStmt
Represents an attribute applied to a statement.
Definition: Stmt.h:1846
clang::comments::Comment
Any part of the comment.
Definition: Comment.h:52
clang::TSK_ExplicitInstantiationDeclaration
@ TSK_ExplicitInstantiationDeclaration
This template specialization was instantiated from a template due to an explicit instantiation declar...
Definition: Specifiers.h:187
clang::VarDecl::hasInit
bool hasInit() const
Definition: Decl.cpp:2282
clang::PackExpansionType::getPattern
QualType getPattern() const
Retrieve the pattern of this pack expansion, which is the type that will be repeatedly instantiated w...
Definition: Type.h:5653
clang::NonTypeTemplateParmDecl::defaultArgumentWasInherited
bool defaultArgumentWasInherited() const
Determines whether the default argument was inherited from a previous declaration of this template.
Definition: DeclTemplate.h:1473
clang::ObjCAtCatchStmt
Represents Objective-C's @catch statement.
Definition: StmtObjC.h:77
clang::ConceptReference::getTemplateArgsAsWritten
const ASTTemplateArgumentListInfo * getTemplateArgsAsWritten() const
Definition: ASTConcept.h:158
clang::ConstTemplateArgumentVisitor
A simple visitor class that helps create template argument visitors.
Definition: TemplateArgumentVisitor.h:92
clang::ASTNodeTraverser::VisitAtomicType
void VisitAtomicType(const AtomicType *T)
Definition: ASTNodeTraverser.h:404
clang::ClassTemplateSpecializationDecl::getTemplateArgs
const TemplateArgumentList & getTemplateArgs() const
Retrieve the template arguments of the class template specialization.
Definition: DeclTemplate.h:1891
clang::PackExpansionType
Represents a pack expansion of types.
Definition: Type.h:5632
clang::OMPDeclareReductionDecl
This represents '#pragma omp declare reduction ...' directive.
Definition: DeclOpenMP.h:171
clang::CXXRewrittenBinaryOperator
A rewritten comparison expression that was originally written using operator syntax.
Definition: ExprCXX.h:284
clang::SizeOfPackExpr
Represents an expression that computes the length of a parameter pack.
Definition: ExprCXX.h:4127
Node
DynTypedNode Node
Definition: ASTMatchFinder.cpp:67
Traversal
TraversalKind Traversal
Definition: ASTMatchFinder.cpp:69
clang::BlockDecl
Represents a block literal declaration, which is like an unnamed FunctionDecl.
Definition: Decl.h:4153
clang::ASTNodeTraverser::VisitReferenceType
void VisitReferenceType(const ReferenceType *T)
Definition: ASTNodeTraverser.h:349
clang::ASTNodeTraverser::VisitClassScopeFunctionSpecializationDecl
void VisitClassScopeFunctionSpecializationDecl(const ClassScopeFunctionSpecializationDecl *D)
Definition: ASTNodeTraverser.h:568
clang::ASTNodeTraverser::Visit
void Visit(const comments::Comment *C, const comments::FullComment *FC)
Definition: ASTNodeTraverser.h:259
clang::OMPClause
This is a basic class for representing single OpenMP clause.
Definition: OpenMPClause.h:54
clang::ASTNodeTraverser::VisitDependentSizedArrayType
void VisitDependentSizedArrayType(const DependentSizedArrayType *T)
Definition: ASTNodeTraverser.h:361
clang::SubstNonTypeTemplateParmPackExpr::getParameterPack
NonTypeTemplateParmDecl * getParameterPack() const
Retrieve the non-type template parameter pack being substituted.
Definition: ExprCXX.h:4340
clang::LambdaExpr
A C++ lambda expression, which produces a function object (of unspecified type) that can be invoked l...
Definition: ExprCXX.h:1865
clang::ConceptDecl
Declaration of a C++2a concept.
Definition: DeclTemplate.h:3235
clang::ASTNodeTraverser::VisitFriendDecl
void VisitFriendDecl(const FriendDecl *D)
Definition: ASTNodeTraverser.h:633
clang::VectorType
Represents a GCC generic vector type.
Definition: Type.h:3229
clang::FieldDecl::getBitWidth
Expr * getBitWidth() const
Definition: Decl.h:2924
clang::ClassScopeFunctionSpecializationDecl::getTemplateArgsAsWritten
const ASTTemplateArgumentListInfo * getTemplateArgsAsWritten() const
Definition: DeclTemplate.h:2625
clang::ConceptSpecializationExpr
Represents the specialization of a concept - evaluates to a prvalue of type bool.
Definition: ExprConcepts.h:40
clang::FriendDecl::getFriendDecl
NamedDecl * getFriendDecl() const
If this friend declaration doesn't name a type, return the inner declaration.
Definition: DeclFriend.h:138
clang::ASTNodeTraverser::VisitFileScopeAsmDecl
void VisitFileScopeAsmDecl(const FileScopeAsmDecl *D)
Definition: ASTNodeTraverser.h:471
clang::ArrayType
Represents an array type, per C99 6.7.5.2 - Array Declarators.
Definition: Type.h:2883
clang::ASTNodeTraverser
ASTNodeTraverser traverses the Clang AST for dumping purposes.
Definition: ASTNodeTraverser.h:61
clang::ASTNodeTraverser::VisitOpaqueValueExpr
void VisitOpaqueValueExpr(const OpaqueValueExpr *Node)
Definition: ASTNodeTraverser.h:702
clang::MemberPointerType::getPointeeType
QualType getPointeeType() const
Definition: Type.h:2847
clang::ASTNodeTraverser::VisitCapturedDecl
void VisitCapturedDecl(const CapturedDecl *D)
Definition: ASTNodeTraverser.h:475
clang::DecompositionDecl
A decomposition declaration.
Definition: DeclCXX.h:4016
clang::FunctionDecl::getBody
Stmt * getBody(const FunctionDecl *&Definition) const
Retrieve the body (definition) of the function.
Definition: Decl.cpp:3035
clang::ASTNodeTraverser::VisitSubstTemplateTypeParmPackType
void VisitSubstTemplateTypeParmPackType(const SubstTemplateTypeParmPackType *T)
Definition: ASTNodeTraverser.h:393
clang::TemplateArgument
Represents a template argument.
Definition: TemplateBase.h:62
clang::concepts::Requirement
A static requirement that can be used in a requires-expression to check properties of types and expre...
Definition: ExprConcepts.h:149
clang::StaticAssertDecl::getMessage
StringLiteral * getMessage()
Definition: DeclCXX.h:3936
clang::ASTNodeTraverser::dumpTemplateDecl
void dumpTemplateDecl(const TemplateDecl *D)
Definition: ASTNodeTraverser.h:524
clang::StmtVisitorBase< llvm::make_const_ptr, ImplClass, void, ParamTys... >::Visit
void Visit(PTR(Stmt) S, ParamTys... P)
Definition: StmtVisitor.h:43
clang::ASTNodeTraverser::VisitSubstNonTypeTemplateParmPackExpr
void VisitSubstNonTypeTemplateParmPackExpr(const SubstNonTypeTemplateParmPackExpr *E)
Definition: ASTNodeTraverser.h:752
clang::ASTNodeTraverser::dumpTemplateArgumentLoc
void dumpTemplateArgumentLoc(const TemplateArgumentLoc &A, const Decl *From=nullptr, const char *Label=nullptr)
Definition: ASTNodeTraverser.h:321
clang::LocInfoType::getTypeSourceInfo
TypeSourceInfo * getTypeSourceInfo() const
Definition: LocInfoType.h:45
clang::ASTNodeTraverser::VisitClassTemplateSpecializationDecl
void VisitClassTemplateSpecializationDecl(const ClassTemplateSpecializationDecl *D)
Definition: ASTNodeTraverser.h:557
clang::comments::FullComment
A full comment attached to a declaration, contains block content.
Definition: Comment.h:1091
clang::TypedefNameDecl::getUnderlyingType
QualType getUnderlyingType() const
Definition: Decl.h:3235
clang::isa
bool isa(CodeGen::Address addr)
Definition: Address.h:111
clang::VariableArrayType::getSizeExpr
Expr * getSizeExpr() const
Definition: Type.h:3052
clang::TemplateArgumentLoc::getSourceRange
SourceRange getSourceRange() const LLVM_READONLY
Definition: TemplateBase.cpp:500
clang::TemplateArgumentLoc
Location wrapper for a TemplateArgument.
Definition: TemplateBase.h:458
Type.h
clang::ASTNodeTraverser::Visit
void Visit(const CXXCtorInitializer *Init)
Definition: ASTNodeTraverser.h:191
clang::FriendDecl
FriendDecl - Represents the declaration of a friend entity, which can be a function,...
Definition: DeclFriend.h:53
clang::TemplateTemplateParmDecl
TemplateTemplateParmDecl - Declares a template template parameter, e.g., "T" in.
Definition: DeclTemplate.h:1601
clang::ASTNodeTraverser::VisitTemplateTypeParmDecl
void VisitTemplateTypeParmDecl(const TemplateTypeParmDecl *D)
Definition: ASTNodeTraverser.h:591
clang::ASTNodeTraverser::VisitPipeType
void VisitPipeType(const PipeType *T)
Definition: ASTNodeTraverser.h:405
clang::VarDecl
Represents a variable declaration or definition.
Definition: Decl.h:876
clang::TemplateArgumentLoc::getArgument
const TemplateArgument & getArgument() const
Definition: TemplateBase.h:507
clang::FunctionProtoType::getParamTypes
ArrayRef< QualType > getParamTypes() const
Definition: Type.h:4102
clang::ASTNodeTraverser::VisitPackTemplateArgument
void VisitPackTemplateArgument(const TemplateArgument &TA)
Definition: ASTNodeTraverser.h:800
clang::ConceptReference::hasExplicitTemplateArgs
bool hasExplicitTemplateArgs() const
Whether or not template arguments were explicitly specified in the concept reference (they might not ...
Definition: ASTConcept.h:164
clang::OMPDeclareMapperDecl
This represents '#pragma omp declare mapper ...' directive.
Definition: DeclOpenMP.h:286
clang::TemplateParameterList
Stores a list of template parameters for a TemplateDecl and its derived classes.
Definition: DeclTemplate.h:69
clang::TSK_ExplicitInstantiationDefinition
@ TSK_ExplicitInstantiationDefinition
This template specialization was instantiated from a template due to an explicit instantiation defini...
Definition: Specifiers.h:191
clang::ASTNodeTraverser::VisitObjCCategoryDecl
void VisitObjCCategoryDecl(const ObjCCategoryDecl *D)
Definition: ASTNodeTraverser.h:649
clang::CapturedStmt
This captures a statement into a function.
Definition: Stmt.h:3500
clang::DeclaratorDecl::getTrailingRequiresClause
Expr * getTrailingRequiresClause()
Get the constraint-expression introduced by the trailing requires-clause in the function/member decla...
Definition: Decl.h:804
clang::SplitQualType::Ty
const Type * Ty
The locally-unqualified type.
Definition: Type.h:614
clang::ASTNodeTraverser::VisitTemplateTemplateParmDecl
void VisitTemplateTemplateParmDecl(const TemplateTemplateParmDecl *D)
Definition: ASTNodeTraverser.h:609
clang::ASTNodeTraverser::VisitTypedefDecl
void VisitTypedefDecl(const TypedefDecl *D)
Definition: ASTNodeTraverser.h:414
clang::SubstTemplateTypeParmType
Represents the result of substituting a type for a template type parameter.
Definition: Type.h:4844
clang::EnumConstantDecl
An instance of this object exists for each enum constant that is defined.
Definition: Decl.h:3050
clang::ObjCInterfaceDecl::getTypeParamListAsWritten
ObjCTypeParamList * getTypeParamListAsWritten() const
Retrieve the type parameters written on this particular declaration of the class.
Definition: DeclObjC.h:1290
clang::MemberPointerType::getClass
const Type * getClass() const
Definition: Type.h:2861
clang::Type::getLocallyUnqualifiedSingleStepDesugaredType
QualType getLocallyUnqualifiedSingleStepDesugaredType() const
Pull a single level of sugar off of this locally-unqualified type.
Definition: Type.cpp:422
clang::ASTNodeTraverser::Visit
void Visit(const TemplateArgument &A, SourceRange R={}, const Decl *From=nullptr, const char *Label=nullptr)
Definition: ASTNodeTraverser.h:200
clang::TypeVisitor
An operation on a type.
Definition: TypeVisitor.h:64
clang::ASTNodeTraverser::VisitLocInfoType
void VisitLocInfoType(const LocInfoType *T)
Definition: ASTNodeTraverser.h:342
Label
std::string Label
Definition: UsingDeclarationsSorter.cpp:69
clang::RequiresExpr::getLocalParameters
ArrayRef< ParmVarDecl * > getLocalParameters() const
Definition: ExprConcepts.h:512
clang::SubstTemplateTypeParmPackType
Represents the result of substituting a set of types for a template type parameter pack.
Definition: Type.h:4897
clang::ASTNodeTraverser::VisitBindingDecl
void VisitBindingDecl(const BindingDecl *D)
Definition: ASTNodeTraverser.h:464
clang::ASTNodeTraverser::VisitStaticAssertDecl
void VisitStaticAssertDecl(const StaticAssertDecl *D)
Definition: ASTNodeTraverser.h:544
clang::AtomicType::getValueType
QualType getValueType() const
Gets the type contained by this atomic type, i.e.
Definition: Type.h:6253
clang::ConstAttrVisitor
A simple visitor class that helps create attribute visitors.
Definition: AttrVisitor.h:69
clang::BlockPointerType
Pointer to a block type.
Definition: Type.h:2720
clang::TemplateTypeParmDecl
Declaration of a template type parameter.
Definition: DeclTemplate.h:1178
clang::AdjustedType
Represents a type which was implicitly adjusted by the semantic engine for arbitrary reasons.
Definition: Type.h:2669
clang::UnaryTransformType::getBaseType
QualType getBaseType() const
Definition: Type.h:4557
clang::Decl::isImplicit
bool isImplicit() const
isImplicit - Indicates whether the declaration was implicitly generated by the implementation.
Definition: DeclBase.h:563
clang::QualType::split
SplitQualType split() const
Divides a QualType into its unqualified type and a set of local qualifiers.
Definition: Type.h:6432
clang::TemplateDecl::getTemplateParameters
TemplateParameterList * getTemplateParameters() const
Get the list of template parameters.
Definition: DeclTemplate.h:418
clang::ASTNodeTraverser::VisitArrayType
void VisitArrayType(const ArrayType *T)
Definition: ASTNodeTraverser.h:356
clang::ASTNodeTraverser::VisitTypeAliasDecl
void VisitTypeAliasDecl(const TypeAliasDecl *D)
Definition: ASTNodeTraverser.h:535
clang::ObjCCategoryDecl
ObjCCategoryDecl - Represents a category declaration.
Definition: DeclObjC.h:2274
clang::UnaryTransformType
A unary type transform, which is a type constructed from another.
Definition: Type.h:4531
clang::ASTNodeTraverser::VisitAdjustedType
void VisitAdjustedType(const AdjustedType *T)
Definition: ASTNodeTraverser.h:406
clang::ASTNodeTraverser::VisitDecompositionDecl
void VisitDecompositionDecl(const DecompositionDecl *D)
Definition: ASTNodeTraverser.h:458
clang::StaticAssertDecl::getAssertExpr
Expr * getAssertExpr()
Definition: DeclCXX.h:3933
clang::ObjCObjectPointerType
Represents a pointer to an Objective C object.
Definition: Type.h:6072
clang::ASTNodeTraverser::VisitTypeTemplateArgument
void VisitTypeTemplateArgument(const TemplateArgument &TA)
Definition: ASTNodeTraverser.h:796
clang::TemplateTemplateParmDecl::defaultArgumentWasInherited
bool defaultArgumentWasInherited() const
Determines whether the default argument was inherited from a previous declaration of this template.
Definition: DeclTemplate.h:1732
clang::ASTNodeTraverser::VisitOMPThreadPrivateDecl
void VisitOMPThreadPrivateDecl(const OMPThreadPrivateDecl *D)
Definition: ASTNodeTraverser.h:477
clang::ObjCImplementationDecl::inits
init_range inits()
Definition: DeclObjC.h:2608
clang::ASTNodeTraverser::VisitClassTemplatePartialSpecializationDecl
void VisitClassTemplatePartialSpecializationDecl(const ClassTemplatePartialSpecializationDecl *D)
Definition: ASTNodeTraverser.h:562
clang::declvisitor::Base< llvm::make_const_ptr, ImplClass, void >::Visit
void Visit(PTR(Decl) D)
Definition: DeclVisitor.h:37
clang::ASTNodeTraverser::VisitCallExpr
void VisitCallExpr(const CallExpr *Node)
Definition: ASTNodeTraverser.h:772
clang::DependentSizedArrayType
Represents an array type in C++ whose size is a value-dependent expression.
Definition: Type.h:3087
clang::ASTNodeTraverser::dumpObjCTypeParamList
void dumpObjCTypeParamList(const ObjCTypeParamList *typeParams)
Definition: ASTNodeTraverser.h:332
clang::VariableArrayType
Represents a C array with a specified size that is not an integer-constant-expression.
Definition: Type.h:3033
clang::FieldDecl::isBitField
bool isBitField() const
Determines whether this field is a bitfield.
Definition: Decl.h:2913
clang::ASTNodeTraverser::GetTraversalKind
TraversalKind GetTraversalKind() const
Definition: ASTNodeTraverser.h:86
clang::ASTNodeTraverser::VisitLambdaExpr
void VisitLambdaExpr(const LambdaExpr *Node)
Definition: ASTNodeTraverser.h:723
clang::NonTypeTemplateParmDecl::getDefaultArgument
Expr * getDefaultArgument() const
Retrieve the default argument, if any.
Definition: DeclTemplate.h:1466
clang::TemplateTypeParmDecl::getTypeConstraint
const TypeConstraint * getTypeConstraint() const
Returns the type constraint associated with this template parameter (if any).
Definition: DeclTemplate.h:1346
clang::StaticAssertDecl
Represents a C++11 static_assert declaration.
Definition: DeclCXX.h:3910
clang::ClassTemplateDecl
Declaration of a class template.
Definition: DeclTemplate.h:2247
clang::ComplexType
Complex values, per C99 6.2.5p11.
Definition: Type.h:2587
clang::ConstDeclVisitor
A simple visitor class that helps create declaration visitors.
Definition: DeclVisitor.h:73
clang::DecltypeType
Represents the type decltype(expr) (C++11).
Definition: Type.h:4488
clang::SubstNonTypeTemplateParmExpr::getParameter
NonTypeTemplateParmDecl * getParameter() const
Definition: ExprCXX.h:4279
clang::FunctionProtoType
Represents a prototype with parameter type info, e.g.
Definition: Type.h:3885
clang::OMPCapturedExprDecl
Pseudo declaration for capturing expressions.
Definition: DeclOpenMP.h:383
clang::TK_AsIs
@ TK_AsIs
Will traverse all child nodes.
Definition: ASTTypeTraits.h:39
clang::TypeOfExprType::getUnderlyingExpr
Expr * getUnderlyingExpr() const
Definition: Type.h:4431
clang::ASTNodeTraverser::VisitVarDecl
void VisitVarDecl(const VarDecl *D)
Definition: ASTNodeTraverser.h:450
clang::TemplateDecl
The base class of all kinds of template declarations (e.g., class, function, etc.).
Definition: DeclTemplate.h:399
clang::BlockPointerType::getPointeeType
QualType getPointeeType() const
Definition: Type.h:2732
clang::VarTemplatePartialSpecializationDecl
Definition: DeclTemplate.h:2925
clang::BlockExpr
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Definition: Expr.h:5965
DeclVisitor.h
Value
Value
Definition: UninitializedValues.cpp:102
clang::Decl
Decl - This represents one declaration (or definition), e.g.
Definition: DeclBase.h:89
clang::ASTNodeTraverser::VisitOMPExecutableDirective
void VisitOMPExecutableDirective(const OMPExecutableDirective *Node)
Definition: ASTNodeTraverser.h:689
clang::ASTNodeTraverser::dumpTemplateArgumentList
void dumpTemplateArgumentList(const TemplateArgumentList &TAL)
Definition: ASTNodeTraverser.h:327
clang::ClassScopeFunctionSpecializationDecl::getSpecialization
CXXMethodDecl * getSpecialization() const
Definition: DeclTemplate.h:2623
clang::CapturedDecl::getBody
Stmt * getBody() const override
getBody - If this Decl represents a declaration for a body of code, such as a function or method defi...
Definition: Decl.cpp:4930
clang::ASTNodeTraverser::VisitBuiltinTemplateDecl
void VisitBuiltinTemplateDecl(const BuiltinTemplateDecl *D)
Definition: ASTNodeTraverser.h:575
clang::DependentSizedExtVectorType::getElementType
QualType getElementType() const
Definition: Type.h:3205
StmtVisitor.h
clang::ASTNodeTraverser::Visit
void Visit(const Attr *A)
Definition: ASTNodeTraverser.h:184
clang::StmtVisitorBase< llvm::make_const_ptr, Derived, void, ParamTys... >::P
ParamTys P
Definition: StmtVisitor.h:171
clang::InitListExpr::getArrayFiller
Expr * getArrayFiller()
If this initializer list initializes an array with more elements than there are initializers in the l...
Definition: Expr.h:4882
clang::ASTNodeTraverser::Visit
void Visit(const Decl *D)
Definition: ASTNodeTraverser.h:88
clang::Decl::attrs
attr_range attrs() const
Definition: DeclBase.h:506
clang::Qualifiers::hasQualifiers
bool hasQualifiers() const
Return true if the set contains any qualifiers.
Definition: Type.h:422
clang::TK_IgnoreUnlessSpelledInSource
@ TK_IgnoreUnlessSpelledInSource
Ignore AST nodes not written in the source.
Definition: ASTTypeTraits.h:42
clang::TemplateArgumentList
A template argument list.
Definition: DeclTemplate.h:236
clang::templateargumentvisitor::Base< llvm::make_const_ref, ImplClass, void, ParamTys... >::Visit
void Visit(REF(TemplateArgument) TA, ParamTys... P)
Definition: TemplateArgumentVisitor.h:33
clang::VarDecl::getInit
const Expr * getInit() const
Definition: Decl.h:1285
clang::SplitQualType
A std::pair-like structure for storing a qualified type split into its local qualifiers and its local...
Definition: Type.h:612
clang::ConstStmtVisitor
ConstStmtVisitor - This class implements a simple visitor for Stmt subclasses.
Definition: StmtVisitor.h:193
ASTTypeTraits.h
clang::TypedefDecl
Represents the declaration of a typedef-name via the 'typedef' type specifier.
Definition: Decl.h:3282
clang::OMPDeclareReductionDecl::getCombiner
Expr * getCombiner()
Get combiner expression of the declare reduction construct.
Definition: DeclOpenMP.h:221
clang::OMPExecutableDirective
This is a basic class for representing single OpenMP executable directive.
Definition: StmtOpenMP.h:266
clang::TypeOfExprType
Represents a typeof (or typeof) expression (a GCC extension).
Definition: Type.h:4422
clang::ASTNodeTraverser::VisitGenericSelectionExpr
void VisitGenericSelectionExpr(const GenericSelectionExpr *E)
Definition: ASTNodeTraverser.h:707
clang::CXXForRangeStmt
CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for statement, represented as 'for (ra...
Definition: StmtCXX.h:134
clang::MemberPointerType
A pointer to member type per C++ 8.3.3 - Pointers to members.
Definition: Type.h:2831
clang::TemplateTypeParmDecl::getDefaultArgStorage
const DefArgStorage & getDefaultArgStorage() const
Definition: DeclTemplate.h:1245
clang::ASTNodeTraverser::VisitComplexType
void VisitComplexType(const ComplexType *T)
Definition: ASTNodeTraverser.h:341
clang::DeclStmt
DeclStmt - Adaptor class for mixing declarations with statements and expressions.
Definition: Stmt.h:1292
clang::ObjCMethodDecl::getBody
Stmt * getBody() const override
Retrieve the body of this method, if it has one.
Definition: DeclObjC.cpp:862
clang::VarDecl::isCXXForRangeDecl
bool isCXXForRangeDecl() const
Determine whether this variable is the for-range-declaration in a C++0x for-range statement.
Definition: Decl.h:1432
clang::ASTNodeTraverser::VisitOMPCapturedExprDecl
void VisitOMPCapturedExprDecl(const OMPCapturedExprDecl *D)
Definition: ASTNodeTraverser.h:493
clang::ASTNodeTraverser::setDeserialize
void setDeserialize(bool D)
Definition: ASTNodeTraverser.h:82
clang::ObjCMethodDecl
ObjCMethodDecl - Represents an instance or class method declaration.
Definition: DeclObjC.h:139
clang::PointerType
PointerType - C99 6.7.5.1 - Pointer Declarators.
Definition: Type.h:2640
clang::ASTNodeTraverser::VisitAttributedType
void VisitAttributedType(const AttributedType *T)
Definition: ASTNodeTraverser.h:385
clang::ObjCMethodDecl::hasBody
bool hasBody() const override
Determine whether this method has a body.
Definition: DeclObjC.h:527
clang::ASTNodeTraverser::VisitFieldDecl
void VisitFieldDecl(const FieldDecl *D)
Definition: ASTNodeTraverser.h:443
clang::ASTNodeTraverser::VisitFunctionDecl
void VisitFunctionDecl(const FunctionDecl *D)
Definition: ASTNodeTraverser.h:421
clang::FileScopeAsmDecl
Definition: Decl.h:4118
clang::ASTNodeTraverser::SetTraversalKind
void SetTraversalKind(TraversalKind TK)
Definition: ASTNodeTraverser.h:85
clang::ObjCTypeParamList
Stores a list of Objective-C type parameters for a parameterized class or a category/extension thereo...
Definition: DeclObjC.h:660
clang::TemplateTemplateParmDecl::getDefaultArgument
const TemplateArgumentLoc & getDefaultArgument() const
Retrieve the default argument, if any.
Definition: DeclTemplate.h:1722
clang
Definition: CalledOnceCheck.h:17
clang::ASTNodeTraverser::VisitExpressionTemplateArgument
void VisitExpressionTemplateArgument(const TemplateArgument &TA)
Definition: ASTNodeTraverser.h:792
clang::ASTNodeTraverser::Visit
void Visit(const APValue &Value, QualType Ty)
Definition: ASTNodeTraverser.h:255
clang::VectorType::getElementType
QualType getElementType() const
Definition: Type.h:3270
clang::ASTNodeTraverser::VisitOMPDeclareReductionDecl
void VisitOMPDeclareReductionDecl(const OMPDeclareReductionDecl *D)
Definition: ASTNodeTraverser.h:482
clang::FileScopeAsmDecl::getAsmString
const StringLiteral * getAsmString() const
Definition: Decl.h:4142
clang::Stmt
Stmt - This represents one statement.
Definition: Stmt.h:69
clang::ASTNodeTraverser::Visit
void Visit(const BlockDecl::Capture &C)
Definition: ASTNodeTraverser.h:208
clang::ASTNodeTraverser::Visit
void Visit(const Stmt *Node, StringRef Label={})
Definition: ASTNodeTraverser.h:122
clang::CXXCatchStmt
CXXCatchStmt - This represents a C++ catch block.
Definition: StmtCXX.h:28
clang::GenericSelectionExpr
Represents a C11 generic selection.
Definition: Expr.h:5623
clang::ASTNodeTraverser::Visit
void Visit(const GenericSelectionExpr::ConstAssociation &A)
Definition: ASTNodeTraverser.h:224
clang::Expr::getType
QualType getType() const
Definition: Expr.h:141
clang::ASTNodeTraverser::VisitTemplateSpecializationType
void VisitTemplateSpecializationType(const TemplateSpecializationType *T)
Definition: ASTNodeTraverser.h:397
clang::Attr
Attr - This represents one attribute.
Definition: Attr.h:46
clang::TypeSourceInfo
A container of type source information.
Definition: Type.h:6395
clang::FunctionType::getReturnType
QualType getReturnType() const
Definition: Type.h:3809
clang::NonTypeTemplateParmDecl::getPlaceholderTypeConstraint
Expr * getPlaceholderTypeConstraint() const
Return the constraint introduced by the placeholder type of this non-type template parameter (if any)...
Definition: DeclTemplate.h:1562
clang::ObjCCategoryDecl::getTypeParamList
ObjCTypeParamList * getTypeParamList() const
Retrieve the type parameter list associated with this category or extension.
Definition: DeclObjC.h:2324
clang::ASTNodeTraverser::VisitOMPDeclareMapperDecl
void VisitOMPDeclareMapperDecl(const OMPDeclareMapperDecl *D)
Definition: ASTNodeTraverser.h:488
clang::ASTNodeTraverser::VisitVarTemplateDecl
void VisitVarTemplateDecl(const VarTemplateDecl *D)
Definition: ASTNodeTraverser.h:573
clang::ASTNodeTraverser::VisitSubstNonTypeTemplateParmExpr
void VisitSubstNonTypeTemplateParmExpr(const SubstNonTypeTemplateParmExpr *E)
Definition: ASTNodeTraverser.h:749
clang::DynTypedNode::get
const T * get() const
Retrieve the stored node as type T.
Definition: ASTTypeTraits.h:263
clang::TypeVisitor::Visit
RetTy Visit(const Type *T)
Performs the operation associated with this visitor object.
Definition: TypeVisitor.h:68
clang::BuiltinTemplateDecl
Represents the builtin template declaration which is used to implement __make_integer_seq and other b...
Definition: DeclTemplate.h:1764
clang::FunctionDecl::param_begin
param_iterator param_begin()
Definition: Decl.h:2495
clang::ASTNodeTraverser::VisitDependentSizedExtVectorType
void VisitDependentSizedExtVectorType(const DependentSizedExtVectorType *T)
Definition: ASTNodeTraverser.h:365
clang::ASTNodeTraverser::VisitRequiresExpr
void VisitRequiresExpr(const RequiresExpr *E)
Definition: ASTNodeTraverser.h:716
AttrVisitor.h
clang::OMPThreadPrivateDecl::varlists
varlist_range varlists()
Definition: DeclOpenMP.h:146
clang::TypeAliasTemplateDecl
Declaration of an alias template.
Definition: DeclTemplate.h:2520
clang::ASTNodeTraverser::Visit
void Visit(const OMPClause *C)
Definition: ASTNodeTraverser.h:216
clang::DynTypedNode
A dynamically typed AST node container.
Definition: ASTTypeTraits.h:243
CommentVisitor.h
clang::BindingDecl::getBinding
Expr * getBinding() const
Get the expression to which this declaration is bound.
Definition: DeclCXX.h:3983
clang::ObjCMethodDecl::parameters
ArrayRef< ParmVarDecl * > parameters() const
Definition: DeclObjC.h:376
clang::PackExpansionType::isSugared
bool isSugared() const
Definition: Type.h:5663
clang::ReferenceType
Base for LValueReferenceType and RValueReferenceType.
Definition: Type.h:2751
clang::PointerType::getPointeeType
QualType getPointeeType() const
Definition: Type.h:2650
clang::APValue
APValue - This class implements a discriminated union of [uninitialized] [APSInt] [APFloat],...
Definition: APValue.h:122
clang::AtomicType
Definition: Type.h:6242
clang::comments::Comment::child_iterator
Comment *const * child_iterator
Definition: Comment.h:222
clang::ASTTemplateArgumentListInfo
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".
Definition: TemplateBase.h:613
clang::DefaultArgStorage::getInheritedFrom
const ParmDecl * getInheritedFrom() const
Get the parameter from which we inherit the default argument, if any.
Definition: DeclTemplate.h:359
clang::ASTNodeTraverser::VisitVarTemplateSpecializationDecl
void VisitVarTemplateSpecializationDecl(const VarTemplateSpecializationDecl *D)
Definition: ASTNodeTraverser.h:580
clang::SubstNonTypeTemplateParmPackExpr::getArgumentPack
TemplateArgument getArgumentPack() const
Retrieve the template argument pack containing the substituted template arguments.
Definition: ExprCXX.cpp:1592
clang::TypeAliasDecl
Represents the declaration of a typedef-name via a C++11 alias-declaration.
Definition: Decl.h:3302
clang::VarTemplateDecl
Declaration of a variable template.
Definition: DeclTemplate.h:3079
clang::ASTNodeTraverser::VisitVariableArrayType
void VisitVariableArrayType(const VariableArrayType *T)
Definition: ASTNodeTraverser.h:357
clang::ArrayType::getElementType
QualType getElementType() const
Definition: Type.h:2904
clang::Expr
This represents one expression.
Definition: Expr.h:109
clang::ASTNodeTraverser::dumpASTTemplateArgumentListInfo
void dumpASTTemplateArgumentListInfo(const ASTTemplateArgumentListInfo *TALI)
Definition: ASTNodeTraverser.h:313
clang::ASTNodeTraverser::VisitBlockPointerType
void VisitBlockPointerType(const BlockPointerType *T)
Definition: ASTNodeTraverser.h:346
clang::CXXCtorInitializer
Represents a C++ base or member initializer.
Definition: DeclCXX.h:2172
clang::BlockDecl::Capture
A class which contains all the information about a particular captured value.
Definition: Decl.h:4159
clang::ASTNodeTraverser::VisitTypeAliasTemplateDecl
void VisitTypeAliasTemplateDecl(const TypeAliasTemplateDecl *D)
Definition: ASTNodeTraverser.h:539
clang::OMPDeclareMapperDecl::clauselists
clauselist_range clauselists()
Definition: DeclOpenMP.h:333
clang::ClassTemplateSpecializationDecl
Represents a class template specialization, which refers to a class template with a given set of temp...
Definition: DeclTemplate.h:1803
clang::ObjCMethodDecl::isThisDeclarationADefinition
bool isThisDeclarationADefinition() const
Returns whether this specific method is a definition.
Definition: DeclObjC.h:538
clang::DependentSizedExtVectorType
Represents an extended vector type where either the type or size is dependent.
Definition: Type.h:3189
clang::comments::ConstCommentVisitor
Definition: CommentVisitor.h:62
clang::FunctionDecl::parameters
ArrayRef< ParmVarDecl * > parameters() const
Definition: Decl.h:2483
clang::AttributedType::getModifiedType
QualType getModifiedType() const
Definition: Type.h:4690
clang::SplitQualType::Quals
Qualifiers Quals
The local qualifiers.
Definition: Type.h:617
clang::attrvisitor::Base< llvm::make_const_ptr, ImplClass, void, ParamTys... >::Visit
void Visit(PTR(Attr) A)
Definition: AttrVisitor.h:31
clang::TemplateArgumentList::size
unsigned size() const
Retrieve the number of template arguments in this template argument list.
Definition: DeclTemplate.h:296
clang::FunctionDecl
Represents a function declaration or definition.
Definition: Decl.h:1856
clang::ASTNodeTraverser::VisitVarTemplatePartialSpecializationDecl
void VisitVarTemplatePartialSpecializationDecl(const VarTemplatePartialSpecializationDecl *D)
Definition: ASTNodeTraverser.h:585
clang::ASTNodeTraverser::VisitObjCImplementationDecl
void VisitObjCImplementationDecl(const ObjCImplementationDecl *D)
Definition: ASTNodeTraverser.h:657
clang::CallExpr
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition: Expr.h:2795
clang::ASTNodeTraverser::VisitSubstTemplateTypeParmType
void VisitSubstTemplateTypeParmType(const SubstTemplateTypeParmType *T)
Definition: ASTNodeTraverser.h:389
clang::ASTNodeTraverser::dumpTemplateDeclSpecialization
void dumpTemplateDeclSpecialization(const SpecializationDecl *D)
Definition: ASTNodeTraverser.h:505
clang::AdjustedType::getOriginalType
QualType getOriginalType() const
Definition: Type.h:2682
clang::ASTNodeTraverser::VisitCapturedStmt
void VisitCapturedStmt(const CapturedStmt *Node)
Definition: ASTNodeTraverser.h:685
clang::ASTNodeTraverser::Visit
void Visit(const concepts::Requirement *R)
Definition: ASTNodeTraverser.h:233
clang::FriendDecl::getFriendType
TypeSourceInfo * getFriendType() const
If this friend declaration names an (untemplated but possibly dependent) type, return the type; other...
Definition: DeclFriend.h:123
clang::ASTNodeTraverser::VisitTypeOfExprType
void VisitTypeOfExprType(const TypeOfExprType *T)
Definition: ASTNodeTraverser.h:376
clang::TemplateArgument::getAsType
QualType getAsType() const
Retrieve the type for a type template argument.
Definition: TemplateBase.h:269
clang::ASTNodeTraverser::VisitPackExpansionType
void VisitPackExpansionType(const PackExpansionType *T)
Definition: ASTNodeTraverser.h:407