diff options
author | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-09 09:24:40 +0000 |
---|---|---|
committer | Ahmed Charles <ahmedcharles@gmail.com> | 2014-03-09 09:24:40 +0000 |
commit | 6a2dc5c3814916c57f23cbd0ca5375365a6f96c1 (patch) | |
tree | 385a19977c33443e7a1571834a41c02a93b03534 /clang-tools-extra/clang-modernize/LoopConvert | |
parent | b5669026872bf648cad824fbe6820a7dfeebc9e5 (diff) | |
download | bcm5719-llvm-6a2dc5c3814916c57f23cbd0ca5375365a6f96c1.tar.gz bcm5719-llvm-6a2dc5c3814916c57f23cbd0ca5375365a6f96c1.zip |
[C++11] Replace OwningPtr with std::unique_ptr.
This removes all references to OwningPtr, which should be fairly
undisruptive to out-of-tree projects since they are unlikely to use
clang-tools-extra as a library instead of a set of tools.
llvm-svn: 203382
Diffstat (limited to 'clang-tools-extra/clang-modernize/LoopConvert')
-rw-r--r-- | clang-tools-extra/clang-modernize/LoopConvert/LoopActions.h | 2 | ||||
-rw-r--r-- | clang-tools-extra/clang-modernize/LoopConvert/LoopConvert.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-modernize/LoopConvert/LoopActions.h b/clang-tools-extra/clang-modernize/LoopConvert/LoopActions.h index dfb05a7c97e..a14125ecc5b 100644 --- a/clang-tools-extra/clang-modernize/LoopConvert/LoopActions.h +++ b/clang-tools-extra/clang-modernize/LoopConvert/LoopActions.h @@ -53,7 +53,7 @@ struct TUTrackingInfo { /// \} private: - llvm::OwningPtr<StmtAncestorASTVisitor> ParentFinder; + std::unique_ptr<StmtAncestorASTVisitor> ParentFinder; StmtGeneratedVarNameMap GeneratedDecls; ReplacedVarsMap ReplacedVars; }; diff --git a/clang-tools-extra/clang-modernize/LoopConvert/LoopConvert.h b/clang-tools-extra/clang-modernize/LoopConvert/LoopConvert.h index d7ed6a22772..1121b65944f 100644 --- a/clang-tools-extra/clang-modernize/LoopConvert/LoopConvert.h +++ b/clang-tools-extra/clang-modernize/LoopConvert/LoopConvert.h @@ -37,7 +37,7 @@ public: virtual bool handleBeginSource(clang::CompilerInstance &CI, llvm::StringRef Filename) override; private: - llvm::OwningPtr<TUTrackingInfo> TUInfo; + std::unique_ptr<TUTrackingInfo> TUInfo; }; #endif // CLANG_MODERNIZE_LOOP_CONVERT_H |