[PATCH] D12162: Remove reference.
Angel Garcia via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 19 10:48:02 PDT 2015
angelgarcia changed the visibility of this Differential Revision from "All Users" to "Public (No Login Required)".
angelgarcia updated this revision to Diff 32576.
angelgarcia added a comment.
Use ArrayRef.
http://reviews.llvm.org/D12162
Files:
clang-tidy/modernize/UseNullptrCheck.cpp
Index: clang-tidy/modernize/UseNullptrCheck.cpp
===================================================================
--- clang-tidy/modernize/UseNullptrCheck.cpp
+++ clang-tidy/modernize/UseNullptrCheck.cpp
@@ -175,10 +175,10 @@
class CastSequenceVisitor : public RecursiveASTVisitor<CastSequenceVisitor> {
public:
CastSequenceVisitor(ASTContext &Context,
- SmallVector<StringRef, 1> UserNullMacros,
+ ArrayRef<StringRef> 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<StringRef, 1> &UserNullMacros;
+ ArrayRef<StringRef> UserNullMacros;
ClangTidyCheck &Check;
Expr *FirstSubExpr;
bool PruneSubtree;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12162.32576.patch
Type: text/x-patch
Size: 1037 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150819/dfee7535/attachment.bin>
More information about the cfe-commits
mailing list