]> granicus.if.org Git - clang/commit
Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCom...
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Jan 2017 19:49:01 +0000 (19:49 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 6 Jan 2017 19:49:01 +0000 (19:49 +0000)
commite781b71dd0fa9835aff199285aba0f83d47aed27
tree746c15203e97a6e9bf75f556dea4fd5608c7fdcc
parent8dc751fddfd5052e23e51170699fb2bf2d242550
Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer"

Aleksey Shlypanikov pointed out my mistake in migrating an explicit
unique_ptr to auto - I was expecting the function returned a unique_ptr,
but instead it returned a raw pointer - introducing a leak.

Thanks Aleksey!

This reapplies r291184, reverted in r291249.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291270 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
examples/clang-interpreter/main.cpp
include/clang/Frontend/ASTUnit.h
include/clang/Frontend/CompilerInstance.h
include/clang/Frontend/CompilerInvocation.h
include/clang/Frontend/Utils.h
include/clang/Sema/CodeCompleteConsumer.h
include/clang/Tooling/Tooling.h
lib/ARCMigrate/ARCMT.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/ChainedIncludesSource.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/CreateInvocationFromCommandLine.cpp
lib/StaticAnalyzer/Frontend/ModelInjector.cpp
lib/Tooling/Tooling.cpp
tools/c-index-test/core_main.cpp
tools/clang-import-test/clang-import-test.cpp
tools/diagtool/ShowEnabledWarnings.cpp
tools/libclang/CIndex.cpp
tools/libclang/CIndexCodeCompletion.cpp
tools/libclang/CXTranslationUnit.h
tools/libclang/Indexing.cpp
unittests/AST/ExternalASTSourceTest.cpp
unittests/Frontend/CodeGenActionTest.cpp
unittests/Frontend/FrontendActionTest.cpp