diff options
author | Brad King <brad.king@kitware.com> | 2018-09-24 13:21:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-09-24 21:29:15 (GMT) |
commit | 22aa6b67b41808bb9c27aeb0f8f662cd81466843 (patch) | |
tree | b4420c8dad89f0c924b3f0abf6b5da116591e7d0 /Tests/Architecture/bar.c | |
parent | 1fe0d72eb6aef12148be0b37d73cf31fbd5f9ca0 (diff) | |
download | CMake-22aa6b67b41808bb9c27aeb0f8f662cd81466843.zip CMake-22aa6b67b41808bb9c27aeb0f8f662cd81466843.tar.gz CMake-22aa6b67b41808bb9c27aeb0f8f662cd81466843.tar.bz2 |
cmListFileCache: Refactor cmListFileBacktrace internals
Replace use of raw pointers and explicit reference counting with
`std::shared_ptr<>`. Use a discriminated union to store either the
bottom level or a call/file context in each heap-allocated entry.
This avoids storing a copy of the bottom in every `cmListFileBacktrace`
instance and shrinks the structure to a single `shared_ptr`.
Diffstat (limited to 'Tests/Architecture/bar.c')
0 files changed, 0 insertions, 0 deletions