Improve memory ownership of vfs::Files in the FileSystemStatCache by using std::uniqu...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 8 Jul 2014 15:46:02 +0000 (15:46 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 8 Jul 2014 15:46:02 +0000 (15:46 +0000)
commit326ffb3683fa5198a9408e8c201149a7dde55fe9
tree0a329cc6630428626c1ecfc73072e2b244e7cdea
parentee5872187571906c4430e181184142112742468c
Improve memory ownership of vfs::Files in the FileSystemStatCache by using std::unique_ptr

Spotted after a memory leak (due to the complexities of manual memory
management) was fixed in 212466.

llvm-svn: 212541
clang/include/clang/Basic/FileManager.h
clang/include/clang/Basic/FileSystemStatCache.h
clang/lib/Basic/FileManager.cpp
clang/lib/Basic/FileSystemStatCache.cpp
clang/lib/Frontend/CacheTokens.cpp
clang/lib/Lex/PTHLexer.cpp