[clang] ccd729f - [NFC] Update comments to refer to unique_ptr instead of raw pointers.
Yitzhak Mandelbaum via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 17 13:08:31 PST 2021
Author: Yitzhak Mandelbaum
Date: 2021-11-17T21:08:09Z
New Revision: ccd729faa5d46a2656fa2b889f4339d399fca070
URL: https://github.com/llvm/llvm-project/commit/ccd729faa5d46a2656fa2b889f4339d399fca070
DIFF: https://github.com/llvm/llvm-project/commit/ccd729faa5d46a2656fa2b889f4339d399fca070.diff
LOG: [NFC] Update comments to refer to unique_ptr instead of raw pointers.
Added:
Modified:
clang/include/clang/Tooling/Tooling.h
Removed:
################################################################################
diff --git a/clang/include/clang/Tooling/Tooling.h b/clang/include/clang/Tooling/Tooling.h
index 56880724fbe33..c9c6a2ffb7b3b 100644
--- a/clang/include/clang/Tooling/Tooling.h
+++ b/clang/include/clang/Tooling/Tooling.h
@@ -115,7 +115,7 @@ class FrontendActionFactory : public ToolAction {
/// T must derive from clang::FrontendAction.
///
/// Example:
-/// FrontendActionFactory *Factory =
+/// std::unique_ptr<FrontendActionFactory> Factory =
/// newFrontendActionFactory<clang::SyntaxOnlyAction>();
template <typename T>
std::unique_ptr<FrontendActionFactory> newFrontendActionFactory();
@@ -145,7 +145,7 @@ class SourceFileCallbacks {
///
/// Example:
/// struct ProvidesASTConsumers {
-/// clang::ASTConsumer *newASTConsumer();
+/// std::unique_ptr<clang::ASTConsumer> newASTConsumer();
/// } Factory;
/// std::unique_ptr<FrontendActionFactory> FactoryAdapter(
/// newFrontendActionFactory(&Factory));
More information about the cfe-commits
mailing list