From 8b563665c3dc7f3e11b824a58c9676c2a1469aeb Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Sat, 3 Oct 2015 10:46:20 +0000 Subject: Replace double negation of !FileID.isInvalid() with FileID.isValid(). +couple more of double-negated !SourceLocation.isInvalid() unfixed in r249228. llvm-svn: 249235 --- clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp') diff --git a/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp b/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp index 5592657..f1fd078f 100644 --- a/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp +++ b/clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp @@ -559,7 +559,7 @@ bool ForLoopIndexUseVisitor::TraverseMemberExpr(MemberExpr *Member) { Context->getLangOpts()); // If something complicated is happening (i.e. the next token isn't an // arrow), give up on making this work. - if (!ArrowLoc.isInvalid()) { + if (ArrowLoc.isValid()) { addUsage(Usage(ResultExpr, Usage::UK_MemberThroughArrow, SourceRange(Base->getExprLoc(), ArrowLoc))); return true; -- cgit v1.1