diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-08-10 19:56:59 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-08-10 19:56:59 +0000 |
commit | e6b86480972932d6860c241a9c04f841ecd6a7a7 (patch) | |
tree | 066ea63f557106e3cd1d21402eca2cc06ca3fb01 /clang-tidy/ClangTidy.h | |
parent | 95cee0d1437dd9e29faf56dfbb2c3d65cd109a22 (diff) |
Recommit 213308: unique_ptr-ify ownership of ASTConsumers (reverted in r213324)
After post-commit review and community discussion, this seems like a
reasonable direction to continue, making ownership semantics explicit in
the source using the type system.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@215324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-tidy/ClangTidy.h')
-rw-r--r-- | clang-tidy/ClangTidy.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tidy/ClangTidy.h b/clang-tidy/ClangTidy.h index 005f92e5..9486577f 100644 --- a/clang-tidy/ClangTidy.h +++ b/clang-tidy/ClangTidy.h @@ -99,8 +99,8 @@ public: ClangTidyASTConsumerFactory(ClangTidyContext &Context); /// \brief Returns an ASTConsumer that runs the specified clang-tidy checks. - clang::ASTConsumer *CreateASTConsumer(clang::CompilerInstance &Compiler, - StringRef File); + std::unique_ptr<clang::ASTConsumer> + CreateASTConsumer(clang::CompilerInstance &Compiler, StringRef File); /// \brief Get the list of enabled checks. std::vector<std::string> getCheckNames(GlobList &Filter); |