Lines Matching defs:ASTContext

1 //===--- ASTContext.h - Context to hold long-lived AST nodes ----*- C++ -*-===//
11 /// \brief Defines the clang::ASTContext interface.
79 class ASTContext : public RefCountedBase<ASTContext> {
80 ASTContext &this_() { return *this; }
99 mutable llvm::ContextualFoldingSet<FunctionProtoType, ASTContext&>
108 mutable llvm::ContextualFoldingSet<TemplateSpecializationType, ASTContext&>
114 ASTContext&>
128 ASTContext&>
384 /// this ASTContext object.
390 /// AST objects will be released when the ASTContext itself is destroyed.
649 Import = ASTContext::getNextLocalImport(Import);
804 ASTContext(LangOptions &LOpts, SourceManager &SM, IdentifierTable &idents,
807 ~ASTContext();
1880 /// is a member of ASTContext because this may need to do some amount of
2159 /// ASTContext is destroyed.
2250 ASTContext(const ASTContext &) LLVM_DELETED_FUNCTION;
2251 void operator=(const ASTContext &) LLVM_DELETED_FUNCTION;
2256 /// This routine may only be invoked once for a given ASTContext object.
2257 /// It is normally invoked after ASTContext construction.
2293 /// ASTContext is destroyed.
2299 // by DeclContext objects. This probably should not be in ASTContext,
2300 // but we include it here so that ASTContext can quickly deallocate them.
2314 static inline Selector GetNullarySelector(StringRef name, ASTContext& Ctx) {
2320 static inline Selector GetUnarySelector(StringRef name, ASTContext& Ctx) {
2329 /// @brief Placement new for using the ASTContext's allocator.
2331 /// This placement form of operator new uses the ASTContext's allocator for
2341 /// Usage looks like this (assuming there's an ASTContext 'Context' in scope):
2353 /// @param C The ASTContext that provides the allocator.
2357 inline void *operator new(size_t Bytes, const clang::ASTContext &C,
2366 /// the ASTContext throws in the object constructor.
2367 inline void operator delete(void *Ptr, const clang::ASTContext &C, size_t) {
2371 /// This placement form of operator new[] uses the ASTContext's allocator for
2378 /// Usage looks like this (assuming there's an ASTContext 'Context' in scope):
2390 /// @param C The ASTContext that provides the allocator.
2394 inline void *operator new[](size_t Bytes, const clang::ASTContext& C,
2404 /// the ASTContext throws in the object constructor.
2405 inline void operator delete[](void *Ptr, const clang::ASTContext &C, size_t) {
2414 const clang::ASTContext &Ctx, T Value) {
2416 // include ASTContext.h. We explicitly instantiate it for all relevant types
2417 // in ASTContext.cpp.