HomePhabricator

[clang][Syntax] syntax::Arena doesnt own TokenBuffer

Authored by kadircet on Jul 30 2020, 12:38 PM.

Description

[clang][Syntax] syntax::Arena doesnt own TokenBuffer

Currently an Arena can only be built while consuming a TokenBuffer,
some users (like clangd) might want to share a TokenBuffer with multiple
compenents. This patch changes Arena's TokenBuffer member to be a reference so
that it can be created with read-only token buffers.

Differential Revision: https://reviews.llvm.org/D84973

Details

Committed
kadircetJul 31 2020, 2:50 AM
Differential Revision
D84973: [clang][Syntax] syntax::Arena doesnt own TokenBuffer
Parents
rGfb5588b0ad59: [clangd] Propagate remote index errors via Expected
Branches
Unknown
Tags
Unknown