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; }
148 mutable llvm::ContextualFoldingSet<FunctionProtoType, ASTContext&>
158 mutable llvm::ContextualFoldingSet<TemplateSpecializationType, ASTContext&>
164 ASTContext&>
183 ASTContext&>
362 void resolve(ASTContext &Ctx);
472 /// this ASTContext object.
486 /// AST objects will be released when the ASTContext itself is destroyed.
807 Import = ASTContext::getNextLocalImport(Import);
999 ASTContext(LangOptions &LOpts, SourceManager &SM, IdentifierTable &idents,
1001 ASTContext(const ASTContext &) = delete;
1002 ASTContext &operator=(const ASTContext &) = delete;
1003 ~ASTContext();
2223 /// is a member of ASTContext because this may need to do some amount of
2486 /// ASTContext is destroyed.
2603 /// This routine may only be invoked once for a given ASTContext object.
2604 /// It is normally invoked after ASTContext construction.
2661 /// ASTContext is destroyed.
2662 // FIXME: We really should have a better mechanism in the ASTContext to
2673 // by DeclContext objects. This probably should not be in ASTContext,
2674 // but we include it here so that ASTContext can quickly deallocate them.
2716 static inline Selector GetNullarySelector(StringRef name, ASTContext& Ctx) {
2722 static inline Selector GetUnarySelector(StringRef name, ASTContext& Ctx) {
2731 /// @brief Placement new for using the ASTContext's allocator.
2733 /// This placement form of operator new uses the ASTContext's allocator for
2743 /// Usage looks like this (assuming there's an ASTContext 'Context' in scope):
2751 /// explicitly freed, as ASTContext will free all of this memory when it gets
2755 /// @param C The ASTContext that provides the allocator.
2759 inline void *operator new(size_t Bytes, const clang::ASTContext &C,
2768 /// the ASTContext throws in the object constructor.
2769 inline void operator delete(void *Ptr, const clang::ASTContext &C, size_t) {
2773 /// This placement form of operator new[] uses the ASTContext's allocator for
2780 /// Usage looks like this (assuming there's an ASTContext 'Context' in scope):
2788 /// explicitly freed, as ASTContext will free all of this memory when it gets
2792 /// @param C The ASTContext that provides the allocator.
2796 inline void *operator new[](size_t Bytes, const clang::ASTContext& C,
2806 /// the ASTContext throws in the object constructor.
2807 inline void operator delete[](void *Ptr, const clang::ASTContext &C, size_t) {
2816 const clang::ASTContext &Ctx, T Value) {
2818 // include ASTContext.h. We explicitly instantiate it for all relevant types
2819 // in ASTContext.cpp.