[PATCH] D10025: Refactor: Simplify boolean conditional return statements in clang-apply-replacements
Richard via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 24 11:00:47 PDT 2015
LegalizeAdulthood updated this revision to Diff 38313.
LegalizeAdulthood added a comment.
Update to latest
http://reviews.llvm.org/D10025
Files:
clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
Index: clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
===================================================================
--- clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
+++ clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
@@ -184,10 +184,7 @@
}
// Ask clang to deduplicate and report conflicts.
- if (deduplicateAndDetectConflicts(GroupedReplacements, SM))
- return false;
-
- return true;
+ return !deduplicateAndDetectConflicts(GroupedReplacements, SM);
}
bool applyReplacements(const FileToReplacementsMap &GroupedReplacements,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10025.38313.patch
Type: text/x-patch
Size: 587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151024/90f41b84/attachment-0001.bin>
More information about the cfe-commits
mailing list