Home
last modified time | relevance | path

Searched refs:ASTContext (Results 1 – 25 of 455) sorted by relevance

12345678910>>...19

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DNestedNameSpecifier.h30 class ASTContext; variable
114 static NestedNameSpecifier *FindOrInsert(const ASTContext &Context,
125 static NestedNameSpecifier *Create(const ASTContext &Context,
130 static NestedNameSpecifier *Create(const ASTContext &Context,
135 static NestedNameSpecifier *Create(const ASTContext &Context,
140 static NestedNameSpecifier *Create(const ASTContext &Context,
150 static NestedNameSpecifier *Create(const ASTContext &Context,
155 static NestedNameSpecifier *GlobalSpecifier(const ASTContext &Context);
159 static NestedNameSpecifier *SuperSpecifier(const ASTContext &Context,
403 void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
[all …]
H A DASTUnresolvedSet.h35 DeclsTy(ASTContext &C, unsigned N) : ASTVector<DeclAccessPair>(C, N) {} in DeclsTy()
45 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {} in ASTUnresolvedSet()
56 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl()
60 void addLazyDecl(ASTContext &C, GlobalDeclID ID, AccessSpecifier AS) { in addLazyDecl()
89 void reserve(ASTContext &C, unsigned N) { in reserve()
93 void append(ASTContext &C, iterator I, iterator E) { in append()
106 void getFromExternalSource(ASTContext &C) const;
109 ASTUnresolvedSet &get(ASTContext &C) const { in get()
115 void reserve(ASTContext &C, unsigned N) { Impl.reserve(C, N); } in reserve()
117 void addLazyDecl(ASTContext &C, GlobalDeclID ID, AccessSpecifier AS) { in addLazyDecl()
H A DStmtOpenMP.h163 static OMPCanonicalLoop *create(const ASTContext &Ctx, Stmt *LoopStmt, in create()
176 static OMPCanonicalLoop *createEmpty(const ASTContext &Ctx) { in createEmpty()
310 static T *createDirective(const ASTContext &C, ArrayRef<OMPClause *> Clauses, in createDirective()
326 static T *createEmptyDirective(const ASTContext &C, unsigned NumClauses, in createEmptyDirective()
342 static T *createEmptyDirective(const ASTContext &C, unsigned NumClauses,
668 Create(const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc,
677 static OMPParallelDirective *CreateEmpty(const ASTContext &C,
1619 static OMPSimdDirective *Create(const ASTContext &C, SourceLocation StartLoc,
1633 static OMPSimdDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses,
1698 static OMPForDirective *Create(const ASTContext &C, SourceLocation StartLoc,
[all …]
H A DDeclTemplate.h99 TemplateParameterList(const ASTContext& C, SourceLocation TemplateLoc,
116 static TemplateParameterList *Create(const ASTContext &C,
123 void Profile(llvm::FoldingSetNodeID &ID, const ASTContext &C) const;
207 void print(raw_ostream &Out, const ASTContext &Context,
209 void print(raw_ostream &Out, const ASTContext &Context,
229 FixedSizeTemplateParameterListStorage(const ASTContext &C, in FixedSizeTemplateParameterListStorage()
261 static TemplateArgumentList *CreateCopy(ASTContext &Context,
288 void *allocateDefaultArgStorageChain(const ASTContext &C);
360 void setInherited(const ASTContext &C, ParmDecl *InheritedFrom) { in setInherited()
513 Create(ASTContext &C, FunctionDecl *FD, FunctionTemplateDecl *Template,
[all …]
H A DASTContextAllocate.h21 class ASTContext; variable
26 void *operator new(size_t Bytes, const clang::ASTContext &C,
28 void *operator new[](size_t Bytes, const clang::ASTContext &C,
34 void operator delete(void *Ptr, const clang::ASTContext &C, size_t);
35 void operator delete[](void *Ptr, const clang::ASTContext &C, size_t);
H A DDecl.h55 class ASTContext; variable
99 ASTContext &Ctx;
105 explicit TranslationUnitDecl(ASTContext &ctx);
120 ASTContext &getASTContext() const { return Ctx; } in getASTContext()
125 static TranslationUnitDecl *Create(ASTContext &C);
156 static PragmaCommentDecl *Create(const ASTContext &C, TranslationUnitDecl *DC,
160 static PragmaCommentDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID,
190 static PragmaDetectMismatchDecl *Create(const ASTContext &C,
195 CreateDeserialized(ASTContext &C, GlobalDeclID ID, unsigned NameValueSize);
230 static ExternCContextDecl *Create(const ASTContext &C,
[all …]
H A DExternalASTMerger.h54 ASTContext *AST;
74 ASTContext &AST;
84 ASTContext &AST;
95 ImporterSource(ASTContext &AST, FileManager &FM, const OriginMap &OM,
98 ASTContext &getASTContext() const { return AST; } in getASTContext()
174 bool HasImporterForOrigin(ASTContext &OriginContext);
179 ASTImporter &ImporterForOrigin(ASTContext &OriginContext);
H A DDeclCXX.h56 class ASTContext; variable
117 static AccessSpecDecl *Create(ASTContext &C, AccessSpecifier AS, in Create()
123 static AccessSpecDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID);
453 void AddCaptureList(ASTContext &Ctx, Capture *CaptureList);
508 bool hasSubobjectAtOffsetZeroOfEmptyBaseType(ASTContext &Ctx,
512 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC,
573 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
578 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
582 static CXXRecordDecl *CreateDeserialized(const ASTContext &C,
1075 void setCaptures(ASTContext &Context, ArrayRef<LambdaCapture> Captures);
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangASTImporter.h98 clang::Decl *CopyDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
111 clang::Decl *DeportDecl(clang::ASTContext *dst_ctx, clang::Decl *decl);
222 void InstallMapCompleter(clang::ASTContext *dst_ctx, in InstallMapCompleter()
237 void ForgetDestination(clang::ASTContext *dst_ctx);
238 void ForgetSource(clang::ASTContext *dst_ctx, clang::ASTContext *src_ctx);
243 DeclOrigin(clang::ASTContext *_ctx, clang::Decl *_decl) in DeclOrigin()
261 clang::ASTContext *ctx = nullptr;
284 ASTImporterDelegate(ClangASTImporter &main, clang::ASTContext *target_ctx, in ASTImporterDelegate()
285 clang::ASTContext *source_ctx) in ASTImporterDelegate()
314 CxxModuleScope(ASTImporterDelegate &delegate, clang::ASTContext *dst_ctx) in CxxModuleScope()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DSourceCodeBuilders.h54 bool isKnownPointerLikeType(QualType Ty, ASTContext &Context);
63 const ASTContext &Context);
68 const ASTContext &Context);
73 const ASTContext &Context);
83 std::optional<std::string> buildDot(const Expr &E, const ASTContext &Context);
93 std::optional<std::string> buildArrow(const Expr &E, const ASTContext &Context);
114 buildAccess(const Expr &E, ASTContext &Context,
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h76 MatchResult(const BoundNodes &Nodes, clang::ASTContext *Context);
85 clang::ASTContext * const Context;
194 template <typename T> void match(const T &Node, ASTContext &Context) { in match()
197 void match(const clang::DynTypedNode &Node, ASTContext &Context);
201 void matchAST(ASTContext &Context);
254 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context);
258 ASTContext &Context);
264 SmallVector<BoundNodes, 1> match(MatcherT Matcher, ASTContext &Context);
303 ASTContext &Context) { in match()
313 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) { in match()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclOpenMP.cpp28 OMPThreadPrivateDecl *OMPThreadPrivateDecl::Create(ASTContext &C, in Create()
38 OMPThreadPrivateDecl *OMPThreadPrivateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
57 OMPAllocateDecl *OMPAllocateDecl::Create(ASTContext &C, DeclContext *DC, in Create()
66 OMPAllocateDecl *OMPAllocateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
86 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC, in Create()
93 OMPRequiresDecl *OMPRequiresDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
115 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create()
122 OMPDeclareReductionDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized()
145 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create()
152 OMPDeclareMapperDecl *OMPDeclareMapperDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
[all …]
H A DStmtOpenMP.cpp262 OMPMetaDirective *OMPMetaDirective::Create(const ASTContext &C, in Create()
273 OMPMetaDirective *OMPMetaDirective::CreateEmpty(const ASTContext &C, in CreateEmpty()
282 const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, in Create()
292 OMPParallelDirective *OMPParallelDirective::CreateEmpty(const ASTContext &C, in CreateEmpty()
301 const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, in Create()
327 OMPSimdDirective *OMPSimdDirective::CreateEmpty(const ASTContext &C, in CreateEmpty()
337 const ASTContext &C, SourceLocation StartLoc, SourceLocation EndLoc, in Create()
400 OMPForDirective *OMPForDirective::CreateEmpty(const ASTContext &C, in CreateEmpty()
410 OMPTileDirective::Create(const ASTContext &C, SourceLocation StartLoc, in Create()
422 OMPTileDirective *OMPTileDirective::CreateEmpty(const ASTContext &C, in CreateEmpty()
[all …]
H A DASTContext.cpp217 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl()
295 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache()
328 void ASTContext::addComment(const RawComment &RC) { in addComment()
404 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl()
472 void ASTContext::cacheRawCommentForDecl(const Decl &OriginalD, in cacheRawCommentForDecl()
498 void ASTContext::attachCommentsToJustParsedDecls(ArrayRef<Decl *> Decls, in attachCommentsToJustParsedDecls()
560 comments::FullComment *ASTContext::cloneFullComment(comments::FullComment *FC, in cloneFullComment()
575 comments::FullComment *ASTContext::getLocalCommentForDeclUncached(const Decl *D) const { in getLocalCommentForDeclUncached()
580 comments::FullComment *ASTContext::getCommentForDecl( in getCommentForDecl()
688 ASTContext::CanonicalTemplateTemplateParm::Profile(llvm::FoldingSetNodeID &ID, in Profile()
[all …]
H A DOpenACCClause.cpp48 OpenACCDefaultClause *OpenACCDefaultClause::Create(const ASTContext &C, in Create()
59 OpenACCIfClause *OpenACCIfClause::Create(const ASTContext &C, in Create()
79 OpenACCSelfClause *OpenACCSelfClause::Create(const ASTContext &C, in Create()
128 OpenACCNumWorkersClause::Create(const ASTContext &C, SourceLocation BeginLoc, in Create()
149 OpenACCVectorLengthClause::Create(const ASTContext &C, SourceLocation BeginLoc, in Create()
168 OpenACCAsyncClause *OpenACCAsyncClause::Create(const ASTContext &C, in Create()
179 const ASTContext &C, SourceLocation BeginLoc, SourceLocation LParenLoc, in Create()
190 OpenACCNumGangsClause *OpenACCNumGangsClause::Create(const ASTContext &C, in Create()
200 OpenACCPrivateClause *OpenACCPrivateClause::Create(const ASTContext &C, in Create()
211 const ASTContext &C, SourceLocation BeginLoc, SourceLocation LParenLoc, in Create()
[all …]
H A DDeclTemplate.cpp48 TemplateParameterList::TemplateParameterList(const ASTContext& C, in TemplateParameterList()
119 TemplateParameterList::Create(const ASTContext &C, SourceLocation TemplateLoc, in Create()
131 const ASTContext &C) const { in Profile()
253 void *allocateDefaultArgStorageChain(const ASTContext &C) { in allocateDefaultArgStorageChain()
339 ASTContext &Context = getASTContext(); in loadLazySpecializationsImpl()
411 FunctionTemplateDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, in Create()
422 FunctionTemplateDecl::CreateDeserialized(ASTContext &C, GlobalDeclID ID) { in CreateDeserialized()
428 FunctionTemplateDecl::newCommon(ASTContext &C) const { in newCommon()
494 ClassTemplateDecl *ClassTemplateDecl::Create(ASTContext &C, DeclContext *DC, in Create()
506 ClassTemplateDecl *ClassTemplateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
[all …]
H A DExprCXX.cpp150 bool CXXTypeidExpr::isMostDerived(ASTContext &Context) const { in isMostDerived()
162 QualType CXXTypeidExpr::getTypeOperand(ASTContext &Context) const { in getTypeOperand()
216 QualType CXXUuidofExpr::getTypeOperand(ASTContext &Context) const { in getTypeOperand()
293 const ASTContext &Ctx, bool IsGlobalNew, FunctionDecl *OperatorNew, in Create()
315 CXXNewExpr *CXXNewExpr::CreateEmpty(const ASTContext &Ctx, bool IsArray, in CreateEmpty()
372 const ASTContext &Context, Expr *Base, bool isArrow, in CXXPseudoDestructorExpr()
401 const ASTContext &Context, CXXRecordDecl *NamingClass, in UnresolvedLookupExpr()
421 const ASTContext &Context, CXXRecordDecl *NamingClass, in Create()
437 const ASTContext &Context, CXXRecordDecl *NamingClass, in Create()
456 const ASTContext &Context, unsigned NumResults, in CreateEmpty()
[all …]
H A DDeclCXX.cpp60 AccessSpecDecl *AccessSpecDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
65 void LazyASTUnresolvedSet::getFromExternalSource(ASTContext &C) const { in getFromExternalSource()
124 CXXRecordDecl::CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, in CXXRecordDecl()
132 CXXRecordDecl *CXXRecordDecl::Create(const ASTContext &C, TagKind TK, in Create()
148 CXXRecordDecl::CreateLambda(const ASTContext &C, DeclContext *DC, in CreateLambda()
164 CXXRecordDecl *CXXRecordDecl::CreateDeserialized(const ASTContext &C, in CreateDeserialized()
197 ASTContext &C = getASTContext(); in setBases()
649 ASTContext &Ctx, const CXXRecordDecl *XFirst) { in hasSubobjectAtOffsetZeroOfEmptyBaseType()
916 ASTContext &Ctx = getASTContext(); in addedMember()
976 ASTContext &Context = getASTContext(); in addedMember()
[all …]
H A DQualTypeNames.cpp31 const ASTContext &Ctx,
46 const ASTContext &Ctx, const TypeDecl *TD,
50 const ASTContext &Ctx, const Decl *decl,
54 const ASTContext &Ctx, NestedNameSpecifier *scope, bool WithGlobalNsPrefix);
56 static bool getFullyQualifiedTemplateName(const ASTContext &Ctx, in getFullyQualifiedTemplateName()
95 static bool getFullyQualifiedTemplateArgument(const ASTContext &Ctx, in getFullyQualifiedTemplateArgument()
121 static const Type *getFullyQualifiedTemplateType(const ASTContext &Ctx, in getFullyQualifiedTemplateType()
189 static NestedNameSpecifier *createOuterNNS(const ASTContext &Ctx, const Decl *D, in createOuterNNS()
215 const ASTContext &Ctx, NestedNameSpecifier *Scope, in getFullyQualifiedNestedNameSpecifier()
268 const ASTContext &Ctx, const Decl *Decl, in createNestedNameSpecifierForScopeOf()
[all …]
H A DASTConcept.cpp23 CreateUnsatisfiedConstraintRecord(const ASTContext &C, in CreateUnsatisfiedConstraintRecord()
39 const ASTContext &C, const ConstraintSatisfaction &Satisfaction) in ASTConstraintSatisfaction()
50 const ASTContext &C, const ASTConstraintSatisfaction &Satisfaction) in ASTConstraintSatisfaction()
61 ASTConstraintSatisfaction::Create(const ASTContext &C, in Create()
71 const ASTContext &C, const ASTConstraintSatisfaction &Satisfaction) { in Rebuild()
79 llvm::FoldingSetNodeID &ID, const ASTContext &C, in Profile()
88 ConceptReference::Create(const ASTContext &C, NestedNameSpecifierLoc NNS, in Create()
H A DASTDumper.cpp190 const ASTContext &Context) const { in dump()
198 const ASTContext &Context) const { in dump()
211 const ASTContext &Context) const { in dump()
223 ASTContext &Ctx = getASTContext(); in dump()
239 const ASTContext &Ctx = getASTContext(); in dumpColor()
248 LLVM_DUMP_METHOD void DeclContext::dumpAsDecl(const ASTContext *Ctx) const { in dumpAsDecl()
279 const ASTContext &Ctx = cast<TranslationUnitDecl>(DC)->getASTContext(); in dumpLookups()
295 const ASTContext &Context) const { in dump()
318 const ASTContext &Context) const { in dump()
344 const ASTContext &Context) const { in dump()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfoImpl.h50 ABIArgInfo coerceToIntArray(QualType Ty, ASTContext &Context,
129 bool isEmptyField(ASTContext &Context, const FieldDecl *FD, bool AllowArrays,
137 bool isEmptyRecord(ASTContext &Context, QualType T, bool AllowArrays,
142 bool isEmptyFieldForLayout(const ASTContext &Context, const FieldDecl *FD);
148 bool isEmptyRecordForLayout(const ASTContext &Context, QualType T);
158 const Type *isSingleElementStruct(QualType T, ASTContext &Context);
163 bool isSIMDVectorType(ASTContext &Context, QualType Ty);
165 bool isRecordWithSIMDVectorType(ASTContext &Context, QualType Ty);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp90 auto &ASTContext = RD->getASTContext(); in visitRecord() local
91 const ASTRecordLayout &RL = ASTContext.getASTRecordLayout(RD); in visitRecord()
94 CharUnits BaselinePad = calculateBaselinePad(RD, ASTContext, RL); in visitRecord()
101 calculateOptimalPad(RD, ASTContext, RL); in visitRecord()
191 const ASTContext &ASTContext, in calculateBaselinePad() argument
194 CharUnits Offset = ASTContext.toCharUnitsFromBits(RL.getFieldOffset(0)); in calculateBaselinePad()
199 if (FD->isZeroSize(ASTContext)) in calculateBaselinePad()
205 CharUnits FieldSize = ASTContext.getTypeSizeInChars(FD->getType()); in calculateBaselinePad()
207 CharUnits FieldOffset = ASTContext.toCharUnitsFromBits(FieldOffsetBits); in calculateBaselinePad()
232 calculateOptimalPad(const RecordDecl *RD, const ASTContext &ASTContext, in calculateOptimalPad() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCodeBuilders.cpp65 bool tooling::isKnownPointerLikeType(QualType Ty, ASTContext &Context) { in isKnownPointerLikeType()
76 const ASTContext &Context) { in buildParens()
86 tooling::buildDereference(const Expr &E, const ASTContext &Context) { in buildDereference()
107 const ASTContext &Context) { in buildAddressOf()
132 buildAccessForValue(const Expr &E, const ASTContext &Context) { in buildAccessForValue()
158 buildAccessForPointer(const Expr &E, const ASTContext &Context) { in buildAccessForPointer()
181 const ASTContext &Context) { in buildDot()
186 const ASTContext &Context) { in buildArrow()
201 static bool treatLikePointer(QualType Ty, PLTClass C, ASTContext &Context) { in treatLikePointer()
214 ASTContext &Context, in buildAccess()
/freebsd/contrib/llvm-project/clang/include/clang/Index/
H A DCommentToXML.h15 class ASTContext; variable
30 const ASTContext &Context);
34 const ASTContext &Context);
38 const ASTContext &Context);

12345678910>>...19