[clang-tools-extra] r210508 - Simplify code. No functional change.

Craig Topper craig.topper at gmail.com
Mon Jun 9 21:50:51 PDT 2014


Author: ctopper
Date: Mon Jun  9 23:50:50 2014
New Revision: 210508

URL: http://llvm.org/viewvc/llvm-project?rev=210508&view=rev
Log:
Simplify code. No functional change.

Modified:
    clang-tools-extra/trunk/clang-query/QueryParser.h

Modified: clang-tools-extra/trunk/clang-query/QueryParser.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-query/QueryParser.h?rev=210508&r1=210507&r2=210508&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-query/QueryParser.h (original)
+++ clang-tools-extra/trunk/clang-query/QueryParser.h Mon Jun  9 23:50:50 2014
@@ -37,7 +37,7 @@ public:
 
 private:
   QueryParser(StringRef Line, const QuerySession &QS)
-      : Begin(Line.data()), End(Line.data() + Line.size()),
+      : Begin(Line.begin()), End(Line.end()),
         CompletionPos(nullptr), QS(QS) {}
 
   StringRef lexWord();





More information about the cfe-commits mailing list