summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/ClangTidy.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-10 19:56:59 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-10 19:56:59 +0000
commit680c4c898c3ec1b10be6833e1dfad533724c4d20 (patch)
treec624345afa1a1fadd0b38af44456d9584bae31bb /clang-tools-extra/clang-tidy/ClangTidy.h
parent6beb6aa8f0f6fa20e8c8de7a17f39b101ed0da59 (diff)
downloadbcm5719-llvm-680c4c898c3ec1b10be6833e1dfad533724c4d20.tar.gz
bcm5719-llvm-680c4c898c3ec1b10be6833e1dfad533724c4d20.zip
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. llvm-svn: 215324
Diffstat (limited to 'clang-tools-extra/clang-tidy/ClangTidy.h')
-rw-r--r--clang-tools-extra/clang-tidy/ClangTidy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/ClangTidy.h b/clang-tools-extra/clang-tidy/ClangTidy.h
index 005f92e5176..9486577f2a2 100644
--- a/clang-tools-extra/clang-tidy/ClangTidy.h
+++ b/clang-tools-extra/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);
OpenPOWER on IntegriCloud