[clang-tools-extra] r273291 - [clang-apply-replacements] use Range::operator==() instead of self-defined operator.

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 21 10:59:57 PDT 2016


Author: ioeric
Date: Tue Jun 21 12:59:57 2016
New Revision: 273291

URL: http://llvm.org/viewvc/llvm-project?rev=273291&view=rev
Log:
[clang-apply-replacements] use Range::operator==() instead of self-defined operator.

Modified:
    clang-tools-extra/trunk/unittests/clang-apply-replacements/ReformattingTest.cpp

Modified: clang-tools-extra/trunk/unittests/clang-apply-replacements/ReformattingTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-apply-replacements/ReformattingTest.cpp?rev=273291&r1=273290&r2=273291&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-apply-replacements/ReformattingTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-apply-replacements/ReformattingTest.cpp Tue Jun 21 12:59:57 2016
@@ -40,13 +40,11 @@ static ReplacementsVec makeReplacements(
 // lookup finds these functions for the EXPECT_EQ macros below.
 namespace clang {
 namespace tooling {
-bool operator==(const Range &A, const Range &B) {
-  return A.getOffset() == B.getOffset() && A.getLength() == B.getLength();
-}
 
 std::ostream &operator<<(std::ostream &os, const Range &R) {
   return os << "Range(" << R.getOffset() << ", " << R.getLength() << ")";
 }
+
 } // namespace tooling
 } // namespace clang
 




More information about the cfe-commits mailing list