HomePhabricator

[clangd] Improve const-correctness of Symbol->Detail. NFC

Authored by sammccall on Jan 15 2018, 12:09 PM.

Description

[clangd] Improve const-correctness of Symbol->Detail. NFC

Summary:
This would have caught a bug I wrote in an early version of D42049, where
an index user could overwrite data internal to the index because the Symbol is
not deep-const.

The YAML traits are now a bit more verbose, but separate concerns a bit more
nicely: ArenaPtr can be reused for other similarly-allocated objects, including
scalars etc.

Reviewers: hokein

Subscribers: klimek, ilya-biryukov, cfe-commits, ioeric

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

llvm-svn: 322509

Details

Committed
sammccallJan 15 2018, 12:09 PM
Differential Revision
D42059: [clangd] Improve const-correctness of Symbol->Detail. NFC
Parents
rG7aa1fcdf3e05: [WebAssembly] Update README.txt.
Branches
Unknown
Tags
Unknown