[clang-tools-extra] 1374f7b - [clangd] Fix comparator const after c9c714c7054d555398c767cb39d7d97600b3d9d1
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 3 13:14:08 PST 2019
Author: Sam McCall
Date: 2019-12-03T22:13:45+01:00
New Revision: 1374f7bd9f07115a7c69908bf50ba22e77b0e149
URL: https://github.com/llvm/llvm-project/commit/1374f7bd9f07115a7c69908bf50ba22e77b0e149
DIFF: https://github.com/llvm/llvm-project/commit/1374f7bd9f07115a7c69908bf50ba22e77b0e149.diff
LOG: [clangd] Fix comparator const after c9c714c7054d555398c767cb39d7d97600b3d9d1
Added:
Modified:
clang-tools-extra/clangd/Selection.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/Selection.cpp b/clang-tools-extra/clangd/Selection.cpp
index 6ff5eabe566c..ffa48f3a57d9 100644
--- a/clang-tools-extra/clangd/Selection.cpp
+++ b/clang-tools-extra/clangd/Selection.cpp
@@ -112,7 +112,7 @@ class IntervalSet {
private:
using TokenRange = llvm::ArrayRef<T>;
struct RangeLess {
- bool operator()(llvm::ArrayRef<T> L, llvm::ArrayRef<T> R) {
+ bool operator()(llvm::ArrayRef<T> L, llvm::ArrayRef<T> R) const {
return L.begin() < R.begin();
}
};
More information about the cfe-commits
mailing list