[clang-tools-extra] r345979 - [clang-tidy] .reset(new X) -> make_unique<X>() in a comment. NFC
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 2 08:03:43 PDT 2018
Author: alexfh
Date: Fri Nov 2 08:03:43 2018
New Revision: 345979
URL: http://llvm.org/viewvc/llvm-project?rev=345979&view=rev
Log:
[clang-tidy] .reset(new X) -> make_unique<X>() in a comment. NFC
Modified:
clang-tools-extra/trunk/clang-tidy/utils/IncludeInserter.h
Modified: clang-tools-extra/trunk/clang-tidy/utils/IncludeInserter.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/utils/IncludeInserter.h?rev=345979&r1=345978&r2=345979&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/utils/IncludeInserter.h (original)
+++ clang-tools-extra/trunk/clang-tidy/utils/IncludeInserter.h Fri Nov 2 08:03:43 2018
@@ -31,8 +31,8 @@ namespace utils {
/// class MyCheck : public ClangTidyCheck {
/// public:
/// void registerPPCallbacks(CompilerInstance& Compiler) override {
-/// Inserter.reset(new IncludeInserter(&Compiler.getSourceManager(),
-/// &Compiler.getLangOpts()));
+/// Inserter = llvm::make_unique<IncludeInserter>(&Compiler.getSourceManager(),
+/// &Compiler.getLangOpts());
/// Compiler.getPreprocessor().addPPCallbacks(
/// Inserter->CreatePPCallback());
/// }
More information about the cfe-commits
mailing list