clang  12.0.0git
Public Member Functions | Friends | List of all members
clang::syntax::Arena Class Reference

A memory arena for syntax trees. More...

#include "clang/Tooling/Syntax/Tree.h"

Public Member Functions

 Arena (SourceManager &SourceMgr, const LangOptions &LangOpts, const TokenBuffer &Tokens)
 
const SourceManagergetSourceManager () const
 
const LangOptionsgetLangOptions () const
 
const TokenBuffergetTokenBuffer () const
 
llvm::BumpPtrAllocator & getAllocator ()
 

Friends

class FactoryImpl
 

Detailed Description

A memory arena for syntax trees.

Also tracks the underlying token buffers, source manager, etc.

Definition at line 41 of file Tree.h.

Constructor & Destructor Documentation

◆ Arena()

syntax::Arena::Arena ( SourceManager SourceMgr,
const LangOptions LangOpts,
const TokenBuffer Tokens 
)

Definition at line 35 of file Tree.cpp.

Member Function Documentation

◆ getAllocator()

llvm::BumpPtrAllocator& clang::syntax::Arena::getAllocator ( )
inline

Definition at line 50 of file Tree.h.

Referenced by clang::syntax::TreeBuilder::allocator().

◆ getLangOptions()

const LangOptions& clang::syntax::Arena::getLangOptions ( ) const
inline

Definition at line 47 of file Tree.h.

◆ getSourceManager()

const SourceManager& clang::syntax::Arena::getSourceManager ( ) const
inline

◆ getTokenBuffer()

const syntax::TokenBuffer & syntax::Arena::getTokenBuffer ( ) const

Friends And Related Function Documentation

◆ FactoryImpl

friend class FactoryImpl
friend

Definition at line 58 of file Tree.h.


The documentation for this class was generated from the following files: