clang  15.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 ()


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 36 of file Tree.cpp.

Member Function Documentation

◆ getAllocator()

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

Definition at line 50 of file Tree.h.

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

◆ getLangOptions()

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

Definition at line 47 of file Tree.h.

◆ getSourceManager()

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

◆ getTokenBuffer()

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

Friends And Related Function Documentation

◆ FactoryImpl

friend class FactoryImpl

Definition at line 58 of file Tree.h.

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