diff options
Diffstat (limited to 'clang-tools-extra/clang-tidy/modernize')
-rw-r--r-- | clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp | 6 | ||||
-rw-r--r-- | clang-tools-extra/clang-tidy/modernize/UseAutoCheck.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp b/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp index 12c19f6d283..d1361a0b1da 100644 --- a/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp +++ b/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.cpp @@ -352,9 +352,9 @@ void UseAutoCheck::replaceIterators(const DeclStmt *D, ASTContext *Context) { << FixItHint::CreateReplacement(Range, "auto"); } -void UseAutoCheck::replaceExpr(const DeclStmt *D, ASTContext *Context, - std::function<QualType(const Expr *)> GetType, - StringRef Message) { +void UseAutoCheck::replaceExpr( + const DeclStmt *D, ASTContext *Context, + llvm::function_ref<QualType(const Expr *)> GetType, StringRef Message) { const auto *FirstDecl = dyn_cast<VarDecl>(*D->decl_begin()); // Ensure that there is at least one VarDecl within the DeclStmt. if (!FirstDecl) diff --git a/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.h b/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.h index 882e757a1b9..7bf32925199 100644 --- a/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.h +++ b/clang-tools-extra/clang-tidy/modernize/UseAutoCheck.h @@ -26,7 +26,7 @@ public: private: void replaceIterators(const DeclStmt *D, ASTContext *Context); void replaceExpr(const DeclStmt *D, ASTContext *Context, - std::function<QualType(const Expr *)> GetType, + llvm::function_ref<QualType(const Expr *)> GetType, StringRef Message); const bool RemoveStars; |