aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-29 18:18:47 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-29 18:18:47 +0000
commit8d05190e1d2c858f29ed143346871e0217ddd950 (patch)
tree14b7e059fe2a0f458c31077e33454f402465f675 /clang/lib/Frontend/CompilerInvocation.cpp
parentd15481ccea21bae481a496a7acbde4532abc890c (diff)
downloadllvm-8d05190e1d2c858f29ed143346871e0217ddd950.zip
llvm-8d05190e1d2c858f29ed143346871e0217ddd950.tar.gz
llvm-8d05190e1d2c858f29ed143346871e0217ddd950.tar.bz2
unique_ptrify PathDiagnostic::setEndOfPath's argument
Again, if shared ownership is the right model here (I assume it is, given graph algorithms & such) this could be tidied up (the 'release' call removed in favor of something safer) by having IntrunsiveRefCntPointer constructible from a unique_ptr. (& honestly I'd probably favor taking a page out of shared_ptr's book, allowing implicit construction from a unique_ptr rvalue, and only allow explicit from a raw pointer - currently IntrusiveRefCntPointer can implicitly own from a raw pointer, which seems unsafe) llvm-svn: 216752
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions