Home | History | Annotate | Download | only in AST

Lines Matching defs:ASTContext

1 //===--- ASTContext.h - Context to hold long-lived AST nodes ----*- C++ -*-===//
11 /// \brief Defines the clang::ASTContext interface.
128 class ASTContext : public RefCountedBase<ASTContext> {
129 ASTContext &this_() { return *this; }
150 mutable llvm::ContextualFoldingSet<FunctionProtoType, ASTContext&>
160 mutable llvm::ContextualFoldingSet<TemplateSpecializationType, ASTContext&>
166 ASTContext&>
185 ASTContext&>
364 void resolve(ASTContext &Ctx);
474 /// this ASTContext object.
488 /// AST objects will be released when the ASTContext itself is destroyed.
809 Import = ASTContext::getNextLocalImport(Import);
1002 ASTContext(LangOptions &LOpts, SourceManager &SM, IdentifierTable &idents,
1004 ASTContext(const ASTContext &) = delete;
1005 ASTContext &operator=(const ASTContext &) = delete;
1006 ~ASTContext();
2269 /// is a member of ASTContext because this may need to do some amount of
2552 /// ASTContext is destroyed.
2669 /// This routine may only be invoked once for a given ASTContext object.
2670 /// It is normally invoked after ASTContext construction.
2727 /// ASTContext is destroyed.
2728 // FIXME: We really should have a better mechanism in the ASTContext to
2739 // by DeclContext objects. This probably should not be in ASTContext,
2740 // but we include it here so that ASTContext can quickly deallocate them.
2782 static inline Selector GetNullarySelector(StringRef name, ASTContext& Ctx) {
2788 static inline Selector GetUnarySelector(StringRef name, ASTContext& Ctx) {
2797 /// @brief Placement new for using the ASTContext's allocator.
2799 /// This placement form of operator new uses the ASTContext's allocator for
2809 /// Usage looks like this (assuming there's an ASTContext 'Context' in scope):
2817 /// explicitly freed, as ASTContext will free all of this memory when it gets
2821 /// @param C The ASTContext that provides the allocator.
2825 inline void *operator new(size_t Bytes, const clang::ASTContext &C,
2834 /// the ASTContext throws in the object constructor.
2835 inline void operator delete(void *Ptr, const clang::ASTContext &C, size_t) {
2839 /// This placement form of operator new[] uses the ASTContext's allocator for
2846 /// Usage looks like this (assuming there's an ASTContext 'Context' in scope):
2854 /// explicitly freed, as ASTContext will free all of this memory when it gets
2858 /// @param C The ASTContext that provides the allocator.
2862 inline void *operator new[](size_t Bytes, const clang::ASTContext& C,
2872 /// the ASTContext throws in the object constructor.
2873 inline void operator delete[](void *Ptr, const clang::ASTContext &C, size_t) {
2882 const clang::ASTContext &Ctx, T Value) {
2884 // include ASTContext.h. We explicitly instantiate it for all relevant types
2885 // in ASTContext.cpp.