clang 18.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
25#include "clang/AST/Type.h"
27
28namespace clang {
29
30class APValue;
31
32/**
33
34ASTNodeTraverser traverses the Clang AST for dumping purposes.
35
36The `Derived::doGetNodeDelegate()` method is required to be an accessible member
37which returns a reference of type `NodeDelegateType &` which implements the
38following interface:
39
40struct {
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*/
60template <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
81public:
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, ObjCMethodDecl, BlockDecl>(*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
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
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->hasInvalidConstraint())
250 Visit(NR->getConstraintExpr());
251 }
252 });
253 }
254
255 void Visit(const ConceptReference *R) {
256 getNodeDelegate().AddChild([=] { getNodeDelegate().Visit(R); });
257 }
258
259 void Visit(const APValue &Value, QualType Ty) {
260 getNodeDelegate().AddChild([=] { getNodeDelegate().Visit(Value, Ty); });
261 }
262
264 getNodeDelegate().AddChild([=] {
265 getNodeDelegate().Visit(C, FC);
266 if (!C) {
267 return;
268 }
269 comments::ConstCommentVisitor<Derived, void,
271 FC);
272 for (comments::Comment::child_iterator I = C->child_begin(),
273 E = C->child_end();
274 I != E; ++I)
275 Visit(*I, FC);
276 });
277 }
278
279 void Visit(const DynTypedNode &N) {
280 // FIXME: Improve this with a switch or a visitor pattern.
281 if (const auto *D = N.get<Decl>())
282 Visit(D);
283 else if (const auto *S = N.get<Stmt>())
284 Visit(S);
285 else if (const auto *QT = N.get<QualType>())
286 Visit(*QT);
287 else if (const auto *T = N.get<Type>())
288 Visit(T);
289 else if (const auto *C = N.get<CXXCtorInitializer>())
290 Visit(C);
291 else if (const auto *C = N.get<OMPClause>())
292 Visit(C);
293 else if (const auto *T = N.get<TemplateArgument>())
294 Visit(*T);
295 else if (const auto *CR = N.get<ConceptReference>())
296 Visit(CR);
297 }
298
299 void dumpDeclContext(const DeclContext *DC) {
300 if (!DC)
301 return;
302
303 for (const auto *D : (Deserialize ? DC->decls() : DC->noload_decls()))
304 Visit(D);
305 }
306
308 if (!TPL)
309 return;
310
311 for (const auto &TP : *TPL)
312 Visit(TP);
313
314 if (const Expr *RC = TPL->getRequiresClause())
315 Visit(RC);
316 }
317
318 void
320 if (!TALI)
321 return;
322
323 for (const auto &TA : TALI->arguments())
325 }
326
328 const Decl *From = nullptr,
329 const char *Label = nullptr) {
330 Visit(A.getArgument(), A.getSourceRange(), From, Label);
331 }
332
334 for (unsigned i = 0, e = TAL.size(); i < e; ++i)
335 Visit(TAL[i]);
336 }
337
338 void dumpObjCTypeParamList(const ObjCTypeParamList *typeParams) {
339 if (!typeParams)
340 return;
341
342 for (const auto &typeParam : *typeParams) {
343 Visit(typeParam);
344 }
345 }
346
350 }
353 Visit(T->getPointeeType());
354 }
356 Visit(T->getPointeeType());
357 }
359 Visit(T->getClass());
360 Visit(T->getPointeeType());
361 }
365 Visit(T->getSizeExpr());
366 }
368 Visit(T->getElementType());
369 Visit(T->getSizeExpr());
370 }
372 Visit(T->getElementType());
373 Visit(T->getSizeExpr());
374 }
379 for (const QualType &PT : T->getParamTypes())
380 Visit(PT);
381 }
384 }
387 }
389 Visit(T->getBaseType());
390 }
392 // FIXME: AttrKind
393 if (T->getModifiedType() != T->getEquivalentType())
395 }
397 Visit(T->getWrappedType());
398 }
400 void
403 }
405 for (const auto &Arg : T->template_arguments())
406 Visit(Arg);
407 }
409 Visit(T->getPointeeType());
410 }
412 void VisitPipeType(const PipeType *T) { Visit(T->getElementType()); }
415 if (!T->isSugared())
416 Visit(T->getPattern());
417 }
418 // FIXME: ElaboratedType, DependentNameType,
419 // DependentTemplateSpecializationType, ObjCObjectType
420
422
424 if (const Expr *Init = D->getInitExpr())
425 Visit(Init);
426 }
427
429 if (const auto *FTSI = D->getTemplateSpecializationInfo())
430 dumpTemplateArgumentList(*FTSI->TemplateArguments);
431
432 if (D->param_begin())
433 for (const auto *Parameter : D->parameters())
435
436 if (const Expr *TRC = D->getTrailingRequiresClause())
437 Visit(TRC);
438
440 return;
441
442 if (const auto *C = dyn_cast<CXXConstructorDecl>(D))
443 for (const auto *I : C->inits())
444 Visit(I);
445
447 Visit(D->getBody());
448 }
449
450 void VisitFieldDecl(const FieldDecl *D) {
451 if (D->isBitField())
452 Visit(D->getBitWidth());
453 if (Expr *Init = D->getInClassInitializer())
454 Visit(Init);
455 }
456
457 void VisitVarDecl(const VarDecl *D) {
459 return;
460
461 if (D->hasInit())
462 Visit(D->getInit());
463 }
464
466 VisitVarDecl(D);
467 for (const auto *B : D->bindings())
468 Visit(B);
469 }
470
473 return;
474
475 if (const auto *V = D->getHoldingVar())
476 Visit(V);
477
478 if (const auto *E = D->getBinding())
479 Visit(E);
480 }
481
483 Visit(D->getAsmString());
484 }
485
487
488 void VisitCapturedDecl(const CapturedDecl *D) { Visit(D->getBody()); }
489
491 for (const auto *E : D->varlists())
492 Visit(E);
493 }
494
496 Visit(D->getCombiner());
497 if (const auto *Initializer = D->getInitializer())
499 }
500
502 for (const auto *C : D->clauselists())
503 Visit(C);
504 }
505
507 Visit(D->getInit());
508 }
509
511 for (const auto *E : D->varlists())
512 Visit(E);
513 for (const auto *C : D->clauselists())
514 Visit(C);
515 }
516
517 template <typename SpecializationDecl>
518 void dumpTemplateDeclSpecialization(const SpecializationDecl *D) {
519 for (const auto *RedeclWithBadType : D->redecls()) {
520 // FIXME: The redecls() range sometimes has elements of a less-specific
521 // type. (In particular, ClassTemplateSpecializationDecl::redecls() gives
522 // us TagDecls, and should give CXXRecordDecls).
523 auto *Redecl = dyn_cast<SpecializationDecl>(RedeclWithBadType);
524 if (!Redecl) {
525 // Found the injected-class-name for a class template. This will be
526 // dumped as part of its surrounding class so we don't need to dump it
527 // here.
528 assert(isa<CXXRecordDecl>(RedeclWithBadType) &&
529 "expected an injected-class-name");
530 continue;
531 }
532 Visit(Redecl);
533 }
534 }
535
536 template <typename TemplateDecl>
539
541
542 if (Traversal == TK_AsIs) {
543 for (const auto *Child : D->specializations())
545 }
546 }
547
550 }
551
555 }
556
558 Visit(D->getAssertExpr());
559 Visit(D->getMessage());
560 }
561
564 }
565
568 }
569
573 }
574
579 }
580
585 }
587
590 }
591
592 void
595 VisitVarDecl(D);
596 }
597
602 }
603
605 if (const auto *TC = D->getTypeConstraint())
606 Visit(TC->getImmediatelyDeclaredConstraint());
607 if (D->hasDefaultArgument())
610 D->defaultArgumentWasInherited() ? "inherited from" : "previous");
611 }
612
614 if (const auto *E = D->getPlaceholderTypeConstraint())
615 Visit(E);
616 if (D->hasDefaultArgument())
619 D->defaultArgumentWasInherited() ? "inherited from" : "previous");
620 }
621
624 if (D->hasDefaultArgument())
627 D->defaultArgumentWasInherited() ? "inherited from" : "previous");
628 }
629
633 }
634
637 for (const TemplateArgument &Arg : CSD->getTemplateArguments())
638 Visit(Arg);
639 }
640
643 if (CSE->hasExplicitTemplateArgs())
644 for (const auto &ArgLoc : CSE->getTemplateArgsAsWritten()->arguments())
646 }
647
649 if (auto *TD = dyn_cast<TypeDecl>(D->getUnderlyingDecl()))
650 Visit(TD->getTypeForDecl());
651 }
652
654 if (D->getFriendType()) {
655 // Traverse any CXXRecordDecl owned by this type, since
656 // it will not be in the parent context:
657 if (auto *ET = D->getFriendType()->getType()->getAs<ElaboratedType>())
658 if (auto *TD = ET->getOwnedTagDecl())
659 Visit(TD);
660 } else {
661 Visit(D->getFriendDecl());
662 }
663 }
664
668 else
669 for (const ParmVarDecl *Parameter : D->parameters())
671
672 if (D->hasBody())
673 Visit(D->getBody());
674 }
675
678 }
679
682 }
683
685 for (const auto &I : D->inits())
686 Visit(I);
687 }
688
689 void VisitBlockDecl(const BlockDecl *D) {
690 for (const auto &I : D->parameters())
691 Visit(I);
692
693 for (const auto &I : D->captures())
694 Visit(I);
695 Visit(D->getBody());
696 }
697
699 for (const auto &D : Node->decls())
700 Visit(D);
701 }
702
704 for (const auto *A : Node->getAttrs())
705 Visit(A);
706 }
707
709 Visit(Node->getExceptionDecl());
710 }
711
713 Visit(Node->getCapturedDecl());
714 }
715
717 for (const auto *C : Node->clauses())
718 Visit(C);
719 }
720
722 if (auto *Filler = ILE->getArrayFiller()) {
723 Visit(Filler, "array_filler");
724 }
725 }
726
728 if (auto *Filler = PLIE->getArrayFiller()) {
729 Visit(Filler, "array_filler");
730 }
731 }
732
733 void VisitBlockExpr(const BlockExpr *Node) { Visit(Node->getBlockDecl()); }
734
736 if (Expr *Source = Node->getSourceExpr())
737 Visit(Source);
738 }
739
741 if (E->isExprPredicate()) {
743 Visit(E->getControllingExpr()->getType()); // FIXME: remove
744 } else
746
747 for (const auto Assoc : E->associations()) {
748 Visit(Assoc);
749 }
750 }
751
753 for (auto *D : E->getLocalParameters())
754 Visit(D);
755 for (auto *R : E->getRequirements())
756 Visit(R);
757 }
758
761 for (unsigned I = 0, N = Node->capture_size(); I != N; ++I) {
762 const auto *C = Node->capture_begin() + I;
763 if (!C->isExplicit())
764 continue;
765 if (Node->isInitCapture(C))
766 Visit(C->getCapturedVar());
767 else
768 Visit(Node->capture_init_begin()[I]);
769 }
770 dumpTemplateParameters(Node->getTemplateParameterList());
771 for (const auto *P : Node->getCallOperator()->parameters())
772 Visit(P);
773 Visit(Node->getBody());
774 } else {
775 return Visit(Node->getLambdaClass());
776 }
777 }
778
780 if (Node->isPartiallySubstituted())
781 for (const auto &A : Node->getPartialArguments())
782 Visit(A);
783 }
784
786 Visit(E->getParameter());
787 }
792 }
793
795 if (const VarDecl *CatchParam = Node->getCatchParamDecl())
796 Visit(CatchParam);
797 }
798
801 Visit(Node->getInit());
802 Visit(Node->getLoopVariable());
803 Visit(Node->getRangeInit());
804 Visit(Node->getBody());
805 }
806 }
807
809 for (const auto *Child :
810 make_filter_range(Node->children(), [this](const Stmt *Child) {
811 if (Traversal != TK_IgnoreUnlessSpelledInSource)
812 return false;
813 return !isa<CXXDefaultArgExpr>(Child);
814 })) {
815 Visit(Child);
816 }
817 }
818
821 Visit(Node->getLHS());
822 Visit(Node->getRHS());
823 } else {
825 }
826 }
827
829 Visit(TA.getAsExpr());
830 }
831
833 Visit(TA.getAsType());
834 }
835
837 for (const auto &TArg : TA.pack_elements())
838 Visit(TArg);
839 }
840
841 // Implements Visit methods for Attrs.
842#include "clang/AST/AttrNodeTraverse.inc"
843};
844
845} // namespace clang
846
847#endif // LLVM_CLANG_AST_ASTNODETRAVERSER_H
#define V(N, I)
Definition: ASTContext.h:3233
DynTypedNode Node
TraversalKind Traversal
C Language Family Type Representation.
std::string Label
APValue - This class implements a discriminated union of [uninitialized] [APSInt] [APFloat],...
Definition: APValue.h:122
comments::FullComment * getLocalCommentForDeclUncached(const Decl *D) const
Return parsed documentation comment attached to a given declaration.
Definition: ASTContext.cpp:627
ASTNodeTraverser traverses the Clang AST for dumping purposes.
void VisitSubstNonTypeTemplateParmPackExpr(const SubstNonTypeTemplateParmPackExpr *E)
void VisitDeclStmt(const DeclStmt *Node)
void VisitFunctionType(const FunctionType *T)
void VisitCapturedDecl(const CapturedDecl *D)
void Visit(const BlockDecl::Capture &C)
void VisitAdjustedType(const AdjustedType *T)
void VisitSizeOfPackExpr(const SizeOfPackExpr *Node)
void VisitMemberPointerType(const MemberPointerType *T)
void VisitDependentSizedArrayType(const DependentSizedArrayType *T)
void VisitTypeOfExprType(const TypeOfExprType *T)
void VisitLocInfoType(const LocInfoType *T)
void dumpTemplateDeclSpecialization(const SpecializationDecl *D)
void Visit(const comments::Comment *C, const comments::FullComment *FC)
void VisitClassTemplateSpecializationDecl(const ClassTemplateSpecializationDecl *D)
void VisitBlockDecl(const BlockDecl *D)
void VisitObjCImplementationDecl(const ObjCImplementationDecl *D)
void VisitTemplateTemplateParmDecl(const TemplateTemplateParmDecl *D)
void VisitObjCAtCatchStmt(const ObjCAtCatchStmt *Node)
void VisitTypeAliasTemplateDecl(const TypeAliasTemplateDecl *D)
void VisitCXXParenListInitExpr(const CXXParenListInitExpr *PLIE)
void dumpTemplateArgumentList(const TemplateArgumentList &TAL)
void Visit(const OMPClause *C)
void VisitImplicitConceptSpecializationDecl(const ImplicitConceptSpecializationDecl *CSD)
void VisitReferenceType(const ReferenceType *T)
void VisitBlockExpr(const BlockExpr *Node)
void VisitObjCInterfaceDecl(const ObjCInterfaceDecl *D)
void VisitStaticAssertDecl(const StaticAssertDecl *D)
void VisitBlockPointerType(const BlockPointerType *T)
void VisitFieldDecl(const FieldDecl *D)
void VisitAttributedStmt(const AttributedStmt *Node)
void Visit(const Type *T)
void VisitPipeType(const PipeType *T)
void Visit(const Attr *A)
void VisitClassScopeFunctionSpecializationDecl(const ClassScopeFunctionSpecializationDecl *D)
void VisitInitListExpr(const InitListExpr *ILE)
void VisitVarTemplateDecl(const VarTemplateDecl *D)
void VisitPackExpansionType(const PackExpansionType *T)
void VisitBTFTagAttributedType(const BTFTagAttributedType *T)
void VisitTypeAliasDecl(const TypeAliasDecl *D)
void VisitDecompositionDecl(const DecompositionDecl *D)
void VisitObjCMethodDecl(const ObjCMethodDecl *D)
void VisitClassTemplateDecl(const ClassTemplateDecl *D)
void SetTraversalKind(TraversalKind TK)
void Visit(const concepts::Requirement *R)
void VisitOMPCapturedExprDecl(const OMPCapturedExprDecl *D)
void VisitComplexType(const ComplexType *T)
void dumpDeclContext(const DeclContext *DC)
void VisitUsingShadowDecl(const UsingShadowDecl *D)
void dumpObjCTypeParamList(const ObjCTypeParamList *typeParams)
void VisitVarTemplateSpecializationDecl(const VarTemplateSpecializationDecl *D)
void Visit(const DynTypedNode &N)
void VisitExpressionTemplateArgument(const TemplateArgument &TA)
void dumpTemplateDecl(const TemplateDecl *D)
void VisitVectorType(const VectorType *T)
void dumpTemplateArgumentLoc(const TemplateArgumentLoc &A, const Decl *From=nullptr, const char *Label=nullptr)
void VisitCXXCatchStmt(const CXXCatchStmt *Node)
void VisitClassTemplatePartialSpecializationDecl(const ClassTemplatePartialSpecializationDecl *D)
void VisitTypedefDecl(const TypedefDecl *D)
void Visit(const ConceptReference *R)
void VisitBindingDecl(const BindingDecl *D)
void Visit(const APValue &Value, QualType Ty)
void VisitRequiresExpr(const RequiresExpr *E)
void VisitGenericSelectionExpr(const GenericSelectionExpr *E)
void VisitSubstTemplateTypeParmPackType(const SubstTemplateTypeParmPackType *T)
void VisitOpaqueValueExpr(const OpaqueValueExpr *Node)
void VisitArrayType(const ArrayType *T)
void Visit(const CXXCtorInitializer *Init)
void VisitVarDecl(const VarDecl *D)
void VisitVarTemplatePartialSpecializationDecl(const VarTemplatePartialSpecializationDecl *D)
void VisitFileScopeAsmDecl(const FileScopeAsmDecl *D)
void VisitFunctionProtoType(const FunctionProtoType *T)
void VisitUnaryTransformType(const UnaryTransformType *T)
void VisitLambdaExpr(const LambdaExpr *Node)
void VisitCallExpr(const CallExpr *Node)
void VisitDecltypeType(const DecltypeType *T)
void VisitOMPExecutableDirective(const OMPExecutableDirective *Node)
void VisitEnumConstantDecl(const EnumConstantDecl *D)
void VisitTemplateSpecializationType(const TemplateSpecializationType *T)
void VisitAtomicType(const AtomicType *T)
void VisitDependentSizedExtVectorType(const DependentSizedExtVectorType *T)
void Visit(const Stmt *Node, StringRef Label={})
void Visit(const GenericSelectionExpr::ConstAssociation &A)
void VisitBuiltinTemplateDecl(const BuiltinTemplateDecl *D)
void VisitConceptDecl(const ConceptDecl *D)
void VisitTopLevelStmtDecl(const TopLevelStmtDecl *D)
void dumpASTTemplateArgumentListInfo(const ASTTemplateArgumentListInfo *TALI)
void VisitConceptSpecializationExpr(const ConceptSpecializationExpr *CSE)
void VisitVariableArrayType(const VariableArrayType *T)
void VisitTypeTemplateArgument(const TemplateArgument &TA)
void VisitTemplateTypeParmDecl(const TemplateTypeParmDecl *D)
void VisitOMPAllocateDecl(const OMPAllocateDecl *D)
void VisitOMPThreadPrivateDecl(const OMPThreadPrivateDecl *D)
void VisitCapturedStmt(const CapturedStmt *Node)
void VisitFriendDecl(const FriendDecl *D)
void VisitSubstNonTypeTemplateParmExpr(const SubstNonTypeTemplateParmExpr *E)
void VisitNonTypeTemplateParmDecl(const NonTypeTemplateParmDecl *D)
void VisitCXXForRangeStmt(const CXXForRangeStmt *Node)
void VisitOMPDeclareMapperDecl(const OMPDeclareMapperDecl *D)
void VisitObjCObjectPointerType(const ObjCObjectPointerType *T)
void Visit(const Decl *D)
void VisitAttributedType(const AttributedType *T)
void Visit(const TemplateArgument &A, SourceRange R={}, const Decl *From=nullptr, const char *Label=nullptr)
void VisitPackTemplateArgument(const TemplateArgument &TA)
TraversalKind GetTraversalKind() const
void VisitObjCCategoryDecl(const ObjCCategoryDecl *D)
void VisitSubstTemplateTypeParmType(const SubstTemplateTypeParmType *)
void VisitCXXRewrittenBinaryOperator(const CXXRewrittenBinaryOperator *Node)
void dumpTemplateParameters(const TemplateParameterList *TPL)
void VisitFunctionDecl(const FunctionDecl *D)
void VisitFunctionTemplateDecl(const FunctionTemplateDecl *D)
void VisitOMPDeclareReductionDecl(const OMPDeclareReductionDecl *D)
void VisitPointerType(const PointerType *T)
Represents a type which was implicitly adjusted by the semantic engine for arbitrary reasons.
Definition: Type.h:2869
QualType getOriginalType() const
Definition: Type.h:2882
Represents an array type, per C99 6.7.5.2 - Array Declarators.
Definition: Type.h:3083
QualType getElementType() const
Definition: Type.h:3104
QualType getValueType() const
Gets the type contained by this atomic type, i.e.
Definition: Type.h:6576
Attr - This represents one attribute.
Definition: Attr.h:40
Represents an attribute applied to a statement.
Definition: Stmt.h:1901
An attributed type is a type to which a type attribute has been applied.
Definition: Type.h:4988
QualType getModifiedType() const
Definition: Type.h:5010
QualType getEquivalentType() const
Definition: Type.h:5011
QualType getWrappedType() const
Definition: Type.h:5100
A binding in a decomposition declaration.
Definition: DeclCXX.h:4060
VarDecl * getHoldingVar() const
Get the variable (if any) that holds the value of evaluating the binding.
Definition: DeclCXX.cpp:3275
Expr * getBinding() const
Get the expression to which this declaration is bound.
Definition: DeclCXX.h:4084
A class which contains all the information about a particular captured value.
Definition: Decl.h:4385
Represents a block literal declaration, which is like an unnamed FunctionDecl.
Definition: Decl.h:4379
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:4458
ArrayRef< Capture > captures() const
Definition: Decl.h:4506
ArrayRef< ParmVarDecl * > parameters() const
Definition: Decl.h:4465
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Definition: Expr.h:6154
Pointer to a block type.
Definition: Type.h:2920
QualType getPointeeType() const
Definition: Type.h:2932
Represents the builtin template declaration which is used to implement __make_integer_seq and other b...
CXXCatchStmt - This represents a C++ catch block.
Definition: StmtCXX.h:28
Represents a C++ base or member initializer.
Definition: DeclCXX.h:2259
CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for statement, represented as 'for (ra...
Definition: StmtCXX.h:135
Represents a list-initialization with parenthesis.
Definition: ExprCXX.h:4811
A rewritten comparison expression that was originally written using operator syntax.
Definition: ExprCXX.h:283
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition: Expr.h:2832
Represents the body of a CapturedStmt, and serves as its DeclContext.
Definition: Decl.h:4571
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:5301
This captures a statement into a function.
Definition: Stmt.h:3578
Declaration of a function specialization at template class scope.
const ASTTemplateArgumentListInfo * getTemplateArgsAsWritten() const
Declaration of a class template.
TemplateParameterList * getTemplateParameters() const
Get the list of template parameters.
Represents a class template specialization, which refers to a class template with a given set of temp...
const TemplateArgumentList & getTemplateArgs() const
Retrieve the template arguments of the class template specialization.
Complex values, per C99 6.2.5p11.
Definition: Type.h:2787
QualType getElementType() const
Definition: Type.h:2797
Declaration of a C++20 concept.
Expr * getConstraintExpr() const
A reference to a concept and its template args, as it appears in the code.
Definition: ASTConcept.h:128
Represents the specialization of a concept - evaluates to a prvalue of type bool.
Definition: ExprConcepts.h:42
const ASTTemplateArgumentListInfo * getTemplateArgsAsWritten() const
Definition: ExprConcepts.h:98
const ImplicitConceptSpecializationDecl * getSpecializationDecl() const
Definition: ExprConcepts.h:116
A simple visitor class that helps create attribute visitors.
Definition: AttrVisitor.h:71
A simple visitor class that helps create declaration visitors.
Definition: DeclVisitor.h:74
ConstStmtVisitor - This class implements a simple visitor for Stmt subclasses.
Definition: StmtVisitor.h:194
A simple visitor class that helps create template argument visitors.
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
Definition: DeclBase.h:1409
decl_range noload_decls() const
noload_decls_begin/end - Iterate over the declarations stored in this context that are currently load...
Definition: DeclBase.h:2214
decl_range decls() const
decls_begin/decls_end - Iterate over the declarations stored in this context.
Definition: DeclBase.h:2206
DeclStmt - Adaptor class for mixing declarations with statements and expressions.
Definition: Stmt.h:1320
Decl - This represents one declaration (or definition), e.g.
Definition: DeclBase.h:83
ASTContext & getASTContext() const LLVM_READONLY
Definition: DeclBase.cpp:429
bool isImplicit() const
isImplicit - Indicates whether the declaration was implicitly generated by the implementation.
Definition: DeclBase.h:576
attr_range attrs() const
Definition: DeclBase.h:519
Expr * getTrailingRequiresClause()
Get the constraint-expression introduced by the trailing requires-clause in the function/member decla...
Definition: Decl.h:843
Represents the type decltype(expr) (C++11).
Definition: Type.h:4807
Expr * getUnderlyingExpr() const
Definition: Type.h:4817
A decomposition declaration.
Definition: DeclCXX.h:4119
ArrayRef< BindingDecl * > bindings() const
Definition: DeclCXX.h:4151
const ParmDecl * getInheritedFrom() const
Get the parameter from which we inherit the default argument, if any.
Definition: DeclTemplate.h:361
Represents an array type in C++ whose size is a value-dependent expression.
Definition: Type.h:3289
Expr * getSizeExpr() const
Definition: Type.h:3311
Represents an extended vector type where either the type or size is dependent.
Definition: Type.h:3391
QualType getElementType() const
Definition: Type.h:3407
A dynamically typed AST node container.
const T * get() const
Retrieve the stored node as type T.
Represents a type that was referred to using an elaborated type keyword, e.g., struct S,...
Definition: Type.h:5757
An instance of this object exists for each enum constant that is defined.
Definition: Decl.h:3197
const Expr * getInitExpr() const
Definition: Decl.h:3216
This represents one expression.
Definition: Expr.h:110
QualType getType() const
Definition: Expr.h:142
Represents a member of a struct/union/class.
Definition: Decl.h:2962
Expr * getInClassInitializer() const
Get the C++11 default member initializer for this member, or null if one has not been set.
Definition: Decl.cpp:4450
bool isBitField() const
Determines whether this field is a bitfield.
Definition: Decl.h:3050
Expr * getBitWidth() const
Returns the expression that represents the bit width, if this field is a bit field.
Definition: Decl.h:3063
const StringLiteral * getAsmString() const
Definition: Decl.h:4333
FriendDecl - Represents the declaration of a friend entity, which can be a function,...
Definition: DeclFriend.h:54
NamedDecl * getFriendDecl() const
If this friend declaration doesn't name a type, return the inner declaration.
Definition: DeclFriend.h:136
TypeSourceInfo * getFriendType() const
If this friend declaration names an (untemplated but possibly dependent) type, return the type; other...
Definition: DeclFriend.h:121
Represents a function declaration or definition.
Definition: Decl.h:1919
Stmt * getBody(const FunctionDecl *&Definition) const
Retrieve the body (definition) of the function.
Definition: Decl.cpp:3174
ArrayRef< ParmVarDecl * > parameters() const
Definition: Decl.h:2603
FunctionTemplateSpecializationInfo * getTemplateSpecializationInfo() const
If this function is actually a function template specialization, retrieve information about this func...
Definition: Decl.cpp:4076
param_iterator param_begin()
Definition: Decl.h:2615
bool doesThisDeclarationHaveABody() const
Returns whether this specific declaration of the function has a body.
Definition: Decl.h:2230
bool isDefaulted() const
Whether this function is defaulted.
Definition: Decl.h:2282
Represents a prototype with parameter type info, e.g.
Definition: Type.h:4117
ArrayRef< QualType > getParamTypes() const
Definition: Type.h:4341
Declaration of a template function.
FunctionType - C99 6.7.5.3 - Function Declarators.
Definition: Type.h:3751
QualType getReturnType() const
Definition: Type.h:4035
Represents a C11 generic selection.
Definition: Expr.h:5707
TypeSourceInfo * getControllingType()
Return the controlling type of this generic selection expression.
Definition: Expr.h:5981
bool isExprPredicate() const
Whether this generic selection uses an expression as its controlling argument.
Definition: Expr.h:5962
association_range associations()
Definition: Expr.h:6037
AssociationTy< true > ConstAssociation
Definition: Expr.h:5938
Expr * getControllingExpr()
Return the controlling expression of this generic selection expression.
Definition: Expr.h:5969
ArrayRef< TemplateArgument > getTemplateArguments() const
Describes an C or C++ initializer list.
Definition: Expr.h:4830
Expr * getArrayFiller()
If this initializer list initializes an array with more elements than there are initializers in the l...
Definition: Expr.h:4924
A C++ lambda expression, which produces a function object (of unspecified type) that can be invoked l...
Definition: ExprCXX.h:1937
Holds a QualType and a TypeSourceInfo* that came out of a declarator parsing.
Definition: LocInfoType.h:28
TypeSourceInfo * getTypeSourceInfo() const
Definition: LocInfoType.h:45
A pointer to member type per C++ 8.3.3 - Pointers to members.
Definition: Type.h:3031
QualType getPointeeType() const
Definition: Type.h:3047
const Type * getClass() const
Definition: Type.h:3061
NamedDecl * getUnderlyingDecl()
Looks through UsingDecls and ObjCCompatibleAliasDecls for the underlying named decl.
Definition: Decl.h:459
NonTypeTemplateParmDecl - Declares a non-type template parameter, e.g., "Size" in.
const DefArgStorage & getDefaultArgStorage() const
bool hasDefaultArgument() const
Determine whether this template parameter has a default argument.
bool defaultArgumentWasInherited() const
Determines whether the default argument was inherited from a previous declaration of this template.
Expr * getDefaultArgument() const
Retrieve the default argument, if any.
Expr * getPlaceholderTypeConstraint() const
Return the constraint introduced by the placeholder type of this non-type template parameter (if any)...
This represents '#pragma omp allocate ...' directive.
Definition: DeclOpenMP.h:473
varlist_range varlists()
Definition: DeclOpenMP.h:515
clauselist_range clauselists()
Definition: DeclOpenMP.h:526
Pseudo declaration for capturing expressions.
Definition: DeclOpenMP.h:383
This is a basic class for representing single OpenMP clause.
Definition: OpenMPClause.h:55
This represents '#pragma omp declare mapper ...' directive.
Definition: DeclOpenMP.h:287
clauselist_range clauselists()
Definition: DeclOpenMP.h:333
This represents '#pragma omp declare reduction ...' directive.
Definition: DeclOpenMP.h:171
Expr * getInitializer()
Get initializer expression (if specified) of the declare reduction construct.
Definition: DeclOpenMP.h:239
Expr * getCombiner()
Get combiner expression of the declare reduction construct.
Definition: DeclOpenMP.h:221
This is a basic class for representing single OpenMP executable directive.
Definition: StmtOpenMP.h:266
This represents '#pragma omp threadprivate ...' directive.
Definition: DeclOpenMP.h:110
varlist_range varlists()
Definition: DeclOpenMP.h:146
Represents Objective-C's @catch statement.
Definition: StmtObjC.h:77
ObjCCategoryDecl - Represents a category declaration.
Definition: DeclObjC.h:2312
ObjCTypeParamList * getTypeParamList() const
Retrieve the type parameter list associated with this category or extension.
Definition: DeclObjC.h:2362
ObjCImplementationDecl - Represents a class definition - this is where method definitions are specifi...
Definition: DeclObjC.h:2584
Represents an ObjC class declaration.
Definition: DeclObjC.h:1147
ObjCTypeParamList * getTypeParamListAsWritten() const
Retrieve the type parameters written on this particular declaration of the class.
Definition: DeclObjC.h:1292
ObjCMethodDecl - Represents an instance or class method declaration.
Definition: DeclObjC.h:138
bool hasBody() const override
Determine whether this method has a body.
Definition: DeclObjC.h:524
ArrayRef< ParmVarDecl * > parameters() const
Definition: DeclObjC.h:375
Stmt * getBody() const override
Retrieve the body of this method, if it has one.
Definition: DeclObjC.cpp:909
bool isThisDeclarationADefinition() const
Returns whether this specific method is a definition.
Definition: DeclObjC.h:535
Represents a pointer to an Objective C object.
Definition: Type.h:6395
QualType getPointeeType() const
Gets the type pointed to by this ObjC pointer.
Definition: Type.h:6407
Stores a list of Objective-C type parameters for a parameterized class or a category/extension thereo...
Definition: DeclObjC.h:658
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class.
Definition: Expr.h:1150
Represents a pack expansion of types.
Definition: Type.h:5956
bool isSugared() const
Definition: Type.h:5987
QualType getPattern() const
Retrieve the pattern of this pack expansion, which is the type that will be repeatedly instantiated w...
Definition: Type.h:5977
Represents a parameter to a function.
Definition: Decl.h:1724
PipeType - OpenCL20.
Definition: Type.h:6595
QualType getElementType() const
Definition: Type.h:6606
PointerType - C99 6.7.5.1 - Pointer Declarators.
Definition: Type.h:2840
QualType getPointeeType() const
Definition: Type.h:2850
A (possibly-)qualified type.
Definition: Type.h:736
SplitQualType split() const
Divides a QualType into its unqualified type and a set of local qualifiers.
Definition: Type.h:6768
bool hasQualifiers() const
Return true if the set contains any qualifiers.
Definition: Type.h:438
Base for LValueReferenceType and RValueReferenceType.
Definition: Type.h:2951
QualType getPointeeType() const
Definition: Type.h:2969
C++2a [expr.prim.req]: A requires-expression provides a concise way to express requirements on templa...
Definition: ExprConcepts.h:507
ArrayRef< concepts::Requirement * > getRequirements() const
Definition: ExprConcepts.h:548
ArrayRef< ParmVarDecl * > getLocalParameters() const
Definition: ExprConcepts.h:542
Represents an expression that computes the length of a parameter pack.
Definition: ExprCXX.h:4217
A trivial tuple used to represent a source range.
Represents a C++11 static_assert declaration.
Definition: DeclCXX.h:4011
RetTy Visit(PTR(Stmt) S, ParamTys... P)
Definition: StmtVisitor.h:43
Stmt - This represents one statement.
Definition: Stmt.h:72
Represents a reference to a non-type template parameter that has been substituted with a template arg...
Definition: ExprCXX.h:4333
NonTypeTemplateParmDecl * getParameter() const
Definition: ExprCXX.cpp:1662
Represents a reference to a non-type template parameter pack that has been substituted with a non-tem...
Definition: ExprCXX.h:4418
TemplateArgument getArgumentPack() const
Retrieve the template argument pack containing the substituted template arguments.
Definition: ExprCXX.cpp:1693
NonTypeTemplateParmDecl * getParameterPack() const
Retrieve the non-type template parameter pack being substituted.
Definition: ExprCXX.cpp:1688
Represents the result of substituting a set of types for a template type parameter pack.
Definition: Type.h:5273
TemplateArgument getArgumentPack() const
Definition: Type.cpp:3928
Represents the result of substituting a type for a template type parameter.
Definition: Type.h:5203
A template argument list.
Definition: DeclTemplate.h:240
unsigned size() const
Retrieve the number of template arguments in this template argument list.
Definition: DeclTemplate.h:298
Location wrapper for a TemplateArgument.
Definition: TemplateBase.h:484
const TemplateArgument & getArgument() const
Definition: TemplateBase.h:533
SourceRange getSourceRange() const LLVM_READONLY
Represents a template argument.
Definition: TemplateBase.h:60
Expr * getAsExpr() const
Retrieve the template argument as an expression.
Definition: TemplateBase.h:368
QualType getAsType() const
Retrieve the type for a type template argument.
Definition: TemplateBase.h:287
ArrayRef< TemplateArgument > pack_elements() const
Iterator range referencing all of the elements of a template argument pack.
Definition: TemplateBase.h:392
The base class of all kinds of template declarations (e.g., class, function, etc.).
Definition: DeclTemplate.h:410
NamedDecl * getTemplatedDecl() const
Get the underlying, templated declaration.
Definition: DeclTemplate.h:442
TemplateParameterList * getTemplateParameters() const
Get the list of template parameters.
Definition: DeclTemplate.h:429
Stores a list of template parameters for a TemplateDecl and its derived classes.
Definition: DeclTemplate.h:73
Expr * getRequiresClause()
The constraint-expression of the associated requires-clause.
Definition: DeclTemplate.h:176
Represents a type template specialization; the template must be a class template, a type alias templa...
Definition: Type.h:5475
ArrayRef< TemplateArgument > template_arguments() const
Definition: Type.h:5543
TemplateTemplateParmDecl - Declares a template template parameter, e.g., "T" in.
const DefArgStorage & getDefaultArgStorage() const
const TemplateArgumentLoc & getDefaultArgument() const
Retrieve the default argument, if any.
bool defaultArgumentWasInherited() const
Determines whether the default argument was inherited from a previous declaration of this template.
bool hasDefaultArgument() const
Determine whether this template parameter has a default argument.
Declaration of a template type parameter.
QualType getDefaultArgument() const
Retrieve the default argument, if any.
const TypeConstraint * getTypeConstraint() const
Returns the type constraint associated with this template parameter (if any).
bool hasDefaultArgument() const
Determine whether this template parameter has a default argument.
bool defaultArgumentWasInherited() const
Determines whether the default argument was inherited from a previous declaration of this template.
const DefArgStorage & getDefaultArgStorage() const
A declaration that models statements at global scope.
Definition: Decl.h:4346
Represents the declaration of a typedef-name via a C++11 alias-declaration.
Definition: Decl.h:3449
Declaration of an alias template.
TypeAliasDecl * getTemplatedDecl() const
Get the underlying function declaration of the template.
Represents a typeof (or typeof) expression (a C23 feature and GCC extension) or a typeof_unqual expre...
Definition: Type.h:4720
Expr * getUnderlyingExpr() const
Definition: Type.h:4729
A container of type source information.
Definition: Type.h:6718
QualType getType() const
Return the type wrapped by this type source info.
Definition: Type.h:6729
An operation on a type.
Definition: TypeVisitor.h:64
RetTy Visit(const Type *T)
Performs the operation associated with this visitor object.
Definition: TypeVisitor.h:68
The base class of the type hierarchy.
Definition: Type.h:1597
QualType getLocallyUnqualifiedSingleStepDesugaredType() const
Pull a single level of sugar off of this locally-unqualified type.
Definition: Type.cpp:448
const T * getAs() const
Member-template getAs<specific type>'.
Definition: Type.h:7523
Represents the declaration of a typedef-name via the 'typedef' type specifier.
Definition: Decl.h:3429
QualType getUnderlyingType() const
Definition: Decl.h:3382
A unary type transform, which is a type constructed from another.
Definition: Type.h:4850
QualType getBaseType() const
Definition: Type.h:4877
Represents a shadow declaration implicitly introduced into a scope by a (resolved) using-declaration ...
Definition: DeclCXX.h:3274
Represents a variable declaration or definition.
Definition: Decl.h:915
bool hasInit() const
Definition: Decl.cpp:2378
bool isCXXForRangeDecl() const
Determine whether this variable is the for-range-declaration in a C++0x for-range statement.
Definition: Decl.h:1474
const Expr * getInit() const
Definition: Decl.h:1327
Declaration of a variable template.
TemplateParameterList * getTemplateParameters() const
Get the list of template parameters.
Represents a variable template specialization, which refers to a variable template with a given set o...
const TemplateArgumentList & getTemplateArgs() const
Retrieve the template arguments of the variable template specialization.
Represents a C array with a specified size that is not an integer-constant-expression.
Definition: Type.h:3235
Expr * getSizeExpr() const
Definition: Type.h:3254
Represents a GCC generic vector type.
Definition: Type.h:3431
QualType getElementType() const
Definition: Type.h:3475
RetTy Visit(PTR(Attr) A)
Definition: AttrVisitor.h:31
RetTy visit(PTR(Comment) C, ParamTys... P)
Any part of the comment.
Definition: Comment.h:52
Comment *const * child_iterator
Definition: Comment.h:227
A full comment attached to a declaration, contains block content.
Definition: Comment.h:1077
A static requirement that can be used in a requires-expression to check properties of types and expre...
Definition: ExprConcepts.h:168
RetTy Visit(PTR(Decl) D)
Definition: DeclVisitor.h:37
RetTy Visit(REF(TemplateArgument) TA, ParamTys... P)
TraversalKind
Defines how we descend a level in the AST when we pass through expressions.
Definition: ASTTypeTraits.h:38
@ TK_AsIs
Will traverse all child nodes.
Definition: ASTTypeTraits.h:40
@ TK_IgnoreUnlessSpelledInSource
Ignore AST nodes not written in the source.
Definition: ASTTypeTraits.h:43
@ C
Languages that the frontend can parse and compile.
@ Parameter
The parameter type of a method or function.
@ TSK_ExplicitInstantiationDefinition
This template specialization was instantiated from a template due to an explicit instantiation defini...
Definition: Specifiers.h:197
@ TSK_ExplicitInstantiationDeclaration
This template specialization was instantiated from a template due to an explicit instantiation declar...
Definition: Specifiers.h:193
Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".
Definition: TemplateBase.h:641
llvm::ArrayRef< TemplateArgumentLoc > arguments() const
Definition: TemplateBase.h:670
A std::pair-like structure for storing a qualified type split into its local qualifiers and its local...
Definition: Type.h:669
const Type * Ty
The locally-unqualified type.
Definition: Type.h:671
Qualifiers Quals
The local qualifiers.
Definition: Type.h:674