Home
last modified time | relevance | path

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

12345678910>>...12

/external/clang/include/clang/AST/
DNestedNameSpecifier.h24 class ASTContext; variable
104 static NestedNameSpecifier *FindOrInsert(const ASTContext &Context,
113 static NestedNameSpecifier *Create(const ASTContext &Context,
118 static NestedNameSpecifier *Create(const ASTContext &Context,
123 static NestedNameSpecifier *Create(const ASTContext &Context,
128 static NestedNameSpecifier *Create(const ASTContext &Context,
138 static NestedNameSpecifier *Create(const ASTContext &Context,
143 static NestedNameSpecifier *GlobalSpecifier(const ASTContext &Context);
369 void Extend(ASTContext &Context, SourceLocation TemplateKWLoc, TypeLoc TL,
383 void Extend(ASTContext &Context, IdentifierInfo *Identifier,
[all …]
DASTImporter.h25 class ASTContext; variable
44 ASTContext &ToContext, &FromContext;
93 ASTImporter(ASTContext &ToContext, FileManager &ToFileManager,
94 ASTContext &FromContext, FileManager &FromFileManager,
242 ASTContext &getToContext() const { return ToContext; } in getToContext()
245 ASTContext &getFromContext() const { return FromContext; } in getFromContext()
DASTUnresolvedSet.h33 ASTUnresolvedSet(ASTContext &C, unsigned N) : Decls(C, N) {} in ASTUnresolvedSet()
44 void addDecl(ASTContext &C, NamedDecl *D) { in addDecl()
48 void addDecl(ASTContext &C, NamedDecl *D, AccessSpecifier AS) { in addDecl()
72 void reserve(ASTContext &C, unsigned N) { in reserve()
76 void append(ASTContext &C, iterator I, iterator E) { in append()
DDecl.h60 friend class ASTContext; variable
73 ASTContext &Ctx;
79 explicit TranslationUnitDecl(ASTContext &ctx) in TranslationUnitDecl()
84 ASTContext &getASTContext() const { return Ctx; } in getASTContext()
89 static TranslationUnitDecl *Create(ASTContext &C);
286 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
288 static LabelDecl *Create(ASTContext &C, DeclContext *DC,
291 static LabelDecl *CreateDeserialized(ASTContext &C, unsigned ID);
342 static NamespaceDecl *Create(ASTContext &C, DeclContext *DC,
347 static NamespaceDecl *CreateDeserialized(ASTContext &C, unsigned ID);
[all …]
DASTVector.h54 class ASTContext; variable
66 ASTVector(ASTContext &C, unsigned N) in ASTVector()
158 void push_back(const_reference Elt, ASTContext &C) { in push_back()
169 void reserve(ASTContext &C, unsigned N) { in reserve()
181 void append(ASTContext &C, in_iter in_start, in_iter in_end) { in append()
200 void append(ASTContext &C, size_type NumInputs, const T &Elt) { in append()
217 iterator insert(ASTContext &C, iterator I, const T &Elt) { in insert()
238 iterator insert(ASTContext &C, iterator I, size_type NumToInsert, in insert()
287 iterator insert(ASTContext &C, iterator I, ItTy From, ItTy To) { in insert()
338 void resize(ASTContext &C, unsigned N, const T &NV) { in resize()
[all …]
DMangle.h25 class ASTContext; variable
69 ASTContext &Context;
76 explicit MangleContext(ASTContext &Context, in MangleContext()
82 ASTContext &getASTContext() const { return Context; } in getASTContext()
147 MangleContext *createItaniumMangleContext(ASTContext &Context,
149 MangleContext *createMicrosoftMangleContext(ASTContext &Context,
DType.h73 class ASTContext;
670 bool isConstant(ASTContext& Ctx) const {
675 bool isPODType(ASTContext &Context) const;
680 bool isCXX98PODType(ASTContext &Context) const;
686 bool isCXX11PODType(ASTContext &Context) const;
690 bool isTrivialType(ASTContext &Context) const;
694 bool isTriviallyCopyableType(ASTContext &Context) const;
821 QualType getNonLValueExprType(ASTContext &Context) const;
831 QualType getDesugaredType(const ASTContext &Context) const {
844 QualType getSingleStepDesugaredType(const ASTContext &Context) const {
[all …]
DDeclTemplate.h65 static TemplateParameterList *Create(const ASTContext &C,
173 static TemplateArgumentList *CreateCopy(ASTContext &Context,
300 Create(ASTContext &C, FunctionDecl *FD, FunctionTemplateDecl *Template,
386 unsigned NumTemplateArgs, ASTContext &Context) { in Profile()
620 virtual CommonBase *newCommon(ASTContext &C) const = 0;
766 CommonBase *newCommon(ASTContext &C) const;
853 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
860 static FunctionTemplateDecl *CreateDeserialized(ASTContext &C, unsigned ID);
942 static TemplateTypeParmDecl *Create(const ASTContext &C, DeclContext *DC,
948 static TemplateTypeParmDecl *CreateDeserialized(const ASTContext &C,
[all …]
DDeclCXX.h139 static AccessSpecDecl *Create(ASTContext &C, AccessSpecifier AS,
144 static AccessSpecDecl *CreateDeserialized(ASTContext &C, unsigned ID);
653 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
657 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
660 static CXXRecordDecl *CreateDeserialized(const ASTContext &C, unsigned ID);
1478 void viewInheritance(ASTContext& Context) const;
1594 static CXXMethodDecl *Create(ASTContext &C, CXXRecordDecl *RD,
1604 static CXXMethodDecl *CreateDeserialized(ASTContext &C, unsigned ID);
1673 QualType getThisType(ASTContext &C) const;
1786 CXXCtorInitializer(ASTContext &Context, FieldDecl *Member,
[all …]
DExpr.h35 class ASTContext; variable
235 ASTContext &Ctx) const;
268 LValueClassification ClassifyLValue(ASTContext &Ctx) const;
297 isModifiableLvalueResult isModifiableLvalue(ASTContext &Ctx,
375 Classification Classify(ASTContext &Ctx) const { in Classify()
387 Classification ClassifyModifiable(ASTContext &Ctx, SourceLocation &Loc) const{ in ClassifyModifiable()
426 Classification ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const;
474 bool isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx,
477 bool isIntegerConstantExpr(ASTContext &Ctx, SourceLocation *Loc = 0) const;
481 bool isCXX98IntegralConstantExpr(ASTContext &Ctx) const;
[all …]
DAttrIterator.h21 class ASTContext; variable
26 void *operator new(size_t Bytes, const clang::ASTContext &C,
30 void *operator new[](size_t Bytes, const clang::ASTContext &C,
36 void operator delete(void *Ptr, const clang::ASTContext &C, size_t);
37 void operator delete[](void *Ptr, const clang::ASTContext &C, size_t);
/external/clang/lib/AST/
DASTContext.cpp42 unsigned ASTContext::NumImplicitDefaultConstructors;
43 unsigned ASTContext::NumImplicitDefaultConstructorsDeclared;
44 unsigned ASTContext::NumImplicitCopyConstructors;
45 unsigned ASTContext::NumImplicitCopyConstructorsDeclared;
46 unsigned ASTContext::NumImplicitMoveConstructors;
47 unsigned ASTContext::NumImplicitMoveConstructorsDeclared;
48 unsigned ASTContext::NumImplicitCopyAssignmentOperators;
49 unsigned ASTContext::NumImplicitCopyAssignmentOperatorsDeclared;
50 unsigned ASTContext::NumImplicitMoveAssignmentOperators;
51 unsigned ASTContext::NumImplicitMoveAssignmentOperatorsDeclared;
[all …]
DDeclTemplate.cpp57 TemplateParameterList::Create(const ASTContext &C, SourceLocation TemplateLoc, in Create()
177 static void GenerateInjectedTemplateArgs(ASTContext &Context, in GenerateInjectedTemplateArgs()
224 FunctionTemplateDecl *FunctionTemplateDecl::Create(ASTContext &C, in Create()
234 FunctionTemplateDecl *FunctionTemplateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
242 FunctionTemplateDecl::newCommon(ASTContext &C) const { in newCommon()
286 ClassTemplateDecl *ClassTemplateDecl::Create(ASTContext &C, in Create()
299 ClassTemplateDecl *ClassTemplateDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized()
308 ASTContext &Context = getASTContext(); in LoadLazySpecializations()
329 ClassTemplateDecl::newCommon(ASTContext &C) const { in newCommon()
395 ASTContext &Context = getASTContext(); in findPartialSpecialization()
[all …]
DItaniumCXXABI.cpp32 ASTContext &Context;
34 ItaniumCXXABI(ASTContext &Ctx) : Context(Ctx) { } in ItaniumCXXABI()
63 ARMCXXABI(ASTContext &Ctx) : ItaniumCXXABI(Ctx) { } in ARMCXXABI()
67 CXXABI *clang::CreateItaniumCXXABI(ASTContext &Ctx) { in CreateItaniumCXXABI()
71 CXXABI *clang::CreateARMCXXABI(ASTContext &Ctx) { in CreateARMCXXABI()
DCXXABI.h22 class ASTContext; variable
43 CXXABI *CreateARMCXXABI(ASTContext &Ctx);
44 CXXABI *CreateItaniumCXXABI(ASTContext &Ctx);
45 CXXABI *CreateMicrosoftCXXABI(ASTContext &Ctx);
DDeclCXX.cpp33 AccessSpecDecl *AccessSpecDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
83 CXXRecordDecl *CXXRecordDecl::Create(const ASTContext &C, TagKind TK, in Create()
98 CXXRecordDecl *CXXRecordDecl::CreateLambda(const ASTContext &C, DeclContext *DC, in CreateLambda()
111 CXXRecordDecl::CreateDeserialized(const ASTContext &C, unsigned ID) { in CreateDeserialized()
123 ASTContext &C = getASTContext(); in setBases()
653 ASTContext &Context = getASTContext(); in addedMember()
944 static CanQualType GetConversionType(ASTContext &Context, NamedDecl *Conv) { in GetConversionType()
967 static void CollectVisibleConversions(ASTContext &Context, in CollectVisibleConversions()
1033 static void CollectVisibleConversions(ASTContext &Context, in CollectVisibleConversions()
1161 ASTContext &Context = getASTContext(); in getDestructor()
[all …]
DExprCXX.cpp81 CXXNewExpr::CXXNewExpr(ASTContext &C, bool globalNew, FunctionDecl *operatorNew, in CXXNewExpr()
141 void CXXNewExpr::AllocateArgsArray(ASTContext &C, bool isArray, in AllocateArgsArray()
151 bool CXXNewExpr::shouldNullCheckAllocation(ASTContext &Ctx) const { in shouldNullCheckAllocation()
175 CXXPseudoDestructorExpr::CXXPseudoDestructorExpr(ASTContext &Context, in CXXPseudoDestructorExpr()
228 UnresolvedLookupExpr::Create(ASTContext &C, in Create()
249 UnresolvedLookupExpr::CreateEmpty(ASTContext &C, in CreateEmpty()
262 OverloadExpr::OverloadExpr(StmtClass K, ASTContext &C, in OverloadExpr()
334 void OverloadExpr::initializeResults(ASTContext &C, in initializeResults()
390 DependentScopeDeclRefExpr::Create(ASTContext &C, in Create()
406 DependentScopeDeclRefExpr::CreateEmpty(ASTContext &C, in CreateEmpty()
[all …]
DNestedNameSpecifier.cpp28 NestedNameSpecifier::FindOrInsert(const ASTContext &Context, in FindOrInsert()
46 NestedNameSpecifier::Create(const ASTContext &Context, in Create()
59 NestedNameSpecifier::Create(const ASTContext &Context, in Create()
74 NestedNameSpecifier::Create(const ASTContext &Context, in Create()
89 NestedNameSpecifier::Create(const ASTContext &Context, in Create()
101 NestedNameSpecifier::Create(const ASTContext &Context, IdentifierInfo *II) { in Create()
111 NestedNameSpecifier::GlobalSpecifier(const ASTContext &Context) { in GlobalSpecifier()
500 void NestedNameSpecifierLocBuilder::Extend(ASTContext &Context, in Extend()
513 void NestedNameSpecifierLocBuilder::Extend(ASTContext &Context, in Extend()
525 void NestedNameSpecifierLocBuilder::Extend(ASTContext &Context, in Extend()
[all …]
DStmt.cpp51 void *Stmt::operator new(size_t bytes, ASTContext& C, in operator new()
56 void *Stmt::operator new(size_t bytes, ASTContext* C, in operator new()
255 CompoundStmt::CompoundStmt(ASTContext &C, ArrayRef<Stmt*> Stmts, in CompoundStmt()
271 void CompoundStmt::setStmts(ASTContext &C, Stmt **Stmts, unsigned NumStmts) { in setStmts()
284 AttributedStmt *AttributedStmt::Create(ASTContext &C, SourceLocation Loc, in Create()
293 AttributedStmt *AttributedStmt::CreateEmpty(ASTContext &C, unsigned NumAttrs) { in CreateEmpty()
323 std::string AsmStmt::generateAsmString(ASTContext &C) const { in generateAsmString()
409 void GCCAsmStmt::setOutputsAndInputsAndClobbers(ASTContext &C, in setOutputsAndInputsAndClobbers()
464 ASTContext &C, unsigned &DiagOffs) const { in AnalyzeAsmString()
602 std::string GCCAsmStmt::generateAsmString(ASTContext &C) const { in generateAsmString()
[all …]
DExprClassification.cpp26 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E);
27 static Cl::Kinds ClassifyDecl(ASTContext &Ctx, const Decl *D);
28 static Cl::Kinds ClassifyUnnamed(ASTContext &Ctx, QualType T);
29 static Cl::Kinds ClassifyMemberExpr(ASTContext &Ctx, const MemberExpr *E);
30 static Cl::Kinds ClassifyBinaryOp(ASTContext &Ctx, const BinaryOperator *E);
31 static Cl::Kinds ClassifyConditional(ASTContext &Ctx,
34 static Cl::ModifiableType IsModifiable(ASTContext &Ctx, const Expr *E,
37 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const { in ClassifyImpl()
102 static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { in ClassifyInternal()
394 static Cl::Kinds ClassifyDecl(ASTContext &Ctx, const Decl *D) { in ClassifyDecl()
[all …]
DDecl.cpp483 ASTContext &Context = D->getASTContext(); in getLVForNamespaceScopeDecl()
1256 ASTContext &Context = getASTContext(); in declarationReplaces()
1357 DeclaratorDecl::setTemplateParameterListsInfo(ASTContext &Context, in setTemplateParameterListsInfo()
1428 QualifierInfo::setTemplateParameterListsInfo(ASTContext &Context, in setTemplateParameterListsInfo()
1467 VarDecl *VarDecl::Create(ASTContext &C, DeclContext *DC, in Create()
1474 VarDecl *VarDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
1508 ASTContext &Context = D.getASTContext(); in getLanguageLinkageTemplate()
1554 ASTContext &C) const in isThisDeclarationADefinition()
1634 VarDecl *VarDecl::getDefinition(ASTContext &C) { in getDefinition()
1644 VarDecl::DefinitionKind VarDecl::hasDefinition(ASTContext &C) const { in hasDefinition()
[all …]
/external/clang/include/clang/ASTMatchers/
DASTMatchFinder.h73 MatchResult(const BoundNodes &Nodes, clang::ASTContext *Context);
82 clang::ASTContext * const Context;
143 template <typename T> void match(const T &Node, ASTContext &Context) { in match()
147 ASTContext &Context);
179 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context);
184 ASTContext &Context);
222 ASTContext &Context) { in match()
232 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) { in match()
/external/clang/docs/
DRAVFrontendAction.rst40 HandleTranslationUnit, which is called with the ASTContext for the
47 virtual void HandleTranslationUnit(clang::ASTContext &Context) {
100 Accessing the SourceManager and ASTContext
105 in the ASTContext and its associated source manager. To retrieve them we
106 need to hand the ASTContext into our RecursiveASTVisitor implementation.
108 The ASTContext is available from the CompilerInstance during the call to
119 Now that the ASTContext is available in the RecursiveASTVisitor, we can
127 // getFullLoc uses the ASTContext's SourceManager to resolve the source
156 explicit FindNamedClassVisitor(ASTContext *Context)
171 ASTContext *Context;
[all …]
/external/clang/lib/Analysis/
DBodyFarm.h24 class ASTContext; variable
31 BodyFarm(ASTContext &C) : C(C) {} in BodyFarm()
39 ASTContext &C;
/external/clang/lib/Rewrite/Frontend/
DHTMLPrint.cpp45 void Initialize(ASTContext &context);
46 void HandleTranslationUnit(ASTContext &Ctx);
57 void HTMLPrinter::Initialize(ASTContext &context) { in Initialize()
61 void HTMLPrinter::HandleTranslationUnit(ASTContext &Ctx) { in HandleTranslationUnit()

12345678910>>...12