Skip to content

Commit

Permalink
[NFC] Update comments to refer to unique_ptr instead of raw pointers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ymand committed Nov 17, 2021
1 parent 3623163 commit ccd729f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/include/clang/Tooling/Tooling.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit ccd729f

Please sign in to comment.