]> granicus.if.org Git - clang/commit
unique_ptrify some parameters to PTHManager::PTHManager
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 29 Aug 2014 22:04:40 +0000 (22:04 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 29 Aug 2014 22:04:40 +0000 (22:04 +0000)
commite64891870300a5e41f6a9f0710b9b0b30351a4e8
tree93c6d98a26faa9793509498e253686b784720d3b
parentb92e1a596e7048a8bbf84b62fa3b0178f14fc2eb
unique_ptrify some parameters to PTHManager::PTHManager

A couple of these arguments were passed by void* as a rather extreme
example of pimpling. Adjusting this to a more classic form of the idiom
(involving forward declarations) makes this more legible and allows
explicit passing of ownership via std::unique_ptr.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216785 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/PTHManager.h
lib/Lex/PTHLexer.cpp