Index: clang-tidy/modernize/UseNullptrCheck.cpp =================================================================== --- clang-tidy/modernize/UseNullptrCheck.cpp +++ clang-tidy/modernize/UseNullptrCheck.cpp @@ -175,10 +175,10 @@ class CastSequenceVisitor : public RecursiveASTVisitor { public: CastSequenceVisitor(ASTContext &Context, - SmallVector UserNullMacros, + ArrayRef UserNullMacros, ClangTidyCheck &check) : SM(Context.getSourceManager()), Context(Context), - UserNullMacros(std::move(UserNullMacros)), Check(check), + UserNullMacros(UserNullMacros), Check(check), FirstSubExpr(nullptr), PruneSubtree(false) {} bool TraverseStmt(Stmt *S) { @@ -435,7 +435,7 @@ private: SourceManager &SM; ASTContext &Context; - const SmallVector &UserNullMacros; + ArrayRef UserNullMacros; ClangTidyCheck &Check; Expr *FirstSubExpr; bool PruneSubtree;