diff options
author | Sam McCall <sam.mccall@gmail.com> | 2018-01-15 20:09:09 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2018-01-15 20:09:09 +0000 |
commit | e2f43f500af0a6c35a12751e6f3a9829c008b71c (patch) | |
tree | b5deb507af4bb59c037bc0d305e7485b2cf4da8f /clang/unittests/libclang/LibclangTest.cpp | |
parent | 7aa1fcdf3e05de6ac984401777abd0225fa905b1 (diff) | |
download | llvm-e2f43f500af0a6c35a12751e6f3a9829c008b71c.zip llvm-e2f43f500af0a6c35a12751e6f3a9829c008b71c.tar.gz llvm-e2f43f500af0a6c35a12751e6f3a9829c008b71c.tar.bz2 |
[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
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions